From 06af0974cb0de6b60f81d82d914ee191632236d9 Mon Sep 17 00:00:00 2001 From: Marc Feeley Date: Wed, 12 Aug 2020 12:36:05 -0400 Subject: [PATCH] Use codeBoot bundle --- include/actions.js | 2 +- include/codeboot.js | 59 ++++++++++++++++--------------------- include/editors.js | 2 +- include/lang/py/pyinterp.js | 2 +- index.html | 49 ++---------------------------- 5 files changed, 30 insertions(+), 84 deletions(-) diff --git a/include/actions.js b/include/actions.js index d6e60aef..2ec7aaf6 100644 --- a/include/actions.js +++ b/include/actions.js @@ -778,7 +778,7 @@ CodeBootExecPointBubble.prototype.attachTo = function (elem, html) { var tip = tippy(elem, { appendTo: bubble.vm.root, allowHTML: true, - placement: 'bottom-start', + placement: 'bottom-end', maxWidth: 9999, trigger: 'manual', hideOnClick: false, diff --git a/include/codeboot.js b/include/codeboot.js index 18370f28..28a08fa4 100644 --- a/include/codeboot.js +++ b/include/codeboot.js @@ -134,8 +134,6 @@ function CodeBootVM(cb, root, opts) { vm.lastExecEvent = 'stop'; - //vm.alerts = undefined; - vm.repl = null; vm.lastAST = null; @@ -165,9 +163,9 @@ function CodeBootVM(cb, root, opts) { vm.setLang(id_and_level); - vm.initRoot(); + var initLast = vm.initRoot(); - //vm.alerts = document.getElementById('alerts'); + vm.initUI(); vm.setLangUI(); @@ -196,6 +194,8 @@ function CodeBootVM(cb, root, opts) { ? opts.animationSpeed : (root.getAttribute('data-cb-animation-speed') || 'normal')); + + initLast(); }; CodeBootVM.prototype.initUI = function () { @@ -539,7 +539,7 @@ CodeBootVM.prototype.consoleHTML = function (display) { var vm = this; return '\ -
\ + -