From ab1c9e27dc1f646be04810eb447bdd14265d0705 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Thu, 3 Aug 2017 10:57:54 +0000 Subject: [PATCH] Added more loading messages --- src/web/html/index.html | 15 ++++++++++----- src/web/stylesheets/preloader.css | 4 ++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/web/html/index.html b/src/web/html/index.html index 34c0958a..294b41cc 100755 --- a/src/web/html/index.html +++ b/src/web/html/index.html @@ -48,10 +48,15 @@ "Initialising Skynet...", "[REDACTED]", "Downloading more RAM...", - "Loading more loading messages...", "Ordering 1s and 0s...", "Navigating neural network...", - "Importing machine learning..." + "Importing machine learning...", + "Issuing Alice and Bob one-time pads...", + "Mining bitcoin cash...", + "Generating key material by trying to escape vim...", + "for i in range(additional): Pylon()", + "(creating unresolved tension...", + "Symlinking emacs and vim to ed...", ]; // Shuffle array using Durstenfeld algorithm @@ -62,19 +67,19 @@ loadingMsgs[j] = temp; } - // Show next loading message then move it to the end of the array + // Show next loading message and move it to the end of the array function changeLoadingMsg() { const msg = loadingMsgs.shift(); + loadingMsgs.push(msg); try { const el = document.getElementById("preloader-msg"); el.className = "loading"; // Causes CSS transition on first message el.innerHTML = msg; } catch (err) {} // Ignore errors if DOM not yet ready - loadingMsgs.push(msg); } changeLoadingMsg(); - window.loadingMsgsInt = setInterval(changeLoadingMsg, (Math.random() * 1000) + 1000); + window.loadingMsgsInt = setInterval(changeLoadingMsg, (Math.random() * 2000) + 1500); <% if (!htmlWebpackPlugin.options.inline) { %>