-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (72 loc) · 2.27 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><juicy-svg-injector></title>
<link rel="stylesheet" href="//juicy.github.io/juicy-tile-list/examples/github-markdown.css">
<!-- Importing Web Component's Polyfill -->
<script src="//cdn.jsdelivr.net/webcomponentsjs/0.7.17/webcomponents.min.js"></script>
<!-- <script src="//rawgit.com/webcomponents/webcomponentsjs/c532ebd6c764037242f51f9e4049e3d7dee0974a/webcomponents.js"></script> -->
<!-- Importing Custom Elements -->
<link rel="import" href="juicy-svg-injector.html">
<style type="text/css" media="screen">
html,
body {
height: 100%;
}
.markdown-body {
margin: 1em auto;
width: 70%;
}
.code-comparison {
display: flex;
justify-content: space-around;
}
.code-comparison>section {
width: 45%;
}
iframe {
float: right;
}
#html5logo {
width: 200px;
height: 200px;
}
img#html5logo {
display: none;
}
svg#html5logo path:nth-child(2) {
fill: green;
}
svg#html5logo:hover path:nth-child(2) {
fill: seagreen;
}
svg#html5logo path:nth-child(3) {
fill: limegreen;
}
svg#html5logo:hover path:nth-child(3) {
fill: darkseagreen;
}
</style>
</head>
<body>
<article class="markdown-body">
<iframe src="http://ghbtns.com/github-btn.html?user=juicy&repo=juicy-svg-injector&type=fork&count=true&size=medium" allowtransparency="true" frameborder="0" scrolling="0" width="90" height="30"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=juicy&repo=juicy-svg-injector&type=watch&count=true&size=medium" allowtransparency="true" frameborder="0" scrolling="0" width="90" height="30"></iframe>
<h1><juicy-svg-injector></h1>
<blockquote>
<p>
Loads a SVG inline in your HTML, using <a href="https://github.com/iconic/SVGInjector">SVGInjector</a></p>
</blockquote>
<div class="code-comparison">
<section>
<p>Why is this cool? Because it let's you fill it with
<strong>color</strong>!</p>
<juicy-svg-injector>
<img src="html5.svg" id="html5logo">
</juicy-svg-injector>
</section>
</div>
</article>
</body>
</html>