-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
92 lines (82 loc) · 2.22 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>SmartRenamer</title>
<style>
body {
width: 300px;
height: 280px; /* Adjusted height for file type filters */
font-family: Arial, sans-serif;
font-size: 14px;
padding: 10px;
}
h1 {
font-size: 16px;
margin-bottom: 10px;
}
input[type="checkbox"] {
margin-bottom: 10px;
}
input[type="text"] {
width: 100%;
margin-bottom: 10px;
}
button {
padding: 5px 10px;
background-color: #4caf50;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
<script src="popup.js"></script>
</head>
<body>
<h1>SmartRenamer Settings</h1>
<!-- Checkbox for including website name -->
<input type="checkbox" id="websiteNameCheckbox" checked />
<label for="websiteNameCheckbox">Include website name in filename</label
><br />
<!-- Checkbox for including date -->
<input type="checkbox" id="dateCheckbox" checked />
<label for="dateCheckbox">Include date in filename</label><br />
<!-- Separator input -->
<input
type="text"
id="separatorInput"
placeholder="Separator character (e.g., -)"
/><br />
<!-- Add a section for file type filters -->
<h2>File Type Filters</h2>
<div id="fileTypeFilters">
<label for="fileTypeImage">Image:</label>
<input
type="text"
id="fileTypeImage"
placeholder="Image naming scheme"
/><br />
<label for="fileTypeDocument">Document:</label>
<input
type="text"
id="fileTypeDocument"
placeholder="Document naming scheme"
/><br />
<label for="fileTypeVideo">Video:</label>
<input
type="text"
id="fileTypeVideo"
placeholder="Video naming scheme"
/><br />
</div>
<!-- Save button -->
<button id="saveButton">Save</button>
<div id="status"></div>
<!-- Status element to display messages -->
<!-- Add a div for displaying the preview -->
<div id="filenamePreview">Preview will appear here</div>
</body>
</html>