1
|
|
-$(function(){$(".easy").css("display","none");$(".lang").css("display","block");$(".lang-alt").css("display","none");$(".expander").css("display","block");$(".sidenav").css("display","none")});function OScheck(){var a=$.client.os;if(a=="Linux"){$(".easy.linux").css("display","block")}else{if(a=="Windows"){$(".easy.windows").css("display","block")}else{if(a=="Mac"){$(".easy.mac").css("display","block")}else{if(a=="Android"){$(".easy.android").css("display","block")}else{$(".easy").css("display","block")}}}}}$(function(){OScheck()});function resetAll(){var c=document.forms;var b=c.length-1;for(var a=0;a<b;a++){c[a].reset()}}function updateLang(){var e=$(this);var d=e.attr("id");var f=e.val();var a=JSON.parse($("#version-data").text());var c="../dist/torbrowser/"+a.torbrowserbundledir+"/";var b={"win-tbb":c+"torbrowser-install-"+a.torbrowserbundle+"_"+f+".exe","osx-tbb":c+"TorBrowser-"+a.torbrowserbundleosx64+"-osx64_"+f+".dmg","osx-tbb64":c+"TorBrowser-"+a.torbrowserbundleosx64+"-osx64_"+f+".dmg","lin-tbb32":c+"tor-browser-linux32-"+a.torbrowserbundlelinux32+"_"+f+".tar.xz","lin-tbb64":c+"tor-browser-linux64-"+a.torbrowserbundlelinux64+"_"+f+".tar.xz"};$("."+d).attr("href",b[d]);$("."+d+"-sig").attr("href",b[d]+".asc")}$(function(){$(".lang").ready(updateLang);$(".lang").change(updateLang);$(".lang").css("display","block")});$(document).ready(function(){$(".onload").ready(resetAll);$(".jump").click(function(e){var b=this.href;var f=b.split("#");var a=f[1];var d=$("#"+a).offset();var c=d.top});$(window).bind("hashchange",function(b){var a=$.param.fragment();if(a=="windows"|a=="mac"|a=="linux"|a=="android"){$(".easy").css("display","none")}if(a=="windows"){$(".easy.windows").css("display","block")}else{if(a=="mac"){$(".easy.mac").css("display","block")}else{if(a=="linux"){$(".easy.linux").css("display","block")}else{if(a=="android"){$(".easy.android").css("display","block")}else{$(".easy").css("display","none");$(function(){OScheck()})}}}}});$(window).trigger("hashchange")});
|