Difference between revisions of "Team:Brasil-USP/Templates/Foot"

Line 23: Line 23:
 
       $('a[href*=#]').each(function()
 
       $('a[href*=#]').each(function()
 
       {
 
       {
        alert(this.pathname);
 
 
         if ( location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') )
 
         if ( location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') )
 
         {
 
         {
 +
alert(this.pathname);
 
           this.hash.replace(/#/,'')
 
           this.hash.replace(/#/,'')
 
           var $targetId = $(this.hash), $targetAnchor = $('[name=' + this.hash.slice(1) +']');
 
           var $targetId = $(this.hash), $targetAnchor = $('[name=' + this.hash.slice(1) +']');

Revision as of 05:44, 13 September 2015