standard code

pull/1/head
yann300 8 years ago
parent ee3877944e
commit 0b558939a8
  1. 4
      src/app.js

@ -799,7 +799,7 @@ var run = function () {
config.set('autoCompile', autoCompile)
})
var css = csjs`
var cssCompilationWarning = csjs`
.compilationWarning extends ${styles.warningTextBox} {
margin-top: 1em;
margin-left: 0.5em;
@ -810,7 +810,7 @@ var run = function () {
$('#warnCompilationSlow').html('')
$('#warnCompilationSlow').hide()
if (speed > 1000) {
document.querySelector('#warnCompilationSlow').className=css.compilationWarning
document.querySelector('#warnCompilationSlow').className = cssCompilationWarning.compilationWarning
$('#warnCompilationSlow').show()
$('#warnCompilationSlow').html(warnMsg.replace('{X}', speed))
}

Loading…
Cancel
Save