forked from GianlucaGuarini/jQuery.BlackAndWhite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
responsive.html
executable file
·122 lines (116 loc) · 2.49 KB
/
responsive.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Gianluca Guarini - black and white image jQuery plug-in</title>
<meta name="Description" content="This jQuery plug-in can easly convert every colored image (in an html page) into a B&W greyscale image." />
<meta name="Keywords" content="JavaScript,HTML5,jQuery.BlackAndWhite.js,jQuery plugin" />
<link href='http://fonts.googleapis.com/css?family=Rosario' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
margin: 20px auto;
padding: 0;
color:#999;
font-family: 'Rosario', sans-serif;
width:100%;
}
a {
color:#0072ca;
}
img {
border:none;
}
iframe {
display:inline;
float: left;
}
#wrapper {
list-style:none;
float:left;
padding:0;
clear:both;
}
li {
float:left;
margin: 15px 30px 15px 0;
width:30%;
}
li.last {
float:left;
margin: 15px 0 15px;
}
</style>
<link href="css/BlackAndWhite.css" rel="stylesheet">
<script src="src/jquery.min.js"></script>
<script src="src/jquery.BlackAndWhite.js"></script>
</head>
<body>
<h1>Crossbrowser Html5 Black and white jQuery plug in</h1>
<h2>Responsive demo</h2>
<h3>Demo</h3>
<ul id="wrapper">
<li>
<a target="_blank" href="http://twitter.com/gianlucaguarini" class="bwWrapper">
<img src="files/twitter.jpg" width="100%" />
</a>
</li>
<li>
<a class="bwWrapper">
<img src="files/big-img.jpg" width="100%" />
</a>
</li>
<li>
<a href="#" class="bwWrapper">
<img src="files/Hydrangeas.jpg" width="40%" />
</a>
</li>
<li class="last">
<a href="#" class="bwWrapper">
<img src="files/Desert.jpg" width="50%" />
</a>
</li>
<li>
<a href="#" class="bwWrapper">
<img src="files/Chrysanthemum.jpg" width="100%" />
</a>
</li>
<li>
<a href="#" class="bwWrapper">
<img src="files/Jellyfish.jpg" width="60%" />
</a>
</li>
<li class="last">
<a href="#" class="bwWrapper">
<img src="files/Koala.jpg" width="100%" />
</a>
</li>
<li>
<a href="#" class="bwWrapper">
<img src="files/Lighthouse.jpg" width="30%" />
</a>
</li>
<li>
<a href="#" class="bwWrapper">
<img src="files/Penguins.jpg" width="90%" />
</a>
</li>
<li class="last">
<a href="#" class="bwWrapper">
<img src="files/Tulips.jpg" width="100%" />
</a>
</li>
</ul>
<br />
<small>
©
<a href="http://www.gianlucaguarini.com" target="_blank">Gianluca Guarini</a>
</small>
<script>
//init
$('.bwWrapper').BlackAndWhite({
hoverEffect:true,
webworkerPath: 'src/'
});
</script>
</body>
</html>