Toggle navigation
Toggle navigation
This project
Loading...
Sign in
천현우
/
Voicoding
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
민병수
2021-06-06 18:08:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
962d489caa20010571f7f48ff48a30f58a91fc34
962d489c
1 parent
f14d0fe4
Font update
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
Voicoding_web/Voico_Home.css
Voicoding_web/Voico_Home.html
Voicoding_web/client.js
Voicoding_web/Voico_Home.css
View file @
962d489
...
...
@@ -119,12 +119,14 @@ button:hover{
margin
:
23px
;
}
#output
{
padding
:
10px
;
margin
:
20px
;
display
:
flex
;
align-items
:
center
;
font-size
:
20px
;
height
:
700px
;
background-color
:
rgba
(
0
,
0
,
0
,
.87
);
color
:
var
(
--text-color
);
font-family
:
'Raleway'
,
'Noto Serif KR'
;
}
#recordButton
{
line-height
:
22px
;
...
...
Voicoding_web/Voico_Home.html
View file @
962d489
...
...
@@ -10,6 +10,8 @@
<script
defer
src=
"menu.js"
></script>
<link
rel=
"preconnect"
href=
"https://fonts.gstatic.com"
>
<link
href=
"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300&display=swap"
rel=
"stylesheet"
>
<link
href=
"https://fonts.googleapis.com/css2?family=Raleway:wght@200&display=swap"
rel=
"stylesheet"
>
<link
href=
"https://fonts.googleapis.com/css2?family=Noto+Serif+KR&family=Raleway:wght@200&display=swap"
rel=
"stylesheet"
>
<script
defer
src=
"https://cdn.rawgit.com/mattdiamond/Recorderjs/08e7abd9/dist/recorder.js"
></script>
<script
defer
src=
"client.js"
></script>
<meta
name=
"description"
content=
"Free and open-source online code editor that allows you to write and execute code from a rich set of languages."
>
...
...
Voicoding_web/client.js
View file @
962d489
...
...
@@ -33,7 +33,7 @@ function uploadSoundData(blob) {
let
formData
=
new
FormData
();
xhr
.
onload
=
function
(
e
)
{
if
(
this
.
readyState
===
4
)
{
document
.
getElementById
(
"output"
).
innerHTML
+=
`
${
cnt
++
}
:
${
JSON
.
parse
(
e
.
target
.
responseText
)}
<br>`
;
document
.
getElementById
(
"output"
).
innerHTML
+=
`
${
cnt
++
}
:
${
JSON
.
parse
(
e
.
target
.
responseText
)}
<br>
<br>
`
;
}
};
formData
.
append
(
"audio_data"
,
blob
,
filename
);
...
...
Please
register
or
login
to post a comment