-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
97 lines (97 loc) · 2.08 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
<!DOCTYPE html>
<html>
<head>
<style>
body {
width: 250px;
padding: 15px;
font-family: Arial, sans-serif;
}
h2 {
margin: 0 0 15px 0;
color: #2c3e50;
font-size: 16px;
}
.switch {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
.folder-section {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #eee;
}
.folder-section h3 {
margin: 0 0 10px 0;
font-size: 14px;
color: #2c3e50;
}
.folder-input {
display: flex;
gap: 5px;
margin-bottom: 10px;
}
input[type="text"] {
flex-grow: 1;
padding: 5px;
border: 1px solid #ccc;
border-radius: 4px;
}
.checkbox-option {
margin-top: 10px;
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #444;
}
button {
padding: 5px 10px;
background-color: #2196F3;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #1976D2;
}
.status {
margin-top: 10px;
color: #666;
font-size: 12px;
}
.folder-path {
font-size: 12px;
color: #666;
word-break: break-all;
margin-top: 5px;
}
</style>
</head>
<body>
<h2>OneClick Image Downloader</h2>
<div class="switch">
<label>
<input type="checkbox" id="toggleSwitch">
Enable One-Click Download
</label>
</div>
<div class="folder-section">
<h3>Download Folder</h3>
<div class="folder-input">
<input type="text" id="folderPath" placeholder="e.g., Images/Website">
<button id="saveFolder">Save</button>
</div>
<div class="checkbox-option">
<input type="checkbox" id="orderImages">
<label for="orderImages">Order saved images (image_001.jpg)</label>
</div>
<div class="folder-path">Current folder: <span id="currentFolder">Downloads</span></div>
</div>
<div class="status" id="status"></div>
<script src="popup.js"></script>
</body>
</html>