-
Notifications
You must be signed in to change notification settings - Fork 3
/
popup.html
81 lines (69 loc) · 1.93 KB
/
popup.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
<!doctype html>
<html>
<head>
<title>Bundlephobia</title>
<style>
body {
display: flex;
width: 400px;
height: 400px;
margin: 0;
padding: 0;
align-items: center;
justify-content: center;
flex-direction: column;
}
iframe {
display: flex;
width: 400px;
height: 400px;
}
.progress-square {
display: none;
justify-content: center;
align-items: center;
flex-direction: row;
padding: 0 16px;
text-align: center;
}
.progress-square__loader {
display: inline-block;
width: 40px;
height: 40px;
border: 1px solid #595959;
top: 50%;
animation: loader 2s infinite ease;
}
@keyframes loader {
0% {
transform: rotate(0deg);
}
25% {
transform: rotate(180deg);
}
50% {
transform: rotate(180deg);
}
75% {
transform: rotate(360deg);
}
100% {
transform: rotate(360deg);
}
}
.loading .progress-square {
display: flex;
}
.loading iframe {
display: none;
}
</style>
</head>
<body class="loading">
<div class="progress-square">
<span class="progress-square__loader"></span>
</div>
<iframe id="result" frameborder="0"></iframe>
<script src="popup.js"></script>
</body>
</html>