-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (95 loc) · 4.64 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<script>
/* [브라우저 ready 상태 정의 : 최초 호출 상태] */
document.addEventListener("DOMContentLoaded", ready);
function ready() {
console.log("");
console.log("[window ready] : [start]");
console.log("");
// [현재 접속된 url 정보 및 접속 브라우저 확인]
// [카카오톡 인앱 브라우저 >> 안드로이드 모바일 기종 인 경우 >> 크롬 브라우저 이동 실시]
var Url = location.href;
var Agent = navigator.userAgent.toLowerCase();
console.log("");
console.log("[window ready] : [접속 Url] : " + Url);
console.log("[window ready] : [접속 Agent] : " + Agent);
console.log("");
//alert(Agent);
// if (Agent.includes("kakao")) { // 카카오, 인스타 인앱 브라우저로 실행 시킨 경우
if ((Agent.indexOf("kakao") > -1) || Agent.indexOf('instagram') > -1) {
// 먼저, 카카오 인앱 브라우저 닫기
if (Agent.includes("kakao")) {
location.href = 'kakaotalk://inappbrowser/close';
}
// 인스타 인앱 브라우저 닫기
else if (Agent.includes("instagram")) {
location.href = 'instagram://inappbrowser/close';
}
if (navigator.userAgent.match(/iPhone|iPad/i)) { // 아이폰 접속 경우
console.log("");
console.log("[window ready] : [접속 모바일] : " + "[아이폰]");
console.log("");
var useragt = navigator.userAgent.toLowerCase();
var target_url = "https://ntttt.dxworks.co.kr/";
if (useragt.match(/kakaotalk/i)) {
location.href = 'kakaotalk://web/openExternal?url=' + encodeURIComponent(target_url);
}
}
else { // 안드로이드 접속 경우
console.log("");
console.log("[window ready] : [접속 모바일] : " + "[안드로이드]");
console.log("");
// 크롬으로 새창 열기
location.href = 'intent://' + location.href.replace(/https?:\/\//i, '') + '#Intent;scheme=http;package=com.android.chrome;end';
}
}
};
</script>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NTTTT</title>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta property="og:title" content="NTTTT" />
<meta property="og:description" content="나만의 아이돌 NFT" />
<meta property="og:url" content="https://ntttt.dxworks.co.kr/" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://ntttt.dxworks.co.kr/splashscreens/ipad_splash.png" />
<link href="splashscreens/iphone5_splash.png"
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="splashscreens/iphone6_splash.png"
media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="splashscreens/iphoneplus_splash.png"
media="(device-width: 621px) and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)"
rel="apple-touch-startup-image" />
<link href="splashscreens/iphonex_splash.png"
media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)"
rel="apple-touch-startup-image" />
<link href="splashscreens/iphonexr_splash.png"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="splashscreens/iphonexsmax_splash.png"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3)"
rel="apple-touch-startup-image" />
<link href="splashscreens/ipad_splash.png"
media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="splashscreens/ipadpro1_splash.png"
media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="splashscreens/ipadpro3_splash.png"
media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="splashscreens/ipadpro2_splash.png"
media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>