forked from germanysbestkeptsecret/Wookmark-jQuery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (81 loc) · 4.52 KB
/
index.html
File metadata and controls
96 lines (81 loc) · 4.52 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Wookmark Simple Example</title>
<meta name="description" content="An very basic example of how to use the Wookmark jQuery plug-in.">
<meta name="author" content="Christoph Ono, Sebastian Helzle">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- CSS Reset -->
<link rel="stylesheet" href="../bower_components/normalize.css/normalize.css">
<!-- Global CSS for the page and tiles -->
<link rel="stylesheet" href="../css/main.css">
</head>
<body>
<div>
<header>
<h1>Wookmark Simple Example</h1>
<p>Resize the browser window to trigger layout updates.</p>
<p>
The example contains two grids to show that they both work on their own but are instantiated with a single call.
</p>
<p><a href="../index.html">Back to overview</a></p>
</header>
<div role="main">
<ul class="tiles-wrap animated" id="wookmark1">
<!-- These are our grid blocks -->
<li><img src="../sample-images/image_1.jpg" width="200" height="283"><p>1</p></li>
<li><img src="../sample-images/image_2.jpg" width="200" height="300"><p>2</p></li>
<li><img src="../sample-images/image_3.jpg" width="200" height="252"><p>3</p></li>
<li><img src="../sample-images/image_4.jpg" width="200" height="158"><p>4</p></li>
<li><img src="../sample-images/image_5.jpg" width="200" height="300"><p>5</p></li>
<li><img src="../sample-images/image_6.jpg" width="200" height="297"><p>6</p></li>
<li><img src="../sample-images/image_7.jpg" width="200" height="200"><p>7</p></li>
<li><img src="../sample-images/image_8.jpg" width="200" height="200"><p>8</p></li>
<li><img src="../sample-images/image_9.jpg" width="200" height="398"><p>9</p></li>
<li><img src="../sample-images/image_10.jpg" width="200" height="267"><p>10</p></li>
<li><img src="../sample-images/image_1.jpg" width="200" height="283"><p>11</p></li>
<li><img src="../sample-images/image_2.jpg" width="200" height="300"><p>12</p></li>
<li><img src="../sample-images/image_3.jpg" width="200" height="252"><p>13</p></li>
<li><img src="../sample-images/image_4.jpg" width="200" height="158"><p>14</p></li>
<li><img src="../sample-images/image_5.jpg" width="200" height="300"><p>15</p></li>
</ul>
<hr>
<ul class="tiles-wrap animated" id="wookmark2">
<li><img src="../sample-images/image_6.jpg" width="200" height="297"><p>16</p></li>
<li><img src="../sample-images/image_7.jpg" width="200" height="200"><p>17</p></li>
<li><img src="../sample-images/image_8.jpg" width="200" height="200"><p>18</p></li>
<li><img src="../sample-images/image_9.jpg" width="200" height="398"><p>19</p></li>
<li><img src="../sample-images/image_10.jpg" width="200" height="267"><p>20</p></li>
<li><img src="../sample-images/image_1.jpg" width="200" height="283"><p>21</p></li>
<li><img src="../sample-images/image_2.jpg" width="200" height="300"><p>22</p></li>
<li><img src="../sample-images/image_3.jpg" width="200" height="252"><p>23</p></li>
<li><img src="../sample-images/image_4.jpg" width="200" height="158"><p>24</p></li>
<li><img src="../sample-images/image_5.jpg" width="200" height="300"><p>25</p></li>
<li><img src="../sample-images/image_6.jpg" width="200" height="297"><p>26</p></li>
<li><img src="../sample-images/image_7.jpg" width="200" height="200"><p>27</p></li>
<li><img src="../sample-images/image_8.jpg" width="200" height="200"><p>28</p></li>
<li><img src="../sample-images/image_9.jpg" width="200" height="398"><p>29</p></li>
<li><img src="../sample-images/image_10.jpg" width="200" height="267"><p>30</p></li>
<!-- End of grid blocks -->
</ul>
</div>
</div>
<!-- Include the plug-in -->
<script src="../wookmark.js"></script>
<!-- Once the page is loaded, initalize the plug-in. -->
<script type="text/javascript">
window.onload = function () {
var wookmark1 = new Wookmark('#wookmark1', {
outerOffset: 10, // Optional, the distance to the containers border
itemWidth: 210 // Optional, the width of a grid item
});
var wookmark2 = new Wookmark('#wookmark2', {
outerOffset: 10, // Optional, the distance to the containers border
itemWidth: 210 // Optional, the width of a grid item
});
};
</script>
</body>
</html>