-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
212 lines (189 loc) · 9.9 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
<!DOCTYPE html>
<html lang="en">
<!-----------------------------------------------------Start of Head-------------------------------------------------->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!------------------------------Start of Stylesheets----------------------------------->
<link href="speech-notes/styles/styles.css" rel="stylesheet">
<link href="speech-notes/styles/keyframes.css" rel="stylesheet">
<link href="/dist/output.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous"/>
<!--------------------------------End of Stylesheets---------------------------------->
<!------------------------------Start of JavaScriptBlock------------------------------>
<script src="speech-notes/scripts/leftmenu.js"> </script>
<script src="speech-notes/scripts/speechRecognition.js"> </script>
<script src="speech-notes/scripts/pageManipulate.js"> </script>
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="node_modules/jquery/src/jquery.js"></script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<!--------------------------------End of JavaScriptBlock------------------------------>
<title>
SpeechNotes
</title>
</head>
<!-----------------------------------------------End of Head---------------------------------------------------->
<!-----------------------------------------------Start of Body---------------------------------------------------->
<body>
<!------------------------------------Start of Top Navigation bar-------------------------------->
<div id="navbar">
<h1 href="#default" id="logo">
Speech Notes
</h1>
</div>
<!------------------------------------End of Top Navigation bar------------------------------>
<!-------------------------------------------------Start of center page--------------------------------------->
<div style="margin-top:200px;" class="flex flex-col md:flex-row" id="speechMain" >
<div class="basis-9/12">
<!------------------------------Start of vertical navbar----------------------------->
<div class="icon-bar">
<button onclick="saveCache()">
<span title="Save data on browser">
<i class="fa fa-floppy-o"></i>
</span>
</button>
<button onclick="saveFile()">
<span title="Download File as a text">
<i class="fa fa-download"></i>
</span>
</button>
<button onclick="printDiv()" >
<span title="Print">
<i class="fa fa-print"></i>
</span>
</button>
<button onclick="copyToClipboard()">
<span title="Copy to Clipboard">
<i class="fa fa-clipboard"></i>
</span>
</button>
<button onclick="clearAll()">
<span title="Clear All">
<i class="fa fa-trash-o"></i></i>
</span>
</button>
<button onclick="">
<span title="Information's">
<i class="fa fa-info-circle"></i>
</span>
</button>
</div>
<!------------------------End of vertical navbar------------------------------------>
<!-------------------------Start of the main page----------------------------------->
<div class="container" id="main" >
<!---------Start of Control Buttons------------>
<div>
<p id="status" class="lead mt-3 text-light" style="display: none">Listenting ...</p>
<button value="Start" onclick="if(status===true){start()} else if(status===false){pause()}" class="button">
<i class="fa fa-microphone"></i>
</button>
</div>
<!------------End of Control Buttons----------->
<!--------------Start of the form-------------->
<div class="ui-input-container" id="editor1" style="display: block">
<label class="ui-form-input-container" >
<textarea placeholder="Your output comes here!" class="ui-form-input" id="output" ></textarea>
<span id="interim"></span>
</label>
<div class="alert " id="showAlert" role="alert">
</div>
</div>
<!---------------End of form---------------------->
</div>
<!-----------------------------End of the main---------------------------------------->
</div>
<!----------------------------Start of the Tips section----------------------------------------->
<div class="basis-3/12 items-center pt-6 pr-4 pl-4 pb-2 self-center " id="tips">
<h2 class="items-center text-xl font-bold" >Tips</h2>
<p> Click on the Mic button to start the Speech Recognition</p>
<p> Speak slowly and clearly in the mic.</p>
<p> Make sure your room is quiet with less background noise.</p>
</div>
<!----------------------------End of the Tips section----------------------------------------->
</div>
<!----------------------------End of center page section---------------------------------------->
<!----------------------------Start of the about section------------------------------------------>
<div class="flex flex-col md:flex-row " id="about">
<div class="p-3 self-center">
<h2 class="text-3xl font-bold underline">About</h2>
<br>
<p>Speech Notes is a website with online Notepad that allows it users to convert his audio to text. </p>
<p>It uses webkitSpeechRecognition from Javascript to transcribe audio to text.</p>
<p>For the first time only: Your browser will pop up a request for you to allow the site to listen to your mic. Click "Allow".</p>
<p>In case if Speech Recognition is not working make sure you check following things.<br>
<p>
The website only works on Google Chrome and Safari Browsers for now.
You can use Mobile or PC for that.</p>
</p>
</div>
<div class="p-3 self-center">
<lottie-player src="https://assets6.lottiefiles.com/packages/lf20_nmrwmvic.json"
background="transparent" speed="1" style="width: 300px; height: 300px; border-radius: 50px;"
loop autoplay></lottie-player>
</div>
</div>
<!----------------------------End of the About section--------------------------------------------->
<!----------------------------Start of the Info section------------------------------------------->
<div class= "flex flex-col md:flex-row justify-content-evenly" id="info">
<div class="p-2 self-center">
<lottie-player src="https://assets2.lottiefiles.com/packages/lf20_tzv8osvb.json"
background="transparent" speed="1"
style="width: 300px; height: 300px;" loop autoplay></lottie-player>
</div>
<div class="p-2 self-center">
<h3 class="text-3xl font-bold underline">
<i class="fa fa-info-circle"></i>
Information
</h3>
<div>
<a>
Speech Recognition offers users some functions to reduce their efforts
</a><br><br>
<i class="fa fa-floppy-o fa-2x" ></i>
<a> Save the typed words in the browser cache.<br>
<i class="fa fa-download fa-lg" ></i>
<a> Download you work as a Text file</a><br>
<i class="fa fa-print fa-2x" ></i>
<a> Print your work </a><br>
<i class="fa fa-clipboard fa-2x" ></i>
<a> Copy your work on clipboard</a><br>
<i class="fa fa-trash-o fa-2x" ></i>
<a> Delete everything<br></a><br>
</div>
</div>
</div>
<!----------------------------End of the Info section------------------------------------------>
<!----------------------------Start of the footer----------------------------------------------->
<footer id="foot">
<div class="friends">
<h3 class="text-2xl font-bold underline">
Let's be Friends
</h3>
<div class="contact">
<a class="list-offline-item"><a href="mailto:[email protected]" target="_blank" title="gmail">[email protected]</a></a>
</div>
<ul class="list-inline mt-4">
<li class="circle"c><a href="https://github.com/ayaan278" target="_blank" title="github"><i class="fa fa-github fa-lg"></i></a></li>
<li class="circle"><a href="https://www.instagram.com/_.ayaanii._/" target="_blank" title="instagram"><i class="fa fa-instagram fa-lg"></i></a></li>
<li class="circle"><a href="https://www.linkedin.com/in/ayaan-ahmad-06545614a" target="_blank" title="instagram"><i class="fa fa-linkedin fa-lg"></i></a></li>
</ul>
</div>
<div class="info">
<p>© 2022 Ayaan Ahmad</p>
</div>
</footer>
<!--------------------------End of footers section------------------------------------------------->
</body>
<!-------------------------------------------------End of body---------------------------------------->
</html>
<!---------------------------------------------------End of HTML---------------------------------------------->