forked from Stigmatoz/web-activity-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
240 lines (237 loc) · 13.3 KB
/
options.html
File metadata and controls
240 lines (237 loc) · 13.3 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Web Activity Time Tracker</title>
<link href="style/picker/standalone.min.css" rel="stylesheet" />
<link href="style/picker/clockpicker.min.css" rel="stylesheet" />
<link href="style/settings.css" rel="stylesheet" />
<script src="scripts/common.js"></script>
<script src="scripts/storage.js"></script>
<script src="scripts/settings.js"></script>
<script src="scripts/restriction.js"></script>
<script src="scripts/picker/jquery-3.3.1.min.js"></script>
<script src="scripts/picker/clockpicker.min.js"></script>
</head>
<body>
<div class="content">
<div class="header">
<p class="title">Web Activity Time Tracker</p>
</div>
<div id='nav' class="nav">
<a id='settingsBtn' class="active">Settings</a>
<a id='restrictionsBtn'>Limits</a>
<a id='notifyBtn'>Notifications</a>
<a id='aboutBtn'>About</a>
</div>
<div id='block'>
<div id='settingsBlock'>
<label>
<input type="checkbox" class="filled-in" id="viewTimeInBadge" checked="checked" />
<span>Display time tracker in icon</span>
</label>
<div class="margin-top-10">
<label>Stop tracking if no activity detected for: </label>
<div class="tooltip"><img src="/icons/information.svg" height="18" />
<span class="tooltiptext">An activity is an action with a mouse or keyboard</span>
</div>
<div class="margin-top-10">
<select id='intervalInactivity' class="option">
<option value="30">30 seconds</option>
<option value="45">45 seconds</option>
<option value="60">1 min</option>
<option value="120">2 min</option>
<option value="300">5 mins</option>
<option value="600">10 mins</option>
<option value="1200">20 mins</option>
<option value="1800">30 mins</option>
</select>
</div>
<div class="margin-top-10"><label>Default range for days:</label></div>
<div class="margin-top-10">
<select id='rangeToDays' class="option">
<option value="days2">2 days</option>
<option value="days3">3 days</option>
<option value="days4">4 days</option>
<option value="days5">5 days</option>
<option value="days6">6 days</option>
<option value="days7">7 days</option>
<option value="month1">1 month</option>
<option value="month2">2 month</option>
<option value="month3">3 month</option>
</select>
</div>
<div class="margin-top-10">
<label>Ignored list of domain: </label>
<div class="tooltip"><img src="/icons/information.svg" height="18" />
<span class="tooltiptext">Activity for these domains not will tracked</span>
</div>
<div class="margin-top-10">
<ul id='blackList' class="listbox" size="7"></ul>
</div>
<div class="margin-top-10">
<input type="text" placeholder="Enter site name..." id='addBlackSiteLbl' />
<input type="button" value="+" id='addBlackSiteBtn' />
</div>
<div class="notify warning" id='notifyForBlackList' hidden>
The site is already in the list
</div>
</div>
<div class="margin-top-10">
<input type="button" value="Export to CSV" id='exportToCsv'>
</div>
<div class="margin-top-10">
<input type="button" value="Backup" id='backup'>
<input type="button" value="Restore" id='restore'>
<input id="file-input-backup" class="hidden" type="file" name="backupFile" />
</div>
<div class="notify" id='notify-backup' hidden>
Backup completed successfully
</div>
<div class="notify" id='notify-restore' hidden>
Restore completed successfully
</div>
<div class="notify warning" id='notify-restore-failed' hidden>
Backup file is not valid
</div>
<!-- YouTube -->
<div class="margin-top-10">
<label class="block">Web Activity Time Tracker tracks your activity, if you active in browser
(mouse
or keyboard).
In order for the extension to also track when you watch <span class="bold">a video on
YouTube / Netflix</span>, you need grant
permission to
access the sites.
It is necessary that extension will get access to DOM (Document Object Model).</label>
</div>
<div class="margin-top-10">
<label class="bold site-name">YouTube</label>
<input class="margin-top-10 permission-btn" type="button" value="Grant permission"
id='grantPermissionForYT'>
<div id='permissionSuccessedBlockForYT' hidden>
<img src="/icons/success.png" height="18" />
<label>Permissions have been granted</label>
</div>
</div>
<!-- Netflix -->
<div class="margin-top-10">
<label class="bold site-name">Netflix</label>
<input class="margin-top-10 permission-btn" type="button" value="Grant permission"
id='grantPermissionForNetflix'>
<div id='permissionSuccessedBlockForNetflix' hidden>
<img src="/icons/success.png" height="18" />
<label>Permissions have been granted</label>
</div>
</div>
<div class="margin-top-10">
<label>Data in memory use </label><label id='memoryUse'></label>
</div>
<div class="margin-top-10"><input type="button" value="Clear all data" id='clearAllData'></div>
<div class="notify" id='notify' hidden>
Data succeed deleted
</div>
</div>
</div>
<div id='restrictionsBlock' hidden>
<label>Access daily restrictions for websites: </label>
<div class="tooltip"><img src="/icons/information.svg" height="18" />
<span class="tooltiptext">Set the time you can spend on the site during the day. After this time,
access
to the site will be blocked.</span>
</div>
<div class="margin-top-10">
<input type="text" class="label-with-list" placeholder="Enter site name..."
id='addRestrictionSiteLbl' />
<div class="inline-block clockpicker" data-placement="left" data-align="top" data-autoclose="true">
<input type="text" class="clock" placeholder="Time..." readonly id="addRestrictionTimeLbl">
</div>
<input type="button" value="+" class="btn-with-list" id='addRestrictionSiteBtn' />
</div>
<div class="margin-top-10">
<ul id='restrictionsList' class="listbox list" size="10"></ul>
</div>
<div class="notify warning notify-width-300" id='notifyForRestrictionList' hidden>
The site is already in the list
</div>
</div>
<div id='notifyBlock' hidden>
<label>List of sites with notifications: </label>
<div class="tooltip"><img src="/icons/information.svg" height="18" />
<span class="tooltiptext">Show notifications every time you spend a specified time interval on the
site</span>
</div>
<div class="margin-top-10">
<input type="text" class="label-with-list" placeholder="Enter site name..." id='addNotifySiteLbl' />
<div class="inline-block clockpicker" data-placement="left" data-align="top" data-autoclose="true">
<input type="text" class="clock" placeholder="Time..." readonly id="addNotifyTimeLbl">
</div>
<input type="button" class="btn-with-list" value="+" id='addNotifySiteBtn' />
</div>
<div class="margin-top-10">
<ul id='notifyList' class="listbox list" size="10"></ul>
</div>
<div class="margin-top-10">
<label>You can set message for notification: </label>
<div class="setting-notify-block">
<img src="icons/128x128.png" class="setting-notify-img">
<div class="setting-notify-message-block">
<span class="setting-notify-title">Web Activity Time Tracker</span>
<input type="text" class="setting-notify-message" id="notifyMessage" />
</div>
</div>
</div>
<div class="margin-top-10">
<label class="block">In order to Web Activity Time Tracker showed notifications every time you spend
a specified time interval on the site, you need grant permission to access for notifications.
</label>
<input class="margin-top-10 permission-btn" type="button" value="Grant permission"
id='grantPermissionForNotifications'>
<div id='permissionSuccessedBlockForNotifications' hidden>
<img src="/icons/success.png" height="18" />
<label>Permissions have been granted</label>
</div>
</div>
<div class="notify warning notify-width-300" id='notifyForNotifyList' hidden>
The site is already in the notify list
</div>
</div>
<div id='aboutBlock' hidden>
<div><label id='version'></label></div>
<div class="margin-top-20"><label>GitHub: <a
href="https://github.com/Stigmatoz/web-activity-time-tracker"
target="_blank">github.com/Stigmatoz/web-activity-time-tracker</a></label>
</div>
<div class="margin-top-20"><label>If you have feedback or would like to report an issue, you can do so
on
the <a href="https://github.com/Stigmatoz/web-activity-time-tracker/issues"
target="_blank">GitHub
issues page</a></label>
</div>
<div class="margin-top-20">
<label>If experiencing problems, having questions or suggestions, please fill out <a
href="https://chrome.google.com/webstore/detail/web-activity-time-tracker/hhfnghjdeddcfegfekjeihfmbjenlomm/support"
target="_blank">support
form</a>.</label>
</div>
<div class="margin-top-20">
<label>Do you enjoy using Web Activity Time Tracker? <a
href="https://chrome.google.com/webstore/detail/web-activity-time-tracker/hhfnghjdeddcfegfekjeihfmbjenlomm/reviews"
target="_blank">Let me know!</a></label>
</div>
<hr class="margin-top-20">
<div class="margin-top-20">
<label>You can support Web Activity Time Tracker by donating:</label>
<div class="margin-top-20">
<div class="inline-block">
<a class="bmc-button" target="_blank" href="https://www.buymeacoffee.com/webtracker"><img
src="/icons/bmc-new-btn-logo.svg" alt="Buy me a coffee"><span>Buy me a
coffee</span></a>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>