4badddf6e324f726fc9b7879ca51653a83615a04
Andrew Lewman new download page layout fr...

Andrew Lewman authored 12 years ago

1) $(function(){
2)   /* Only show language selector if javascript is enabled */
3)   $('.lang').css('display', 'block');
Andrew Lewman and we have a new download-...

Andrew Lewman authored 12 years ago

4)   $('.lang-alt').css('display', 'none');
traumschule download: replace javascrip...

traumschule authored 5 years ago

5)   $('.expander').css('height', '100%');
Andrew Lewman and we have a new download-...

Andrew Lewman authored 12 years ago

6)   $('.sidenav').css('display', 'none');
Andrew Lewman new download page layout fr...

Andrew Lewman authored 12 years ago

7) });
8) 
9) /* Reset language default - needed in the event of returning to the page via back button */
10) function resetAll() {
11)   var f = document.forms;
12)   var last = f.length - 1;
13)   for (var i = 0; i < last; i++) {
14)     f[i].reset();
15)   }
16) }
Andrew Lewman and we have a new download-...

Andrew Lewman authored 12 years ago

17) 
Arthur Edelstein Bug 22357: Move download la...

Arthur Edelstein authored 6 years ago

18) /* switches package links depending on selection */
19) function updateLang() {
20)   var caller = $( this );
21)   var pkg = caller.attr('id');
22)   var lang = caller.val();
23)   var versions = JSON.parse($("#version-data").text());
Nicolas Vigier Allow having different Tor...

Nicolas Vigier authored 6 years ago

24)   var rootDir = '../dist/torbrowser/' + '/';
Arthur Edelstein Bug 22357: Move download la...

Arthur Edelstein authored 6 years ago

25)   var bundles = {
Nicolas Vigier Allow having different Tor...

Nicolas Vigier authored 6 years ago

26)     'win-tbb' : rootDir + versions.torbrowserbundle + '/torbrowser-install-' + versions.torbrowserbundle + '_' + lang + '.exe',
Georg Koppen Add Win 64bit bundles to do...

Georg Koppen authored 5 years ago

27)     'win-tbb64' : rootDir + versions.torbrowserbundle + '/torbrowser-install-win64-' + versions.torbrowserbundle + '_' + lang + '.exe',
Nicolas Vigier Allow having different Tor...

Nicolas Vigier authored 6 years ago

28)     'osx-tbb' : rootDir + versions.torbrowserbundleosx64 + '/TorBrowser-' + versions.torbrowserbundleosx64 + '-osx64_' + lang +'.dmg',
29)     'osx-tbb64' : rootDir + versions.torbrowserbundleosx64 + '/TorBrowser-' + versions.torbrowserbundleosx64 + '-osx64_' + lang + '.dmg',
30)     'lin-tbb32' : rootDir + versions.torbrowserbundlelinux32 + '/tor-browser-linux32-' + versions.torbrowserbundlelinux32 + '_' + lang + '.tar.xz',
31)     'lin-tbb64' : rootDir + versions.torbrowserbundlelinux64 + '/tor-browser-linux64-' + versions.torbrowserbundlelinux64 + '_' + lang + '.tar.xz'
Arthur Edelstein Bug 22357: Move download la...

Arthur Edelstein authored 6 years ago

32)   };
33) 
34)   $('.'+pkg).attr("href", bundles[pkg]);
35)   $('.'+pkg+'-sig').attr("href", bundles[pkg] + '.asc');
36) }
37) 
38) $(function(){
39)   $('.lang').ready(updateLang);
40)   $('.lang').change(updateLang);
41)   /* Only show language selector if javascript is enabled */
42)   $('.lang').css('display', 'block');
43) });
44) 
Andrew Lewman patch from jmtodaro for eve...

Andrew Lewman authored 12 years ago

45) $(document).ready(function () {
hiromipaw Fix small typo

hiromipaw authored 6 years ago

46)     $('.onload').ready(resetAll);
47)