-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (61 loc) · 2.6 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
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Cycle</title>
<meta name="description" content="A timer for sustainable productivity.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>
<body>
<div class="app">
<div class="clockContainer">
<svg class="clockface" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<circle class="clockRail" cx="50" cy="50" r="40"/>
<circle class="restClock" cx="50" cy="50" r="40"/>
<circle class="workClock" cx="50" cy="50" r="40"/>
</svg>
<div class="clockTextDisplay">
<div class="stateDisplay"></div>
<div class="timeDisplay"></div>
</div>
</div>
<div class="restartButtonContainer">
<div class="btnRestart btnRestartWork">restart work</div>
<div class="btnRestart btnRestartRest">restart rest</div>
</div>
<div class="durationChangeContainer">
<span>Work for </span>
<input type="number" class="durationInput inputWorkMins">
<span>mins.</span>
<span>Rest for </span>
<input type="number" class="durationInput inputRestMins">
<span>mins.</span>
</div>
<div class="shareContainer">
<span>Share this timer:</span>
<input type="text" class="shareUrl">
</div>
<div class="aboutToggleContainer">
<div class="toggleAbout">About</div>
</div>
<div class="infoContainer">
<div>This is a timer for sustainable productivity.</div>
<div>When working, focus on the tasks at hand.</div>
<div>When resting, relax, review, and plan your next session.</div>
<br>
<div>Inspired by <a href="http://makoconstruct.github.io/" target="_blank">faun</a>, who created the timer this was based on, and generously provided the audio cue.</div>
<br>
<div>The <a href="https://github.com/dotcli/cycle" target="_blank">source code</a> is under <a href="http://opensource.org/licenses/MIT" target="_blank">MIT license</a>.</div>
<br>
<div style="text-align: center; font-size: 0.9rem;">Made with <span style="color: #aeaeae">♥</span> by <a href="https://changbai.li" target="_blank">.CLI</a></div>
</div>
<audio class="workAudio" src="assets/buddhist_bell.mp3" preload></audio>
<audio class="restAudio" src="assets/reinsamba_gong.mp3" preload></audio>
</div>
<script src="r-data.js"></script>
<script src="main.js"></script>
</body>
</html>