-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (50 loc) · 1.92 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
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pomodoro Clock</title>
<link rel="stylesheet" href="css/styles.css" type="text/css">
</head>
<body>
<canvas id='canvas'></canvas>
<div class="main-wrapper">
<div class="information">
<div id="adjusters">
<div id="break">
<div class="type">BREAK LENGTH</div>
<div class="wrapper">
<div id="minusBreak">-</div>
<div id="breakValue">5</div>
<div id="plusBreak">+</div>
</div>
</div>
<div id="session">
<div class="type">SESSION LENGTH</div>
<div class="wrapper">
<div id="minusSession">-</div>
<div id="sessionValue">25</div>
<div id="plusSession">+</div>
</div>
</div>
</div>
<div id="time-display">
<div class="type" id="modeValue">SESSION</div>
<div id="time">25:00</div>
</div>
</div>
<div id="animation">
<svg width='300' height='180' id='normalVolcano'>
<!-- orange volcano -->
<path id='path' fill='#222' stroke-width='3' stroke='#FF6600' d='M 30 170 L 70 90 L 110 90 L 125 120 L 110 90 L 90 90 L 130 10 L 170 10 L 190 50 L 180 70 L 165 70 L 160 60 L 140 60 L 135 70 L 120 70 L 110 50 L 130 10 L 170 10 L 190 50 L 220 110 L 200 110 L 185 140 L 200 110 L 220 110 L 240 110 L 270 170 Z'></path>
<!-- white overlay -->
<path fill='#222' stroke-width='3' stroke='#FFFFFF' mask='url(#mask)' d='M 30 170 L 70 90 L 110 90 L 125 120 L 110 90 L 90 90 L 130 10 L 170 10 L 190 50 L 180 70 L 165 70 L 160 60 L 140 60 L 135 70 L 120 70 L 110 50 L 130 10 L 170 10 L 190 50 L 220 110 L 200 110 L 185 140 L 200 110 L 220 110 L 240 110 L 270 170 Z'></path>
<!-- mask to increase/decrease height of white overlay -->
<mask id='mask'>
<rect id='overlay' x='0' y='0' width='300' height='180' fill='white' />
</mask>
</svg>
</div>
</div>
<script src="js/canvas.js"></script>
<script src="js/script.js"></script>
</body>
</html>