-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.html
112 lines (95 loc) · 4.97 KB
/
app.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pomodoro Lite</title>
<link rel=stylesheet type="text/css" href="styles.css">
<!-- These are for including material design lite -->
<link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.5/material.grey-orange.min.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
<!-- Necessary for rendering mdl correctly on mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!-- mdl (material design lite) work by creating regular HTML elements and then applying classes to them.
Read more: http://www.getmdl.io/
-->
<!-- highest level wrapper besides body for the whole content -->
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<!--This is the header (top bar)-->
<header class="mdl-layout__header">
<div class="mdl-layout__header-row mdl-shadow--2dp "
style="padding: 0"> <!-- Hacky... -->
<!-- Title
Spacers are used to center the Title. Both spacers take up as much space as they can on either side.
-->
<div class="mdl-layout-spacer"></div>
<span class="mdl-layout-title">Pomodoro lite</span>
<div class="mdl-layout-spacer"></div>
</div>
</header>
<!-- More wrapper for content. -->
<main class="mdl-layout__content">
<div class="page-content">
<!-- Your content goes here -->
<!-- A grid system is used, read more: http://www.getmdl.io/components/index.html#layout-section/grid -->
<div id="displayContainer"
class="mdl-grid mdl-shadow--2dp">
<!-- Spacers on both sides to center again -->
<div class="mdl-layout-spacer"></div>
<div class="mdl-cell mdl-cell--4-col">
<h3 id="display">
00:00:00
</h3>
</div>
<div class="mdl-layout-spacer"></div>
</div>
<div class="mdl-grid"
style="height: 10px">
<div class="mdl-layout-spacer"></div>
<div class="mdl-cell mdl-cell--1-col">
<!--The button is outside main only because it is a fixed absolutely positioned element. (always at the bottom of page)-->
<button id="actionButton"
onclick="onActionButtonClicked()"
class="fixed-bottom-fab mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect
mdl-button--colored mdl-shadow--8dp">
<i id="actionButtonIcon"
class="material-icons">play_arrow</i>
</button>
</div>
</div>
<div class="mdl-grid">
<div class="mdl-layout-spacer"></div>
<div class="mdl-cell mdl-cell--4-col">
<p class="range-field">
<label id="workTimeLbl"
for="workTime">Work Time</label>
<input id="workTime" class="mdl-slider mdl-js-slider" type="range"
min="0" max="100" value="25" tabindex="0" onchange="setSetting('workT', this.value)"/>
</p>
</div>
<div class="mdl-layout-spacer"></div>
</div>
<div class="mdl-grid">
<div class="mdl-layout-spacer"></div>
<div class="mdl-cell mdl-cell--4-col">
<!-- Slider with Starting Value -->
<p class="range-field">
<label id="restTimeLbl"
for="restTime">Rest Time</label>
<input id="restTime" class="mdl-slider mdl-js-slider" type="range"
min="0" max="100" value="5" tabindex="0" onchange="setSetting('restT', this.value)"/>
</p>
</div>
<div class="mdl-layout-spacer"></div>
</div>
</div>
</main>
</div>
<!-- js files are positioned at the end because this allows the browser to load a "serviceable" UI (HTML+CSS but no JS)
while the loading of javascript files continues in the background.-->
<script type="text/javascript" src="scripts.js"></script>
<script src="https://storage.googleapis.com/code.getmdl.io/1.0.5/material.min.js"></script>
</body>
</html>