chore: update theme.js init
This commit is contained in:
2
assets/js/theme.min.js
vendored
2
assets/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -697,29 +697,36 @@ class Theme {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this.initSVGIcon();
|
try {
|
||||||
this.initTwemoji();
|
this.initSVGIcon();
|
||||||
this.initMenuMobile();
|
this.initTwemoji();
|
||||||
this.initSwitchTheme();
|
this.initMenuMobile();
|
||||||
this.initSearch();
|
this.initSwitchTheme();
|
||||||
this.initDetails();
|
this.initSearch();
|
||||||
this.initLightGallery();
|
this.initDetails();
|
||||||
this.initHighlight();
|
this.initLightGallery();
|
||||||
this.initTable();
|
this.initHighlight();
|
||||||
this.initHeaderLink();
|
this.initTable();
|
||||||
this.initToc();
|
this.initHeaderLink();
|
||||||
this.initComment();
|
this.initSmoothScroll();
|
||||||
this.initSmoothScroll();
|
this.initMath();
|
||||||
this.initMath();
|
this.initMermaid();
|
||||||
this.initMermaid();
|
this.initEcharts();
|
||||||
this.initEcharts();
|
this.initTypeit();
|
||||||
this.initTypeit();
|
this.initMapbox();
|
||||||
this.initMapbox();
|
this.initCookieconsent();
|
||||||
this.initCookieconsent();
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
|
|
||||||
this.onScroll();
|
window.setTimeout(() => {
|
||||||
this.onResize();
|
this.initToc();
|
||||||
this.onClickMask();
|
this.initComment();
|
||||||
|
|
||||||
|
this.onScroll();
|
||||||
|
this.onResize();
|
||||||
|
this.onClickMask();
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user