2020-03-29 19:54:28 +08:00
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
2020-11-24 20:06:08 +08:00
|
|
|
|
|
|
|
KEEP.themeInfo = {
|
|
|
|
author: 'XPoet',
|
|
|
|
name: 'Keep',
|
|
|
|
version: KEEP.theme_config.version,
|
|
|
|
repository: 'https://github.com/XPoet/hexo-theme-keep'
|
|
|
|
}
|
|
|
|
|
2020-10-21 19:36:38 +08:00
|
|
|
// print theme info
|
2020-11-20 12:02:22 +08:00
|
|
|
KEEP.utils.printThemeInfo();
|
2020-09-05 22:41:10 +08:00
|
|
|
|
2020-10-21 19:36:38 +08:00
|
|
|
// init scroll
|
2020-11-20 12:02:22 +08:00
|
|
|
KEEP.utils.registerWindowScroll();
|
2020-09-05 22:41:10 +08:00
|
|
|
|
2020-10-25 10:48:07 +08:00
|
|
|
// init tools button
|
2020-11-20 12:02:22 +08:00
|
|
|
KEEP.utils.registerToolsButtonClick();
|
2020-10-25 10:48:07 +08:00
|
|
|
|
|
|
|
// 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();
|
2020-11-24 20:06:08 +08:00
|
|
|
|
|
|
|
// set how long age in home article block
|
|
|
|
KEEP.utils.setHowLongAgoInHome();
|
2020-07-22 17:08:07 +08:00
|
|
|
});
|