-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
62 lines (59 loc) · 2.57 KB
/
index.html
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
<!---
Created by Saverio Morelli - saveriomorelli.com
--->
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/style.css"/>
</head>
<body>
<div id="all-websites-dedication-section">
<h1>All spent time</h1>
<div class="section text-align-right sticky-section" id="actions">
<input type="button" value="Export data…" id="export-data-button" class="button"/>
<input type="button" value="Import data…" id="import-data-button" class="button"/>
<input type="button" value="Refresh data" id="refresh-data-button" class="button"/>
<input type="button" value="Delete all data" id="delete-all-data-button" class="button"/>
</div>
<span id="all-websites-sections"></span>
<div id="background-opacity"></div>
<div id="import-section">
<div class="section" id="import-sub-sections">
<div class="sub-section">
<div id="text-import">
Paste here the JSON (or text) file content you exported previously, then click the <span
class="button-code">Import now</span>
button. The page will be automatically reloaded if data are successfully imported.
</div>
</div>
<div class="sub-section">
<textarea id="json-import"></textarea>
</div>
<div class="sub-section text-align-right">
<input type="button" value="Cancel" id="cancel-import-data-button" class="button"/>
<input type="button" value="Import now" id="import-now-data-button" class="button"/>
</div>
</div>
</div>
<div id="export-section">
<div class="section" id="export-sub-sections">
<div class="sub-section">
<div id="text-export">
Create a new JSON (or text) file and paste the code below <strong>without modifying
it</strong> (you can click the <span class="button-code">Copy now</span> button to copy the code).
</div>
</div>
<div class="sub-section">
<textarea id="json-export" readonly></textarea>
</div>
<div class="sub-section text-align-right">
<input type="button" value="Cancel" id="cancel-export-data-button" class="button"/>
<input type="button" value="Copy now" id="copy-now-data-button" class="button"/>
</div>
</div>
</div>
</div>
<script src="../js/definitions.js"></script>
<script src="../js/all-websites.js"></script>
</body>
</html>