fixe autoscroll bug, limit behaviour to front page
This commit is contained in:
@@ -56,15 +56,16 @@
|
||||
|
||||
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);
|
||||
|
||||
if($('body').is('.front')){
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user