-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
171 lines (163 loc) · 6.33 KB
/
popup.html
File metadata and controls
171 lines (163 loc) · 6.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>X Reply Counter</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="container">
<!-- Header -->
<header class="header">
<div class="header-icon">
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/>
</svg>
</div>
<h1 class="header-title">Reply Counter</h1>
</header>
<!-- Today's Progress -->
<section class="section">
<h2 class="section-title">Today's Posts</h2>
<div class="progress-card">
<div class="progress-stats">
<span class="progress-count" id="todayCount">0</span>
<span class="progress-divider">/</span>
<span class="progress-target" id="todayTarget">10</span>
</div>
<div class="progress-bar-container">
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
<span class="progress-percent" id="progressPercent">0%</span>
</div>
<p class="progress-message" id="progressMessage">Keep going!</p>
</div>
</section>
<!-- Settings -->
<section class="section">
<h2 class="section-title">Settings</h2>
<div class="setting-row">
<label class="setting-label" for="dailyTarget">Daily Target</label>
<div class="setting-input-group">
<input type="number" id="dailyTarget" class="setting-input" min="1" max="1000" value="10">
<button id="saveTarget" class="btn btn-small">Save</button>
</div>
</div>
<div class="setting-row">
<label class="setting-label">Show Counter</label>
<label class="toggle">
<input type="checkbox" id="counterEnabled" checked>
<span class="toggle-slider"></span>
</label>
</div>
</section>
<!-- Reminders -->
<section class="section">
<h2 class="section-title">Reminders</h2>
<div class="setting-row">
<label class="setting-label">Enable Reminders</label>
<label class="toggle">
<input type="checkbox" id="reminderEnabled">
<span class="toggle-slider"></span>
</label>
</div>
<div class="setting-row" id="reminderIntervalRow">
<label class="setting-label">Remind every</label>
<div class="setting-input-group">
<select id="reminderInterval" class="setting-select">
<option value="30">30 min</option>
<option value="60" selected>1 hour</option>
<option value="120">2 hours</option>
<option value="180">3 hours</option>
<option value="240">4 hours</option>
</select>
</div>
</div>
<p class="setting-hint">Get notified on any website when it's time to post. Notifications stop once you hit your daily goal.</p>
</section>
<!-- Contribution Graph -->
<section class="section">
<h2 class="section-title">Activity Graph</h2>
<div class="month-selector">
<button id="prevMonth" class="month-nav"><</button>
<span id="currentMonth" class="month-label">January 2026</span>
<button id="nextMonth" class="month-nav">></button>
</div>
<div class="contribution-graph" id="contributionGraph">
<!-- Graph will be generated by JS -->
</div>
<div class="graph-legend">
<span class="legend-label">Less</span>
<div class="legend-box legend-none"></div>
<div class="legend-box legend-low"></div>
<div class="legend-box legend-mid"></div>
<div class="legend-box legend-high"></div>
<span class="legend-label">More</span>
</div>
</section>
<!-- Monthly Stats -->
<section class="section">
<h2 class="section-title">Monthly Summary</h2>
<div class="stats-grid" id="monthlyStats">
<div class="stat-card">
<span class="stat-value" id="monthTotal">0</span>
<span class="stat-label">Total Posts</span>
</div>
<div class="stat-card">
<span class="stat-value" id="monthAvg">0</span>
<span class="stat-label">Daily Avg</span>
</div>
<div class="stat-card">
<span class="stat-value" id="monthBest">0</span>
<span class="stat-label">Best Day</span>
</div>
<div class="stat-card">
<span class="stat-value" id="monthGoals">0</span>
<span class="stat-label">Goals Hit</span>
</div>
</div>
</section>
<!-- Export -->
<section class="section">
<h2 class="section-title">Export Data</h2>
<div class="export-buttons">
<button id="exportCSV" class="btn btn-primary">
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor">
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</svg>
Download CSV
</button>
<button id="clearData" class="btn btn-danger">
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor">
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/>
</svg>
Clear All Data
</button>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="footer-branding">
<a href="https://x.com/ivaavimusic" target="_blank" rel="noopener noreferrer" class="footer-link creator-link">
<span>Built by</span>
<strong>@ivaavimusic</strong>
</a>
</div>
<div class="footer-company">
<span>A Product of</span>
<a href="https://ehlabs.xyz" target="_blank" rel="noopener noreferrer" class="footer-link company-link">
<svg class="eh-logo" viewBox="0 0 24 24" width="14" height="14" fill="currentColor">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" fill="none"/>
<circle cx="12" cy="12" r="4" fill="currentColor"/>
</svg>
<strong>EventHorizon Labs</strong>
</a>
</div>
<p class="footer-version">v1.0.0</p>
</footer>
</div>
<script src="popup.js"></script>
</body>
</html>