[add] first
This commit is contained in:
106
index.html
Normal file
106
index.html
Normal file
@@ -0,0 +1,106 @@
|
||||
<!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>LP 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',
|
||||
url: {
|
||||
ios: 'https://line.me/R/app/1657864491-kA7gnVMp',
|
||||
android: 'https://line.me/R/app/1657864491-kA7gnVMp',
|
||||
windows: 'https://liff.line.me/1657864491-kA7gnVMp/'
|
||||
},
|
||||
force: force,
|
||||
daysHidden: 0,
|
||||
daysReminder: 0,
|
||||
layer: false,
|
||||
hideOnInstall: false,
|
||||
iOSUniversalApp: true,
|
||||
store: {
|
||||
ios: 'In Line Play',
|
||||
android: 'In Line Play',
|
||||
windows: 'In Line Web'
|
||||
},
|
||||
price: {
|
||||
ios: 'FREE',
|
||||
android: 'FREE',
|
||||
windows: 'FREE'
|
||||
}
|
||||
});
|
||||
};
|
||||
})()
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user