Yotam Ottolenghi parle de repousser les frontières (et les frontières) avec de la nourriture



[ad_1]

en vedette-Yotam_Ottolenghi-0049073-copy

1 / 5

La vie simple

Le chef et chroniqueur Yotam Ottolenghi est sorti avec son septième livre de cuisine ce mois-ci

2 / 5

La vie simple

Le restaurant éponyme Ottolenghis à Notting Hill est réputé pour ses pâtisseries, ses gâteaux et ses salades fraîches

3 / 5

La vie simple

Saumon poêlé de Bridget Jones avec salsa aux pignons

4 / 5

La vie simple

Tomates cerises brûlées avec du yaourt froid

5 / 5

La vie simple

Pappardelle à la harissa rose, olives noires et câpres

Lecture en cours: CHIVAS India est fier de présenter l'Inde Fashion Week 2018

";
var sb_focus = "focalisé";
var isSponsored = false;

var croisé = faux;
var randomInterval = 7000;
var adDelay = 2000;
var videoadDelay = 3000;
var mobAdDelay = 7000;
var adpause = true;
var currentAdSlot = "";
var currentPos = 0;
var currentScroll;
var première fois = true, doitfornext = false;
var ADcont = [];
var storyLeaderboardID = $ ("# topadbnr div"). attr ("id-slot-id");
ADcont.push (eval (storyLeaderboardID));
var magazineid = '';
var ctaFallback = "";

$ (fenêtre) .scroll (fonction (événement) {

    if ($ (window) .width ()> 768) {
        
        var article__header_padding_top = 30;

        // var right_ad = ($ ('. article__header'). offset (). top + article__header_padding_top) + $ ('. article__header'). height () - $ ('. article__summary'). height () - 60;

        var top_ad = $ ('. site__header'). height ();
        
        if ($ (window) .scrollTop ()> top_ad) {
            $ ('.ad.ad - top'). addClbad ('fixed');

            if ($ ('. content_body'). find ('. ad - top-cloné'). is (": hidden")) {
                
                // $ ('. content_body'). find ('. ad - top-cloned'). remove ();
                // $ ('. content_body'). prepend ('

');
                $ ('. content_body'). find ('. ad - top-cloned'). show ();
            }

            //$('body').addClbad('fixedTopAd ');
        } autre {
            $ ('.ad.ad - top'). removeClbad ('fixed');
            // $ ('. content_body'). find ('. ad - top-cloned'). remove ();

            //$('body').removeClbad('fixedTopAd ');
            $ ('. content_body'). find ('. ad - top-cloned'). hide ();
        }
    }

    if ($ (window) .width ()> 1199) {
        rightSideAdContainer ();
    }

    currentScroll = $ (fenêtre) .scrollTop () + $ (fenêtre) .height ();
    if (currentScroll> currentPos)
    {
        currentPos = currentScroll;
        croisé = vrai;
    }

});

