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