mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
51 lines
1.8 KiB
HTML
51 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-cmn-Hans">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
|
|
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
|
<link rel="apple-touch-icon" href="/logo.svg" />
|
|
<title>OGame-Vue-Ts</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
<!-- 统计勿删 - 异步加载避免阻塞页面 -->
|
|
<script>
|
|
// 异步加载外部脚本,不阻塞页面渲染
|
|
(function() {
|
|
// 51.la 统计
|
|
var la = document.createElement('script');
|
|
la.charset = 'UTF-8';
|
|
la.id = 'LA_COLLECT';
|
|
la.src = 'https://sdk.51.la/js-sdk-pro.min.js';
|
|
la.async = true;
|
|
la.onload = function() {
|
|
if (typeof LA !== 'undefined') {
|
|
LA.init({ id: "L298GYqn6JhAO0VU", ck: "L298GYqn6JhAO0VU", autoTrack: true, hashMode: true });
|
|
}
|
|
};
|
|
la.onerror = function() { console.warn('51.la analytics failed to load'); };
|
|
document.body.appendChild(la);
|
|
|
|
// vConsole - 仅在开发环境或调试时加载
|
|
if (location.hostname === 'localhost' || location.search.includes('debug=1')) {
|
|
var vc = document.createElement('script');
|
|
vc.src = 'https://cdn.bootcdn.net/ajax/libs/vConsole/3.15.1/vconsole.min.js';
|
|
vc.async = true;
|
|
vc.onload = function() {
|
|
if (typeof VConsole !== 'undefined') {
|
|
window.vConsole = new VConsole();
|
|
}
|
|
};
|
|
vc.onerror = function() { console.warn('vConsole failed to load'); };
|
|
document.body.appendChild(vc);
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
|
|
</html> |