-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpause.html
67 lines (58 loc) · 1.9 KB
/
pause.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
<!DOCTYPE html>
<html>
<head>
<title>Please wait</title>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="robots" content="all,follow" />
<style type="text/css">
/*auto*/
html,body { font: normal normal 14px Arial; background-color: white; height: 100%; margin: 0; padding: 0; font-smoothing: antialiased; }
.table { display: table; width: 100%; height: 100%}
.cell { display:table-cell;vertical-align:middle;text-align:center}
table { max-width: 300px; margin: 20px auto; width: 100%; border:1px solid #E0E0E0; border-collapse: collapse; font-size: 12px; }
table td { border: 1px solid #E0E0E0; padding: 6px 8px; text-align: center; }
table td:first-child { text-align: left; width: 85%; }
.anim { animation: anim 2s infinite; }
.text { color: #A0A0A0; font-size: 10px; margin-bottom: 3px; }
#time { font-size: 60px; font-weight: bold; margin-bottom: 10px; background-color: #000; color: #FFF; padding: 8px 15px; min-width: 70px; text-align: center; border-radius: 10px; position: relative; display: inline-block; border-bottom: 5px solid #D0D0D0; }
@keyframes anim {
0% { transform:scale(1); }
50%{ transform:scale(1.5) rotate(180deg); color:gray }
100%{ transform:scale(1); }
}
</style>
</head>
<body>
<div class="table">
<div class="cell">
<div id="time">10</div>
<div class="text">Please wait</div>
<div>
<b>Application is starting …</b>
</div>
<table>
@{foreach m in model}
<tr>
<td>@{m}</td>
<td class="anim">⧗</td>
</tr>
@{end}
</table>
</div>
</div>
<script>
var counter = 10;
setInterval(function() {
if (counter < 0)
return;
if (counter === 0)
window.location.reload();
else
time.innerHTML = counter + '';
counter--;
}, 1000);
</script>
</body>
</html>