started theme versioning
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user