-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2nd.html
More file actions
124 lines (116 loc) · 5.73 KB
/
2nd.html
File metadata and controls
124 lines (116 loc) · 5.73 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Report Page</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.css" rel="stylesheet">
<!-- Import the Signika Negative Font -->
<style>
@import url('https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300..700&display=swap');
body {
font-family: 'Signika Negative', sans-serif;
}
/* Chevron Icon (Default) */
.line-md--chevron-small-right::after {
display: inline-block;
width: 24px;
height: 24px;
vertical-align: -0.125em;
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23d1dcd0' stroke-dasharray='10' stroke-dashoffset='10' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12l-5 -5M15 12l-5 5'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' dur='0.3s' values='10;0'/%3E%3C/path%3E%3C/svg%3E");
}
/* Check Icon (After Tap) */
.line-md--circle-filled-to-confirm-circle-filled-transition::after {
display: inline-block;
width: 24px;
height: 24px;
vertical-align: -0.125em;
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='lineMdCircleFilledToConfirmCircleFilledTransition0'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath fill='%23fff' d='M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z'/%3E%3Cpath stroke='%23000' stroke-dasharray='14' stroke-dashoffset='14' d='M8 12l3 3l5 -5'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' dur='0.2s' values='14;0'/%3E%3C/path%3E%3C/g%3E%3C/mask%3E%3Crect width='24' height='24' fill='%23d1dcd0' mask='url(%23lineMdCircleFilledToConfirmCircleFilledTransition0)'/%3E%3C/svg%3E");
}
/* Adjust Chevron Position */
.icon {
margin-left: 10px; /* Add spacing */
}
</style>
</head>
<body class="bg-black text-white">
<div class="max-w-md mx-auto p-4">
<!-- Header -->
<h1 class="text-xl font-bold mb-4">Report</h1>
<p class="text-sm text-blue-400 mb-6">What is wrong with this channel/group?</p>
<!-- Report Options -->
<ul id="report-options" class="space-y-4">
<!-- Each option -->
<li class="option-item flex justify-between items-center text-lg" data-option="1">
I don’t like it
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="2">
Child abuse
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="3">
Violence
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="4">
Illegal goods
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="5">
Illegal adult content
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="6">
Personal data
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="7">
Terrorism
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="8">
Scam or spam
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="9">
Copyright
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="10">
Other
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
<li class="option-item flex justify-between items-center text-lg" data-option="11">
It’s not illegal, but must be taken down
<span class="icon text-gray-500 line-md--chevron-small-right"></span>
</li>
</ul>
</div>
<!-- Flowbite JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.js"></script>
<!-- Custom Script -->
<script>
// Get all options
const options = document.querySelectorAll('.option-item');
let activeOption = null;
options.forEach(option => {
option.addEventListener('click', () => {
// Reset previously active option
if (activeOption) {
const prevIcon = activeOption.querySelector('.icon');
prevIcon.classList.remove('line-md--circle-filled-to-confirm-circle-filled-transition');
prevIcon.classList.add('line-md--chevron-small-right'); // Restore chevron
}
// Set the clicked option as active
activeOption = option;
// Show confirmation animation
const icon = option.querySelector('.icon');
icon.classList.remove('line-md--chevron-small-right'); // Remove chevron
icon.classList.add('line-md--circle-filled-to-confirm-circle-filled-transition'); // Add confirm animation
});
});
</script>
</body>
</html>