Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
rust
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
Model registry
Operate
Environments
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
orestis.malaspin
rust
Commits
5874e9a1
There was a problem fetching the pipeline summary.
Commit
5874e9a1
authored
6 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
removed reset button which was useless
parent
67d34a0d
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
css/console.css
+1
-6
1 addition, 6 deletions
css/console.css
js/playRust.js
+1
-8
1 addition, 8 deletions
js/playRust.js
with
2 additions
and
14 deletions
css/console.css
+
1
−
6
View file @
5874e9a1
...
@@ -3,15 +3,10 @@
...
@@ -3,15 +3,10 @@
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
}
}
.reset
{
position
:
absolute
;
top
:
0
;
left
:
0
;
}
.open-in-playground
{
.open-in-playground
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
left
:
50px
;
left
:
0
;
}
}
.return
{
.return
{
overflow-y
:
scroll
;
overflow-y
:
scroll
;
...
...
This diff is collapsed.
Click to expand it.
js/playRust.js
+
1
−
8
View file @
5874e9a1
var
buttons
=
'
<button class="exec btn">run</button><button
class="reset btn">reset</button><button
class="open-in-playground btn">open</button>
'
+
"
\n
"
;
var
buttons
=
'
<button class="exec btn">run</button><button class="open-in-playground btn">open</button>
'
+
"
\n
"
;
var
result
=
'
<span class="return"></span>
'
;
var
result
=
'
<span class="return"></span>
'
;
function
addButtons
()
{
function
addButtons
()
{
...
@@ -10,9 +10,6 @@ function addButtons() {
...
@@ -10,9 +10,6 @@ function addButtons() {
$
(
block
).
before
(
buttons
);
$
(
block
).
before
(
buttons
);
$
(
block
).
after
(
result
);
$
(
block
).
after
(
result
);
});
});
$
(
'
.reset
'
).
each
(
function
(
n
)
{
$
(
this
).
context
.
_code
=
$
(
this
).
siblings
(
'
code
'
).
text
();
});
$
(
'
.exec
'
).
click
(
function
()
{
$
(
'
.exec
'
).
click
(
function
()
{
var
target
=
$
(
this
).
siblings
(
'
.return
'
);
var
target
=
$
(
this
).
siblings
(
'
.return
'
);
target
.
html
(
'
<img src="figs/ferris_animated.gif" style="border:none; box-shadow:none; margin: 0; background: none;">
'
);
target
.
html
(
'
<img src="figs/ferris_animated.gif" style="border:none; box-shadow:none; margin: 0; background: none;">
'
);
...
@@ -30,10 +27,6 @@ function addButtons() {
...
@@ -30,10 +27,6 @@ function addButtons() {
target
.
html
(
output
);
target
.
html
(
output
);
});
});
});
});
$
(
'
.reset
'
).
click
(
function
()
{
$
(
this
).
siblings
(
'
code
'
).
text
(
$
(
this
).
context
.
_code
);
hljs
.
highlightBlock
(
$
(
this
).
siblings
(
'
code
'
)[
0
]);
})
$
(
'
.open-in-playground
'
).
click
(
function
()
{
$
(
'
.open-in-playground
'
).
click
(
function
()
{
var
code
=
$
(
this
).
siblings
(
'
code
'
).
text
();
var
code
=
$
(
this
).
siblings
(
'
code
'
).
text
();
var
baseUrl
=
'
https://play.rust-lang.org/?version=stable&code=
'
;
var
baseUrl
=
'
https://play.rust-lang.org/?version=stable&code=
'
;
...
...
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