Repository navigation
Expand file tree
/
Copy pathpopup.html
More file actions
176 lines (161 loc) · 7.44 KB
/
Copy pathpopup.html
File metadata and controls
176 lines (161 loc) · 7.44 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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=350, height=600">
<title>Tab Suspender Pro</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="popup-container">
<!-- Header -->
<header class="header">
<div class="logo">
<img src="icons/icon32.png" alt="Tab Suspender Pro" class="logo-icon">
<span class="logo-text">Tab Suspender Pro</span>
<span class="pro-badge-header" id="headerProBadge" style="display: none;">PRO</span>
</div>
<button class="settings-btn" id="settingsBtn" title="Settings">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
</button>
</header>
<!-- Hero Section - Single Dominant Metric -->
<div class="hero-section">
<div class="hero-value" id="memorySaved">0 MB</div>
<div class="hero-label">MEMORY FREED</div>
<div class="hero-emotion" id="heroEmotion">Suspend tabs to free memory</div>
<div class="health-bar">
<div class="health-bar-track">
<div class="health-bar-fill" id="healthBarFill"></div>
</div>
<div class="health-bar-label">
<span id="healthPercent">0%</span> lighter
</div>
</div>
<div class="hero-stats-subtle">
<span><strong id="suspendedCount">0</strong> suspended</span>
<span class="dot">·</span>
<span><strong id="totalTabCount">0</strong> total</span>
<span class="dot">·</span>
<span><strong id="windowCount">0</strong> windows</span>
</div>
</div>
<!-- Primary Action - Full Width -->
<button class="btn-primary-large" id="suspendAllBtn">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<rect x="6" y="4" width="4" height="16"></rect>
<rect x="14" y="4" width="4" height="16"></rect>
</svg>
<span>Suspend All Tabs</span>
</button>
<!-- Secondary Actions -->
<div class="secondary-actions">
<button class="btn-secondary" id="restoreAllBtn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="5 3 19 12 5 21 5 3"></polygon>
</svg>
Restore All
</button>
<button class="btn-secondary" id="whitelistBtn" title="Whitelist current site">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
</svg>
Whitelist
</button>
</div>
<!-- Focus Mode Section - Conversion Optimized -->
<div class="focus-section" id="focusModeSection">
<div class="focus-header">
<div class="focus-title">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"></circle>
<circle cx="12" cy="12" r="3"></circle>
</svg>
<span>Focus Mode</span>
</div>
<span class="badge-pro" id="focusProBadge">PRO</span>
</div>
<!-- Focus Tax - Dynamic -->
<div class="focus-tax" id="focusTax">
<span class="focus-tax-icon">⚡</span>
<span id="focusTaxText">0 tabs open = 0% bandwidth lost</span>
</div>
<!-- Focus Mode Button (Locked for non-Pro) -->
<button class="btn-focus" id="focusModeBtn">
<svg class="lock-icon" id="focusLockIcon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
</svg>
<span id="focusModeBtnText">Unlock Focus Mode</span>
</button>
<!-- Social Proof -->
<div class="focus-proof" id="focusProof">
<div class="proof-item">✓ One-time purchase</div>
<div class="proof-item">✓ 3,300+ focused workers</div>
<div class="proof-item">✓ Lifetime updates</div>
</div>
<!-- Focus Mode Active State (hidden by default) -->
<div class="focus-active" id="focusModeActive" style="display: none;">
<div class="focus-active-header">
<span class="focus-active-icon">🎯</span>
<span>Focus Mode Active</span>
</div>
<div class="focus-active-stats">
<span id="focusSuspendedCount">0</span> tabs suspended
</div>
<div class="focus-active-tab" id="focusCurrentTab">Focusing on: Current Tab</div>
<button class="btn-exit-focus" id="focusExitBtn">Exit Focus Mode</button>
</div>
</div>
<!-- Collapsed Tab List -->
<div class="tabs-section">
<button class="tabs-toggle" id="tabsToggle">
<span class="tabs-summary">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<line x1="3" y1="9" x2="21" y2="9"></line>
</svg>
<span id="tabsSummaryText">0 tabs across 0 windows</span>
</span>
<svg class="chevron" id="tabsChevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="6 9 12 15 18 9"></polyline>
</svg>
</button>
<div class="tabs-expanded" id="tabsExpanded" style="display: none;">
<div class="tabs-filter">
<select id="filterSelect">
<option value="all">All tabs</option>
<option value="active">Active</option>
<option value="suspended">Suspended</option>
</select>
</div>
<div class="tabs-list" id="tabsList">
<div class="loading">Loading...</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<span class="footer-link">Tab Suspender Community Edition</span>
<span class="version">v1.0.18</span>
</footer>
</div>
<!-- Toast for Exclusion Feedback -->
<div id="exclusion-toast" class="toast" role="alert" aria-live="polite">
<div class="toast-content">
<span class="toast-message" id="exclusion-message"></span>
<button class="toast-close" id="exclusion-toast-close">×</button>
</div>
<div class="toast-details" id="exclusion-details" style="display: none;">
<div id="exclusion-reasons-list"></div>
</div>
<button class="toast-toggle" id="exclusion-details-toggle" style="display: none;">
Show details
</button>
</div>
<script src="popup.js"></script>
</body>
</html>