-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpopup.html
More file actions
107 lines (89 loc) · 3.48 KB
/
popup.html
File metadata and controls
107 lines (89 loc) · 3.48 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
padding: 8px;
width: 300px;
box-sizing: border-box;
text-align: center;
font-size: 0.85em;
}
@media (prefers-color-scheme: dark) {
body {
color: white;
background: rgb(27, 27, 35);
}
}
h1 {
font-weight: bold;
text-align: center;
}
/* Style for the square container */
.container {
border: 1px solid #007BFF; /* Add border around the container */
padding: 10px; /* Add padding for better appearance */
margin: 8px auto; /* Center the container horizontally */
}
/* Style for checkboxes */
.checkbox-container {
text-align: left; /* Align checkboxes to the left within the container */
}
input[type="checkbox"] {
margin-right: 5px;
border: none; /* Remove border from individual checkboxes */
padding: 5px; /* Add padding for better appearance */
margin-bottom: 5px; /* Add margin between checkboxes */
}
/* Style for the "Report" button */
button {
border: none; /* Remove border from the button */
padding: 10px; /* Add padding for better appearance */
margin-top: 8px; /* Add margin above the button */
background-color: #c5c6c8; /* Add background color to the button */
color: rgb(22, 21, 21); /* Set text color to white */
cursor: pointer; /* Change cursor to pointer on hover */
transition: background-color 0.3s ease; /* Add transition for smooth effect */
}
/* Style for button press effect on hover */
button:hover {
background-color: #636465; /* Darker color to simulate button press */
}
/* Style for the link */
p {
margin-top: 10px; /* Add top margin to the paragraph */
}
a {
color: #007BFF; /* Blue color for links */
text-decoration: none;
}
</style>
<script type="module" src="popup.js"></script>
</head>
<body>
<h1>Dark Pattern</h1>
<!-- "Turn On" button -->
<button id="onOffButton">Turn On</button>
<!-- Square container for checkboxes and the "Report" button -->
<div class="container">
<!-- Checkboxes for different patterns -->
<div class="checkbox-container">
<div><label><input type="checkbox" id="countdownCheckbox"> Countdown</label></div>
<div><label><input type="checkbox" id="scarcityCheckbox"> Scarcity</label></div>
<div><label><input type="checkbox" id="socialProofingCheckbox"> Social Proofing</label></div>
<div><label><input type="checkbox" id="forcedContinuityCheckbox"> Forced Continuity</label></div>
</div>
<!-- "Report" button -->
<button id="reportButton">Report</button>
</div>
<!-- Label for the link -->
<p> CLICK BELOW FOR information:</p>
<!-- CLICK BELOW for more information -->
<p><a href="Home.html" target="_blank"> DARK PATTERN </a>
<a href="Contact.html" target="_blank">Contact</a>
</p>
</body>
</html