-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
142 lines (128 loc) · 2.87 KB
/
index.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
133
134
135
136
137
138
139
140
141
<!doctype html>
<!--
This page is shown when the extension button is clicked, because the
"browser_action" field in manifest.json contains the "default_popup" key with
value "index.html".
-->
<html>
<head>
<title>Loadster Recorder Browser Extension</title>
<style>
body {
font-family: "Segoe UI", "Lucida Grande", Tahoma, sans-serif;
font-size: 100%;
background: #f9f9f9;
color: #000000;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
cursor: default;
user-select: none !important;
padding: 0;
margin: 0;
width: 250px;
}
.logo-bar {
display: flex;
align-items: center;
}
.logo {
display: flex;
align-items: center;
justify-content: center;
align-content: center;
flex-direction: column;
padding: 0 40px;
min-height: 100px;
font-size: 10px;
font-weight: bold;
text-decoration: none;
flex-grow: 1;
color: white;
text-transform: uppercase;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
.logo span {
transform: skewX(-9deg);
}
#loadster {
background: #2d2d2d;
}
.panel {
background: #2d2d2d;
clear: both;
margin: 0 0;
padding: 50px 0;
width: 100%;
}
@keyframes pulsate {
0% {
opacity: 1.0;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1.0;
}
}
#rec {
width: 25px;
height: 25px;
border-radius: 50%;
background: rgba(82, 32, 32, 1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 10px;
}
.rec-led {
width: 25px;
height: 25px;
border-radius: 50%;
background: #e54904;
box-shadow: 0 0 10px #e54904;
opacity: 0;
}
#status-panel {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
#status-panel.enabled .rec-led {
animation: pulsate 1.5s ease-in-out;
animation-iteration-count: infinite;
}
#status-panel #status::after {
text-transform: uppercase;
font-size: 12px;
font-weight: bold;
color: #808080;
content: "Not Recording";
}
#status-panel.enabled #status::after {
color: #fff;
content: "Recording Script";
}
</style>
<script src="src/popup.js"></script>
</head>
<body>
<div id="status-panel" class="panel">
<div id="rec">
<div class="rec-led"></div>
</div>
<div id="status"></div>
</div>
<div class="logo-bar">
<a href="https://loadster.app" target="_blank" class="logo" id="loadster">
<img title="Loadster" src="loadster-logo.svg"/>
</a>
</div>
</body>
</html>