basic2/index.html

83 lines
3.5 KiB
HTML
Raw Normal View History

2021-08-27 10:32:21 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
2022-04-12 03:19:56 +08:00
<link rel="stylesheet" href="/index.css" />
2021-08-27 10:32:21 +08:00
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= title %></title>
<%- copyrightScript %>
2021-08-27 10:32:21 +08:00
<% if (appMode == 'example') { %>
<script>
var _hmt = _hmt || [];
2021-11-02 09:56:53 +08:00
_hmt.push(['_requirePlugin', 'UrlChangeTracker', {
shouldTrackUrlChange: function(newPath, oldPath) {
return newPath && oldPath;
}
}]);
2021-08-27 10:32:21 +08:00
(function() {
2021-11-02 09:56:53 +08:00
var hm = document.createElement("script");
2021-08-27 10:32:21 +08:00
if (location.origin.includes('gitee')) {
hm.src = "https://hm.baidu.com/hm.js?ba0ee7b31f404b7dc10bfcd8bdc7183d";
2021-11-02 09:56:53 +08:00
} else {
2021-08-27 10:32:21 +08:00
hm.src = "https://hm.baidu.com/hm.js?d07a64f7a02cd5e9c01e1b36948ac4a5";
}
2021-11-02 09:56:53 +08:00
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
2021-08-27 10:32:21 +08:00
})();
</script>
<% } %>
</head>
<body>
<div id="app">
<div class="fantastic-admin-home">
2021-08-28 14:18:50 +08:00
<div class="loading">
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
</div>
2021-08-27 10:32:21 +08:00
<div class="text"><%= title %>载入中…</div>
</div>
2022-04-03 02:31:25 +08:00
<div id="browser-upgrade">
<div class="title">为了您的体验,推荐使用以下浏览器</div>
<div class="browsers">
<a href="https://www.microsoft.com/edge" target="_blank" class="browser">
<img class="browser-icon" src="/browser_upgrade/edge.png" />
<div class="browser-name">Mircosoft Edge</div>
</a>
<a href="https://www.google.cn/chrome/" target="_blank" class="browser">
<img class="browser-icon" src="/browser_upgrade/chrome.png" />
<div class="browser-name">Google Chrome</div>
</a>
</div>
</div>
</div>
2022-04-03 11:45:42 +08:00
<script>
if(!!window.ActiveXObject || "ActiveXObject" in window) {
document.getElementById('browser-upgrade').style.display = 'block'
} else {
var Loading = document.querySelector('.loading')
Loading.classList.add('animate')
Loading.addEventListener('animationend', function() {
setTimeout(function() {
Loading.classList.remove('animate')
}, 600)
setTimeout(function() {
Loading.classList.add('animate')
}, 1000)
})
}
</script>
2021-08-27 10:32:21 +08:00
<script type="module" src="/src/main.js"></script>
<% if (debugTool == 'eruda') { %>
<script src="//cdn.jsdelivr.net/npm/eruda/eruda.min.js"></script>
<script>eruda.init();</script>
<% } %>
<% if (debugTool == 'vconsole') { %>
<script src="//cdn.jsdelivr.net/npm/vconsole/dist/vconsole.min.js"></script>
<script>new VConsole();</script>
<% } %>
</body>
</html>