commit 89d70c9a131d619e2df72eb2d44de07b9c9292a1 Author: Nicolas Vigier boklm@torproject.org Date: Thu Jul 27 20:14:54 2017 +0200
Don't use minified version of js/dlpage01.js for now
js/dlpage01.js has been modified, so js/dlpage01.min.js should be updated. However I don't know how to generate this file, so let's not use the minified version for now. --- include/dlhead.wmi | 2 +- js/dlpage01.min.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/dlhead.wmi b/include/dlhead.wmi index f3fa8891..7ae47f2a 100644 --- a/include/dlhead.wmi +++ b/include/dlhead.wmi @@ -47,7 +47,7 @@ <script type="text/javascript" src="../js/jquery.ba-bbq.min.js"> /* Source: https://raw.github.com/cowboy/jquery-bbq/v1.2.1/jquery.ba-bbq.js */ </script> - <script type="text/javascript" src="../js/dlpage01.min.js"> + <script type="text/javascript" src="../js/dlpage01.js"> # /* Displays detected section */ </script> <script async type="text/javascript" src="../js/jquery.accordion.min.js"> diff --git a/js/dlpage01.min.js b/js/dlpage01.min.js deleted file mode 100644 index 005cced9..00000000 --- a/js/dlpage01.min.js +++ /dev/null @@ -1 +0,0 @@ -$(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+"-osx6 4_"+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("has hchange")}); \ No newline at end of file
tor-commits@lists.torproject.org