-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
155 lines (137 loc) · 4.21 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html>
<head>
<title>PhotoZap</title>
<link rel="stylesheet" href="libs/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style>
body {
padding: 10px;
font-family: 'Roboto', sans-serif;
max-width: 500px;
min-width: 400px;
background-color: transparent;
}
.form-group {
margin-bottom: 1rem;
}
.form-check {
margin-bottom: 1rem;
}
.btn {
margin-top: 10px;
width: calc(33% - 10px);
}
.btn-group {
display: flex;
justify-content: space-between;
}
#info {
margin-bottom: 20px;
padding: 10px;
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 5px;
}
.card {
padding: 20px;
background-color: #ffffff;
border: 1px solid #e9ecef;
border-radius: 15px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.card-body {
padding: 10px;
}
.card-title {
display: flex;
align-items: center;
font-size: 1.25rem;
margin-bottom: 1rem;
}
.card-title img {
max-width: 32px;
/* Adjust size as needed */
margin-right: 10px;
}
.alert {
display: none;
margin-top: 10px;
}
.footer {
margin-top: 20px;
text-align: center;
}
.footer a {
text-decoration: none;
color: inherit;
}
</style>
</head>
<body>
<div class="card">
<div class="card-body">
<h4 class="card-title">
<img src="icons/icon48.png" style="background-color: #000000;" alt="PhotoZap Icon">
PhotoZap Settings
</h4>
<form id="settingsForm">
<div class="form-row">
<div class="form-group col-md-6">
<label for="delay">AutoCheck Delay (milliseconds)</label>
<input type="number" class="form-control" id="delay" placeholder="Enter delay">
</div>
</div>
<div class="form-group">
<label for="numImages">Number of Images to Select</label>
<input type="number" class="form-control" id="numImages" placeholder="Leave empty for all">
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="autoDelete">
<label class="form-check-label" for="autoDelete">Auto-Delete</label>
</div>
<div class="btn-group">
<button type="submit" class="btn btn-primary"><i class="fas fa-save"></i> Save</button>
<button id="startButton" class="btn btn-success"><i class="fas fa-play"></i> Start</button>
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#aboutModal">
<i class="fas fa-info-circle"></i> About
</button>
</div>
</form>
<div class="alert alert-success" role="alert" id="successAlert">
Settings saved successfully!
</div>
</div>
</div>
<div class="footer">
<a href="https://github.com/moorer2k/photozap" target="_blank">
<i class="fab fa-github"></i> GitHub
</a>
</div>
<!-- About Modal -->
<div class="modal fade" id="aboutModal" tabindex="-1" role="dialog" aria-labelledby="aboutModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="aboutModalLabel">About PhotoZap</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>This extension helps you automatically select and delete photos in Google Photos with ease.</p>
<p>Version: 1.0.0</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="libs/jquery.min.js"></script>
<script src="libs/bootstrap.min.js"></script>
<script src="popup.js"></script>
</body>
</html>