-
Notifications
You must be signed in to change notification settings - Fork 2
/
deeplink-test.html
49 lines (49 loc) · 1.32 KB
/
deeplink-test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>URL Redirector</title>
<style>
.wrapper {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
}
#urlInput {
width: 400px;
padding: 10px;
font-size: 16px;
}
#redirectButton {
width: 400px;
padding: 10px;
font-size: 16px;
background-color: #00b24f;
color: white;
border: none;
margin-top: 10px;
border-radius: 25px;
}
</style>
</head>
<body>
<div class="wrapper">
<input type="text" id="urlInput" placeholder="Enter URL or deep link">
<button id="redirectButton" onclick="redirectToUrl()">Go</button>
</div>
<script type="text/javascript">
function redirectToUrl() {
var url = document.getElementById('urlInput').value;
if (url) {
window.location.href = url;
} else {
alert('Please enter a URL or deep link');
}
event.preventDefault();
}
</script>
</body>
</html>