31 lines
644 B
JavaScript
31 lines
644 B
JavaScript
window.addEventListener('DOMContentLoaded', () => {
|
|
|
|
KEEP.themeInfo = {
|
|
author: 'XPoet',
|
|
name: 'Keep',
|
|
version: KEEP.theme_config.version,
|
|
repository: 'https://github.com/XPoet/hexo-theme-keep'
|
|
}
|
|
|
|
KEEP.refresh = () => {
|
|
KEEP.initUtils();
|
|
KEEP.initHeaderShrink();
|
|
KEEP.initModeToggle();
|
|
KEEP.initBack2Top();
|
|
|
|
if (KEEP.theme_config.local_search.enable === true) {
|
|
KEEP.initLocalSearch();
|
|
}
|
|
|
|
if (KEEP.theme_config.code_copy.enable === true) {
|
|
KEEP.initCodeCopy();
|
|
}
|
|
|
|
if (KEEP.theme_config.lazyload.enable === true) {
|
|
KEEP.initLazyLoad();
|
|
}
|
|
}
|
|
|
|
KEEP.refresh();
|
|
});
|