-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathindex.js
More file actions
58 lines (54 loc) · 1.16 KB
/
index.js
File metadata and controls
58 lines (54 loc) · 1.16 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
renderBaseHtml();
performImports();
window.onload = function() {
createCardManager();
cardManagerInstance.showAllCards('cardsAll');
/* var $grid = document.querySelector('.row');
console.log($grid);
var msnry = new Masonry($grid, {
//itemSelector: '.col-sm-4',
percentPosition: true
});
msnry.layout(); */
/* var divs = document.querySelectorAll('.container');
[].forEach.call(divs, function(div) {
console.log(div);
var msnry = new Masonry(div, {
itemSelector: '.col-sm-4',
percentPosition: true
});
msnry.layout();
}); */
var msnry = new Masonry( '.row', {
//columnWidth: 200,
//itemSelector: '.col-sm-4'
percentPosition: true
});
msnry.layout();
};
/* reportWindowSize();
window.onresize = reportWindowSize;
function reportWindowSize() {
var w = window.innerWidth;
if (w < 576) {
console.log('xs');
}
else if (w >= 576 && w < 768) {
console.log('sm');
}
else if (w >= 768 && w < 992) {
console.log('md');
}
else if (w >= 992 && w < 1200) {
console.log('lg');
}
else if (w >= 1200 && w < 1400) {
console.log('xl');
}
else if (w >= 1400) {
console.log('xxl');
}
else {
console.log('Width Error');
}
} */