-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
62 lines (62 loc) · 1.75 KB
/
example.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Gaussian Blur</title>
<style>
.container {
text-align: center;
color: #666;
font: 500 16px/1.6 "Helvetica Neue", sans-serif;
padding-bottom: 80px;
}
.container p {
font-size: 14px;
}
p a {
color: #666;
}
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21475122-5']);
_gaq.push(['_setCustomVar', 1, 'Repo', 'lepture/gaussian-blur']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
if (location.port) {
return;
}
ga.src = '//www.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="container">
<h1>Gaussian Blur</h1>
<p>Created by <a href="http://lepture.com/">Hsiaoming Yang</a>.</p>
<div class="image">
<img id="art" src="art.jpg" alt="Art of human body">
</div>
</div>
<a href="https://github.com/lepture/gaussian-blur" class="github">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" class="github">
</a>
<script src="build/build.js"></script>
<script>
var img = document.getElementById('art');
var svg;
img.onload = function() {
svg = require('gaussian-blur')(img);
svg.onmouseover = function() {
svg.deviation(0);
}
svg.onmouseout = function() {
svg.deviation(1);
}
}
</script>
</body>
</html>