-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpopup.html
More file actions
156 lines (140 loc) · 3.99 KB
/
popup.html
File metadata and controls
156 lines (140 loc) · 3.99 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
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
<!DOCTYPE html>
<html>
<head>
<style>
body {
width: 250px;
padding: 16px;
font-family: "Roboto";
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
.container {
display: flex;
flex-direction: column;
gap: 16px;
width: 100%;
}
.title {
font-size: 16px;
font-weight: bold;
text-align: center;
}
.toggle-container {
display: flex;
align-items: center;
justify-content: space-between;
}
.switch {
position: relative;
display: inline-block;
width: 48px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #3B82F6;
}
input:checked + .slider:before {
transform: translateX(24px);
}
.recrawl-btn {
background: #3B82F6;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: background-color 0.2s;
}
.recrawl-btn:hover {
background: #2563EB;
}
.recrawl-btn svg {
width: 16px;
height: 16px;
}
.status {
font-size: 14px;
color: #666;
text-align: center;
}
.footer {
font-size: 12px;
color: #888;
text-align: center;
}
.footer a {
color: #3B82F6;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="title">Pic-Grabber</div>
<div class="container">
<p class="text">Download any image from any webpage, including protected and dynamically loaded images.</p>
<div class="toggle-container">
<span>Enable Extension</span>
<label class="switch">
<input type="checkbox" id="toggleExtension" checked>
<span class="slider"></span>
</label>
</div>
<button id="recrawlBtn" class="recrawl-btn">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 12a9 9 0 11-9-9c2.52 0 4.85.83 6.72 2.24"></path>
<path d="M21 3v9h-9"></path>
</svg>
Recrawl Page
</button>
<button id="openSidebarBtn" class="recrawl-btn">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<line x1="9" y1="3" x2="9" y2="21"></line>
</svg>
Open Sidebar
</button>
<div id="status" class="status"></div>
</div>
<div class="footer">
Created by <a href="https://github.com/venopyx" target="_blank">@venopyx</a>
</div>
<script src="popup.js"></script>
</body>
</html>