-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo1.html
80 lines (75 loc) · 2.74 KB
/
demo1.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Masonry Layout Vanilla</title>
<link rel="stylesheet" href="css/masonry-layout-vanilla.min.css" />
<link rel="stylesheet" href="css/example.min.css" />
</head>
<body>
<div id="loading">
<div class="icon-loading"></div>
</div>
<button class="btn btn--fr" onclick="fecthMasonry('masonry', 'card', 4)">4 COLS</button>
<button class="btn btn--fr" onclick="fecthMasonry('masonry', 'card', 3)">3 COLS</button>
<button class="btn btn--fr" onclick="fecthMasonry('masonry', 'card', 2)">2 COLS</button>
<div class="clb"></div>
<div class="wrapper-masonry">
<div id="masonry">
<div class="card">
<h4>Card Title - 1</h4>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, labore rerum veritatis dolor deleniti architecto perferendis a assumenda beatae velit accusantium quam, maxime, omnis est quae iure quod odio pariatur.
</p>
</div>
<div class="card">
<h4>Card Title - 2</h4>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit.
</p>
</div>
<div class="card">
<h4>Card Title - 3</h4>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, labore rerum veritatis dolor deleniti architecto perferendis
</p>
</div>
<div class="card">
<h4>Card Title - 4</h4>
<p>
Lorem ipsum dolor sit amet consectetur
</p>
</div>
<div class="card">
<h4>Card Title - 5</h4>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, labore rerum veritatis dolor deleniti architecto perferendis a assumenda beatae velit accusantium quam, maxime, omnis est quae iure quod odio pariatur.
</p>
</div>
<div class="card">
<h4>Card Title - 6</h4>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste,
</p>
</div>
<div class="card">
<h4>Card Title - 7</h4>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, labore rerum veritatis dolor deleniti
</p>
</div>
<div class="card">
<h4>Card Title - 8</h4>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, labore rerum veritatis dolor deleniti architecto perferendis a assumenda beatae velit accusantium quam
</p>
</div>
</div>
</div>
<script src="src/masonry-layout-vanilla.min.js"></script>
<script src="src/events.js"></script>
<script src="src/demo1.js"></script>
</body>
</html>