|
@@ -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);
|