diff --git a/index.html b/index.html index 6ae5bf78a3..fc74f16760 100644 --- a/index.html +++ b/index.html @@ -28,10 +28,6 @@ && criticalFiles.some( function(file) { return fileRef.indexOf(file) !== -1 })) { window.onload = function() { - document.body.innerHTML - = "The application failed to load, missing file: " - + fileRef; - // The whole complex part below implements page reloads with // "exponential backoff". The retry attempt is passes as // "rCounter" query parameter @@ -63,9 +59,28 @@ var delay = Math.pow(2, retryCount) * 2000; - document.body.innerHTML += - "
The page will reload shortly... " - + "(reload)"; + document.body.innerHTML + = "
" + + "The application failed to load." + + "more" + + "
" + fileRef + "
" + + "
" + + "The page should reload shortly... " + + "reload" + + "
"; + document.getElementById("showMore") + .addEventListener('click', function () { + document + .getElementById("moreInfo") + .setAttribute("style", "display: block;"); + }); window.setTimeout( function () { window.location.replace(href); }, delay);