rebuild home padding

This commit is contained in:
2024-02-23 15:37:11 -06:00
parent 01ac070b40
commit 6deb4ee147
3 changed files with 94 additions and 52 deletions

View File

@@ -9,7 +9,7 @@ function onLoaded() {
resizer();
};
resizer();
if (window.innerWidth < 1200) {
if (window.innerWidth < 1400) {
const e = document.querySelector(".navControl");
e.style.maxHeight = "0px";
}
@@ -17,7 +17,7 @@ function onLoaded() {
function resizer() {
const e = document.querySelector(".navControl");
if (window.innerWidth > 1200) {
if (window.innerWidth > 1400) {
// desktop view
scrollFunction();
window.onscroll = function () {
@@ -68,7 +68,7 @@ function scrollFunction() {
}
function toggleMenu() {
if (window.innerWidth < 1200) {
if (window.innerWidth < 1400) {
const e = document.querySelector(".navControl");
const bar = document.querySelector(".header");
if (e.style.maxHeight === "0px") {