-
Notifications
You must be signed in to change notification settings - Fork 0
/
kkkyph.html
151 lines (122 loc) · 3.11 KB
/
kkkyph.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checkbox App</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 20px;
background-color: #f4f4f4;
}
header {
text-align: center;
margin-bottom: 20px;
}
header h1 {
font-size: 24px;
color: #333;
}
.checkbox-container {
display: flex;
flex-direction: column;
max-width: 400px;
margin: auto;
}
.checkbox-item {
margin-bottom: 15px;
padding: 10px;
border: 2px solid #ccc;
border-radius: 8px;
background-color: #fff;
transition: background-color 0.3s ease;
}
input[type="checkbox"] {
margin-right: 10px;
}
label {
font-size: 16px;
}
.strikethrough {
text-decoration: line-through;
}
input[type="checkbox"]:checked + label {
color: #888;
}
input[type="checkbox"]:checked + label::before {
content: '\2713'; /* Checkmark symbol */
font-size: 16px;
margin-right: 5px;
}
input[type="checkbox"]:checked + .checkbox-item {
background-color: #e6f7ff;
border-color: #66b2ff;
}
.last-updated {
text-align: center;
margin-top: 20px;
font-size: 14px;
color: #888;
}
@media only screen and (max-width: 600px) {
.checkbox-container {
max-width: 100%;
}
}
</style>
</head>
<body>
<!--made by pv-->
<header>
<h1>KKK/PH</h1>
</header>
<div class="checkbox-container">
<div class="checkbox-item">
<input type="checkbox" id="checkbox1">
<label for="checkbox1"> Password Manager </label>
</div>
</div>
<div class="last-updated">
Last Updated: August 20, 2024 14:36 pm
</div>
<script>
function setCookie(name, value) {
document.cookie = name + "=" + (value || "") + "; path=/";
}
function getCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
}
return null;
}
function updateCheckboxState() {
var checkboxes = document.querySelectorAll('input[type="checkbox"]');
checkboxes.forEach(function(checkbox) {
var label = checkbox.nextElementSibling;
checkbox.addEventListener('change', function() {
if (checkbox.checked) {
label.classList.add('strikethrough');
} else {
label.classList.remove('strikethrough');
}
setCookie(checkbox.id, checkbox.checked.toString());
});
// Restore checkbox state from cookies
var storedValue = getCookie(checkbox.id);
if (storedValue !== null) {
checkbox.checked = storedValue === 'true';
if (checkbox.checked) {
label.classList.add('strikethrough');
}
}
});
}
updateCheckboxState();
</script>
</body>
</html>