Commit 818ce9e4 authored by sajolida's avatar sajolida
Browse files

Add back BitTorrent as alternative download

parent 782536c7
...@@ -123,6 +123,7 @@ document.addEventListener("DOMContentLoaded", function() { ...@@ -123,6 +123,7 @@ document.addEventListener("DOMContentLoaded", function() {
} }
function showAnotherMirror() { function showAnotherMirror() {
hide(document.getElementById("bittorrent"));
show(document.getElementById("try-another-mirror")); show(document.getElementById("try-another-mirror"));
} }
...@@ -193,6 +194,12 @@ document.addEventListener("DOMContentLoaded", function() { ...@@ -193,6 +194,12 @@ document.addEventListener("DOMContentLoaded", function() {
} }
} }
// Display BitTorrent verification tip when BitTorrent download is clicked
document.getElementById("bittorrent-download").onclick = function(e) {
hide(document.getElementById("javascript-verification-tip"));
show(document.getElementById("bittorrent-verification-tip"));
}
// Reset verification when downloading again after failure // Reset verification when downloading again after failure
document.getElementById("download-img-again").onclick = function(e) { downloadAgain(e, this); } document.getElementById("download-img-again").onclick = function(e) { downloadAgain(e, this); }
document.getElementById("download-iso-again").onclick = function(e) { downloadAgain(e, this); } document.getElementById("download-iso-again").onclick = function(e) { downloadAgain(e, this); }
......
...@@ -26,6 +26,13 @@ were solved, and known issues that have already been identified.</p> ...@@ -26,6 +26,13 @@ were solved, and known issues that have already been identified.</p>
<a href="[[!inline pages="inc/stable_amd64_iso_url" raw="yes" sort="age"]]" id="download-iso" class="use-mirror-pool-on-retry button inline-block indent">Download Tails [[!inline pages="inc/stable_amd64_version" raw="yes" sort="age"]] ISO image (<span class="remove-extra-space">[[!inline pages="inc/stable_amd64_iso_size" raw="yes" sort="age"]]</span>)</a> <a href="[[!inline pages="inc/stable_amd64_iso_url" raw="yes" sort="age"]]" id="download-iso" class="use-mirror-pool-on-retry button inline-block indent">Download Tails [[!inline pages="inc/stable_amd64_version" raw="yes" sort="age"]] ISO image (<span class="remove-extra-space">[[!inline pages="inc/stable_amd64_iso_size" raw="yes" sort="age"]]</span>)</a>
</div> </div>
<div id="download-minor"> <div id="download-minor">
<p id="bittorrent" class="indent inline-block">
or download using
<span id="bittorrent-download">
<a href="[[!inline pages="inc/stable_amd64_img_torrent_url" raw="yes" sort="age"]]" class="usb upgrade download-only-img">BitTorrent</a>
<a href="[[!inline pages="inc/stable_amd64_iso_torrent_url" raw="yes" sort="age"]]" class="dvd vm download-only-iso">BitTorrent</a>
</span>
</p>
<p id="try-another-mirror" class="indent">If the download fails, try to <p id="try-another-mirror" class="indent">If the download fails, try to
<a href="[[!inline pages="inc/stable_amd64_img_url" raw="yes" sort="age"]]" class="usb upgrade download-only-img">download from another mirror.</a> <a href="[[!inline pages="inc/stable_amd64_img_url" raw="yes" sort="age"]]" class="usb upgrade download-only-img">download from another mirror.</a>
<a href="[[!inline pages="inc/stable_amd64_iso_url" raw="yes" sort="age"]]" class="dvd vm download-only-iso">download from another mirror.</a> <a href="[[!inline pages="inc/stable_amd64_iso_url" raw="yes" sort="age"]]" class="dvd vm download-only-iso">download from another mirror.</a>
...@@ -35,7 +42,7 @@ were solved, and known issues that have already been identified.</p> ...@@ -35,7 +42,7 @@ were solved, and known issues that have already been identified.</p>
<div id="step-verify"> <div id="step-verify">
<h3><span class="step-number"><span class="usb upgrade">1.</span>2</span>Verify your download using your browser</h3> <h3><span class="step-number"><span class="usb upgrade">1.</span>2</span>Verify your download using your browser</h3>
<div class="caution indent"> <div id="javascript-verification-tip" class="caution indent">
<p><b>For your security,<br/>always verify your download!</b></p> <p><b>For your security,<br/>always verify your download!</b></p>
<p class="floating-toggleable-link why-verify-link">[[!toggle id="why-verify-supported" text="Why?"]]</p> <p class="floating-toggleable-link why-verify-link">[[!toggle id="why-verify-supported" text="Why?"]]</p>
<div id="why-verify-supported" class="floating-toggleable"> <div id="why-verify-supported" class="floating-toggleable">
...@@ -54,6 +61,10 @@ were solved, and known issues that have already been identified.</p> ...@@ -54,6 +61,10 @@ were solved, and known issues that have already been identified.</p>
"""]] """]]
</div> </div>
</div> </div>
<div id="bittorrent-verification-tip" class="indent block">
<p>Your BitTorrent client will automatically verify your download when it completes.</p>
<p>The verification below is optional for a BitTorrent download.</p>
</div>
<div id="verification" class="indent block"> <div id="verification" class="indent block">
<div class="no-js"> <div class="no-js">
<p>You seem to have JavaScript disabled. To use the <p>You seem to have JavaScript disabled. To use the
......
...@@ -123,15 +123,12 @@ span.step-number { ...@@ -123,15 +123,12 @@ span.step-number {
right: 1em; right: 1em;
} }
.what-is-bittorrent-link { #bittorrent-verification-tip {
position: absolute; display: none;
top: 2.4em;
right: 1em;
} }
html[dir="rtl"] .what-is-bittorrent-link { left: 1em; }
#download-minor { #download-minor {
margin-top: 0.5em; margin-top: 1.5em;
} }
#try-another-mirror { #try-another-mirror {
......
Markdown is supported
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