top of page
bottom of page
var vh = window.innerHeight * 0.01,
windowWidth = window.innerWidth;
function setTrueBrowserHeight() {
var a = window.innerHeight * 0.01;
document.documentElement.style.setProperty("--vh", a + "px");
}
setTrueBrowserHeight();
function throttledResizeEvents() {
(windowHeight = window.innerHeight),
(scrollHeight = document.documentElement.scrollHeight),
(isMobile = window.innerWidth < 640),
(window.innerWidth !== windowWidth || windowWidth > 400) &&
((windowWidth = window.innerWidth), setTrueBrowserHeight());
}
var resizeTimer = !1;
window.addEventListener("resize", function () {
clearTimeout(resizeTimer),
(resizeTimer = setTimeout(throttledResizeEvents, 250));
});