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 03:21:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0107219ec6785f4ff32aa1be9efdd8b799dff2aa
0107219e
1 parent
25bbe0d1
Html-Home connecting judge0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
19 deletions
Voicoding_web/Voico_Home.css
Voicoding_web/Voico_Home.html
Voicoding_web/Voico_Info.css
Voicoding_web/Voico_Info.html
Voicoding_web/Voico_Menu.css
Voicoding_web/Voico_Menu.html
Voicoding_web/css/ide.css
Voicoding_web/js/ide.js
Voicoding_web/Voico_Home.css
View file @
0107219
...
...
@@ -15,7 +15,7 @@ a{
color
:
var
(
--text-color
);
}
.menu
{
.
voi_
menu
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
...
...
@@ -109,9 +109,9 @@ button:hover{
margin
:
23px
;
}
#output
{
width
:
50%
;
margin-left
:
20px
;
margin
:
20px
;
display
:
flex
;
align-items
:
center
;
border
:
3px
solid
var
(
--accent-color
);
height
:
700px
;
}
...
...
@@ -123,7 +123,7 @@ button:hover{
}
.output_bar
{
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
center
;
color
:
black
;
border
:
3px
solid
var
(
--accent-color
);
margin
:
20px
;
...
...
Voicoding_web/Voico_Home.html
View file @
0107219
This diff is collapsed. Click to expand it.
Voicoding_web/Voico_Info.css
View file @
0107219
...
...
@@ -13,7 +13,7 @@ a{
color
:
var
(
--text-color
);
}
.menu
{
.
voi_
menu
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
...
...
Voicoding_web/Voico_Info.html
View file @
0107219
...
...
@@ -12,7 +12,7 @@
<link
href=
"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300&display=swap"
rel=
"stylesheet"
>
</head>
<body>
<nav
class=
"menu"
>
<nav
class=
"
voi_
menu"
>
<div
class=
"menu_bar_logo"
>
<i
class=
"fas fa-microphone-alt"
></i>
<a
href=
"Voico_Home.html"
>
Voicoding
</a>
...
...
Voicoding_web/Voico_Menu.css
View file @
0107219
...
...
@@ -13,7 +13,7 @@ a{
color
:
var
(
--text-color
);
}
.menu
{
.
voi_
menu
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
...
...
Voicoding_web/Voico_Menu.html
View file @
0107219
...
...
@@ -12,7 +12,7 @@
<link
href=
"https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300&display=swap"
rel=
"stylesheet"
>
</head>
<body>
<nav
class=
"menu"
>
<nav
class=
"
voi_
menu"
>
<div
class=
"menu_bar_logo"
>
<i
class=
"fas fa-microphone-alt"
></i>
<a
href=
"Voico_Home.html"
>
Voicoding
</a>
...
...
Voicoding_web/css/ide.css
View file @
0107219
...
...
@@ -87,6 +87,7 @@ body {
}
#site-content
{
display
:
flex
;
height
:
calc
(
100%
-
45px
-
19px
);
}
...
...
Voicoding_web/js/ide.js
View file @
0107219
...
...
@@ -141,8 +141,8 @@ function localStorageGetItem(key) {
}
function
showMessages
()
{
var
width
=
$updates
.
offset
().
left
-
parseFloat
(
$updates
.
css
(
"padding-left"
))
-
$navigationMessage
.
parent
().
offset
().
left
-
parseFloat
(
$navigationMessage
.
parent
().
css
(
"padding-left"
))
-
5
;
var
width
=
100
//
$updates.offset().left - parseFloat($updates.css("padding-left")) -
//
$navigationMessage.parent().offset().left - parseFloat($navigationMessage.parent().css("padding-left")) - 5;
if
(
width
<
200
||
messagesData
===
undefined
)
{
return
;
...
...
@@ -255,7 +255,7 @@ function getIdFromURI() {
}
function
downloadSource
()
{
var
value
=
parseInt
(
$selectLanguage
.
val
()
);
var
value
=
parseInt
(
71
);
download
(
sourceEditor
.
getValue
(),
fileNames
[
value
],
"text/plain"
);
}
...
...
@@ -308,7 +308,7 @@ function run() {
var
sourceValue
=
encode
(
sourceEditor
.
getValue
());
var
stdinValue
=
encode
(
stdinEditor
.
getValue
());
var
languageId
=
resolveLanguageId
(
$selectLanguage
.
val
()
);
var
languageId
=
resolveLanguageId
(
71
);
var
compilerOptions
=
$compilerOptions
.
val
();
var
commandLineArguments
=
$commandLineArguments
.
val
();
...
...
@@ -393,21 +393,21 @@ function fetchSubmission(submission_token) {
function
changeEditorLanguage
()
{
monaco
.
editor
.
setModelLanguage
(
sourceEditor
.
getModel
(),
$selectLanguage
.
find
(
":selected"
).
attr
(
"mode"
));
currentLanguageId
=
parseInt
(
$selectLanguage
.
val
()
);
currentLanguageId
=
parseInt
(
71
);
$
(
".lm_title"
)[
0
].
innerText
=
fileNames
[
currentLanguageId
];
apiUrl
=
resolveApiUrl
(
$selectLanguage
.
val
()
);
apiUrl
=
resolveApiUrl
(
71
);
}
function
insertTemplate
()
{
currentLanguageId
=
parseInt
(
$selectLanguage
.
val
()
);
currentLanguageId
=
parseInt
(
71
);
sourceEditor
.
setValue
(
sources
[
currentLanguageId
]);
changeEditorLanguage
();
}
function
loadRandomLanguage
()
{
// $selectLanguage.dropdown("set selected", values[Math.floor(Math.random() * $selectLanguage[0].length)]);
$selectLanguage
.
dropdown
(
"set selected"
,
71
);
apiUrl
=
resolveApiUrl
(
$selectLanguage
.
val
()
);
//
$selectLanguage.dropdown("set selected", 71);
apiUrl
=
resolveApiUrl
(
71
);
insertTemplate
();
}
...
...
@@ -473,6 +473,7 @@ function updateScreenElements() {
$
(
window
).
resize
(
function
()
{
layout
.
updateSize
();
console
.
log
(
`
${
layout
.
height
}
,
${
layout
.
width
}
`
);
updateScreenElements
();
showMessages
();
});
...
...
@@ -582,7 +583,7 @@ $(document).ready(function () {
theme
:
"vs-dark"
,
scrollBeyondLastLine
:
true
,
readOnly
:
state
.
readOnly
,
language
:
"
python
"
,
language
:
"
cpp
"
,
minimap
:
{
enabled
:
false
}
...
...
@@ -591,7 +592,7 @@ $(document).ready(function () {
changeEditorMode
();
sourceEditor
.
getModel
().
onDidChangeContent
(
function
(
e
)
{
currentLanguageId
=
parseInt
(
$selectLanguage
.
val
()
);
currentLanguageId
=
parseInt
(
71
);
isEditorDirty
=
sourceEditor
.
getValue
()
!=
sources
[
currentLanguageId
];
});
...
...
Please
register
or
login
to post a comment