var cn_size_crossed = isMobile.any ();
$ (fenêtre) .on ('redimensionner', fonction () {
    if ($ (window) .width ()> 1199) {
        rightSideAdContainer ();
    } autre {
        $ ('. right_side.ad'). removeClbad ('fixed');
    }

    if (cn_size_crossed && $ (window) .width ()> 768) {
        cn_size_crossed = false;
        totalInterval = 0;
        clearInterval (ADintervalLeaderboard);
        autoADtimerLeaderboard ();
    }
    if (! cn_size_crossed && $ (window) .width () < 768) { cn_size_crossed = true; totalInterval = 0; clearInterval(ADintervalLeaderboard); autoADtimerLeaderboard(); } }); function rightSideAdContainer() { $($(".single-article-block").get()).each(function() { if ($(this).is_on_screen()) { if($(this).find('.article__image--fullsize').length > 0)
            {
                var top_bound = $ (this) .find ('. article__image - fullsize'). offset (). top + $ (this) .find ('. article__image - fullsize'). height () - $ ('. ad .ad - top.fixed '). height ();
            } autre {
                var top_bound = $ (this) .offset (). top - $ ('. ad.ad - top.fixed'). height ();
            }
            var bottom_bound = $ (this) .height () + $ (this) .offset (). top;

            var bottom_bound_offset = window.innerHeight - $ (this) .find ('. right_side'). height (); - $ ("# header-Ranking-ad"). height ();
            bottom_bound = bottom_bound - bottom_bound_offset;
            
            if ($ (fenêtre) .scrollTop ()> top_bound && $ (fenêtre) .scrollTop () < bottom_bound){ $(this).find('.right_side.ad').addClbad('fixed'); $(".right_side.ad").not($(this).find('.right_side.ad')).removeClbad('fixed'); } else { $(this).find('.right_side.ad').removeClbad('fixed'); } return false; } else { $(this).find('.right_side.ad').removeClbad('fixed'); } }); } $(window).scroll(function(e) { //infinite scroll articles if ($(window).scrollTop() >= ($ (document) .height () - $ (fenêtre) .height () - ($ (fenêtre) .height () * 0,2))) {
        infinite_single_json (numéro d'article, 0);
    }

    // événements de défilement vertical
    $ ($ (". single-article-block"). get ()). each (fonction (t) {
        $ (this) .find (". in-story-slideshow .slide"). each (fonction (t) {
            if ($ (this) .is_on_screen ()) {
                if ($ (this) .hasClbad ("actualisé par une annonce") ||! $ (this) .is (": visible"))
                {
                } autre {
                    if (isMobile.any ()) {
                        gtmSlideshowVerticalScroll ('Mobile');
                    } autre {
                        gtmSlideshowVerticalScroll ('Desktop');
                    }
                    $ (this) .addClbad ("rafraîchi par une annonce");
                }
            }
        });
    });

    // titre de défilement infini & url
    $ ($ (". single-article-block"). get (). reverse ()) each (function () {
        if ($ (this) .is_on_screen () && $ (this) .attr ("data-post-url") == (location.protocol + '//' + location.host + location.pathname)) {
            retourne faux;
        }
        if ($ (this) .attr ("data-post-url") && $ (this) .attr ("data-post-title") && $ (this) .is_on_screen () && $ (this) .attr ( "data-post-url")! = (location.protocol + '//' + location.host + location.pathname))
        {
            cnReplaceUrlandTitle ($ (this) .attr ("data-post-title"), $ (this) .attr ("data-post-url"));
            retourne faux;
        }
    });
});

