-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.html
More file actions
66 lines (66 loc) · 2.93 KB
/
settings.html
File metadata and controls
66 lines (66 loc) · 2.93 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tab Saver Settings</title>
<style>
body { font-family: sans-serif; background: #f0f4f8; color: #333; padding: 20px; transition: background 0.3s, color 0.3s; }
h1 { font-size: 24px; color: #1976d2; margin-bottom: 20px; }
.card { background: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; }
.card h2 { margin-top: 0; color: #1976d2; }
label { display: block; margin-bottom: 8px; }
input[type="text"], input[type="number"], select { margin-left: 10px; }
button { padding: 8px 12px; background: #0288d1; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
button:disabled { background: #90a4ae; cursor: not-allowed; }
/* Toast notification */
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #323232; color: #fff; padding: 10px 20px; border-radius: 4px; opacity: 0; transition: opacity 0.3s; }
#grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
</style>
</head>
<body id="body">
<h1>Open Tab Saver Setting</h1>
<button id="back">← Back</button>
<div id="grid-container">
<div class="card">
<h2>Auto-capture Scheduling</h2>
<label><input type="checkbox" id="autoCaptureEnabled"> Enable auto-capture</label>
<label>Interval (minutes): <input type="number" id="autoCaptureInterval" min="1" max="1440"></label>
</div>
<div class="card">
<h2>Filename & Date Format</h2>
<label>Date format:
<select id="dateFormat">
<option value="DDMMYYYY_HHmm">DDMMYYYY_HHmm</option>
<option value="YYYYMMDD_HHmm">YYYYMMDD_HHmm</option>
<option value="Custom">Custom</option>
</select>
</label>
<label>Custom format: <input type="text" id="customDateFormat" disabled placeholder="e.g. DD-MM-YYYY HH:mm:ss"></label>
</div>
<div class="card">
<h2>Columns & Grouping Options</h2>
<label><input type="checkbox" id="showSN"> Show S.No column</label>
<label><input type="checkbox" id="showWebsite" checked> Show Website column</label>
<label>Group by:
<select id="groupBy">
<option value="month">Year-Month</option>
<option value="day">Year-Month-Day</option>
<option value="none">No grouping</option>
</select>
</label>
</div>
<div class="card">
<h2>Data Backup & Restore</h2>
<button id="exportData">Export Snapshots (JSON)</button>
<input type="file" id="importFile" accept="application/json">
<button id="importData">Import Snapshots</button>
</div>
<div class="card">
<h2>Clear All Snapshots</h2>
<button id="clearAll">Clear All</button>
</div>
</div>
<div id="toast">Settings saved</div>
<script src="settings.js"></script>
</body>
</html>