-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathar.html
More file actions
28 lines (28 loc) · 794 Bytes
/
ar.html
File metadata and controls
28 lines (28 loc) · 794 Bytes
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
<script>
function load() {
if (location.hash) {
let path = location.hash.slice(1)
p.innerHTML = "You're on your way to:"
p1.innerHTML = path
p2.innerHTML = "If this launches an application, you may close this tab afterward."
window.location.replace(path)
} else {
p.innerHTML = "This page auto-redirects to the set hash."
p1.innerHTML = "Example: ar.html#mailto:someone@gmail.com"
}
}
</script>
<style>
div {
height: calc(50% - 50px)
}
body {
text-align: center; font-family: Montserrat, Roboto, Verdana, Arial, sans-serif; font-size: 200%
}
</style>
<div></div>
<body onload="load()">
<div id="p">loading... (you may need to enable javascript)</div><br>
<div id="p1"></div>
<div id="p2" style="font-size: 50%"></div>
</body>