Update 1.js
This commit is contained in:
@@ -92,9 +92,12 @@ window.addEventListener("scroll", () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/*when the window is reloading or loading*/
|
||||||
window.addEventListener('load', function() {
|
window.addEventListener('load', function() {
|
||||||
const targetElement = document.getElementById('container_1');
|
const targetElement = document.getElementById('container_1');
|
||||||
targetElement.scrollIntoView();
|
targetElement.scrollIntoView();
|
||||||
|
const sidebarCheckbox = document.getElementById('sidebar-active');
|
||||||
|
if (sidebarCheckbox.checked) {sidebarCheckbox.checked = false;}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*LOADING SCREEN*/
|
/*LOADING SCREEN*/
|
||||||
|
|||||||
Reference in New Issue
Block a user