$ (document) .ready (fonction () {
    $ .ajaxSetup ({cache: true});
    $ .getScript ('// connect.facebook.net/en_US/sdk.js', function () {
        FB.init ({
            appId: '543661672486127',
            version: 'v2.8'
        });
        FB.XFBML.parse ();
    });
});

    var caché, état, visibilitéChange;
    if (typeof document.hidden! == "undefined") {
        hidden = "hidden";
        accessibilityChange = "" visibilitéchange ";
        state = "visibilitéState";
    } else if (typeof document.mozHidden! == "undefined") {
        hidden = "mozHidden";
        visibilitéChange = "mozvisibilitychange";
        state = "mozVisibilityState";
    } else if (typeof document.msHidden! == "undefined") {
        hidden = "msHidden";
        visibilitéChange = "msvisibilitychange";
        state = "msVisibilityState";
    } else if (typeof document.webkitHidden! == "indéfini") {
        hidden = "webkitHidden";
        visibilitéChange = "webkitvisibilitychange";
        state = "webkitVisibilityState";
    }

    var sb_focus = "focalisé";
    window.addEventListener ('focus', function () {
        sb_focus = 'ciblé';
    });

    window.addEventListener ('blur', function () {
        sb_focus = 'pas ciblé';
    });

    window.onblur = function () {window.blowed = true; };
    window.onfocus = function () {window.blowed = false; };

        fonction onScrollAutoplayVideo (ifx)
    {
      ifx[0].contentWindow.playad ();
    }

    fonction onScrollAutopauseVideo (ifx)
    {
      ifx[0].contentWindow.pausead ();
    }

    jQuery (window) .scroll (function (e) {
      // Code pour la lecture automatique de vidéos inview
      $ ('body'). find ('. video-ads'). each (fonction (index) {
        if (isScrolledIntoView ($ (this)))
        {
          onScrollAutoplayVideo ($ (this));
        }
        autre
        {
          onScrollAutopauseVideo ($ (this));
        }
      });
    // Code de fin pour la lecture automatique de vidéos inview
    });
    // Gestionnaires de défilement de la fenêtre FIN
  
    jQuery.fn.is_on_screen = function () {
        var win = $ (fenêtre);
        var viewport = {
            en haut: win.scrollTop (),
            à gauche: win.scrollLeft ()
        };
        viewport.right = viewport.left + win.width ();
        viewport.bottom = viewport.top + win.height ();
 
        var bounds = this.offset ();
        bounds.right = bounds.left + this.innerWidth ();
        bounds.bottom = bounds.top + this.innerHeight ();
 
        return (! (viewport.bottom < bounds.top || viewport.top > bounds.bottom));
    };

    window.addEventListener ('message', fonction (événement) {
      if (~ event.origin.indexOf ('https://www.vogue.in')) {
        if (event.data.event && event.data.event == "CN-AD-refresh")
        {
          
          si (document[state] ! = 'visible') {return; }
          if (sb_focus == 'non focalisé') {return; }

          if (typeof event.data.slot! == "undefined" && event.data.slot)
          {
            if ($. inArray (event.data.slot, window.cnAdsRefreshArray.leaderboard))
            {
              clearInterval (ADintervalLeaderboard);
              autoADtimerLeaderboard ();
            }

            if ($. inArray (event.data.slot, window.cnAdsRefreshArray.mpu))
            {
              clearInterval (ADintervalMPU);
              autoADtimerMPU ();
            }
          }

          if (typeof event.data.slot! == "undefined" && event.data.slot)
          {
            googletag.cmd.push (function () {
                googletag.pubads (). refresh ([eval(event.data.slot)])
            });
          }
        }
      } autre {
        revenir;
      }
  });

 $ (document) .ready (fonction (e) {
    window.addEventListener ('focus', function () {
        sb_focus = 'ciblé';
    });

    window.addEventListener ('blur', function () {
        sb_focus = 'pas ciblé';
    });

            // cnWebengage ('catégorie-article', 'catégorie_article', {"catégorie": "Culture & Vivre", "sous-catégorie": "Goût"});
    
    $ ("img.lazy"). lazyload ({
      skip_invisible: true
    });

          autoADtimerLeaderboard = function () {
        ADintervalLeaderboard = window.setInterval (function () {
          si (document[state] ! = 'visible') {return; }
          if (sb_focus == 'non focalisé') {return; }
          si vrai)
          {
            var leaderboardAdSlot = $ ("# en-tête-leaderboard-ad div"). attr ("id-slot-id");
            googletag.cmd.push (function () {
                googletag.pubads (). refresh ([eval(leaderboardAdSlot)])
            });
          }
        }, randomInterval);
      }
    
    autoADtimerMPU = function () {
      ADintervalMPU = window.setInterval (function () {
        si (document[state] ! = 'visible') {return; }
        if (sb_focus == 'non focalisé') {return; }
        si vrai)
        {
            $ ($ (". mpu-ad-slot"). get ()). each (function () {
                if ($ (this) .is_on_screen ()) {
                    var mpuAdSlot = $ (this) .find ('. sb-mpu-ad'). attr ("ad-slot-id");

                    googletag.cmd.push (function () {
                        googletag.pubads (). refresh ([eval(mpuAdSlot)])
                    });
                }
            });
            $ ($ (". new-ad-unit"). get ()). each (function () {
                if ($ (this) .is_on_screen ()) {
                    var secMpuAdSlot = $ (this) .attr ("id-slot-id");

                    googletag.cmd.push (function () {
                        googletag.pubads (). refresh ([eval(secMpuAdSlot)])
                    });
                }
            });
        }
      }, randomInterval);
    }

          autoADtimerLeaderboard ();
      autoADtimerMPU ();
    
      

    $ ('body'). imagesLoaded (function () {
        if ($ (fenêtre) .scrollTop ()> = ($ (document) .height () - $ (fenêtre) .height () - ($ (fenêtre) .height () * 0.2))) {
            infinite_single_json (count, 0);
        }
    });
    
    $ (document) .on ('cliquez', '. open_other_social', function () {
        $ (this) .parents ('. socialShare.socialShare-top.social-partageur-boutons-article-top'). find ('ul'). css ('right', '0');
        $ (this) .parents ('. socialShare.socialShare-top.social-partageur-boutons-article-top'). find ('li'). css ('width', 'auto');
        $ (this) .parents ('. socialShare.socialShare-top.social-partageur-boutons-article-top'). find ('li a'). css ('display', 'block');
        $ (this) .parents ('. socialShare.socialShare-top.social-partageur-boutons-article-top'). find ('. fb_rect_wrapper'). remove ();
        $ (this) .hide ();
    });

    gtmFirstLoad ();
        // get_related_stories ('0', '991718', 'non', '15', '9421,16499,14204,10591,14227,10441,10598,4082,10601,13840,14239,19581');
    setTimeout (function () {
        processBrightcoveVideos ();
        $ ('a.embed-popover'). webuiPopover ();
    }, 2000);
     });

 fonction cn_lr_logout_callback () {
    if ((! regwall_story || isLoggedIn) &&! isSponsored)
        load_instory_cta_ajax ('991718', 0, '15', magazineid);
 }

 fonction cn_lr_login_callback () {
    if ((! regwall_story || isLoggedIn) &&! isSponsored)
        load_instory_cta_ajax ('991718', 0, '15', magazineid);

    $ (". 30_day_trial_single"). Attr ('href', '/ register /? Rsource = paywall-trial-magazinestory & referrer =' + window.location.pathname + '& campaign = 30 jours gratuit-trial-vogue-168' )
 }

