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

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

Revision as of 01:19, 17 July 2015