function markActiveLink() { //Look through all the links in the sidebar $("div#sidebar a").filter(function() { //Take the current URL and split it into chunks at each slash var currentURL = window.location.toString().split("/"); //return true if the bit after the last slash is the current page name return $(this).attr("href") == currentURL[currentURL.length-1]; //when the filter function is done, you're left with the links that match. }).addClass("active"); //Afterwards, look back through the links. If none of them were marked, //mark your default one. if($("div#sidebar a").hasClass("active") == false) { $("div#sidebar h2:nth-child(2) a").addClass("active"); } } markActiveLink();
- Marcus Sá
Kanban - Rodrigo Yoshima from Bluesoft on Vimeo. Conheci o Rodrigo Yoshima(@rodrigoy) no AgileBrazil 2010 e de fato o cara é fera... Dá uma conferida no video dele ai e constata o que ...
- Marcus Sá
Kanban - Rodrigo Yoshima from Bluesoft on Vimeo. Conheci o Rodrigo Yoshima(@rodrigoy) no AgileBrazil 2010 e de fato o cara é fera... Dá uma conferida no video dele ai e constata o que ...
- Marcus Sá
See and download the full gallery on posterousPessoal, andei pesquisando algumas interfaces para área de administração para Ruby on Rails e acabei encontrando o post Rails Admin Interfaces in T ...
- Marcus Sá
See and download the full gallery on posterousPessoal, andei pesquisando algumas interfaces para área de administração para Ruby on Rails e acabei encontrando o post Rails Admin Interfaces in T ...
- Marcus Sá
iPhone on Rails and ObjectiveResource; Making communication between the iPhone and a Rails web-service pain-free. - http://iphoneonrails.com/getting...
iPhone on Rails and ObjectiveResource; Making communication between the iPhone and a Rails web-service pain-free. - http://iphoneonrails.com/getting...