Difference between revisions of "Team:Brasil-USP/Templates/Cover"
Thmosqueiro (Talk | contribs) |
Thmosqueiro (Talk | contribs) |
||
Line 15: | Line 15: | ||
$('a[href*=#]').each(function() | $('a[href*=#]').each(function() | ||
{ | { | ||
− | + | if ( location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') ) | |
− | if ( location. | + | |
{ | { | ||
− | alert('oi'); | + | if ( location.hostname == this.hostname ) ) |
+ | { | ||
+ | alert('oi'); | ||
+ | } | ||
} | } | ||
}); | }); |
Revision as of 01:19, 17 July 2015