Only setup event handlers once document is ready
This commit is contained in:
parent
81642bc854
commit
9ad27215ab
1 changed files with 23 additions and 23 deletions
|
@ -58,7 +58,6 @@ $(document).ready(function() {
|
||||||
endAudio: '/audio/ding.mp3',
|
endAudio: '/audio/ding.mp3',
|
||||||
preloadAudio: false,
|
preloadAudio: false,
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
$('#scroll-top').on('click', function() {
|
$('#scroll-top').on('click', function() {
|
||||||
scrollTo(0);
|
scrollTo(0);
|
||||||
|
@ -85,3 +84,4 @@ $('.content img').on('click', function(event) {
|
||||||
.appendTo(lightbox.find('.modal-content'));
|
.appendTo(lightbox.find('.modal-content'));
|
||||||
lightbox.modal();
|
lightbox.modal();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue