From dd7afc28f706cd2094f2cf117499b0847081a23c Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 15:00:48 +0300 Subject: [PATCH] 5 --- static/js/global_js.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/js/global_js.js b/static/js/global_js.js index 86159de..029c3ff 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -39,6 +39,12 @@ window.onload = function (){ } // +$(window).on('resize',function (){ + let height = window.innerHeight + $('body')[0].style.maxHeight = height + 'px' + $('body')[0].style.height = height + 'px' +}) + function middleWareJS(){ let footer = document.querySelector("footer") let body = document.querySelector("body")