Replaced loading animation with animated Bombe SVG

This commit is contained in:
n1474335 authored and s2224834 committed 2019-01-16 17:54:55 +00:00
1 parent ffc4b0a0a8
commit 02b9dbdee9
6 files changed
+349 -66

No files matched your search

+8 -2
View File
@@ -81,7 +81,11 @@
if (!el.classList.contains("loading"))
el.classList.add("loading"); // Causes CSS transition on first message
el.innerHTML = msg;
} catch (err) {} // Ignore errors if DOM not yet ready
} catch (err) {
// This error was likely caused by the DOM not being ready yet,
// so we wait another second and then try again.
setTimeout(changeLoadingMsg, 1000);
}
}
changeLoadingMsg();
@@ -138,7 +142,9 @@
<body>
<!-- Preloader overlay -->
<div id="loader-wrapper">
<div id="preloader" class="loader"></div>
<div id="preloader" class="loader">
<object id="bombe" data="<%- require('../static/images/bombe.svg') %>" width="400"></object>
</div>
<div id="preloader-msg" class="loading-msg"></div>
<div id="preloader-error" class="loading-error"></div>
</div>