git.schokokeks.org
Repositories
Help
Report an Issue
tor-webwml.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
65600fc60
Branches
Tags
bridges
docs-debian
jobs
master
press-clips
tor-webwml.git
js
dlpage01.js
download, js, and css patches from jeremy.
Andrew Lewman
commited
65600fc60
at 2011-09-04 16:04:31
dlpage01.js
Blame
History
Raw
$(function(){ /* If javascript is enabled this hides all sections by default */ $(".accordianContent").css('display', 'none'); /* Only show language selector if javascript is enabled */ $('.lang').css('display', 'block'); $('.accordionButton').removeClass('on'); $('.accordionButton').addClass('off'); }); /* Uses result of jquery.client to open the relevant section */ function OScheck() { var clientos = $.client.os; if(clientos == "Linux"){ $('#linux').addClass('open'); }else if(clientos == "Windows"){ $('#windows').addClass('open'); }else if(clientos == "Mac"){ $('#apple').addClass('open'); }else if(clientos == "iPhone/iPod"){ $('#smartphone').addClass('open'); } } $(function(){ OScheck(); }); /* Reset language default - needed in the event of returning to the page via back button */ function resetAll() { var f = document.forms; var last = f.length - 1; for (var i = 0; i < last; i++) { f[i].reset(); } }