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.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname && this.hash.replace(/#/,'') ) |
− | + | ||
− | + | ||
{ | { | ||
alert('oi'); | alert('oi'); |
Revision as of 01:11, 17 July 2015