Commit eff870b8 authored by Mathieu Giraud's avatar Mathieu Giraud

index.html, js/conf.js.sample, js/main.js: display a static warning message...

index.html, js/conf.js.sample, js/main.js: display a static warning message when 'config.alert' is defined

See #2348.
parent 10586e8c
......@@ -277,6 +277,7 @@
</div>
</div>
<div class="menu" id="alert" style="float: right;"></div>
<div id="logo" style="float: right;" onclick="console.log({'type': 'popup', 'default':'welcome'})">Vidjil <span class='logo'>(beta)</span></div>
<div class="menu" style="float: right" onmouseover="showSelector('helpSelector');"> help
......
......@@ -49,4 +49,10 @@ var config = {
/* Used for the standalone segmenter page */
"segmenter_address" : "//db.vidjil.org/vidjil/segmenter",
/****************
* Static alerts
*/
// "alert": "Rescue server",
}
......@@ -90,6 +90,11 @@ try {
this.db.log_error(err)
}
if (typeof config.alert !== 'undefined') {
$("#top-container").addClass("alert")
$("#alert").append(config.alert)
}
console.log("=== main.js finished ===");
var timeout;
......
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