var ssSmoothScroll = function() {
$('.smoothscroll').on('click', function (e) {
var target = this.hash,
$target = $(target),
$this = $(this);
e.preventDefault();
e.stopPropagation();
$this.addClass("active");
$('html, body').stop().animate({
'scrollTop': $target.offset().top
}, cfg.scrollDuration, 'swing').promise().done(function () {
// check if menu is open
if ($('body').hasClass('menu-is-open')) {
$('#header-menu-trigger').trigger('click');
}
$this.removeClass("active");
});
});
};
.scrolldown a:hover, .scrolldown a:focus, .scrolldown a:active {
color: #07617d !important;
}
.scrolldown a:hover, .scrolldown a.active, .scrolldown a:active {
color: #07617d !important;
}
var ssSmoothScroll = function() {
$('.smoothscroll').on('click', function (e) {
var target = this.hash,
$target = $(target);
e.preventDefault();
e.stopPropagation();
$(this).addClass("active");
$('html, body').stop().animate({
'scrollTop': $target.offset().top
}, cfg.scrollDuration, 'swing').promise().done(function () {
// check if menu is open
if ($('body').hasClass('menu-is-open')) {
$('#header-menu-trigger').trigger('click');
}
$(this).removeClass("active");
});
});
};
window.location.hash = target;
APPEND_STORY: (state, article) => {
state.stories.push(article);
}