Fix that last thing
This commit is contained in:
parent
9a76dac0c5
commit
4e5e414844
1 changed files with 2 additions and 5 deletions
|
@ -1,9 +1,6 @@
|
|||
imagesLoaded(document.querySelector('.grid'), function(instance) {
|
||||
var typeIcons = document.getElementsByClassName('gallery-type-icon-hidden');
|
||||
|
||||
for(var i = 0; i < typeIcons.length; i++) {
|
||||
typeIcons[i].classList.remove("gallery-type-icon-hidden");
|
||||
}
|
||||
const typeIcons = document.querySelectorAll('.gallery-type-icon-hidden');
|
||||
typeIcons.forEach(element => element.classList.remove('gallery-type-icon-hidden'));
|
||||
|
||||
new Masonry('.grid', {
|
||||
itemSelector: '.grid-item',
|
||||
|
|
Loading…
Add table
Reference in a new issue