-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.html
138 lines (132 loc) · 3.67 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!-- This is a redirect page for GitHub Pages. The actual app is in public/ -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Moved!</title>
<link rel="icon" href="images/icons/favicon.png" sizes="16x16" type="image/png"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<style>
body {
font-family: sans-serif;
background: black;
color: white;
}
html,
body {
height: 100%;
margin: 0;
display: flex;
flex-direction: column;
}
main {
flex: 1;
max-width: 70em;
margin: 0 auto;
padding: 1em;
}
h2 {
margin-top: 1.4em;
}
.logotype-area {
display: block;
font-size: 48px;
}
.logotype-area a {
text-decoration: none;
color: #daff95;
}
.logotype-area img {
margin-right: 10px;
height: 1em;
-ms-interpolation-mode: nearest-neighbor;
image-rendering: crisp-edges;
image-rendering: pixelated;
vertical-align: middle;
}
.update-your-bookmarks .star {
animation-name: spin;
animation-duration: 5000ms;
animation-iteration-count: infinite;
animation-timing-function: linear;
transform-origin: 50% 150%;
}
@keyframes spin {
from {
transform:rotate(0deg);
}
to {
transform:rotate(360deg);
}
}
/* Star styles from https://codepen.io/fxm90/pen/yOBWVe */
.star {
position: relative;
display: inline-block;
width: 0;
height: 0;
margin-left: .9em;
margin-right: .9em;
margin-bottom: 1em;
border-right: .3em solid transparent;
border-bottom: .7em solid #FC0;
border-left: .3em solid transparent;
/* Controls the size of the stars. */
font-size: 10px;
}
.star:before, .star:after {
content: '';
display: block;
width: 0;
height: 0;
position: absolute;
top: .6em;
left: -1em;
border-right: 1em solid transparent;
border-bottom: .7em solid #FC0;
border-left: 1em solid transparent;
-webkit-transform: rotate(-35deg);
transform: rotate(-35deg);
}
.star:after {
-webkit-transform: rotate(35deg);
transform: rotate(35deg);
}
</style>
</head>
<body>
<main>
<h1>Moved to...</h1>
<div class="logotype-area"><a href="https://midi-recorder.web.app/"><img src="public/favicon-alt.png" alt="">midi-recorder.web.app</a>!</div>
<p class="update-your-bookmarks"><i class="star"></i>If you happen to have a bookmark, update it!<i class="star"></i></p>
<p hidden id="timed-redirect-notice">You will be automatically redirected <span id="timed-redirect-notice-seconds">in a few seconds</span></p>
<script>
(function(){
var url = "https://midi-recorder.web.app";
var seconds = 15;
var redirectNotice = document.getElementById("timed-redirect-notice");
redirectNotice.removeAttribute("hidden");
var redirectNoticeSeconds = document.getElementById("timed-redirect-notice-seconds");
var timeoutID;
function countDownAndRedirect() {
redirectNoticeSeconds.textContent = seconds === 0 ? "momentarily" : ("in " + seconds + " second" + (seconds === 1 ? "" : "s"));
if (seconds === 0) {
window.location = url;
window.cancelTimedRedirect = function() {};
} else {
seconds -= 1;
timeoutID = setTimeout(countDownAndRedirect, 1000);
}
}
countDownAndRedirect();
window.cancelTimedRedirect = function() {
clearTimeout(timeoutID);
// redirectNotice.textContent = "Automatic redirect canceled.";
// redirectNotice.setAttribute("hidden", "hidden");
redirectNotice.style.textDecoration = "line-through"; // this seems the nicest
};
})();
</script>
</main>
</body>
</html>