-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
182 lines (162 loc) · 3.6 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html lang="en" class="light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebContentAlerts</title>
<style>
/* :root styles for light theme */
:root.light {
--color-base-bg: #f0f0f0; /* Light gray background */
--color-base-text: #333; /* Dark gray text */
--color-table-border: #999; /* Light gray for table borders */
}
/* :root styles for dark theme */
:root.dark {
--color-base-bg: #333; /* Dark background */
--color-base-text: #f0f0f0; /* Light text */
--color-table-border: #666; /* Dark gray for table borders */
}
body {
font-family: Arial, Helvetica, sans-serif;
background-color: var(--color-base-bg);
padding: 10px;
color: var(--color-base-text);
margin: 0;
font-size: 17px; /* Increase font size a bit */
}
.container {
display: flex;
align-items: center;
justify-content: center;
}
/* Header styles */
#cnt {
display: flex;
align-items: center;
justify-content: center; /* Center horizontally and vertically */
margin-bottom: 20px;
}
h1 {
margin-right: 20px;
font-size: 20px; /* Increase font size a bit */
}
/* Dark mode toggle switch */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
margin-top: 4px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #4a92ff;
border-radius: 17px;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: rgb(241, 241, 241);
border-radius: 50%;
-webkit-transition: 0.4s;
transition: 0.4s;
}
input:checked + .slider {
background-color: #484abd;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Table styles */
table {
margin-top: 1rem;
width: 100%;
border-collapse: collapse;
border: 2px solid var(--color-table-border); /* Add table border */
}
th, td {
border: 2px solid var(--color-table-border);
padding: 0.8rem;
border-bottom: 1px solid transparent; /* Add underline to table rows */
font-size: 18px; /* Increase font size for table data */
}
th {
font-size: medium;
}
td {
max-width: 200px;
word-wrap: break-word;
}
/* Footer styles */
footer {
text-align: center;
margin-top: 20px;
}
footer p {
font-size: 14px;
color: #888;
}
/* Hyperlink styles */
a {
color: #4a92ff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div id="cnt">
<h1>Dark Mode</h1>
<label class="switch">
<input class="theme-toggle" type="checkbox" />
<span class="slider round"></span>
</label>
</div>
<div class="content">
<table>
<thead>
<tr>
<th>Date</th>
<th>Score</th>
<th>Status</th>
<th>URL</th>
</tr>
</thead>
<tbody id="storeDataBody">
<tr>
<td colspan="4">No Information Found</td>
</tr>
</tbody>
</table>
<script src="script.js"></script>
<script src="themeChange.js"></script>
<script src="popup.js"></script>
</body>
<footer>
<div class="container">
<p>Used <b><a href="https://clarifai.com" target="_blank">Clarifai API</a></b> and <b><a href="https://perspectiveapi.com" target="_blank">Perspective API</a></b></p>
</div>
</footer>
</div>
</html>