/
popup.html
96 lines (87 loc) · 2.59 KB
/
popup.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
<!doctype html>
<html>
<head>
<title>BreakTimer</title>
<style>
body {
overflow: hidden;
margin: 0px;
padding: 0px;
background: white;
width: 250px;
}
.button_div:first-child {
margin-top: 0px;
}
.button_div {
cursor: pointer;
text-align: center;
padding: 1px 3px;
font-family: sans-serif;
font-size: 1.5em;
width: 100%;
margin-top: 1px;
background: #cccccc;
}
.button_div:hover {
background: #aaaaaa;
}
table {
font-size: 1.5em;
padding: 0;
margin: 0;
border-spacing: 0;
}
table td {
padding: 0 5px;
}
table tr:nth-child(even) {
background-color: #eee;
}
table tr:nth-child(odd) {
background-color: #fff;
}
input {
width: 30px;
}
input[type="range"] {
width: 100px;
}
h3 {
margin: 5px;
}
</style>
<script src="popup.js"></script>
<script src="popup_options.js"></script>
</head>
<body>
<div class="button_div" id="on">Manual Start BreakTimer</div>
<div class="button_div" id="off">Manual Disable BreakTimer</div>
<table>
<tr><td style="width:200px">Current Status: </td><td colspan="2" id="status"></td></tr>
<tr><td style="width:200px">Time Remaining: </td><td id="remaining"></td><td>min</td></tr>
<tr><td style="width:200px">Interval: </td><td><input type="text" id="interval" /></td><td>min</td></tr>
<tr><td style="width:200px">Duration: </td><td><input type="text" id="duration" /></td><td>min</td></tr>
</table>
<div>
<br />
<h3>Break Page Options:</h3>
<input type="checkbox" id="french_word" name="french_word">
<label for="french_word">French Word</label>
<br />
<div>
<label for="zipf_parameter" style="margin-left: 42px;">Zipf alpha:</label>
<input type="text" id="zipf_parameter" value="1" />
</div>
<input type="checkbox" id="yoga_pose" name="yoga_pose">
<label for="yoga_pose">Yoga Pose</label><br>
<input type="checkbox" id="quote" name="quote">
<label for="quote">Inspirational Quote</label><br>
<input type="checkbox" id="AI_img" name="AI_img">
<label for="AI_img">AI "inspirational" image</label><br>
<input type="checkbox" id="play_sound" name="play_sound">
<label for="play_sound">Play Sounds</label><br>
</div>
<audio id="start" src="assets/startwork.mp3" preload="auto"></audio>
</body>
</html>