File: /www/wwwroot/www.waciwang.com/wp-content/themes/miragev-main/assets/js/src/index.js
/**
* JavaScript 项目主文件
*/
// 幻灯片
import swiper from './swiper';
swiper();
import bar from './bar';
bar();
import { lazyLoad } from './lazy-load';
lazyLoad();
import contentAction from './content-action.js';
contentAction();
import { darkModeInit } from './dark-mode';
darkModeInit();
import headerMobile from "./header-mobile";
headerMobile();
import headerPc from "./header-pc";
headerPc();
import home from './home';
home.homeInit();
import users from './users.js';
users();
import comments from './comments.js';
comments();
import widget from './widget.js';
widget.sideMenuInit();
function footerCheck() {
window.addEventListener('load', function(e){
let themeName = document.querySelector('a[copyright]');
if(!themeName || themeName.innerText !== "MirageV"){
document.querySelector('html').remove();
}
});
}
// footerCheck(); 主题底部署名检查