-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loader.html
132 lines (113 loc) · 2.73 KB
/
loader.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
<style>
#nuxt-loading {
/* background: <%=options.background %>; */
visibility: hidden;
opacity: 0;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
animation: nuxtLoadingIn 10s ease;
-webkit-animation: nuxtLoadingIn 10s ease;
animation-fill-mode: forwards;
overflow: hidden;
}
@keyframes nuxtLoadingIn {
0% {
visibility: hidden;
opacity: 0.6;
}
20% {
visibility: visible;
opacity: 0.6;
}
100% {
visibility: visible;
opacity: 1;
}
}
@-webkit-keyframes nuxtLoadingIn {
0% {
visibility: hidden;
opacity: 0.6;
}
20% {
visibility: visible;
opacity: 0.6;
}
100% {
visibility: visible;
opacity: 1;
}
}
#nuxt-loading>div,
#nuxt-loading>div:after {
border-radius: 50%;
width: 80px;
height: 80px;
}
#nuxt-loading>div {
font-size: 10px;
position: relative;
text-indent: -9999em;
border: .5rem solid <%=options.color2 %>;
border-left: .5rem solid #698B68;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation: nuxtLoading 1.1s infinite linear;
animation: nuxtLoading 1.1s infinite linear;
}
#nuxt-loading.error>div {
border-left: .5rem solid #ff4500;
animation-duration: 5s;
}
@-webkit-keyframes nuxtLoading {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes nuxtLoading {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
</style>
<script>
window.addEventListener('error', function () {
var e = document.getElementById('nuxt-loading');
if (e) {
e.className += ' error';
}
});
</script>
<div
style="background-color:#D9DFF5;position:absolute;top:-180px;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:center;">
<div style="font-family:Arial,Helvetica,sans-serif;text-align: center;padding-bottom:8px;">
<div style="line-height:1;font-size:24px;color:#090076;font-weight:bold;padding-bottom:8px;">
Covid-19 Vaccine Tracker
</div>
<div style="line-height:1;font-size:16px;color:rgba(9,0,118,0.5)">Thailand</div>
</div>
</div>
<div id="nuxt-loading" aria-live="polite" role="status">
<div>
<%= options.loading %>
</div>
</div>
<%= options.dev ? '<!-- http://tobiasahlin.com/spinkit -->' : '' %>