Commit 591fe397 authored by Hiro's avatar Hiro 🏄
Browse files

Fix thank you page

parent 8accf156
_template: thank-you.html
_template: layout.html
---
section: the tor project
---
......
......@@ -92,18 +92,5 @@
}, 500)
}
</script>
<script type="text/javascript">
var os = navigator.platform;
if (os.indexOf("Linux") >=0) {
$("#linux").attr('selected', true);;
}else if(os.indexOf("Windows") >=0) {
$("#windows").attr('selected', true);;
}else if(os.indexOf("Mac") >=0) {
$("#osx").attr('selected', true);;
}else if(os.indexOf("Android") >=0) {
$("#Android").attr('selected', true);;
}else{
$("#platform").attr('selected', true);;
}
</script>
{% include 'script-download.html' %}
</div>
......@@ -22,7 +22,7 @@
{% else %}
{% set download_link = '#android' %}
{% endif %}
<a href="{{ download_link }}">
<a class="downloadLink" href="{{ download_link }}">
<i class="fab fa-{{ id }} text-light"></i>
</a>
</div>
......
......@@ -8,7 +8,7 @@
{% set sig_link_64 = download_link_64 + '.asc' %}
{% set sig_link_32 = download_link_32 + '.asc' %}
<a href="{{ download_link_32 }}">32-bit</a> (<a href="{{ sig_link_32 }}">sig</a>) / <a href="{{ download_link_32 }}">64-bit</a> (<a href="{{ sig_link_64 }}">sig<a/>)
<a class="downloadLink" href="{{ download_link_32 }}">32-bit</a> (<a href="{{ sig_link_32 }}">sig</a>) / <a href="{{ download_link_32 }}">64-bit</a> (<a href="{{ sig_link_64 }}">sig<a/>)
{% endmacro %}
{% macro render_mac(version, alt) %}
......@@ -19,7 +19,7 @@
{% set download_link = download_prefix + 'TorBrowser-' + version + '-osx64' + '_' + alt + '.dmg' %}
{% set sig_link = download_link + '.asc' %}
<a href="{{ download_link }}">64-bit</a> (<a href="{{ sig_link }}">sig</a>)
<a class="downloadLink" href="{{ download_link }}">64-bit</a> (<a href="{{ sig_link }}">sig</a>)
{% endmacro %}
{% macro render_linux(version, alt) %}
......@@ -32,5 +32,5 @@
{% set sig_link_64 = download_link_64 + '.asc' %}
{% set sig_link_32 = download_link_32 + '.asc' %}
<a href="{{ download_link_32 }}">32-bit</a> (<a href="{{ sig_link_32 }}">sig</a>) / <a href="{{ download_link_32 }}">64-bit</a> (<a href="{{ sig_link_64 }}">sig<a/>)
<a class="downloadLink" href="{{ download_link_32 }}">32-bit</a> (<a href="{{ sig_link_32 }}">sig</a>) / <a href="{{ download_link_32 }}">64-bit</a> (<a href="{{ sig_link_64 }}">sig<a/>)
{% endmacro %}
<script>
$(".downloadLink").click(
function(e) {
e.preventDefault();
//open download link in new page
window.open( $(this).attr("href") );
//redirect current page to success page
window.location="/thank-you";
window.focus();
}
);
</script>
......@@ -9,7 +9,7 @@
<div class="container">
<div class="row">
<div class="col-md-4">
<h4>{ _('Sign up for Tor News and get updates and opportunities from across the organization and community.') }}</h4>
<h4>{{ _('Sign up for Tor News and get updates and opportunities from across the organization and community.') }}</h4>
</div>
<div class="col-md-4">
<h4>{{ _('Run a relay to make the network faster and more decentralized.') }}</h4>
......
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