summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsajolida <sajolida@pimienta.org>2020-10-22 00:51:48 +0000
committersajolida <sajolida@pimienta.org>2020-10-22 00:51:48 +0000
commite1621fa27cb1fce78d58cd2b713057e7a1364777 (patch)
tree647b50cf06c9302e868e2e8a68de62712d927810
parentd76303aa84f15c65a82261a7c5630b99b892a712 (diff)
Group verification codeweb/16128-verification-on-page
-rw-r--r--wiki/src/install/inc/js/download.js50
1 files changed, 25 insertions, 25 deletions
diff --git a/wiki/src/install/inc/js/download.js b/wiki/src/install/inc/js/download.js
index 6572b08..caed2ee 100644
--- a/wiki/src/install/inc/js/download.js
+++ b/wiki/src/install/inc/js/download.js
@@ -225,31 +225,6 @@ document.addEventListener("DOMContentLoaded", function() {
}
}
- // Retry after error during verification
- document.getElementById("retry-json").onclick = function(e) { resetVerificationResult(); showVerifyButton(); }
- document.getElementById("retry-image").onclick = function(e) { resetVerificationResult(); showVerifyButton(); }
-
- /* No JavaScript */
-
- hide(document.getElementById("no-js"));
-
- // Display floating-toggleable-links to prevent people without JS to
- // either always see the toggles or have broken toggle links.
- var links = document.getElementsByClassName("floating-toggleable-link");
- for (let i = 0; i < links.length; i++) {
- show(links[i]);
- }
-
- toggleContinueLink("skip-download");
-
- /* Internet Explorer */
-
- if ( navigator.userAgent.indexOf('MSIE') > -1 || navigator.userAgent.indexOf('Trident') > -1 ) {
- show(document.getElementById("ie"));
- } else {
- showVerifyButton();
- }
-
async function readFile(file) {
var CHUNK_SIZE = 2 * 1024 *1024;
var offset = 0;
@@ -288,6 +263,31 @@ document.addEventListener("DOMContentLoaded", function() {
});
}
+ // Retry after error during verification
+ document.getElementById("retry-json").onclick = function(e) { resetVerificationResult(); showVerifyButton(); }
+ document.getElementById("retry-image").onclick = function(e) { resetVerificationResult(); showVerifyButton(); }
+
+ /* No JavaScript */
+
+ hide(document.getElementById("no-js"));
+
+ // Display floating-toggleable-links to prevent people without JS to
+ // either always see the toggles or have broken toggle links.
+ var links = document.getElementsByClassName("floating-toggleable-link");
+ for (let i = 0; i < links.length; i++) {
+ show(links[i]);
+ }
+
+ toggleContinueLink("skip-download");
+
+ /* Internet Explorer */
+
+ if ( navigator.userAgent.indexOf('MSIE') > -1 || navigator.userAgent.indexOf('Trident') > -1 ) {
+ show(document.getElementById("ie"));
+ } else {
+ showVerifyButton();
+ }
+
// To debug the display of the different states:
// showVerifyingDownload('test.img');
// showVerificationProgress('50');