-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintervention.html
More file actions
90 lines (81 loc) · 3.59 KB
/
intervention.html
File metadata and controls
90 lines (81 loc) · 3.59 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
<!DOCTYPE html>
<html>
<head>
<title>XCoach Intervention Page</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div id="fourSquares">
<div id="decisionDiv">
<h1>Your Priorities</h1>
<ul id="priorityList">
<!-- Priority items will be added here dynamically -->
</ul>
<form id="priorityForm">
<input type="text" id="newPriority" placeholder="Add a new priority" />
<button type="submit">Add Priority</button>
</form>
<h1>Today so far</h1>
<div id="statsToday">
<div id="XMinutes">You've spent <span id="minutes"></span> <b>minutes</b> on X</div>
</div>
<h1>Proceed to X</h1>
<div id="decision">
<input type="number" id="timeLimit" placeholder="Session Minutes" min="2" autofocus>
<button id="proceedToX">Start Session</button>
</div>
</div>
<div id="logoDiv">
<h2>The XCoach Chrome Extension</h2>
<p class="logo-byline">by Ben Ogorek</p>
<img src="images/icon1024.png" alt="XCoach Logo">
<p class="logo-tagline">Don't let X ruin your life.</p>
<ul class="logo-features">
<li>Timed sessions to resist the impulse to scroll</li>
<li>Priority reminders before every visit</li>
<li>Post-as-handle display to prevent identity mishaps</li>
</ul>
</div>
<div id="data-management-div">
<div class="management-title">Data Management Zone</div>
<p class="data-subtitle">Reset about every 2 months to prevent storage errors. Download your data (CSV) first if you want to keep it.</p>
<div class="data-controls">
<div class="delete-controls">
<div class="period-selection">
<div>
<input type="radio" id="daysFromPresent" name="timePeriod" value="fromPresent" checked>
<label for="daysFromPresent">Most recent</label>
</div>
<div>
<input type="radio" id="daysFromBeginning" name="timePeriod" value="fromBeginning">
<label for="daysFromBeginning">Oldest</label>
</div>
<div>
<input type="radio" id="totalReset" name="timePeriod" value="totalReset">
<label for="totalReset">Total reset</label>
</div>
</div>
<div class="days-input">
<input type="number" id="daysNumber" min="1" value="1">
<label for="daysNumber">days</label>
</div>
</div>
<div class="data-actions">
<button id="deleteData">Delete Data</button>
<button id="downloadData">Download Data</button>
</div>
</div>
</div>
<div id="visitMinutesGraphicsDiv">
<canvas id="visitMinutesChart"></canvas>
<p>Daily time on X, for days for days with at least one session</p>
</div>
</div>
<div id="pageFooter">
<a href="https://medium.com/@baogorek/xcoach-a-chrome-extension-for-a-desktop-x-addiction-c229161c455a" target="_blank">About</a>
<a href="https://x.com/BenOgorek" target="_blank">Contact / Feedback (@BenOgorek)</a>
</div>
<script src="lib/chart.umd.js"></script>
<script src="intervention.js"></script>
</body>
</html>