122 lines
3.2 KiB
HTML
122 lines
3.2 KiB
HTML
<!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>LP2 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="mobile-web-app-capable" content="yes">
|
|
<meta name="theme-color" content="black">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
<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');
|
|
headNode.appendChild(sbNode);
|
|
run('ios');
|
|
} else if (isAndroid) {
|
|
run('android');
|
|
} else {
|
|
run('windows');
|
|
}
|
|
}
|
|
|
|
banner = undefined;
|
|
function run(force) {
|
|
var n = document.querySelector('.smartbanner');
|
|
if (n) {
|
|
n.parentNode.removeChild(n);
|
|
}
|
|
new SmartBanner({
|
|
title: '爽爆娛樂城',
|
|
author: '爽爆娛樂城',
|
|
button: '開啟遊戲',
|
|
scale: 'auto',
|
|
|
|
// Out
|
|
// url: {
|
|
// ios: 'https://line.me/R/app/2000222941-8ORVa7oZ',
|
|
// android: 'https://line.me/R/app/2000222941-8ORVa7oZ',
|
|
// windows: 'https://liff.line.me/2000222941-8ORVa7oZ/'
|
|
// },
|
|
|
|
// Dev
|
|
// url: {
|
|
// ios: 'https://line.me/R/app/2000222870-MOkW3vgO/',
|
|
// android: 'https://line.me/R/app/2000222870-MOkW3vgO/',
|
|
// windows: 'https://liff.line.me/2000222870-MOkW3vgO/'
|
|
// },
|
|
|
|
// B2B
|
|
url: {
|
|
ios: 'https://line.me/R/app/2000222883-BvlaG5PA/',
|
|
android: 'https://line.me/R/app/2000222883-BvlaG5PA/',
|
|
windows: 'https://liff.line.me/2000222883-BvlaG5PA//'
|
|
},
|
|
force: force,
|
|
daysHidden: 0,
|
|
daysReminder: 0,
|
|
layer: false,
|
|
hideOnInstall: false,
|
|
iOSUniversalApp: true,
|
|
store: {
|
|
ios: 'In Line Play',
|
|
android: 'In Line Play',
|
|
windows: 'In Web Play'
|
|
},
|
|
price: {
|
|
ios: 'FREE',
|
|
android: 'FREE',
|
|
windows: 'FREE'
|
|
}
|
|
});
|
|
};
|
|
})()
|
|
</script>
|
|
|
|
</html> |