diff --git a/src/index.html b/src/index.html index 0c2641a..575cefb 100644 --- a/src/index.html +++ b/src/index.html @@ -106,7 +106,7 @@
Console (0)
- + diff --git a/src/script.js b/src/script.js index 18773e2..1ebcf77 100644 --- a/src/script.js +++ b/src/script.js @@ -1318,16 +1318,22 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl scope.toggleConsole = function () { consoleEl.classList.toggle('is-minimized'); + trackEvent('ui', 'consoleToggle'); }; scope.clearConsole = function () { scope.consoleCm.setValue(''); logCount = 0; logCountEl.textContent = logCount; }; + scope.onClearConsoleBtnClick = function () { + scope.clearConsole(); + trackEvent('ui', 'consoleClearBtnClick'); + }; scope.evalConsoleExpr = function (e) { // Clear console on CTRL + L if (((e.which === 76 || e.which === 12) && e.ctrlKey)) { scope.clearConsole(); + trackEvent('ui', 'consoleClearKeyboardShortcut'); } else if (e.which === 13) { window.onMessageFromConsole('> ' + e.target.value); @@ -1337,6 +1343,7 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl /* eslint-enable no-underscore-dangle */ e.target.value = ''; + trackEvent('fn', 'evalConsoleExpr'); } }; window.onMessageFromConsole = function() { @@ -1574,6 +1581,7 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl var target = e.target; if (target.classList.contains('js-console__header')) { scope.toggleConsole(); + trackEvent('ui', 'consoleToggleDblClick'); } if (target.classList.contains('js-code-wrap__header')) { var codeWrapParent = target.parentElement; diff --git a/src/style.css b/src/style.css index 507a441..f785454 100644 --- a/src/style.css +++ b/src/style.css @@ -828,7 +828,8 @@ li.CodeMirror-hint-active { z-index: 1; /* bring above iframe */ position: absolute; bottom: 0; - height: 30vh; + min-height: 80px; + height: 35vh; left: 0; right: 0; transform: translateY(0);