-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
139 lines (107 loc) · 3.35 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ASR project</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" type="text/css" href="./css/semantic.min.css">
<link rel="stylesheet" type="text/css" href="./css/demo.css">
</head>
<body>
<div class="ui container">
<span id="serverStatusBar" title="Number of available workers"></span>
<br><br>
<center>
<div class="ui grid">
<div class="two wide column border-head">t\d</div>
<div class="two wide column border-head">Monday</div>
<div class="two wide column border-head">Tuesday</div>
<div class="two wide column border-head">Wednesday</div>
<div class="two wide column border-head">Thursday</div>
<div class="two wide column border-head">Friday</div>
<div class="two wide column border-head">Saturday</div>
<div class="two wide column border-head border-right">Sunday</div>
</div>
<div class="ui grid timetable" id="timetable">
</div>
</center>
<br><br>
<textarea id="trans" rows="5" style="width:100%; margin-top:.5em">
</textarea>
<input id="servers" type="text" value="ws://localhost:8080/client/ws/speech|ws://localhost:8080/client/ws/status" hidden />
<br><br>
<center>
<div>
<button
class="positive ui button"
id="buttonToggleListening"
onclick="toggleListening();">Start</button>
<button
class="negative ui button"
id="buttonCancel"
disabled="disabled"
onclick="cancel();">Cancel</button>
<button
class="ui button"
onclick="clearTranscription();">Clear</button>
</div>
</center>
<br><br>
<pre id="responses">
</pre>
</div>
<div id="modal-confirm" class="ui basic modal">
<div class="ui icon header">
<i class="warning sign icon"></i>
Warning
</div>
<div class="content">
<p id="message-confirm"></p>
</div>
<div class="actions">
<div class="ui red basic cancel inverted button">
<i class="remove icon"></i>
close
</div>
</div>
</div>
<div id="modal-detail" class="ui basic modal">
<div class="ui icon header">
<i class="calendar icon"></i>
Calendar
</div>
<div class="content">
<p id="message-detail"></p>
</div>
<div class="actions">
<div class="ui red basic cancel inverted button">
<i class="remove icon"></i>
close
</div>
</div>
</div>
</body>
<script src="./javascripts/jquery-3.2.1.min.js"></script>
<script src="./javascripts/semantic.min.js"></script>
<script src="./lib/dictate.js"></script>
<script src="./lib/recorder.js"></script>
<script src="./javascripts/demo.js"></script>
<script>
function to_time(i){
return Math.floor((i/2)).toString() + ((i%2)==0?":00":":30");
}
$(function() {
for(var i=1;i<=48;i++){
for(var j=0;j<8;j++){
if(j==0){
$('#timetable').append("<div class='two wide column border-side'>" + to_time(i) + "</div>");
} else {
$('#timetable').append("<div id='" + i + "_" + j + "' class='two wide column border-right'></div>");
}
}
}
});
</script>
</html>