fonction limiteLengthInWords (desc, maxWords) {
    valeur var = desc,
        wordCount = value.split (/ S + /). length - 1,
        re = new RegExp ("^ \ s * \ S + (?: \ s + \ S +) {0," + (maxWords-1) + "}");
    if (wordCount> = maxWords) {
        desc = valeur.match (re);
    }
    retourner desc;
}

 fonction check_ref_sub (postid, issue_id, referer, guid, page_no = 0) {
    
    $ .ajax ({
        type: 'POST',
        url: 'https://www.vogue.in/wp-admin/admin-ajax.php',
        async: false,
        data: "action = getsubstatus" + "& postid =" + postid + "& issue_id =" + issue_id + "& referer =" + referer,
        succès: fonction (données) {

            if (data === 'bloqué' || data === 'bloqué')
            {

                var blockhtml = '

'+ marketing_text +'

';
                
                                    var freeLink = 'https://condenastsso.hub.loginradius.com/RequestHandlor.aspx?apikey=492f2ff0-55ca-45d2-b13d-bff1e19cf490&provider=facebook&callback=http%3A%2F%wF 3Frsource% 3Dpaywall-trial-magazinestory & same_window = 1 & callbacktype = QueryString ';
                    blockhtml + = 'ou';
                    blockhtml + = '

Commencer un abonnement gratuit à Vogue

';
                
                blockhtml + = 'Déjà acheté? S'identifierPour lire ceci et d'autres articles de magazine, abonnez-vous à l'édition numérique maintenant.

';

                setTimeout (function () {
                    gtmMagazineHomeSubscribe ("Page WebStory", "Impressions des boutons d'abonnement");
                }, 500);

                var pTagCount = 0;
                var pETop = 0
                var targetPtag;
                
                $ ("# post -" + postid + ".description") .find ('. gqBrightcove: premier-enfant'). remove ();
                $ ("# post -" + postid + ".description") .find ('. tag-slider-video'). remove ();

                $ .each ($ ("# post -" + postid + ".description"). enfants ('p, h2'), fonction ()
                {
                  pTagCount ++;
                  if (pTagCount> 1) $ (this) .remove ();
                  if (pTagCount == 2) {targetPtag = $ (this); pETop = $ (this) .offset (). top;}
                });
                var pTagCount = 0;
                var sETop = 0
                
                $ .each ($ ("# post -" + postid + ".slide"), function () {
                  pTagCount ++;
                  if (pTagCount> regwallSlides) {var regSlider = $ (this) .parents ('div.cycle-slideshow'); }
                  if (pTagCount> (parseInt (regwallSlides) +1)) {$ (this) .prev ('. instory-slide-counter'). remove (); $ (this) .remove (); }
                  if (pTagCount == regwallSlides) sETop = $ (this) .offset (). top;
                });

                if (pETop> sETop && sETop! = 0) pETop = sETop;
                si (pETop == 0) pETop = sETop;
                $ .each ($ ("# post -" + postid + ".description"). children (), function () {
                  if (pETop! = 0 && $ (this) .offset (). top> pETop &&! $ (this) .hasClbad ('nextStory') &&! $ (this) .hasClbad ('socialIconSet'))
                  {
                    if (pETop! = sETop) {} else $ (this) .remove ();
                  }
                });
                $ ("# post -" + postid + ".storyLink"). remove ();
                $ .each ($ ("# post -" + postid + ".wrapper"). children (), function () {
                  if (! $ (this) .hasClbad ('nextStory') &&! $ (this) .hasClbad ('tag-slider-video') &&! $ (this) .hasClbad ('socialIconSet')) $ (this). retirer();
                });

                $ ("# post -" + postid + ".description"). append (blockhtml);
               
                if (guid! = '' && guid! == non défini) {load_subscription_btn_1 (guid); } else {$ ('. button1_popup'). remove (); }
               

            } sinon si (données === 'bloquées' || données === 'bloquées') {

            }

        }
    });
}

 $ (document) .on ("cliquez sur", ". addFbComment", function () {
    var commentMarkup = '';
    $ (this) .parents ('div.comment_section'). html (commentMarkup);
    FB.XFBML.parse ();
  });

 // charge cta
  function load_instory_cta_ajax (post_id, pageNumber, category_id, magazineid) {
    var ctaSlot = "CTA_" + post_id + "_" + numéro de page + "_1";
    if (isMobile.any ()) {
        var ctaHtml = get_instory_cta_dfp (ctaSlot);
        insert_cta_html (post_id, ctaHtml);
    } autre {
        ctaHtml = "";
    }
    $ .ajax ({
      url: action_url + '? action = get_instory_cta_ajax',
      type: 'POST',
      data: {"page_no": pageNumber, 'post_id': post_id, 'isLoggedIn': isLoggedIn, 'category_id': category_id, 'magazineid': magazineid}
    }). done (fonction (données) {
      data = JSON.parse (data);
      ctaFallback = data.cta1;
      if (ctaFallback == "Fallback") $ ("# div-gpt-ad -" + ctaSlot) .html (ctaFallback);
      $ (". cta_holder -" + numéro de page + "- b"). html (data.cta2);
    });
  }

 // Histoires connexes Ajax
  function get_related_stories (pageNumber, post_id, sponsorisé, category_id, topic_ids) {
    $ .ajax ({
      url: action_url + '? action = related_story_ajax',
      type: 'POST',
      data: {"page_no": pageNumber, 'post_id': post_id, 'sponsorisé': sponsorisé, 'category_id': category_id, 'rel_ids': $ ("# get_all_post_ids"). val (), 'topic_ids': topic_ids}
    }). done (fonction (données) {
      $ ("# related-stories -" + pageNumber) .html (data);
      owl_cursel_init ();
    });
  }

  // récupère l'instance CTA
  fonction get_instory_cta_dfp (ctaSlot)
  {
    var deviceSlot = "[[848,218],[848,200],[848,250],[848,150]]";
    if (isMobile.any ()) {
        deviceSlot = "[[320,157]]";
    }
    var ctaHtml = "

";
    setTimeout (function () {
      if ($ ("# div-gpt-ad -" + ctaSlot) .height () == 0) {
          $ ("# div-gpt-ad -" + ctaSlot) .replaceWith (ctaFallback);
      }
    }, 2000);
    retourne ctaHtml;
  }

  fonction insert_cta_html (post_id, ctaHtml) {
    if (isMobile.any ())
    {
        if ($ ("# post -" + post_id + ".description"). enfants ('p'). length> 1 && $ ("# post -" + post_id + ".description .slide"). length> 1)
        {
            if ($ ("# post -" + post_id + ".description"). enfants ('p'). eq (1) .offset (). top> $ ("# post -" + post_id + ".deslcription .slide" ) .eq (1) .offset (). haut)
            {
                $ ("# post -" + post_id + ".description .slide"). eq (1) .after (ctaHtml);
            } autre {
                $ ("# post -" + post_id + ".description") .enfants ('p'). eq (1) .after (ctaHtml);
            }
        } autre {
            if ($ ("# post -" + post_id + ".description"). enfants ('p'). longueur> 2)
            {
                $ ("# post -" + post_id + ".description") .enfants ('p'). eq (1) .after (ctaHtml);
            } autre {
                $ ("# post -" + post_id + ".description .slide"). eq (1) .after (ctaHtml);
            }
        }
    } autre {
        if ($ ("# post -" + post_id + ".description"). enfants ('p'). longueur> 2)
            $ ("# post -" + post_id + ".description") .enfants ('p'). eq (1) .after (ctaHtml);
    }
  }

  // chèque publicitaire
  googletag.cmd.push (function () {
    googletag.pubads (). addEventListener ('slotRenderEnded', fonction (e) {
      si (e.isEmpty) {
        if ($ ("#" + e.slot.getSlotElementId ()). hasClbad ("instory_cta")) {
            $ ("#" + e.slot.getSlotElementId ()). html (ctaFallback);
            if (! ctaFallback) ctaFallback = "Repli";
        }
        $ ("#" + e.slot.getSlotElementId ()). parent (". adinsert"). slideUp (400);
        if (! $ ("# native_story .native-story-ad"). est (": visible") &&! $ (". topadbnr"). est ("visible")) {$ ("# native_story") .remove (); singleNativeCarousel = false; isSingleNativeCarousel = false; $ (". topadbnr"). show (); $ ("body"). css ({paddingTop: parseInt ($ ("# barreBar" "). outerHeight () + $ (". topadbnr "). outerHeight ()) +" px "});}
      } autre {
        $ ("#" + e.slot.getSlotElementId ()). parent (". adinsert"). slideDown (400);
      }
    });
  });

    // Obtenir l'histoire suivante
  fonction infinite_single_json (pageNumber, animation) {
  if (typeof (animation) === 'non défini') animation = 0;
    $ ('. loader_img: last'). show ();
    var get_all_post_ids = $ ("# get_all_post_ids"). val ();
    var all_post_ids_arr = new Array ();
    all_post_ids_arr = get_all_post_ids.split (",");
    var next_article_id = all_post_ids_arr[(parseInt(pageNumber) - 1 )];

    if (next_article_id && typeof (next_article_id)! == 'undefined')
    {
        if ($ ("# next_story _" + (parseInt (pageNumber)) + '_' + next_article_id) .length == 0)
        {
          if (load_start == 0)
          {
            load_start = 1;
            var action_url = 'https://www.vogue.in/wp-admin/admin-ajax.php';
            $ .ajax ({
              url: action_url + '? action = infinite_single_json',
              type: 'POST',
              data: {"page_no": pageNumber, 'get_all_post_ids': get_all_post_ids}
            }). done (fonction (données) {
                //console.log("infinite_data",data);
              load_start = 0; Articlecount ++;
              data = JSON.parse (data);
              $ ('. loader_img'). hide ();
              if (! data.sponsored_status &&! isLoggedIn &&! data.issue_id) singleStoryCookie (data.article_id);
              isSponsored = data.sponsored_status;

              ADPostId = data.article_id;

              $ (". next_article: last"). hide ();
              si (! data.is_mobile)
              {
                $ (".topadbnr: first") .remove ();
              }

              data.page_no_i = data.page_no + 1;
              data.encoded_permalink = encodeURI (data.permalink);

              // histoires liées commencent
              var sponsorisé 'non';
              if (data.sponsored_status) sponsorisé = 'oui';
              var topic_tags = [];
              $ .each (data.topic_tags, fonction (index, tag) {
                topic_tags.push (tag.term_id);
              });
              / * if (is_sponsored == 1)
              {
                get_related_stories (data.page_no, data.article_id, 'yes', data.category_term_id, topic_tags.join (','));
              }
              autre
              {
                get_related_stories (data.page_no, data.article_id, 'no', data.category_term_id, topic_tags.join (','));
              } * /

              if (! data.sponsored_status) load_instory_cta_ajax (data.article_id, data.page_no, data.category_term_id, data.magazineid);

              // code moustache
              var template = $ ('# template'). html ();
              Moustache.parse (modèle); // optionnel, accélère les utilisations futures
              var render = Moustache.render (modèle, données);
              if (Cookies.get ('cn_bid'))
              {
                dataLayerBID = Cookies.get ('cn_bid');
                re = new RegExp ("<%shareBid%>", "g");
                render = render.replace (re, dataLayerBID);
              }
              $ ("# load_article_content"). append (rendu);
              $ ("img.lazy"). lazyload ({
                  skip_invisible: true
              });

              if (data.issue_id)
              {
                marketing_text = data.marketing_text;
                check_ref_sub (data.article_id, data.id_issue, 'interne', data.guid, data.page_no);
              }

              var google_category = $ (". topadbnr: last"). attr ('data-google-category');
              var sponsor_ad = $ (". topadbnr: last"). attr ('data-sponsor-story');
              var is_sponsored = $ (". topadbnr: last"). attr ("data-is-Sponsored");
              var leaderboardcode = $ (". topadbnr: last"). attr ("data-leaderboard-code");
              var mpucode = $ (". topadbnr: last"). attr ("data-mpu-code");

              si (! data.is_magazine)
              {
                  si (! data.is_mobile)
                  {
                    $ ("# header-Ranking-ad" ". html (data.leaderboard_ad);
                  }
                  // $ ('# mpu-ad-slot'). html (data.mpu_ad);
                  // $ ("# secondary-mpu-ad-slot"). html (data.mpu_ad2);
                  mpuAd = data.mpu_ad;
              }
              si (! data.is_mobile)
              {
                dfpCount = 0;
                totalInterval = 0;
                clearInterval (ADintervalLeaderboard);
                autoADtimerLeaderboard ();
                clearInterval (ADintervalMPU);
                autoADtimerMPU ();
              }
               
              var currentDiv = $ ("# next_story _" + (parseInt (pageNumber)) + '_' + next_article_id);
              cnReplaceUrlandTitle (currentDiv.data ("post-title"), currentDiv.data ("post-url"));
              gtmSingleContinuousScroll ();
              processBrightcoveVideos ();
              si (animation == 1)
              {
                if (isMobile.any ())
                {
                    $ ("html, body"). animate ({
                      scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + '_' + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ ('# topadbnr'). outerHeight () + 20
                    }, 600);
                } autre {
                    $ ("html, body"). animate ({
                      scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + '_' + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ ('# topadbnr'). outerHeight ()
                    }, 600);
                }
              }
              onloadAjax.initAll ();
            });
          }
        } autre {
          si (animation == 1)
          {
            console.log ($ ("# next_story _" + (parseInt (pageNumber)) + '_' + next_article_id) .offset (). top, $ ("# navBar"). outerHeight (), $ ('# topadbnr') .outerHeight ());
            if (isMobile.any ())
            {
                $ ("html, body"). animate ({
                  scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + '_' + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ ('# topadbnr'). outerHeight () + 20
                }, 600);
            } autre {
                $ ("html, body"). animate ({
                  scrollTop: $ ("# next_story _" + (parseInt (pageNumber)) + '_' + next_article_id) .offset (). top - $ ("# navBar"). outerHeight () - $ ('# topadbnr'). outerHeight ()
                }, 600);
            }
          }
        }
    } autre {
        load_start = 1;
        $ ('. loader_img: last'). hide ();
    }
  }

    $ (document) .on ('cliquez sur', '.subscription_popup .content_btns', function () {
        gtmMagazineHomeSubscribe ("Page WebStory -" + $ (this) .data ("price"), "Click du bouton S'abonner");
    });

   $ (document) .on ('cliquez', '. close_reg_wall', function () {
     $ ('. reg_wall_v2'). fadeOut ();
  });
  
  $ (fenêtre) .load (fonction () {
     // alert ($ ('body'). find ('. has-responsive-video'). width ());
     
     
     if ($ (fenêtre) .width () <768)
     {
         $ ('. reg_wall_v2'). width ($ (fenêtre) .width ());
     }
     autre{
         $ ('. reg_wall_v2'). width ($ ('. has-responsive-video'). width ());
     }
  })

[ad_2]
Source link