-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
70 lines (62 loc) · 2.55 KB
/
options.html
File metadata and controls
70 lines (62 loc) · 2.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FFSleep Settings</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="options.css">
</head>
<body class="options-body">
<div class="settings-container">
<header class="settings-header">
<div class="logo">
<img src="icons/icon.svg" alt="FFSleep Logo" class="logo-icon">
<h1>FFSleep Settings</h1>
</div>
</header>
<section class="settings-section">
<h2>Auto-Sleep Automation</h2>
<div class="setting-item">
<div class="setting-info">
<label for="auto-sleep-toggle">Enable Auto-Sleep</label>
<p>Automatically put inactive tabs to sleep after a certain period.</p>
</div>
<div class="switch">
<input type="checkbox" id="auto-sleep-toggle">
<span class="slider"></span>
</div>
</div>
<div class="setting-item" id="timer-setting">
<div class="setting-info">
<label for="sleep-minutes">Inactivity Timeout (minutes)</label>
<p>Tabs will sleep after being inactive for this many minutes.</p>
</div>
<input type="number" id="sleep-minutes" min="1" max="1440" value="30">
</div>
</section>
<section class="settings-section">
<h2>Whitelist (Never Sleep)</h2>
<div class="setting-info">
<p>Enter domains (one per line) that should never be put to sleep automatically.</p>
</div>
<textarea id="whitelist" placeholder="example.com youtube.com" rows="5"></textarea>
</section>
<section class="settings-section">
<h2>Memory Statistics</h2>
<div class="stats-grid">
<div class="stat-card">
<span class="stat-value" id="total-saved">0 MB</span>
<span class="stat-label">Total Estimated RAM Saved</span>
</div>
</div>
<button id="reset-stats" class="btn-secondary">Reset Statistics</button>
</section>
<footer class="settings-footer">
<p>Settings are saved automatically.</p>
<div id="status-msg" class="status-msg"></div>
</footer>
</div>
<script src="options.js"></script>
</body>
</html>