-
Notifications
You must be signed in to change notification settings - Fork 1
/
404.html
35 lines (35 loc) · 1.36 KB
/
404.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name=viewport content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Loading...</title>
<style>
#loadingPage{min-width:100%;min-height:100%;position:absolute;left:0;top:0;z-index:1;text-align:center;vertical-align:middle;line-height:100vh}
</style>
</head>
<body>
<div id="loadingPage">Loading...</div>
<script>
window.addEventListener("load", function() {
var invitename = location.pathname.substr(1);
var url = "https://script.google.com/macros/s/AKfycbwuOjPRNeyQrnyjOfryuiPEZG4alX8f-JxSTC9cNZhIcRiOA9_BW-MFcdnoedMTkY2x6Q/exec?name=" + invitename;
fetch(url)
.then(function (response) {
if (response.ok) {
return response.json();
} else {
return "https://url.canaria.cc";
}
})
.then(function (data) {
location.replace(data);
})
.catch(function (error) {
console.log('Something went wrong');
location.replace("https://url.canaria.cc");
});
});
</script>
</body>
</html>