-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
99 lines (90 loc) · 2.74 KB
/
404.html
File metadata and controls
99 lines (90 loc) · 2.74 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wildhood App</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #ffffff; /* White background */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
text-align: center;
}
button {
font-family: Helvetica, Sans-Serif, sans-serif;
padding: 10px 20px;
margin-top: 25px;
margin-bottom: 25px;
font-size: 16px;
background-color: #000000; /* Black button color */
color: #ffffff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #333333; /* Darker black on hover */
}
img {
max-width: 100%;
width: 250px;
height: 250px;
margin-left: -10px;
margin-bottom: 25px;
}
p {
font-family: Helvetica, Sans-Serif, sans-serif;
}
a {
font-family: Helvetica, Sans-Serif, sans-serif;
color: black; /* Black color for the anchor text */
}
</style>
</head>
<body>
<div class="container">
<img src="https://raw.githubusercontent.com/Abumze978/abumze978.github.io/main/assets/logo.png" alt="">
<br>
<button onclick="redirectToOtherWebsite()">Vedi in app</button>
<br>
<p>Se ancora non ci conosci, scopri di più sul <a href="https://wildhood.app">nostro sito</a></p>
</div>
<script>
function redirectToOtherWebsite() {
// Extract the segment after the domain from the current URL
var currentPath = window.location.pathname;
var deviceType = detectDevice();
if (deviceType === "iOS") {
window.location.href = "wildhood:" + currentPath;
}
if (deviceType === "Android") {
window.location.href = "wildhood://thewildhood.app" + currentPath;
}
if (deviceType === "Other") {
window.location.href = "https://www.wildhood.app";
}
window.location.href = "wildhood:" + currentPath;
}
</script>
<script>
function detectDevice() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
if (/android/i.test(userAgent)) {
return "Android";
}
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
return "iOS";
}
return "Other";
}
</script>
</body>
</html>