Commit 0b558939 authored by yann300's avatar yann300

standard code

parent ee387794
...@@ -799,7 +799,7 @@ var run = function () { ...@@ -799,7 +799,7 @@ var run = function () {
config.set('autoCompile', autoCompile) config.set('autoCompile', autoCompile)
}) })
var css = csjs` var cssCompilationWarning = csjs`
.compilationWarning extends ${styles.warningTextBox} { .compilationWarning extends ${styles.warningTextBox} {
margin-top: 1em; margin-top: 1em;
margin-left: 0.5em; margin-left: 0.5em;
...@@ -810,7 +810,7 @@ var run = function () { ...@@ -810,7 +810,7 @@ var run = function () {
$('#warnCompilationSlow').html('') $('#warnCompilationSlow').html('')
$('#warnCompilationSlow').hide() $('#warnCompilationSlow').hide()
if (speed > 1000) { if (speed > 1000) {
document.querySelector('#warnCompilationSlow').className=css.compilationWarning document.querySelector('#warnCompilationSlow').className = cssCompilationWarning.compilationWarning
$('#warnCompilationSlow').show() $('#warnCompilationSlow').show()
$('#warnCompilationSlow').html(warnMsg.replace('{X}', speed)) $('#warnCompilationSlow').html(warnMsg.replace('{X}', speed))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment