-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
174 lines (144 loc) · 3.88 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<HTML>
<HEAD>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="favicon.png">
<link rel="canonical" href="https://rollinghog.github.io/voice-editor/" />
<link rel="manifest" href="/voice-editor/manifest.webmanifest">
<TITLE>Voice editor</TITLE>
</HEAD>
<script>
</script>
<style>
body {
overscroll-behavior-y: contain;
}
textarea#text_input {
width:60%;
height: 50%;
font-size: inherit;
}
#main_buttons_wrapper {
width: 60%;
}
button#b_switch_recognition, button#b_cut {
padding:8px;
}
button#b_cut {
float: right;
}
button#b_dummy {
display: none;
}
div#sideblock_wrapper {
display: inline-block;
width: 30%;
vertical-align: top;
}
#commands_list_wrapper {
width: 30%;
}
#version_el_wrapper {
position: absolute;
right: 16px;
bottom: 16px;
}
@media screen and (max-width: 600px) {
body, button {
font-size: x-large;
text-align: center;
}
textarea#text_input {
width:100%;
height: 74vh;
}
#main_buttons_wrapper {
width: 95vw;
margin-top: -37vh;
height: 20vh;
}
button#b_switch_recognition {
height:20vh;
width: 20vh;
border-radius:10vh;
}
button#b_dummy,
button#b_cut {
display: inline;
height:12vh;
width: 12vh;
border-radius:10vh;
}
button#b_cut {
float: none;
margin-left: 5vw;
margin-right: -5vw;
}
div#sideblock_wrapper {
margin-top: 30vh;
width: 100%;
}
#side_text_input {
display: none;
}
#commands_list_wrapper {
width: 100%;
margin-top: 5.5em;
}
#commands_list li {
border-top: 1px solid black;
padding-top: 1em;
padding-bottom: 1em;
}
#version_el_wrapper {
position: static;
float: right;
}
}
</style>
<body style="overflow:auto">
<!-- <span id="led" style="display:inline-block; height: 25px; width: 25px; border-radius: 50%; background-color:grey;"></span> -->
<textarea id="text_input"></textarea>
<div id="sideblock_wrapper" >
Добавлять в конце распознания:
<br>
<label for="inp_add_newline">
<input type="checkbox" name="inp_add_newline" id="inp_add_newline">
новую строку
</label>
<label for="inp_add_space">
<input type="checkbox" name="inp_add_space" id="inp_add_space" checked>
пробел
</label>
<input id=side_text_input type="text" style="width: 100%;"
onchange="text_input.value += ' '+checkForAbbreviations(this.value)+'\n'; text_input.focus(); this.value=''"
>
</div>
<br>
<div id="main_buttons_wrapper">
<!-- <button id=b_dummy style="visibility: hidden;">Dummy</button> -->
<button id=b_switch_recognition>Start</button>
<button id=b_cut>Cut</button>
</div>
<!-- <pre id=recog_status></pre> -->
<div id=commands_list_wrapper>
Список доступных команд
<style>
#commands_list li {
cursor:pointer;
text-decoration: underline;
}
#commands_list li:hover {
background-color: lightgrey;
}
</style>
<ul id="commands_list">
</ul>
</div>
<div id=version_el_wrapper>
<div>Version <span id="version_el">_._._</span></div>
<a href="https://github.com/RollingHog/voice-editor">https://github.com/RollingHog/voice-editor</a>
</div>
</body>
<script src="index.js"></script>
</HTML>