summaryrefslogtreecommitdiff
path: root/themes/flog/layouts/partials/footer.html
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-08-27 12:08:53 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-08-27 12:08:53 +0200
commit66725af0f80fd8fbff29d553c6f20054409ab0c0 (patch)
treec030a32eba6bb1644891a475b58e2fc2d2d420ab /themes/flog/layouts/partials/footer.html
parentc5beb49fd23bd9d8feb75bfda682ed60c0521abb (diff)
downloadpragblog-66725af0f80fd8fbff29d553c6f20054409ab0c0.tar.gz
pragblog-66725af0f80fd8fbff29d553c6f20054409ab0c0.zip
fix js library loading
Diffstat (limited to 'themes/flog/layouts/partials/footer.html')
-rw-r--r--themes/flog/layouts/partials/footer.html13
1 files changed, 10 insertions, 3 deletions
diff --git a/themes/flog/layouts/partials/footer.html b/themes/flog/layouts/partials/footer.html
index a617ce6..937ff18 100644
--- a/themes/flog/layouts/partials/footer.html
+++ b/themes/flog/layouts/partials/footer.html
@@ -9,15 +9,22 @@
var coords = '50% ' + yPos + 'px';
$('body').css({ backgroundPosition: coords });
};
- function ready() {
+
+ document.addEventListener('pageReady', function() {
parallax();
$('.button-collapse').sideNav();
$('.button-collapse').sideNav('hide');
- };
+ });
+
+ function ready() {
+ document.dispatchEvent(new CustomEvent('pageReady'));
+ }
+
$(document).ready(function() {
+ parallax();
$(window).scroll(parallax);
+ $('.button-collapse').sideNav();
$('#main').smoothState({ prefetch: true, onAfter: ready });
- ready();
});
</script>
</body>