-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
71 lines (68 loc) · 3.13 KB
/
popup.html
File metadata and controls
71 lines (68 loc) · 3.13 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
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pixel Pulse</title>
<link rel="stylesheet" href="popup.css" />
<script src="popup.js" defer></script>
</head>
<body>
<div class="app">
<!-- Header -->
<header class="header">
<div class="brand">
<div class="logo-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 12h-4l-3 9L9 3l-3 9H2"/>
</svg>
</div>
<span class="brand-name">Pixel Pulse</span>
</div>
<button id="themeToggle" class="icon-button" aria-label="Toggle Theme">
<svg class="sun-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><path d="M12 1v2"/><path d="M12 21v2"/><path d="M4.22 4.22l1.42 1.42"/><path d="M18.36 18.36l1.42 1.42"/><path d="M1 12h2"/><path d="M21 12h2"/><path d="M4.22 19.78l1.42-1.42"/><path d="M18.36 5.64l1.42-1.42"/></svg>
<svg class="moon-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
</button>
</header>
<!-- Main Control -->
<div class="control-module main-toggle-module">
<div class="module-info">
<span class="module-label">Global Status</span>
<span id="statusText" class="module-status">Active</span>
</div>
<label class="switch">
<input type="checkbox" id="globalToggle" checked />
<span class="slider"></span>
</label>
</div>
<!-- Rules List -->
<div class="section-title">Active Rules</div>
<div id="rulesContainer" class="rules-list">
<!-- Rules injected here -->
</div>
<!-- Add Rule -->
<div class="section-title">New Rule</div>
<div class="control-module form-module">
<form id="addRuleForm">
<div class="input-group">
<input type="text" id="addRuleName" placeholder="Rule Name" required />
<input type="text" id="addRulePattern" placeholder="URL Pattern (e.g. *://example.com/*)" required />
</div>
<div class="input-row">
<div class="input-wrapper">
<input type="number" id="addRuleInterval" min="1" value="5" placeholder="Min" />
<span class="unit">min</span>
</div>
<select id="addRuleActivity">
<option value="mousemove">Mouse Pulse</option>
<option value="scroll">Scroll Nudge</option>
<option value="ping">Network Ping</option>
<option value="refresh">Page Refresh</option>
</select>
</div>
<button type="submit" class="action-button">Add Rule</button>
</form>
</div>
</div>
</body>
</html>