Commit 1c4eca46 authored by yann300's avatar yann300

highlight contract tab

parent 0b558939
...@@ -809,10 +809,12 @@ var run = function () { ...@@ -809,10 +809,12 @@ var run = function () {
compiler.event.register('compilationDuration', (speed) => { compiler.event.register('compilationDuration', (speed) => {
$('#warnCompilationSlow').html('') $('#warnCompilationSlow').html('')
$('#warnCompilationSlow').hide() $('#warnCompilationSlow').hide()
$('#header #menu .settingsView').css('color', '')
if (speed > 1000) { if (speed > 1000) {
document.querySelector('#warnCompilationSlow').className = cssCompilationWarning.compilationWarning document.querySelector('#warnCompilationSlow').className = cssCompilationWarning.compilationWarning
$('#warnCompilationSlow').show() $('#warnCompilationSlow').show()
$('#warnCompilationSlow').html(warnMsg.replace('{X}', speed)) $('#warnCompilationSlow').html(warnMsg.replace('{X}', speed))
$('#header #menu .settingsView').css('color', '#FF8B8B')
} }
}) })
......
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