-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
53 lines (47 loc) · 1.03 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
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: Arial, sans-serif;
padding: 10px;
margin: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
}
/* Default size for smaller screens */
:root {
--popup-width: 250px;
--popup-height: 150px;
}
.secure { color: green; }
.insecure { color: red; }
.warning { color: orange; }
h3 { font-size: 16px; }
#status { font-size: 14px; margin-top: 10px; }
/* Media queries for larger screens like external monitors */
@media (min-width: 600px) {
:root {
--popup-width: 350px;
--popup-height: 200px;
}
}
@media (min-width: 1024px) {
:root {
--popup-width: 400px;
--popup-height: 250px;
}
}
body {
width: var(--popup-width);
height: var(--popup-height);
}
</style>
</head>
<body>
<h3>Website Security Checker</h3>
<div id="status">Checking security status...</div>
<script src="popup.js"></script>
</body>
</html>