From c0ded12311b9f2dad766bcff10706bde6292528f Mon Sep 17 00:00:00 2001 From: Ryan Averitt Date: Sun, 2 Oct 2022 19:23:30 -0400 Subject: [PATCH 1/3] setup: change footer size given legal links --- core/js/public/publicpage.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/js/public/publicpage.js b/core/js/public/publicpage.js index adb1c4dd2fcdc..157ea1f1880e9 100644 --- a/core/js/public/publicpage.js +++ b/core/js/public/publicpage.js @@ -21,6 +21,8 @@ */ window.addEventListener('DOMContentLoaded', function () { + //change footer size given legal links + console.log(document) $('#body-public').find('.header-right .menutoggle').click(function() { $(this).next('.popovermenu').toggleClass('open'); From 2c4ffd14b7307209f26d7f57b0a22b426cc572bd Mon Sep 17 00:00:00 2001 From: Ryan Averitt Date: Sun, 2 Oct 2022 19:44:10 -0400 Subject: [PATCH 2/3] dynamic footer size: conditional completed --- core/js/public/publicpage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/js/public/publicpage.js b/core/js/public/publicpage.js index 157ea1f1880e9..f069b2337e937 100644 --- a/core/js/public/publicpage.js +++ b/core/js/public/publicpage.js @@ -21,8 +21,8 @@ */ window.addEventListener('DOMContentLoaded', function () { - //change footer size given legal links - console.log(document) + //dynamically changes footer size if there's presence of links + if(document.querySelectorAll("a.legal").length > 0) console.log(1) $('#body-public').find('.header-right .menutoggle').click(function() { $(this).next('.popovermenu').toggleClass('open'); From cb568857d95a7ddef539b5388c8edc97a63e567f Mon Sep 17 00:00:00 2001 From: Ryan Averitt Date: Sun, 2 Oct 2022 19:57:19 -0400 Subject: [PATCH 3/3] Completed: Dynamically changed footer when legal links were present --- core/js/public/publicpage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/js/public/publicpage.js b/core/js/public/publicpage.js index f069b2337e937..71a24f1f24e24 100644 --- a/core/js/public/publicpage.js +++ b/core/js/public/publicpage.js @@ -21,8 +21,9 @@ */ window.addEventListener('DOMContentLoaded', function () { - //dynamically changes footer size if there's presence of links - if(document.querySelectorAll("a.legal").length > 0) console.log(1) + + //dynamically changes footer size depending on presence of links + if(document.querySelectorAll("a.legal").length > 0) document.getElementById("body-public").querySelector('footer').style = 'height: 95px' $('#body-public').find('.header-right .menutoggle').click(function() { $(this).next('.popovermenu').toggleClass('open');