[add] first
This commit is contained in:
94
index.html
Normal file
94
index.html
Normal file
@@ -0,0 +1,94 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>BJ Casino 測試</title>
|
||||
|
||||
<!-- SmartAppBanner -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
<meta name="apple-itunes-app" content="app-id=1593328573">
|
||||
<meta name="google-play-app" content="app-id=org.vicking.bj_casino">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="/banner/smart-app-banner.css">
|
||||
<link rel="apple-touch-icon" href="./src/assets/icon.png">
|
||||
<link rel="android-touch-icon" href="./src/assets/icon.png" />
|
||||
<link rel="windows-touch-icon" href="./src/assets/icon.png" />
|
||||
|
||||
<style type="text/css">
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="./banner/smart-app-banner.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
|
||||
|
||||
<!--没有应用下载应用-->
|
||||
<script>
|
||||
var u = navigator.userAgent;
|
||||
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
|
||||
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||
(function () {
|
||||
|
||||
OnLoad();
|
||||
|
||||
function OnLoad() {
|
||||
_clearAllCookie();
|
||||
_addMeta();
|
||||
}
|
||||
|
||||
function _clearAllCookie() {
|
||||
document.cookie.split(";").forEach(function (c) { document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"); });
|
||||
}
|
||||
|
||||
function _addMeta() {
|
||||
if (isiOS) {
|
||||
var headNode = document.getElementsByTagName("head")[0];
|
||||
var sbNode = document.createElement('meta');
|
||||
sbNode.name = 'apple-itunes-app';
|
||||
sbNode.content = 'app-id=1593328573';
|
||||
headNode.appendChild(sbNode);
|
||||
run('ios');
|
||||
} else if (isAndroid) {
|
||||
run('android');
|
||||
} else {
|
||||
run('android');
|
||||
}
|
||||
}
|
||||
|
||||
banner = undefined;
|
||||
function run(force) {
|
||||
var n = document.querySelector('.smartbanner');
|
||||
if (n) {
|
||||
n.parentNode.removeChild(n);
|
||||
}
|
||||
new SmartBanner({
|
||||
title: '爆機娛樂城',
|
||||
author: 'Vic King Electronics Co., Ltd.',
|
||||
button: '下載',
|
||||
scale: 'auto',
|
||||
// url: './ToAppStore.html',
|
||||
force: force,
|
||||
daysHidden: 0,
|
||||
daysReminder: 0,
|
||||
layer: false,
|
||||
hideOnInstall: false,
|
||||
iOSUniversalApp: true,
|
||||
});
|
||||
};
|
||||
})()
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user