Ekaropolus 0fd26e483f
All checks were successful
continuous-integration/drone/push Build is passing
Genesis commit for the new page
2025-04-22 13:14:25 -06:00

27 lines
446 B
JavaScript

jQuery.noConflict()(function($) {
'use strict';
$(document).ready(function () {
$('a[href^="#"]').on('click', function() {
$('a[href^="#"]').removeClass('active');
var id = $(this).attr('href');
$(this).addClass('active');
scrollToAnchor(id);
return false;
});
function scrollToAnchor(aid){
var aTag = $(aid);
$('html,body').animate({scrollTop: aTag.offset().top},'slow');
}
});
});