mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 05:27:39 +08:00
83 lines
3.5 KiB
HTML
83 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<link rel="stylesheet" href="/index.css" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title><%= title %></title>
|
|
<%- copyrightScript %>
|
|
<% if (appMode == 'example') { %>
|
|
<script>
|
|
var _hmt = _hmt || [];
|
|
_hmt.push(['_requirePlugin', 'UrlChangeTracker', {
|
|
shouldTrackUrlChange: function(newPath, oldPath) {
|
|
return newPath && oldPath;
|
|
}
|
|
}]);
|
|
(function() {
|
|
var hm = document.createElement("script");
|
|
if (location.origin.includes('gitee')) {
|
|
hm.src = "https://hm.baidu.com/hm.js?ba0ee7b31f404b7dc10bfcd8bdc7183d";
|
|
} else {
|
|
hm.src = "https://hm.baidu.com/hm.js?d07a64f7a02cd5e9c01e1b36948ac4a5";
|
|
}
|
|
var s = document.getElementsByTagName("script")[0];
|
|
s.parentNode.insertBefore(hm, s);
|
|
})();
|
|
</script>
|
|
<% } %>
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<div class="fantastic-admin-home">
|
|
<div class="loading">
|
|
<div class="square"></div>
|
|
<div class="square"></div>
|
|
<div class="square"></div>
|
|
<div class="square"></div>
|
|
</div>
|
|
<div class="text"><%= title %>载入中…</div>
|
|
</div>
|
|
<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>
|
|
<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>
|
|
<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>
|