Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jughisto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Capimara (Maratona UFPR)
jughisto
Commits
293ea1ae
Commit
293ea1ae
authored
2 years ago
by
Fernando K
Browse files
Options
Downloads
Patches
Plain Diff
Fix some spacing
parent
bf355cb0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/styles.css
+61
-56
61 additions, 56 deletions
static/styles.css
templates/monaco.hbs
+12
-8
12 additions, 8 deletions
templates/monaco.hbs
with
73 additions
and
64 deletions
static/styles.css
+
61
−
56
View file @
293ea1ae
...
...
@@ -7,7 +7,7 @@
#breadcrumb
{
display
:
flex
;
align-items
:
center
;
padding
:
8px
;
padding
-bottom
:
8px
;
}
#breadcrumb
a
{
...
...
@@ -55,6 +55,7 @@ main {
}
#statement-submission
{
overflow
:
auto
;
display
:
flex
;
flex
:
1
;
}
...
...
@@ -65,6 +66,7 @@ main {
#editor
{
flex
:
1
;
margin-top
:
0
;
}
#contest-header
{
...
...
@@ -447,8 +449,6 @@ textarea {
}
#modal
>
.modal-underlay
{
/* underlay takes up the entire viewport. This is only
required if you want to click to dismiss the popup */
position
:
absolute
;
z-index
:
-1
;
top
:
0px
;
...
...
@@ -503,3 +503,8 @@ textarea {
border-top-right-radius
:
3px
;
top
:
9px
}
textarea
#source-text
{
overflow
:
hidden
;
}
This diff is collapsed.
Click to expand it.
templates/monaco.hbs
+
12
−
8
View file @
293ea1ae
...
...
@@ -14,8 +14,8 @@ value="{{ this.value }}"
<label>
Código-fonte
</label>
<div
id=
"editor"
style=
"border: 1px solid grey"
></div>
<textarea
id=
"source
_
text"
name=
"source_text"
style=
"display: none"
></textarea>
<input
type=
"file"
id=
"source
_
file"
/>
<textarea
id=
"source
-
text"
name=
"source_text"
style=
"display: none"
></textarea>
<input
type=
"file"
id=
"source
-
file"
/>
<script>
var
require
=
{
paths
:
{
vs
:
'
static/vs
'
}
};
...
...
@@ -35,14 +35,14 @@ value="{{ this.value }}"
"
}
"
});
const
source
_f
ile
=
document
.
getElementById
(
"
source
_
file
"
);
source
_f
ile
.
addEventListener
(
"
change
"
,
async
function
(
e
)
{
editor
.
setValue
(
await
source
_f
ile
.
files
[
0
].
text
());
source
_f
ile
.
value
=
""
;
const
source
F
ile
=
document
.
getElementById
(
"
source
-
file
"
);
source
F
ile
.
addEventListener
(
"
change
"
,
async
function
(
e
)
{
editor
.
setValue
(
await
source
F
ile
.
files
[
0
].
text
());
source
F
ile
.
value
=
""
;
});
const
source
_t
ext
=
document
.
getElementById
(
"
source
_
text
"
);
function
setSourceText
()
{
source
_t
ext
.
value
=
editor
.
getValue
();
}
const
source
T
ext
=
document
.
getElementById
(
"
source
-
text
"
);
function
setSourceText
()
{
source
T
ext
.
value
=
editor
.
getValue
();
}
editor
.
onDidChangeModelContent
(
setSourceText
);
setSourceText
();
...
...
@@ -52,4 +52,8 @@ value="{{ this.value }}"
}
language
.
addEventListener
(
"
change
"
,
setLanguage
);
setLanguage
();
window
.
addEventListener
(
'
resize
'
,
()
=>
{
editor
.
layout
();
});
</script>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment