Skip to content
Snippets Groups Projects
Commit b2a457b6 authored by Hugo Kerstens's avatar Hugo Kerstens
Browse files

Keep showing magic wand button

parent 7887bc07
No related branches found
No related tags found
1 merge request!47Add live code editing using thebelab
function initThebelab() {
let activateButton = document.getElementById("thebelab-activate-button");
if (activateButton.classList.contains('thebelab-active')) {
return;
}
thebelab.bootstrap();
// Run all thebelab cells marked as initialization code
setTimeout(function() {
......@@ -9,6 +13,5 @@ function initThebelab() {
runButton.click();
}
}, 500)
let activateButton = document.getElementById("thebelab-activate-button");
activateButton.parentElement.removeChild(activateButton);
activateButton.classList.add('thebelab-active')
}
\ No newline at end of file
......@@ -41,6 +41,10 @@
margin-left: 0.4rem;
}
#thebelab-activate-button.thebelab-active {
color: rgb(83, 109, 254);
}
.thebelab-button.thebelab-restart-button {
display: none;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment