Commit 3300a604 authored by sajolida's avatar sajolida
Browse files

Allow users to verify without downloading first (#14961)

parent 430b4ce9
......@@ -247,6 +247,12 @@ document.addEventListener("DOMContentLoaded", function() {
resetVerificationResult();
}
// Display "Verify with your browser" when "I already" is clicked
document.getElementById("already-downloaded").onclick = function() {
toggleDirectBitTorrent("direct");
resetVerificationResult();
}
// Reset verification when downloading again after failure
document.getElementById("download-iso-again").onclick = function() {
toggleDirectBitTorrent("direct");
......
......@@ -9,6 +9,7 @@
<div class="supported-browser no-js">
<h3><span class="step-number">1.</span>Download Tails</h3>
<a href="[[!inline pages="inc/stable_amd64_iso_url" raw="yes" sort="age"]]" id="download-iso" class="use-mirror-pool btn btn-primary indent">Download Tails 3.1 ISO image (1.2 GB)</a>
<p class="indent"><a id="already-downloaded">I already downloaded Tails 3.1</a></p>
<div id="step-verify-direct">
<h3><span class="step-number">2.</span>Verify your download using your browser</h3>
......
......@@ -95,3 +95,7 @@ span.step-number {
right: 7px;
top: 5px;
}
#already-downloaded {
cursor: pointer;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment