Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vue-shufflejs-plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
vue-shufflejs-plugin
Commits
adaf1e6d
Commit
adaf1e6d
authored
Oct 01, 2018
by
Marc Mautz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated shuffle init & comments
parent
2f98be3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
VueShuffle.vue
src/components/VueShuffle.vue
+2
-1
VueShuffleNavbar.vue
src/components/VueShuffleNavbar.vue
+1
-0
No files found.
src/components/VueShuffle.vue
View file @
adaf1e6d
...
...
@@ -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
:
{
...
...
src/components/VueShuffleNavbar.vue
View file @
adaf1e6d
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment