Skip to content
Snippets Groups Projects

Add live code editing using thebelab

Merged Hugo Kerstens requested to merge thebelab into master
All threads resolved!
Files
8
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
Loading