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-12-30 18:11:46 +08:00
|
|
|
KEEP.refresh = () => {
|
|
|
|
KEEP.initUtils();
|
|
|
|
KEEP.initHeaderShrink();
|
|
|
|
KEEP.initModeToggle();
|
|
|
|
KEEP.initLocalSearch();
|
|
|
|
KEEP.initBack2Top();
|
|
|
|
KEEP.initCodeCopy();
|
|
|
|
}
|
2020-11-24 20:06:08 +08:00
|
|
|
|
2020-12-30 18:11:46 +08:00
|
|
|
KEEP.refresh();
|
2020-07-22 17:08:07 +08:00
|
|
|
});
|