-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (59 loc) · 2.64 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ng-SVG-Icons | Easy SVG Icons</title>
<meta name="author" content="AJ Siegel" />
<meta name="description" content="Simple directive to easily place SVG icons in your AngularJS views." />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<style type="text/css">
.icon{
width: 100px;
height: 100px;
margin-right: 10px;
}
.icon-row{
display: flex;
align-items: center;
}
.notice{
padding: 20px;
margin-top: 10px;
width: 25%;
}
</style>
</head>
<body ng-app="myApp">
<svg xmlns="http://www.w3.org/2000/svg" style="display:none;">
<symbol id="icon-heart" viewBox="0 0 1024 1024">
<title>heart</title>
<path class="path1" d="M934.176 168.48c-116.128-115.072-301.824-117.472-422.112-9.216-120.32-108.256-305.952-105.856-422.144 9.216-119.712 118.528-119.712 310.688 0 429.28 34.208 33.888 353.696 350.112 353.696 350.112 37.856 37.504 99.072 37.504 136.896 0 0 0 349.824-346.304 353.696-350.112 119.744-118.592 119.744-310.752-0.032-429.28zM888.576 552.576l-353.696 350.112c-12.576 12.512-33.088 12.512-45.6 0l-353.696-350.112c-94.4-93.44-94.4-245.472 0-338.912 91.008-90.080 237.312-93.248 333.088-7.104l43.392 39.040 43.36-39.040c95.808-86.144 242.112-83.008 333.12 7.104 94.4 93.408 94.4 245.44 0.032 338.912zM296.096 240.032c8.864 0 16 7.168 16 16s-7.168 16-16 16h-0.032c-57.408 0-103.968 46.56-103.968 103.968v0.032c0 8.832-7.168 16-16 16s-16-7.168-16-16v0c0-75.072 60.832-135.904 135.872-135.968 0.064 0 0.064-0.032 0.128-0.032z">
</path>
</symbol></svg>
<div class="container-fluid">
<header class="row">
<div class="col-xs-12">
<h1 class="header">NG SVG Icons</h1>
<h2>By: AJ Siegel</h2>
</div>
</header>
<section class="row">
<div class="col-xs-12">
<h2>Sample Icon Use</h2>
<div class="icon-row">
<sn-ng-svg-icon class="icon" icon="'#icon-heart'"></sn-ng-svg-icon>
- <code><sn-ng-svg-icon class="icon" icon="'#icon-heart'"></sn-ng-svg-icon></code>
</div>
<div class="bg-danger notice">
Note the use of <code>'</code> around the icon name
</div>
</div>
</section>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js"></script>
<script src="example.js"></script>
<script src="ng-svg-icon.js"></script>
</body>
</html>