hexo-theme-keep/source/js/main.js

23 lines
463 B
JavaScript
Raw Normal View History

window.addEventListener('DOMContentLoaded', () => {
// print theme info
2020-11-20 12:02:22 +08:00
KEEP.utils.printThemeInfo();
// init scroll
2020-11-20 12:02:22 +08:00
KEEP.utils.registerWindowScroll();
// init tools button
2020-11-20 12:02:22 +08:00
KEEP.utils.registerToolsButtonClick();
// comment
2020-11-20 12:02:22 +08:00
KEEP.utils.goComment();
2020-10-26 12:23:55 +08:00
// init page height handle
2020-11-20 12:02:22 +08:00
KEEP.utils.initPageHeightHandle();
2020-11-13 14:43:22 +08:00
// init first screen height
2020-11-20 12:02:22 +08:00
KEEP.utils.initFirstScreenHeight();
2020-11-16 19:04:24 +08:00
// big image viewer handle
2020-11-20 12:02:22 +08:00
KEEP.utils.imageViewer();
});