-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
98 lines (82 loc) · 3.84 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
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en">
<head>
<meta charset="UTF-8">
<title>glitch your <img></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A polymer component to glitch your img tag">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.0/highlight.min.js"></script>
<link rel="import" href="src/glitch-img.html">
<!--foundation -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.3.0/css/normalize.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.3.0/css/foundation.min.css">
<!--highlight.js -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.0/styles/solarized_dark.min.css">
<style type="text/css" media="screen">
.useage p {
margin: 0.3em;
}
footer {
margin-top: 20px;
margin-bottom: 15px;
}
</style>
</head>
<body>
<div class="row">
<h1 class="text-center">glitch your <img></h1>
<div class="small-10 small-centered medium-5 medium-uncentered medium-offset-1 columns">
<p><img></p>
<img src="feynman.jpg"/>
<p>
<a href="https://commons.wikimedia.org/wiki/File:RichardFeynman-PaineMansionWoods1984_copyrightTamikoThiel_bw.jpg
">Photo</a> by Tamiko Thiel/CC BY SA 3.0
</p>
</div>
<div class="small-10 small-centered medium-5 medium-uncentered columns">
<p><glitch-img></p>
<glitch-img src="feynman.jpg"></glitch-img>
</div>
</div>
<div class="row useage">
<div class="small-10 small-centered columns">
<h2>Install</h2>
<p>Install the component using <a href="http://bower.io/">Bower</a>:</p>
<pre><code class="bash">$ bower install glitch-img --save</code></pre>
</div>
<div class="small-10 small-centered columns">
<h2>Usage</h2>
<div>
<p>Import Web Components' polyfill:</p>
<pre><code class="html"><script src="bower_components/webcomponentsjs/webcomponents.min.js"></script></code></pre>
</div>
<p>Import Custom Element:</p>
<div>
<pre><code class="html"><link rel="import" href="bower_components/glitch-img/dist/glitch-img.html"></code></pre>
</div>
<p>Start using it!:</p>
<div>
<pre><code class="html"><glitch-img src="beautifulpic.jpg"></glitch-img></code></pre>
</div>
<p>
More on <a href="https://github.com/kunjinkao/glitch-img/blob/master/README.md">docs</a>
</p>
</div>
</div>
<!--github ribbons on corner -->
<a href="https://github.com/kunjinkao/glitch-img"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<footer class="text-center">
glitch-img was created by <a href="http://notimportant.org"</footer>Li Song</a>
</footer>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/foundation/5.3.0/js/foundation.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
$(document).foundation();
</script>
</body>
</html>