Commit adaf1e6d authored by Marc Mautz's avatar Marc Mautz

updated shuffle init & comments

parent 2f98be3d
......@@ -59,7 +59,6 @@
imagesLoaded(document.querySelectorAll('.figure-img-wrap'), { background: true })
.on('always', (event) => {
// console.log('all images loaded', event)
this.initShuffle()
})
.on('done', (event) => {
// console.log('all images successfully loaded', event)
......@@ -80,6 +79,8 @@
}
image.element.classList.add('fade-in')
})
this.initShuffle()
}
},
computed: {
......
......@@ -109,6 +109,7 @@
methods: {
/**
* Check if url query params set & update filter selection
* Works with window location hash & search property
*/
checkUrlQueryParams () {
if ((window.location.hash.length && window.location.hash.indexOf('?') !== -1) || (window.location.search.length && window.location.search.indexOf('?') !== -1)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment