smooth things out
This commit is contained in:
@@ -177,6 +177,17 @@ class PageTransitions {
|
|||||||
this.updateContent(data, elementId);
|
this.updateContent(data, elementId);
|
||||||
history.pushState(null, null, targetUrl);
|
history.pushState(null, null, targetUrl);
|
||||||
|
|
||||||
|
// Update the page title
|
||||||
|
const newTitle = parsedData.querySelector('title');
|
||||||
|
if (newTitle) {
|
||||||
|
document.title = newTitle.textContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialize or update dynamic components
|
||||||
|
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
|
// Trigger removal of transition class after fetching data
|
||||||
const contentContainer = document.getElementById(elementId);
|
const contentContainer = document.getElementById(elementId);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user