-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
67 lines (67 loc) · 1.52 KB
/
popup.html
File metadata and controls
67 lines (67 loc) · 1.52 KB
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>
<meta charset="utf-8">
<style>
body {
width: auto;
min-width: 140px;
max-width: 200px;
padding: 8px 12px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
text-align: center;
background: rgba(0, 0, 0, 0.9);
color: white;
margin: 0;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
position: relative;
word-wrap: break-word;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
.message {
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
flex-wrap: nowrap;
}
.next-mode {
font-weight: bold;
color: #ffd700;
margin-left: 4px;
white-space: nowrap;
}
.spinner {
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top: 1px solid white;
width: 12px;
height: 12px;
animation: spin 1s linear infinite;
margin-left: 6px;
flex-shrink: 0;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div class="message">
Switching to<span class="next-mode" id="nextMode">...</span>
<span class="spinner"></span>
</div>
<script src="popup.js"></script>
</body>
</html>