started theme versioning

This commit is contained in:
prospect
2024-01-19 08:04:24 -05:00
parent 160df267f2
commit 02cb84ce88
5 changed files with 180 additions and 105 deletions

View File

@@ -54,11 +54,6 @@ class Nav {
init() {
// Open and Close the Nav Menu
document.addEventListener('DOMContentLoaded', () => {
// Check if fullscreen is supported
if (document.documentElement.requestFullscreen) {
// Request fullscreen
document.documentElement.requestFullscreen();
}
this.toggleMenuBtn.addEventListener('click', () => this.toggleNavMenu());
});
}
@@ -145,6 +140,8 @@ class PageTransitions {
fetch(targetUrl).then(response => response.text()).then(data => {
this.updateContent(data, elementId);
history.pushState(null, null, targetUrl);
// Trigger removal of transition class after fetching data
this.removeTransitionClass(contentContainer);
}).catch(error => console.error('Error fetching content:', error));
}
updateContent(data, elementId) {
@@ -167,8 +164,6 @@ class PageTransitions {
this.collapsePanel = new _CollapsePanel__WEBPACK_IMPORTED_MODULE_0__["default"]();
this.collapsePanel.addToggleCollapseListener('#content-container .accordion-toggle');
this.addLinkClickListener('#content-container a');
// Trigger removal of transition class after fetching data
this.removeTransitionClass(contentContainer);
} else {
console.error(`Element with ID '${elementId}' not found in the fetched data`);
}