-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (41 loc) · 1.6 KB
/
index.html
File metadata and controls
44 lines (41 loc) · 1.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Coffee Timer</title>
<link rel="stylesheet" href="stylesheets/main.css" />
<script data-main="scripts/app" src="scripts/vendor/require.js"></script>
</head>
<body>
<div class="panel" data-bind="template: { name: 'template-timer', if: activeMode() == 'timer'}"></div>
<div class="panel" data-bind="template: { name: 'template-log', if: activeMode() == 'log'}"></div>
<div class="menu-bar" data-bind="template: { name: 'template-menu-bar', foreach: modes }"></div>
<script type="text/html" id="template-menu-bar">
<div class="menu-bar-button">
<a href="#" class="menu-bar-button-body" data-bind="text: title, click: $root.setActiveMode, css: { 'active': title == $root.activeMode() }"></a>
</div>
</script>
<script type="text/html" id="template-timer">
<div class="panel-header">
<a href="#" data-bind="click: cyclePresets, with: activePreset">
<h3 data-bind="text: $data.title"></h3>
</a>
</div>
<div>
<span class="timer-label">Bloom</span>
<span class="timer-number" data-bind="text: timer.bloom"></span>
<span data-bind="text: metrics.time.full"></span>
</div>
<div>
<span class="timer-label">Brew</span>
<span class="timer-number" data-bind="text: timer.brew"></span>
<span data-bind="text: metrics.time.full"></span>
</div>
<a href="#" class="round-button start-button" data-bind="click: startTimer">Start</a>
<a href="#" class="round-button" data-bind="click: resetTimer">Reset</a>
</script>
<script type="text/html" id="template-log">
<h1>It's a log!</h1>
</script>
</body>
</html>