Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
lectures
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Solid state physics
lectures
Commits
76b8e99f
Commit
76b8e99f
authored
5 years ago
by
Hugo Kerstens
Browse files
Options
Downloads
Patches
Plain Diff
Make live button as magic wand
parent
5b289004
No related branches found
Branches containing commit
No related tags found
1 merge request
!47
Add live code editing using thebelab
Pipeline
#17363
passed
5 years ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mkdocs.yml
+1
-0
1 addition, 0 deletions
mkdocs.yml
src/styles/thebelab.css
+2
-2
2 additions, 2 deletions
src/styles/thebelab.css
theme/main.html
+4
-1
4 additions, 1 deletion
theme/main.html
with
7 additions
and
3 deletions
mkdocs.yml
+
1
−
0
View file @
76b8e99f
...
...
@@ -52,6 +52,7 @@ markdown_extensions:
-
meta
extra_css
:
-
'
https://use.fontawesome.com/releases/v5.8.1/css/all.css'
-
'
styles/thebelab.css'
extra_javascript
:
...
...
This diff is collapsed.
Click to expand it.
src/styles/thebelab.css
+
2
−
2
View file @
76b8e99f
...
...
@@ -37,8 +37,8 @@
}
#thebelab-activate-button
{
margin-top
:
-
1rem
;
float
:
right
;
font-size
:
1rem
;
margin-left
:
0.4rem
;
}
.thebelab-button.thebelab-restart-button
{
...
...
This diff is collapsed.
Click to expand it.
theme/main.html
+
4
−
1
View file @
76b8e99f
...
...
@@ -48,7 +48,10 @@
{% block content %}
{% if 'thebelab-code' in super() %}
{{ super() | replace('
</h1>
', '
</h1>
<button
id=
"thebelab-activate-button"
class=
"thebelab-button"
onclick=
"initThebelab()"
>
Make live
</button>
', count=1) }}
<a
title=
"Make live"
id=
"thebelab-activate-button"
class=
"md-icon md-content__icon"
onclick=
"initThebelab()"
>
<i
class=
"fas fa-magic"
></i>
</a>
{{ super() }}
{% else %}
{{ super() }}
{% endif %}
...
...
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