-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
134 lines (114 loc) · 2.6 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
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
<!DOCTYPE html>
<html>
<head>
<title>Screenshot Extension</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #000;
color: #fff;
}
.container {
text-align: center;
position: relative;
background-color: #000;
color: #fff;
padding: 30px;
width: 300px; /* Adjust the width as needed */
}
.close-button {
position: absolute;
top: 5px;
right: 5px;
font-size: 14px;
cursor: pointer;
color: #fff;
}
.btn {
background-color: #fff;
color: #000;
width: 55%;
border-radius: 10px;
border: none;
padding: 10px 20px;
margin-top: 10px;
cursor: pointer;
}
.toggle-container {
margin-top: 10px;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
border-radius: 34px;
transition: .4s;
}
.slider:before {
content: "";
height: 26px;
width: 26px;
left: -14px;
bottom: -4px;
background-color: white;
border-radius: 50%;
transition: .4s;
display: inline-block;
position: relative;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
input:checked+.slider {
background-color: #2196F3;
}
input:checked+.slider:before {
transform: translateX(26px);
}
.screenshot-container {
height: 30vh;
border: 1px solid #ccc;
margin-top: 10px;
}
.heading {
font-size: 24px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<img src="./images/dk.png" style="height: 60%; width: 60%;"/>
<div class="heading">
</div>
<!-- <button id="openSidebar">Open Sidebar</button> -->
<button id="capture" class="btn" >Analyse Dark Patterns</button>
<button id="heatmap-on" class="btn" >Toggle off Heatmap</button>
<button id="track" class="btn" >Track my basket</button>
<a href="http://127.0.0.1:8000/" target="_blank" rel="noopener noreferrer">
<button id="analysis" class="btn" >Dark Pattern Analysis
</button>
</a>
<button id="flag" class="btn" >Flag this Website
</button>
<script src="popup.js"></script>
</div>
<div id="screenshotContainer" class="screenshot-container"></div>
</div>
</body>
</html>