Difference between revisions of "Team:Brasil-USP/Templates/Foot"
Thmosqueiro (Talk | contribs) |
Thmosqueiro (Talk | contribs) |
||
Line 23: | Line 23: | ||
$('a[href*=#]').each(function() | $('a[href*=#]').each(function() | ||
{ | { | ||
− | |||
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