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

Line 15: Line 15:
 
       $('a[href*=#]').each(function()
 
       $('a[href*=#]').each(function()
 
       {
 
       {
           alert('oi');
+
           alert(location.pathname);
       if ( location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname && this.hash.replace(/#/,'') )
+
        {
+
         alert('oi');
+
        }
+
 
       });
 
       });
 
     });
 
     });

Revision as of 01:13, 17 July 2015