mirror of
https://github.com/torproject/webwml.git
synced 2024-11-30 13:10:33 +00:00
patch from jmtodaro for everything in ticket 4590.
This commit is contained in:
parent
944bf3aa8a
commit
87c425b7a5
@ -658,7 +658,7 @@ table tr img {
|
||||
}
|
||||
|
||||
.easy .package h2 {
|
||||
font-size: 28px;
|
||||
font-size: 24px;
|
||||
font-weight: normal;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 5px;
|
||||
|
@ -33,7 +33,7 @@ you are used to. Please read the <a href="#warning">full list of warnings</a> fo
|
||||
<!-- START DOWNLOADS -->
|
||||
<!-- START DOWNLOADS -->
|
||||
<!-- START WINDOWS -->
|
||||
<div class="easy windows">
|
||||
<div id="windows" class="easy windows">
|
||||
<div class="package" style="padding-top: 13px; border-top: 0px;">
|
||||
<form class="downloads">
|
||||
<a class="button win-tbb" href="../dist/torbrowser/tor-browser-<version-torbrowserbundle>_<lang>.exe"><span class="strong">Download</span><span class="normal"><button-win-tbb32></span></a>
|
||||
@ -50,11 +50,11 @@ you are used to. Please read the <a href="#warning">full list of warnings</a> fo
|
||||
<em>Version <version-torbrowserbundle> - Windows 7, Vista, and XP</em>
|
||||
<p>Everything you need to safely browse the Internet. This package requires no installation. Just extract it and run. <a href="<page projects/torbrowser>">Learn more »</a></p>
|
||||
</div>
|
||||
<p class="alt-dl">Not Using Windows? Download for <a class="mac-alt" href="../dist/torbrowser/osx/TorBrowser-<version-torbrowserbundleosx32>-osx-i386-<lang>.zip">Mac</a>, <a class="lin-alt" href="../dist/torbrowser/linux/tor-browser-gnu-linux-i686-<version-torbrowserbundlelinux32>-dev-<lang>.tar.gz">Linux</a>, or <a class="lin-alt64" href="../dist/torbrowser/linux/tor-browser-gnu-linux-x86_64-<version-torbrowserbundlelinux64>-dev-<lang>.tar.gz">Linux 64-bit</a></p>
|
||||
<p class="alt-dl">Not Using Windows? Download for <a href="#mac">Mac</a> or <a href="#linux">Linux</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- START MAC -->
|
||||
<div class="easy mac">
|
||||
<div id="mac" class="easy mac">
|
||||
<div class="package" style="padding-top: 13px; border-top: 0px;">
|
||||
<form class="downloads">
|
||||
<a class="button osx-tbb" href="../dist/torbrowser/osx/TorBrowser-<version-torbrowserbundleosx32>-osx-i386-<lang>.zip"><span class="strong">Download</span><span class="normal"><button-osx-tbb32></span></a>
|
||||
@ -71,7 +71,7 @@ you are used to. Please read the <a href="#warning">full list of warnings</a> fo
|
||||
<em>Version <version-torbrowserbundleosx32> - OS X</em>
|
||||
<p>Everything you need to safely browse the Internet. This package requires no installation. Just extract it and run. <a href="<page projects/torbrowser>">Learn more »</a></p>
|
||||
</div>
|
||||
<p class="alt-dl">Not Using Mac? Download for <a class="win-alt" href="../dist/torbrowser/tor-browser-<version-torbrowserbundle>_<lang>.exe">Windows</a>, <a class="lin-alt" href="../dist/torbrowser/linux/tor-browser-gnu-linux-i686-<version-torbrowserbundlelinux32>-dev-<lang>.tar.gz">Linux</a>, or <a class="lin-alt64" href="../dist/torbrowser/linux/tor-browser-gnu-linux-x86_64-<version-torbrowserbundlelinux64>-dev-<lang>.tar.gz">Linux 64-bit</a></p>
|
||||
<p class="alt-dl">Not Using Mac? Download for <a href="#windows">Windows</a> or <a href="#linux">Linux</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- START MAC 64-->
|
||||
@ -92,11 +92,11 @@ you are used to. Please read the <a href="#warning">full list of warnings</a> fo
|
||||
<em>Version <version-torbrowserbundleosx64> - OS X (64-Bit)</em>
|
||||
<p>Everything you need to safely browse the Internet. This package requires no installation. Just extract it and run. <a href="<page projects/torbrowser>">Learn more »</a></p>
|
||||
</div>
|
||||
<p class="alt-dl">Not Using Mac? Download for <a class="win-alt64" href="../dist/torbrowser/tor-browser-<version-torbrowserbundle>_<lang>.exe">Windows</a>, <a class="lin-alt" href="../dist/torbrowser/linux/tor-browser-gnu-linux-i686-<version-torbrowserbundlelinux32>-dev-<lang>.tar.gz">Linux</a>, or <a class="lin-alt64" href="../dist/torbrowser/linux/tor-browser-gnu-linux-x86_64-<version-torbrowserbundlelinux64>-dev-<lang>.tar.gz">Linux 64-bit</a></p>
|
||||
<p class="alt-dl">Not Using Mac? Download for <a href="#windows">Windows</a> or <a href="#linux">Linux</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- START LINUX -->
|
||||
<div class="easy linux">
|
||||
<div id="linux" class="easy linux">
|
||||
<div class="package" style="padding-top: 13px; border-top: 0px;">
|
||||
<form class="downloads">
|
||||
<a class="button lin-tbb32" href="../dist/torbrowser/linux/tor-browser-gnu-linux-i686-<version-torbrowserbundlelinux32>-dev-<lang>.tar.gz"><span class="strong">Download</span><span class="normal"><button-lin-tbb32></span></a>
|
||||
@ -113,7 +113,7 @@ you are used to. Please read the <a href="#warning">full list of warnings</a> fo
|
||||
<em>Version <version-torbrowserbundlelinux32> - Linux, Unix, BSD</em>
|
||||
<p>Everything you need to safely browse the Internet. This package requires no installation. Just extract it and run. <a href="<page projects/torbrowser>">Learn more »</a></p>
|
||||
</div>
|
||||
<p class="alt-dl">Not Using Linux? Download for <a class="mac-alt" href="../dist/torbrowser/osx/TorBrowser-<version-torbrowserbundleosx32>-osx-i386-<lang>.zip">Mac</a> or <a class="win-alt" href="../dist/torbrowser/tor-browser-<version-torbrowserbundle>_<lang>.exe">Windows</a></p>
|
||||
<p class="alt-dl">Not Using Linux? Download for <a href="#mac">Mac</a> or <a href="#windows">Windows</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- START LINUX 64-Bit -->
|
||||
@ -134,7 +134,7 @@ you are used to. Please read the <a href="#warning">full list of warnings</a> fo
|
||||
<em>Version <version-torbrowserbundlelinux32> - Linux, Unix, BSD (64-Bit)</em>
|
||||
<p>Everything you need to safely browse the Internet. This package requires no installation. Just extract it and run. <a href="<page projects/torbrowser>">Learn more »</a></p>
|
||||
</div>
|
||||
<p class="alt-dl">Not Using Linux? Download for <a class="mac-alt64" href="../dist/torbrowser/osx/TorBrowser-<version-torbrowserbundleosx64>-osx-x86_64-<lang>.zip">Mac</a> or <a class="win-alt64" href="../dist/torbrowser/tor-browser-<version-torbrowserbundle>_<lang>.exe">Windows</a></p>
|
||||
<p class="alt-dl">Not Using Linux? Download for <a href="#mac">Mac</a> or <a href="#windows">Windows</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<p class="all-dl">Looking For Something Else? <a href="<page download/download>">View All Downloads</a></p>
|
||||
@ -297,6 +297,16 @@ the issues</a>.</p>
|
||||
<p><a href="<page donate/donate>">Other donation options...</a></p>
|
||||
</form>
|
||||
<!-- END DONATION WIDGET -->
|
||||
<div class="img-shadow sidenav-ez">
|
||||
<div class="sidenav-sub">
|
||||
<ul>
|
||||
<li class="dropdown"><a href="#windows">Microsoft Windows</a></li>
|
||||
<li class="dropdown"><a href="#mac">Apple OS X</a></li>
|
||||
<li class="dropdown"><a href="#linux">Linux/Unix</a></li>
|
||||
<li class="dropdown"><a href="../download/download.html.en">All Downloads</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- START INFO -->
|
||||
<div class="img-shadow">
|
||||
<div class="sidenav-sub">
|
||||
|
@ -43,6 +43,9 @@
|
||||
Source: http://www.stoimen.com/blog/2009/07/16/jquery-browser-and-os-detection-plugin/
|
||||
License: Public Domain (http://www.stoimen.com/blog/2009/07/16/jquery-browser-and-os-detection-plugin/#comment-12498) */
|
||||
</script>
|
||||
<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.js">
|
||||
# /* Displays detected section */
|
||||
</script>
|
||||
@ -65,31 +68,18 @@
|
||||
if(pkg == 'win-tbb'){
|
||||
$('.'+pkg).replaceWith('<a class="button win-tbb" href="'+wintbb+'"><span class="strong">Download</span><span class="normal"><button-win-tbb32></span></a>');
|
||||
$('.'+pkg+'-sig').replaceWith('<a class="win-tbb-sig" href="'+wintbb+'.asc">sig</a>');
|
||||
$('.mac-alt').replaceWith('<a class="mac-alt" href="'+osxtbb+'">Mac</a>');
|
||||
$('.lin-alt').replaceWith('<a class="lin-alt" href="'+lintbb32+'">Linux</a>');
|
||||
$('.lin-alt64').replaceWith('<a class="lin-alt64" href="'+lintbb64+'">Linux 64-bit</a>');
|
||||
}else if(pkg == 'osx-tbb'){
|
||||
$('.'+pkg).replaceWith('<a class="button osx-tbb" href="'+osxtbb+'"><span class="strong">Download</span><span class="normal"><button-osx-tbb32></span></a>');
|
||||
$('.'+pkg+'-sig').replaceWith('<a class="osx-tbb-sig" href="'+osxtbb+'.asc">sig</a>');
|
||||
$('.win-alt').replaceWith('<a class="lin-win" href="'+wintbb+'">Windows</a>');
|
||||
$('.lin-alt').replaceWith('<a class="lin-alt" href="'+lintbb32+'">Linux</a>');
|
||||
$('.lin-alt64').replaceWith('<a class="lin-alt64" href="'+lintbb64+'">Linux 64-bit</a>');
|
||||
}else if(pkg == 'osx-tbb64'){
|
||||
$('.'+pkg).replaceWith('<a class="button osx-tbb64" href="'+osxtbb64+'"><span class="strong">Download</span><span class="normal"><button-osx-tbb64></span></a>');
|
||||
$('.'+pkg+'-sig').replaceWith('<a class="osx-tbb64-sig" href="'+osxtbb64+'.asc">sig</a>');
|
||||
$('.win-alt64').replaceWith('<a class="win-alt64" href="'+wintbb+'">Windows</a>');
|
||||
$('.lin-alt').replaceWith('<a class="lin-alt" href="'+lintbb32+'">Linux</a>');
|
||||
$('.lin-alt64').replaceWith('<a class="lin-alt64" href="'+lintbb64+'">Linux 64-bit</a>');
|
||||
}else if(pkg == 'lin-tbb32'){
|
||||
$('.'+pkg).replaceWith('<a class="button lin-tbb32" href="'+lintbb32+'"><span class="strong">Download</span><span class="normal"><button-lin-tbb32></span></a>');
|
||||
$('.'+pkg+'-sig').replaceWith('<a class="lin-tbb32-sig" href="'+lintbb32+'.asc">sig</a>');
|
||||
$('.mac-alt').replaceWith('<a class="lin-mac" href="'+osxtbb+'">Mac</a>');
|
||||
$('.win-alt').replaceWith('<a class="lin-win" href="'+wintbb+'">Windows</a>');
|
||||
}else if(pkg == 'lin-tbb64'){
|
||||
$('.'+pkg).replaceWith('<a class="button lin-tbb64" href="'+lintbb64+'"><span class="strong">Download</span><span class="normal"><button-lin-tbb64></span></a>');
|
||||
$('.'+pkg+'-sig').replaceWith('<a class="lin-tbb64-sig" href="'+lintbb64+'.asc">sig</a>');
|
||||
$('.mac-alt64').replaceWith('<a class="mac-alt64" href="'+osxtbb64+'">Mac</a>');
|
||||
$('.win-alt64').replaceWith('<a class="win-alt64" href="'+wintbb+'">Windows</a>');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -34,3 +34,53 @@ function resetAll() {
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$('.jump').click(function(event){
|
||||
//prevent the default action for the click event
|
||||
//event.preventDefault();
|
||||
|
||||
//get the full url - like mysitecom/index.htm#home
|
||||
var full_url = this.href;
|
||||
|
||||
//split the url by # and get the anchor target name - home in mysitecom/index.htm#home
|
||||
var parts = full_url.split("#");
|
||||
var trgt = parts[1];
|
||||
|
||||
//get the top offset of the target anchor
|
||||
var target_offset = $("#"+trgt).offset();
|
||||
var target_top = target_offset.top;
|
||||
|
||||
//goto that anchor by setting the body scroll top to anchor top
|
||||
// $('html, body').animate({scrollTop:target_top}, 1000);
|
||||
});
|
||||
|
||||
|
||||
// Bind an event to window.onhashchange
|
||||
$(window).bind( 'hashchange', function(e) {
|
||||
|
||||
// Get the hash (fragment) as a string, with any leading # removed.
|
||||
var url = $.param.fragment();
|
||||
|
||||
// Toggle the '.easy' divs to off
|
||||
if(url == 'windows'|url == 'mac'|url == 'linux'){
|
||||
|
||||
$('.easy').css('display', 'none');
|
||||
}
|
||||
|
||||
if(url == 'windows'){
|
||||
$('.easy.windows').css('display', 'block');
|
||||
} else if(url == 'mac'){
|
||||
$('.easy.mac').css('display', 'block');
|
||||
} else if(url == 'linux'){
|
||||
$('.easy.linux').css('display', 'block');
|
||||
} else {
|
||||
$(function(){OScheck();});
|
||||
}
|
||||
});
|
||||
|
||||
// Since the event is only triggered when the hash changes, we need to trigger
|
||||
// the event now, to handle the hash the page may have loaded with.
|
||||
$(window).trigger( 'hashchange' );
|
||||
|
||||
});
|
||||
|
18
js/jquery.ba-bbq.min.js
vendored
Normal file
18
js/jquery.ba-bbq.min.js
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
|
||||
* http://benalman.com/projects/jquery-bbq-plugin/
|
||||
*
|
||||
* Copyright (c) 2010 "Cowboy" Ben Alman
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
* http://benalman.com/about/license/
|
||||
*/
|
||||
(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M<N?O[P]||(R[M+1]&&isNaN(R[M+1])?{}:[]):J}}else{if($.isArray(H[P])){H[P].push(J)}else{if(H[P]!==i){H[P]=[H[P],J]}else{H[P]=J}}}}else{if(P){H[P]=F?i:""}}});return H};function z(H,F,G){if(F===i||typeof F==="boolean"){G=F;F=a[H?D:A]()}else{F=E(F)?F.replace(H?w:x,""):F}return l(F,G)}l[A]=B(z,0);l[D]=v=B(z,1);$[y]||($[y]=function(F){return $.extend(C,F)})({a:k,base:k,iframe:t,img:t,input:t,form:"action",link:k,script:t});j=$[y];function s(I,G,H,F){if(!E(H)&&typeof H!=="object"){F=H;H=G;G=i}return this.each(function(){var L=$(this),J=G||j()[(this.nodeName||"").toLowerCase()]||"",K=J&&L.attr(J)||"";L.attr(J,a[I](K,H,F))})}$.fn[A]=B(s,A);$.fn[D]=B(s,D);b.pushState=q=function(I,F){if(E(I)&&/^#/.test(I)&&F===i){F=2}var H=I!==i,G=c(p[g][k],H?I:{},H?F:2);p[g][k]=G+(/#/.test(G)?"":"#")};b.getState=u=function(F,G){return F===i||typeof F==="boolean"?v(F):v(G)[F]};b.removeState=function(F){var G={};if(F!==i){G=u();$.each($.isArray(F)?F:arguments,function(I,H){delete G[H]})}q(G,2)};e[d]=$.extend(e[d],{add:function(F){var H;function G(J){var I=J[D]=c();J.getState=function(K,L){return K===i||typeof K==="boolean"?l(I,K):l(I,L)[K]};H.apply(this,arguments)}if($.isFunction(F)){H=F;return G}else{H=F.handler;F.handler=G}}})})(jQuery,this);
|
||||
/*
|
||||
* jQuery hashchange event - v1.2 - 2/11/2010
|
||||
* http://benalman.com/projects/jquery-hashchange-plugin/
|
||||
*
|
||||
* Copyright (c) 2010 "Cowboy" Ben Alman
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
* http://benalman.com/about/license/
|
||||
*/
|
||||
(function($,i,b){var j,k=$.event.special,c="location",d="hashchange",l="href",f=$.browser,g=document.documentMode,h=f.msie&&(g===b||g<8),e="on"+d in i&&!h;function a(m){m=m||i[c][l];return m.replace(/^[^#]*#?(.*)$/,"$1")}$[d+"Delay"]=100;k[d]=$.extend(k[d],{setup:function(){if(e){return false}$(j.start)},teardown:function(){if(e){return false}$(j.stop)}});j=(function(){var m={},r,n,o,q;function p(){o=q=function(s){return s};if(h){n=$('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow;q=function(){return a(n.document[c][l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t[c].hash="#"+u}};o(a())}}m.start=function(){if(r){return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[c][l]=i[c][l].replace(/#.*/,"")+"#"+u}}r=setTimeout(s,$[d+"Delay"])})()};m.stop=function(){if(!n){r&&clearTimeout(r);r=0}};return m})()})(jQuery,this);
|
Loading…
Reference in New Issue
Block a user