summaryrefslogtreecommitdiff
path: root/themes/flog/layouts/partials/footer.html
diff options
context:
space:
mode:
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>