forked from desandro/vanilla-masonry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (67 loc) · 1.68 KB
/
index.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
---
title: Vanilla Masonry
layout: default
category: homepage
mini_bricks:
- w1 h1
- w1 h1
- w1 h2
- w1 h1
- w2 h1
- w1 h2
- w1 h1
- w2 h2
- w2 h1
- w1 h1
- w2 h2
- w2 h1
---
<div id="container" class="clearfix">
<div class="item big-text col2">
A dynamic layout script for
the flip-side of CSS floats<br />
<br />
← View docs and demos
</div>
<div class="item big-text">
Before: CSS Floats
<div class="mini">
{% for brick in page.mini_bricks %}
<div class="{{ brick }}">{{ forloop.index }}</div>
{% endfor %}
</div>
</div>
<div class="item big-text">
After: Masonry
<div id="mini-container" class="mini">
{% for brick in page.mini_bricks %}
<div class="{{ brick }}">{{ forloop.index }}</div>
{% endfor %}
</div>
</div>
<div class="item link">
<a href="masonry.min.js">Download the script masonry.min.js</a>
</div>
<div class="item link">
<a href="http://meta.metafizzy.co/files/vanilla-masonry-site.zip">Download this project</a>
</div>
<div class="item link">
<a href="https://github.com/desandro/vanilla-masonry">Vanilla Masonry on GitHub</a>
</div>
<!-- <div class="item big-text loading">
<img src="http://i.imgur.com/6RMhx.gif" />
Loading Examples
</div> -->
</div> <!-- #container -->
<script src="{{ site.masonry_js }}"></script>
<script>
window.onload = function() {
var miniWall = new Masonry( document.getElementById('mini-container'), {
columnWidth: 50,
foo: 'bar'
});
var wall = new Masonry( document.getElementById('container'), {
columnWidth: 240
});
};
</script>