"use strict";
(function(){
var uri_base, environment, devel_env; // filled on page load from an HTML attribute
+var start_time = Date.now();
+
var ui_icon_class_re = new RegExp('\\bui-icon-\\S+\\b');
var uri_id_re = new RegExp('/(\\d+)$');
var lists_version = -1;
}
function load_lists() {
$.get(uri_base + '/api/v1/list')
+ .always(()=>{
+ var splash = $('#splash');
+ if (splash.length) {
+ var dur = splash.css('transition-duration');
+ if (dur && dur.endsWith('s')) {
+ dur = 1000 * parseFloat(dur.substring(0, dur.length-1));
+ }
+ else
+ dur = 1000;
+
+ var now = Date.now();
+ window.setTimeout(() => {
+ splash.addClass('done');
+ debug('scheduling splash removal in '+dur+'ms');
+ window.setTimeout(()=>{ splash.remove(); }, dur);
+ },
+ Math.max(0, 500 - (now - start_time))
+ );
+ }
+ })
.done(data => {
lists_version = data.lists_version;