This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
update-available.html
129 lines (115 loc) · 3.04 KB
/
update-available.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Update available</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap" rel="stylesheet" />
<style>
html,
body {
height: 100%;
background: #fff;
overflow: hidden;
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
html {
font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 500;
}
body {
border: 4px solid black;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
h1,
h2,
p {
margin: 0;
padding: 0;
}
h1 {
font-size: 64px;
margin-bottom: 8px;
font-weight: 700;
}
h2 {
font-size: 28px;
font-weight: 500;
}
#spinner {
position: relative;
display: block;
width: 64px;
height: 64px;
text-align: center;
line-height: 66px;
margin-bottom: 16px;
}
#spinner::before {
content: '';
position: absolute;
display: block;
top: -4px;
left: -4px;
width: 64px;
height: 64px;
border: 4px solid black;
border-top-color: transparent;
border-radius: 50% 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.version-change {
font-size: 18px;
line-height: 20px;
margin-top: 16px;
}
.version-change svg {
display: inline;
width: 20px;
height: 20px;
vertical-align: middle;
}
</style>
</head>
<body>
<span id="spinner"></span>
<h1>Update available</h1>
<h2>We're downloading it now...</h2>
<section id="version-info">
<p class="version-change">
<span id="current-version"></span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path
fill-rule="evenodd"
d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z"
clip-rule="evenodd"
/>
</svg>
<span id="new-version"></span>
</p>
</section>
</body>
<script>
const params = new URLSearchParams(window.location.search);
const newVersion = params.get('newVersion');
const currentVersion = params.get('currentVersion');
if (!newVersion || !currentVersion) document.getElementById('version-info').style.display = 'none';
document.getElementById('new-version').innerText = newVersion;
document.getElementById('current-version').innerText = currentVersion;
</script>
</html>