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

39 lines
807 B
JavaScript
Raw Normal View History

window.addEventListener('DOMContentLoaded', () => {
KEEP.themeInfo = {
author: 'XPoet',
name: 'Keep',
version: KEEP.theme_config.version,
repository: 'https://github.com/XPoet/hexo-theme-keep'
}
// 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();
// toggle show tools list
KEEP.utils.toggleShowToolsList();
// global font adjust
KEEP.utils.globalFontAdjust();
2020-11-25 23:39:24 +08:00
KEEP.utils.contentAreaWidthAdjust();
// 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();
// set how long age in home article block
KEEP.utils.setHowLongAgoInHome();
});