Difference between revisions of "Team:Brasil-USP/Templates/Foot"
Thmosqueiro (Talk | contribs) |
Thmosqueiro (Talk | contribs) |
||
Line 25: | Line 25: | ||
if ( location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') ) | if ( location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') ) | ||
{ | { | ||
+ | alert(this.class) | ||
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) +'"]'); | ||
Line 30: | Line 31: | ||
if ($target) | if ($target) | ||
{ | { | ||
− | var targetOffset = $target.offset().top- | + | var targetOffset = $target.offset().top-50; |
$(this).click(function() | $(this).click(function() | ||
{ | { |
Revision as of 14:11, 15 September 2015