-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDemo.html
93 lines (93 loc) · 2.27 KB
/
Demo.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>jQuery Noisy Plugin Demo</title>
<meta name="description" content="A demo of the noisy jQuery plugin.">
<style type="text/css" media="screen">
.noise {
width: 300px;
height: 250px;
background-color: #999;
margin: 12px;
float: left;
padding: 12px;
}
code {
white-space: pre;
}
footer {
clear: both;
}
</style>
</head>
<body>
<header>
<h1>jQuery Noisy Plugin Demo</h1>
<h3><a href="https://github.com/ajcates/jQuery-Noise">Fork on github</a> and <a href="http://forrst.com/posts/Improved_jQuery_Noise_Plugin-7Nk">like on Forrst</a>.</h3>
</header>
<div role="main">
<div id="default" class="noise">
<code>$("#default").noisy();</code>
</div>
<div id="opacity" class="noise">
<code>$("#opacity").noisy({
opacity : .5
});</code>
</div>
<div id="color" class="noise">
<code>$("#color").noisy({
color : 'rgb(250, 20, 20)'
});</code>
</div>
<div id="monochromatic" class="noise">
<code>$("#monochromatic").noisy({
monochromatic : true
});</code>
</div>
<div id="brightness" class="noise">
<code>$("#brightness").noisy({
brightness : 120
});</code>
</div>
<div id="multiple" class="noise">
<code>$("#multiple").noisy({
opacity : .3,
color: 'rgb(40, 200, 40)',
monochromatic: false,
brightness: 100
});</code>
</div>
</div>
<footer>
<p>Created by: <a href="http://ajcates.com">ajcates</a>, <a href="http://dhotson.tumblr.com/">dhouston</a>, & <a href="http://alanhogan.com/">alanhogan</a>. MIT Licensed please see <a href="License.md">License.md</a> for more info.</p>
</footer>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="noisy.js"></script>
<script>
$(function() {
console.log($("#default")[0].style.backgroundColor);
$("#default").noisy();
$("#opacity").noisy({
opacity : .5
});
$("#color").noisy({
color : 'rgb(250, 20, 20)'
});
$("#monochromatic").noisy({
monochromatic : true
});
$("#brightness").noisy({
brightness : 140
});
$("#multiple").noisy({
opacity : .3,
color: 'rgb(40, 200, 40)',
monochromatic: false,
brightness: 100
});
})
</script>
</body>
</html>