added autoscroll

This commit is contained in:
2017-04-04 11:04:55 +02:00
parent ab93a3a28b
commit 6d57f8a088
2 changed files with 15 additions and 1 deletions
@@ -28,6 +28,7 @@
function init(){
console.log('Clameurs Theme');
initHeaderAnime();
initAutoScroll();
};
function initHeaderAnime(){
@@ -53,6 +54,19 @@
});
};
function initAutoScroll(){
console.log('initAutoScroll');
var anchor = $('a.anchor.publie', "#thematique-anchor-links").last().attr('href');
console.log(anchor);
(function(anchor){
setTimeout(function(){
console.log('Timeout');
window.location.href = anchor;
}, 1000);
})(anchor);
};
init();
})(jQuery);