1
Fork 0

Only setup event handlers once document is ready

This commit is contained in:
Jake Howard 2022-01-14 19:05:36 +00:00
parent 81642bc854
commit 9ad27215ab
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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();
}); });
});