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:42 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
e948ff4325bc9174b01571ab61b4339fdec7cbdf
e948ff43
2 parents
8a6e6938
962d489c
Merge branch 'html-home' into 'main'
Font update See merge request
!5
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 @
e948ff4
...
...
@@ -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 @
e948ff4
...
...
@@ -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 @
e948ff4
...
...
@@ -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