-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
215 lines (146 loc) · 7.23 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="icon" href="favicon.png" type="image/png" sizes="64x64">
<title>Audio Marker</title>
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" type="text/css" href="css/interaction.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<div class="row text-center">
<div class="card col-md-6 col-sm-12 text-center border-right-0">
<div class="row card-header">
<h4>Audio Marker</h4>
<div class=" col-5 link-wrapper">
<div class="row m-1 d-md-inline-block d-none d-sm-block ">
<a target="_blank" href="https://chrome.google.com/webstore/detail/google-input-tools/mclkkofklkfljcocdinagocijmpgbhab/related" class="badge badge-info mr-1">Keyboard Tool </a>
<a target="_blank" href="https://chrome.google.com/webstore/detail/voice-in-voice-typing/pjnefijmagpdjfhhkpljicbbpicelgko" class="badge badge-info">Voice Tool</a>
</div>
<div class="row m-1 d-block d-sm-none">
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.google.android.apps.inputmethod.hindi&hl=en" class="badge badge-info">Indic Keyboard</a>
</div>
</div>
</div>
<div class="card-body pt-3">
<span class="badge badge-secondary" type="button" onclick="speed(0.80)">Slow 0.80 <i class="fa fa-arrow-down"></i> </span>
<span class="badge badge-secondary" type="button" onclick="speed(1)">Normal 1.0 </span>
<span class="badge badge-secondary" type="button" onclick="speed(1.25)">Fast 1.25 <i class="fa fa-arrow-up"></i> </span>
<div class="row input-group mt-3">
<div class="custom-file w-100">
<input type="file" class="custom-file-input" onchange="setLocalAudio()">
<label class="custom-file-label" for="inputGroupFile01">Choose file</label>
</div>
<div class="small text-left"><b>File Name:</b>
<span id="fname"> file name displayed here.</span>
</div>
</div>
<div class="row py-3">
<audio id="audioPlayer" class="w-100" controls>
<source src="" type="audio/mpeg">
Your browser does not support this type of audio.
</audio>
</div>
<div class="row">
<div class="col text-left">
<button class="btn btn-sm btn-secondary" type="button" onclick="playAudio()">Play <i id="play" class="fa fa-play"></i> </button>
<button class="btn btn-sm btn-info d-none" id="playSlot" type="button" onclick="playStartEnd()"><i class="fa fa-play-circle fa-1x"></i> Note</button>
</div>
<div class="col-5 text-right input-group number-spinner w-25">
<span class="input-group-btn">
<button class="btn btn-sm btn-secondary" onclick="backward()"><i class="fa fa-backward"></i></button>
</span>
<input id="forwardValue" type="number" class="form-control form-control-sm text-center" value="5" min="1" max="10">
<span class="input-group-btn">
<button class="btn btn-sm btn-secondary" onclick="forward()"><i class="fa fa-forward"></i></button>
</span>
</div>
</div>
<hr>
<!-- from to click-->
<div class="input-group my-2 mt-5">
<div class="input-group-prepend">
<button id="btnStartTime" class="btn btn-secondary" style="padding: 6px;" type="button" onclick="onFromClick()">Start</button>
</div>
<input id="fromTime" type="text" onclick="fromGoToTime()" class="form-control">
<div class="input-group-prepend">
<button id="btnEndTime" class="btn btn-secondary" type="button" onclick="onToClick()">End</button>
</div>
<input id="toTime" type="text" onclick="toGoToTime()" class="form-control">
<input id="fromTimeSecond" type="hidden" class="form-control" >
<input id="toTimeSecond" type="hidden" class="form-control">
<input id="uniqueId" type="hidden" class="form-control">
</div>
<!-- [VOICE CONTROL BUTTON] -->
<!-- <form id="search-form" onsubmit="return false">
SPEECH RECOGNITION -->
<!-- <div id="search-speech" style="display:none" class="text-right"> -->
<!-- <input type="button" disabled id="search-on" value="Speak" onclick="speech.start()"/> -->
<!-- <input type="button" disabled id="search-off" value="Stop" onclick="speech.stop()"/> -->
<!-- </div>
</form>-->
<div class="form-group text-left">
<label>Description:</label>
<textarea class="form-control" rows="3" type="" id="description"></textarea>
<div class="my-3 d-md-inline-flex float-right">
<button class="btn btn-info form-control" type="button" onclick="saveNote()">
<i class="fa fa-floppy-o"></i> Save</button>
</div>
<div class="my-3 d-md-inline-flex float-left">
<button class="btn btn-warning form-control" type="button" onclick="clearValue()">
<i class="fa fa-floppy-o"></i> Clear</button>
</div>
</div>
</div>
<div class="card-footer row text-muted small">
<span class="font-weight-bold">Note:</span><span class="text-muted"> Chrome browser is mandatory for this app.</span>
</div>
</div>
<div class="card col-md-6 col-sm-12">
<div class="card-header row d-inline-flex">
<h4>Notes</h4>
<div class="text-right col">
<button id="export" class="btn btn-success py-1 exportToExcel" type="button"><i class="fa fa-download" ></i> Export</button>
</div>
</div>
<div class="card-body">
<div class="row">
<div class="table table-striped table-responsive table-bordered">
<table class="table table2excel" data-tableName="Test Table 2" style="width: 100%" id="AudioNoteBookTable">
<thead class="table-secondary">
<tr>
<td>From</td>
<td>To</td>
<td>Description</td>
<td data-exclude="true">Edit</td>
<td data-exclude="true">Delete</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<div class="card-footer row text-muted p-1 text-right d-inline-block">
<button class="btn btn-danger mr-4 py-1" type="button" onclick="clearNotes()"><i class="fa fa-trash"></i></button>
</div>
</div>
</div>
</div>
<!-- Bootstrap -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/linways/[email protected]/dist/tableToExcel.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<!-- Custom JS -->
<script src="js/interaction.js"></script>
</body>
</html>