How Rookie Changed the Web for Women and Women – The Lower

0&&p>s&&(p=s);for(var y=0;y

=0?(u=f.substr(0,v),c=f.substr(v+1)):(u=f,c=””),i=decodeURIComponent(u),l=decodeURIComponent(c),hasOwnProperty(o,i)?isArray(o[i])?o[i].push(l):o[i]=[o[i],l]:o[i]=l}return o};var isArray=Array.isArray||characteristic(r){return”[object Array]”===Object.prototype.toString.name(r)};
}, {}];
window.modules[“1130”] = [function(require,module,exports){“use strict”;var stringifyPrimitive=function(r){switch(typeof r){case”string”:return r;case”boolean”:return r?”true”:”false”;case”number”:return isFinite(r)?r:””;default:return””}};module.exports=function(r,e,t,n){return e=e||”&”,t=t||”=”,null===r&&(r=void 0),”object”==typeof r?map(objectKeys(r),function(n){var i=encodeURIComponent(stringifyPrimitive(n))+t;return isArray(r[n])?plan(r[n],characteristic(r){return i+encodeURIComponent(stringifyPrimitive(r))}).be half of(e):i+encodeURIComponent(stringifyPrimitive(r[n]))}).be half of(e):n?encodeURIComponent(stringifyPrimitive(n))+t+encodeURIComponent(stringifyPrimitive(r)):””};var isArray=Array.isArray||characteristic(r){return”[object Array]”===Object.prototype.toString.name(r)};characteristic plan(r,e){if(r.plan)return r.plan(e);for(var t=[],n=0;n=0;r–){var l=localStorage().key(r);e(learn(l),l)}}characteristic decide(e){return localStorage().removeItem(e)}characteristic clearAll(){return localStorage().certain()}module.exports={name:”localStorage”,learn:learn,write:write,each and each:each and each,decide:decide,clearAll:clearAll};
}, {“1170”:1170}];
window.modules[“1172″] = [function(require,module,exports){module.exports={name:”memoryStorage”,read:read,write:write,each:each,remove:remove,clearAll:clearAll};var memoryStorage={};function read(e){return memoryStorage[e]}characteristic write(e,r){memoryStorage[e]=r}characteristic each and each(e){for(var r in memoryStorage)memoryStorage.hasOwnProperty(r)&&e(memoryStorage[r],r)}characteristic decide(e){delete memoryStorage[e]}characteristic clearAll(e){memoryStorage={}}
}, {}];
window.modules[“article-nav.client”] = [function(require,module,exports){“use strict”;var dom=require(1),_throttle=require(23),$visibility=require(28),$popup=require(40),$gtm=require(41);DS.controller(“article-nav”,[function(){return function(t){var e=dom.find(“.page-header”),i=dom.find(“.article-content”),o=dom.find(t,”.deepscroll-headline”),r=dom.find(t,”.deepscroll-rubric”),n=dom.find(t,”.deepscroll-rubric-sponsored”),l=dom.find(“.article .article-header .rubric”),s=dom.find(“#deepscroll_center_divider”),a=dom.find(“.clay-paragraph”),d=dom.find(t,”.logo”),c=dom.find(t,”.dyn-cut-logo”),p=dom.find(t,”.article-nav-top”),u=dom.find(t,”.article-nav-deepscroll”),m=dom.find(‘link[rel=”canonical”]’),f=m&&m.getAttribute(“href”),g=dom.earn(‘meta[property=”og:image”]’)?dom.earn(‘meta[property=”og:image”]’).getAttribute(“lisp material”):””,h=dom.earn(‘meta[property=”og:title”]’)?dom.earn(‘meta[property=”og:title”]’).getAttribute(“lisp material”):””,y=dom.earn(t,”.fragment-link.facebook”),v=dom.earn(t,”.fragment-link.twitter”),w=dom.earn(t,”.fragment-link.pinterest”),b=t.classList.comprises(“header-straightforward”),x=window.getComputedStyle(d,null).getPropertyValue(“–targetFlexBasis”),C=window.getComputedStyle(d,null).getPropertyValue(“–verticalStart”)||0,L=window.getComputedStyle(d,null).getPropertyValue(“–verticalEnd”)||0;characteristic _(){!1,$()}characteristic $(){var o,r,n,l=t.getBoundingClientRect().top,s=window.getComputedStyle(d,null).getPropertyValue(“–baseFlexBasis”),m=s-x,f=(e.getBoundingClientRect().top-Fifty five)/-106,g=Math.abs(f),h=C-L-2,y=Math.spherical(C-(h*g+2)),v=Math.ceil(s-m*g);if(fl?t.classList.add(“after-scroll”):t.classList.decide(“after-scroll”),window.scrollY>l?e.classList.add(“header-after-scroll”):e.classList.decide(“header-after-scroll”),$visibility.getViewportWidth()>=1180&&i&&(o=a?$visibility.getPageOffset(a).top-70:0,r=$visibility.getPageOffset(i).top,n=Math.max(r,o),Math.max(window.scrollY,doc.physique.scrollTop)>=n)?t.classList.add(“deep-scroll”):t.classList.decide(“deep-scroll”)}characteristic k(t){var e=t.currentTarget,i=e.getAttribute(“href”),o=e.getAttribute(“knowledge-take care of”),r=$popup.getPopupClass(e.classList),n=$visibility.isBelowPrimaryContent(e)?”backside”:”top”;$gtm.reportNow({match:”social-fragment-widget”,clickLocation:n,socialNetwork:r}),$visibility.getViewportWidth()>=768&&r&&(t.preventDefault(),$popup.popWindow(r,o,i))}!characteristic(){var e=_throttle($,30);if(dom.findAll(t,”.fragment-link”).forEach(characteristic(t){return t.addEventListener(“click on”,k)}),y&&(y.href=”http://www.facebook.com/sharer/sharer.php?u=”+f+”?utm_source=fb&utm_medium=s3&utm_campaign=sharebutton-t”),v&&(v.href=”https://twitter.com/fragment?textual lisp material=”+encodeURIComponent(h)+”&url=”+f+”?utm_source=tw&utm_medium=s3&utm_campaign=sharebutton-t&by=”+v.getAttribute(“knowledge-take care of”)),w&&(w.href=”http://pinterest.com/pin/invent/button/?url=”+f+”?utm_source=pin&utm_medium=s3&utm_campaign=sharebutton-t&description=”+encodeURIComponent(h)+”&media=”+g),b)return;window.addEventListener(“scroll”,e),window.addEventListener(“resize”,_),l?l.classList.comprises(“rubric-sponsor-legend”)&&n?(r.classList.decide(“visible”),n.classList.add(“visible”),n.textContent=l.textual lisp material||l.textContent):(r.textContent=l.textual lisp material||l.textContent,r.href=l.href||”#”):(s.style.existing=”none”,r.style.existing=”none”);_(),o.textContent=h}()}}]);
}, {“1″:1,”23″:23,”28″:28,”Forty”:Forty,”forty one”:forty one}];
window.modules[“nav-dropdown-button.client”] = [characteristic(requiremoduleexports){“advisestrict”;vardom=require(1);characteristicgetNextSiblings(n){for(vart=[],e=n;e=e.nextElementSibling;)t.push(e);return t}module.exports=characteristic(n){var t,e=n.querySelector(“.nav-dropdown-button-trigger”),o=dom.earn(“physique”),i=dom.earn(“header.web lisp-header”),s=dom.earn(‘[data-editable=”main”]’);characteristic d(){var e,d=window.innerWidth0&&(this.isNavVariation&&e1?”s”:””),this.el.classList.decide(“no-comments”))},n.prototype.shouldRenderCommentStream=characteristic(){return-1!==e.indexOf(“@revealed”)},n}]);
}, {“1″:1,”34″:34,”seventy eight”:seventy eight,”seventy nine”:seventy nine}];
window.modules[“ad.client”] = [characteristic(requiremoduleexports){“advisestrict”;var_forEach=require(27)_max=require(29)$visibility=require(28)flaggedComponentsOnPage=characteristic(){varet=docquerySelector(“article-lispmaterial”)n=[];return t&&_forEach([‘.article-sidebar[data-width=”large”]’],characteristic(a){e=t.querySelectorAll(a),_forEach(e,characteristic(e){n.push(e)})}),n}();characteristic getElementsVerticalOverlap(e,t){var n=e.getBoundingClientRect(),a=t.getBoundingClientRect();return!(n.top>a.backside||n.trustya.trusty)?a.backside-n.top:0}characteristic getElementsOverlapAmount(e,t){var n,a=[];return _forEach(t,characteristic(t){n=getElementsVerticalOverlap(e,t),a.push(n)}),_max(a)}characteristic getCutAdChannel(e){return{all:””,animals:”Self/SoU”,class:”Model/Elegance”,”occupation money productiveness”:”Vitality/Money”,star:”Culture/Huge name”,”crime-assault”:”Vitality”,”culture-media”:”Culture”,style:”Model/Model”,”feminism-politics-identification”:”Vitality/Politics”,”relationships-chums household”:”Self”,”effectively being-wellness”:”Self/Health”,”dwelling construct”:”Model/Design_Hunting”,”learning creativity”:”Self/SoU”,residing:”Model”,thoroughly different:””,parenting:”Self/Motherhood”,”psychological effectively being persona social habits”:”Self”,”relationships-intercourse dating marriage”:”Self/sex_relationships”,browsing:”Model/Procuring”,weddings:”Model/Weddings”}[e]||””}characteristic getVultureAdChannel(e){var t=””;switch(e){case”tv”:case”music”:case”movies”:case”books”:case”comedy”:case”art”:case”theater”:t=e;fracture;default:t=””}return t}characteristic getIntelligencerAdChannel(e){var t=””;switch(e){case”politics-domestic”:case”politics-world”:t=”Politics”;fracture;case”industry”:case”cyber web-culture”:case”products-apps-instrument”:case”products-user-electronics”:t=”Alternate”;fracture;case”tech-industry”:case”tech-society”:t=”Abilities”;fracture;default:t=””}return t}characteristic getNYMagAdChannel(e){var t=””;switch(e){case”all”:t=e;fracture;case”company knowledge”:t=”company”;fracture;case”the massive apple guides & issues to possess”:t=”to-possess”;fracture;case”thoroughly different”:t=e;fracture;case”sponsored guides”:t=”s-guides”;fracture;default:t=””}return t}characteristic appendSectionToDfpAds(){var e,t,n,a=doc.querySelector(“meta[property=’og:site_name’]”),i=doc.querySelector(“article[data-content-channel]”),o=doc.querySelectorAll(‘[data-name^=”/4088/”]’);a&&(e=a.lisp material),i&&(t=i.getAttribute(“knowledge-lisp material-channel”).toLowerCase()),t&&(“The Lower”===e?n=getCutAdChannel(t):”Vulture”===e?n=getVultureAdChannel(t):”Intelligencer”===e?n=getIntelligencerAdChannel(t):”Fresh York Journal”===e&&(n=getNYMagAdChannel(t)),n&&_forEach(o,characteristic(e){e.setAttribute(“knowledge-name”,e.getAttribute(“knowledge-name”)+”/”+n)}))}characteristic injectGoogleScripts(){var e=doc.createElement(“script”),t=doc.createElement(“script”),n=doc.createDocumentFragment();e.src=”//www.googletagservices.com/mark/js/gpt.js”,e.async=”async”,t.src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”,t.async=”async”,n.appendChild(e),n.appendChild(t),doc.getElementsByTagName(“physique”)[0].appendChild(n)}appendSectionToDfpAds(),injectGoogleScripts(),DS.controller(“advert”,[“adService”,function(e){return function(t){var n,a,i=e.create(t),o=t.getAttribute(“data-offload”),r=new $visibility.Visible(t,{preloadThreshold:o?window.innerHeight/2:200}),s=!1;function l(){window.innerWidth>=1180&&t.parentElement.classList.contains(“ad-repeat”)&&flaggedComponentsOnPage.length&&(n=getElementsOverlapAmount(t,flaggedComponentsOnPage),a=parseInt(t.parentElement.getAttribute(“data-gap”),10),t.style.marginTop=a+30+n+”px”)}function c(){l(),e.refresh(i)}function d(){e.remove(i),s||(s=!0,r.on(“shown”,c))}r.preload&&$visibility.isElementNotHidden(t)?(e.addToPageLoadQueue(i),o&&r.on(“hidden”,d)):(r.on(“preload”,function(){!i.slot&&$visibility.isElementNotHidden(t)&&(l(),e.load(i))}),o&&r.on(“hidden”,d)),this.adData=i}}]);
}, {“27″:27,”28″:28,”29”:29}];
window.modules[“coral-talk.client”] = [characteristic(requiremoduleexports){“advisestrict”;varcoralEmbeddom=require(1)retailer=require(88)visibility=require(28)auth0=require(7)TALK_AUTH=”discuss:auth_token”hasEmbedScriptLoaded=!1hasCoralTalkRendered=!1;characteristicrenderComments(e){if(hasEmbedScriptLoaded&&!hasCoralTalkRendered){vart={discuss:””concat(windowlocationprotocol”//”)concat(eCORAL_TALK_HOST)auth_token:retailergain(TALK_AUTH)asset_url:eTALK_ASSET_URL};hasCoralTalkRendered=!0coralEmbed=windowCoralDiscussrender(ecommentStreamContainert)}}characteristiccoralLogin(){coralEmbedlogin(retailergain(TALK_AUTH))}characteristicembedScript(et){varn=doccreateElement(“script”);nform=”textuallispmaterial/javascript”nasync=!0nsrc=enaddEventListener(“load”characteristic(){hasEmbedScriptLoaded=!0renderComments(t)})docgetElementsByTagName(“head”)[0].appendChild(n)}characteristic attemptScriptEmbedding(e){hasEmbedScriptLoaded?renderComments(e):embedScript(e.EMBED_URL,e)}characteristic addVisibilityListener(e,t){new visibility.Considered(e,{preloadThreshold:750}).on(“preload”,characteristic(){return attemptScriptEmbedding(t)})}characteristic removeSignInButton(e){e&&e.parentNode&&dom.removeElement(e)}characteristic init(e){var t=e.getAttribute(“knowledge-coral-discuss-host”),n=””.concat(window.location.protocol,”//”).concat(t,”/embed.js”),i=doc.documentElement.getAttribute(“knowledge-uri”),o=”http://”.concat(i,”.html”),r=”trusty”===e.getAttribute(“knowledge-upkeep”),a=-1!==o.indexOf(“@revealed”),c=e.querySelector(“.coral-discuss-container”),d=e.querySelector(“.coral-discuss-btn-signin”),l={CORAL_TALK_HOST:t,EMBED_URL:n,commentStreamContainer:c,signInButton:d,TALK_ASSET_URL:o};!r&&a&&(auth0.on(“init”,characteristic(){addVisibilityListener(e,l),d.addEventListener(“click on”,characteristic(){return auth0.showLogin()}),auth0.isAuthenticated()&&removeSignInButton(d)}),auth0.on(“login”,characteristic(t,n){removeSignInButton(d),retailer.pronounce(TALK_AUTH,t[“http://nymag.com/coral_talk”],n),visibility.isElementInViewport(e)&&attemptScriptEmbedding(l),hasCoralTalkRendered&&coralLogin()}),auth0.on(“logout”,characteristic(){retailer.decide(TALK_AUTH)}))}module.exports=init;
}, {“1″:1,”7″:7,”28″:28,”88”:88}];
window.modules[“choreographer.client”] = [function(require,module,exports){“use strict”;var cookie=require(26),_require=require(63),insertSpeedBumpComponents=_require.insertSpeedBumpComponents,_require2=require(62),generateGrowl=_require2.generateGrowl,gtm=require(41),isProduction=require(6)(),_require3=require(64),getClientHistory=_require3.getClientHistory,updateClientHistoryWithPageData=_require3.updateClientHistoryWithPageData,auth0=require(7),_require4=require(61),Scenario=_require4.Scenario,cidReadyEvent=”nymcid-set”,cidKey=”nymcid”;function initializeChoreographer(e){var o=e.getAttribute(“data-site-slug”),t=pageShouldCountAsView(),n=auth0.isSubscriber();return o?getClientId(cidKey,8e3).then(function(e){return!isProduction&&console.log(“……clientId: “.concat(e,”……”)),!isProduction&&console.log(“……page counts as a view: “.concat(t)),t?updateClientHistoryWithPageData(e,o):getClientHistory(e)}).then(function(r){console.log(“……client history……”),console.table(r),!isProduction&&console.log(“……Evaluating scenarios……”);var i=readJSONFromScript(e.querySelector(“script”)),c=i.scenarios,a=i.touts,l=c.map(function(e){return Scenario(e,r,o,n)}).filter(function(e){return!isProduction&&console.log(“”.concat(e.action,”: “).concat(e.shouldShow)),!isProduction&&console.log(“……Scenario data ……”),!isProduction&&console.log(e),e.shouldShow}).reduce(function(e,o){var t=o.action,n=o.min,r=o.count,i=a.find(function(e){return e.value===t});return!i||e[i.type]?e:(e[i.type]=i,e[i.type].viewCount=r-n,e)},{});!isProduction&&console.log(“……active touts……”),!isProduction&&console.log(l),executeTouts(e,t,l,r)}).decide(console.error):!isProduction&&console.error(“siteSlug not found.”)}characteristic documentIncludesComponent(e){return doc.querySelector(‘[data-uri*=”/’.concat(e,’/”]’))}characteristic pageShouldCountAsView(){return!documentIncludesComponent(“product”)}characteristic executeTouts(e,o){var t=arguments.size>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.size>three?arguments[3]:void 0,r=n.world,i={totalArticleCount:r.total||0,standardArticleCount:r.Article||0,featureArticleCount:r.Feature||0,magazineArticleCount:r.Journal||0};o&&t[“content-cliff”]?cliff(findTemplate(e,”lisp material-cliff”),t[“content-cliff”],t[“content-cliff”].viewsLeft,n):t[“growl-newletter”]||!t[“promo-growl”]?t[“speed-bump”]&&insertSpeedBumpComponents(findTemplate(e,”tempo-bump”),t[“speed-bump”],i):promoGrowl(findTemplate(e,”growl-message”),{contentClass:”promo-lisp material”,title:void 0,name:t[“promo-growl”].name,scrollDepth:t[“promo-growl”].promoGrowlScrollDepth,cta:t[“promo-growl”].promoGrowlCTA,physique:t[“promo-growl”].promoGrowlMessage,link:t[“promo-growl”].promoGrowlLink,baseTrackingData:i})}characteristic promoGrowl(e,o){var t=o.contentClass,n=o.scrollDepth,r=o.name,i=o.title,c=o.physique,a=o.cta,l=o.link,u=o.baseTrackingData;var s,m=(s=’n n “),doc.createRange().createContextualFragment(s));m.querySelector(“a”).addEventListener(“click on”,characteristic(){var e=u;e.match=”eec.promotionClick”,e.ecommerce={promoClick:{promotions:[{name:r,creative:c,id:”promo growl”,position:”growl”}]}},gtm.reportNow(e)}),generateGrowl(e,”#growl-message”,{lisp material:m,scrollDepth:n,onShow:characteristic(){var e=u;e.match=”eec.promotionView”,e.ecommerce={promoView:{promotions:[{name:r,creative:c,id:”promo growl”,position:”growl”}]}},gtm.reportNow(e)}})}characteristic cliff(e,o,t,n){var r=n.first_visit,i=n.world,c={totalArticleCount:i.total||0,standardArticleCount:i.Article||0,featureArticleCount:i.Feature||0,magazineArticleCount:i.Journal||0},a=o.name,l=o.contentCliffWarningBody,u=o.contentCliffBody,s=doc.importNode(e,!0).querySelector(“.lisp material-cliff”),m=doc.querySelector(“.article-lisp material > .clay-paragraph”);s&&(m.insertAdjacentHTML(“afterend”,s.outerHTML),require(“lisp material-cliff.client”)(doc.querySelector(“.lisp material-cliff”),{cliffOptions:o,viewsLeft:t,firstVisit:Number(r),onWarn:characteristic(){var e=c;e.match=”eec.promotionView”,e.ecommerce={promoView:{promotions:[{name:a,creative:l,id:”warning growl”,position:”growl”}]}},gtm.reportNow(e)},onClickWarn:characteristic(){var e=c;e.match=”eec.promotionClick”,e.ecommerce={promoClick:{promotions:[{name:a,creative:l,id:”warning growl”,position:”growl”}]}},gtm.reportNow(e)},onShow:characteristic(){var e=c;e.match=”eec.promotionView”,e.ecommerce={promoView:{promotions:[{name:a,creative:u,id:”content cliff”,position:”in-article”}]}},gtm.reportNow(e)},onClickCliff:characteristic(){var e=c;e.match=”eec.promotionClick”,e.ecommerce={promoClick:{promotions:[{name:a,creative:u,id:”content cliff”,position:”in-article”}]}},gtm.reportNow(e)}}))}characteristic getClientId(){var e=arguments.size>0&&void 0!==arguments[0]?arguments[0]:””,o=arguments.size>1&&void 0!==arguments[1]?arguments[1]:8e3,t=cookie.gain(e);return t?Promise.unravel(t):new Promise(characteristic(t,n){var r=setTimeout(characteristic(){n(“might maybe presumably well not earn key: “.concat(e,” on cookie after “).concat(o,”ms”))},o);window.addEventListener(cidReadyEvent,characteristic(){clearTimeout(r),t(cookie.gain(e))})})}characteristic readJSONFromScript(e){are attempting{return JSON.parse(e.innerHTML)}decide(e){return{touts:[],eventualities:[]}}}characteristic findTemplate(e){var o=arguments.size>1&&void 0!==arguments[1]?arguments[1]:””,t=e&&e.querySelector(‘[data-template-id=”‘.concat(o,'”]’));return t&&t.lisp material}module.exports=characteristic(e){auth0.on(“init”,characteristic(){initializeChoreographer(e)})};
}, {“6″:6,”7″:7,”26″:26,”forty one”:forty one,”sixty one”:sixty one,”Sixty two”:Sixty two,”sixty three”:sixty three,”sixty four”:sixty four,”lisp material-cliff.client”:”lisp material-cliff.client”}];
window.modules[“growl.client”] = [function(require,module,exports){“use strict”;require(110);var dom=require(1),localStorageKeyRoot=”slideout-“,_require=require(85),getLocalStorage=_require.getLocalStorage,setLocalStorage=_require.setLocalStorage;module.exports=function(e,t){var o=t.content,r=t.onShow,i=t.scrollDepth,n=void 0===i?50:i,a=t.dismissable,s=void 0!==a&&a,c=Number(n||e.getAttribute(“data-display-at-page-scroll-percentage”)),l=dom.find(e,”.modal”),d=t.id||e.getAttribute(“id”),u=localStorageKeyRoot+d,g=getLocalStorage(u);function v(){l.classList.add(“hidden”)}function m(){setLocalStorage(u,!0),v()}s&&g?e.remove():(o&&e.querySelector(“[data-content]”).appendChild(o),c&&characteristic(){var e=arguments.size>0&&void 0!==arguments[0]?arguments[0]:50,t=new IntersectionObserver(characteristic(e){e[0]&&e[0].isIntersecting&&(l.style.top=”inherit”,l.classList.decide(“hidden”,”preliminary”),”characteristic”==typeof r&&r())});l.style.top=””.concat(doc.querySelector(“physique”).scrollHeight/(a hundred/e),”px”),t.test out(l)}(c),e.querySelector(“.put out of your mind-modal”).addEventListener(“click on”,characteristic(){return s?m():v()}),e.addEventListener(“growl:hide”,v),e.addEventListener(“growl:put out of your mind”,m))};
}, {“1″:1,”85″:85,”A hundred and ten”:A hundred and ten}];
window.modules[“speed-bump.client”] = [function(require,module,exports){“use strict”;var gtm=require(41),visibility=require(28);module.exports=function(e,i){if(i&&e){var o=i.name,r=i.speedbumpDescription,t=i.speedbumpMessage,n=i.speedbumpLink,s=i.baseTrackingData,c=new visibility.Visible(e,{shownThreshold:.5});e.querySelector(“.description”).innerHTML=r,e.querySelector(“.promo-link”).innerHTML=t,e.querySelector(“.promo-link”).href=n,e.classList.remove(“collapsed”),c.on(“shown”,function(){if(visibility.isElementNotHidden(e)){var i=s;i.event=”eec.promotionView”,i.ecommerce={promoView:{promotions:[{name:o,creative:r,id:”speed bump”,position:”in-article”}]}},gtm.reportNow(i),c.waste()}}),e.querySelector(“.promo-link”).addEventListener(“click on”,characteristic(){var e=s;e.match=”eec.promotionClick”,e.ecommerce={promoClick:{promotions:[{name:o,creative:r,id:”speed bump”,position:”in-article”}]}},gtm.reportNow(e)})}};
}, {“28″:28,”forty one”:forty one}];
window.modules[“content-cliff.client”] = [characteristic(requiremoduleexports){“advisestrict”;var_require=require(Sixtytwo)generateGrowl=_requiregenerateGrowlauth0=require(7)isProduction=require(6)()_require2=require(85)getLocalStorage=_require2getLocalStoragesetLocalStorage=_require2setLocalStorage;characteristicfindTemplate(n){vart=argumentssize>1&&void0!==arguments[1]?arguments[1]:””,e=n&&n.querySelector(‘[data-template-id=”‘.concat(t,'”]’));return e&&e.lisp material}module.exports=characteristic(n,t){if(t){var e,o=t.cliffOptions,r=t.viewCount,c=t.firstVisit,i=t.onWarn,a=t.onClickWarn,l=t.onShow,u=t.onClickCliff,f=o.contentCliffWarningTitle,s=o.contentCliffWarningBody,d=o.contentCliffWarningCTA,g=o.contentCliffWarningLink,v=o.contentCliffWarningScrollDepth,h=findTemplate(n,”lisp material-cliff-warning-growl”),w=300,m=[“taboola”],p=”#lisp material-cliff”,S=n,q=(e=0,doc.querySelectorAll(“[data-word-count]”).forEach(characteristic(n){e+=Number(n.getAttribute(“knowledge-note-depend”)||0,10)||0}),e),C=characteristic(n,t){characteristic e(n){return Math.spherical(n.getTime()/1e3/60)}var o=e(n),r=e(t);return o-r}(new Date,new Date(c))n n

n

‘).concat(c,’

n

‘).concat(u,’

n
‘).concat(s,”n

n n n “),doc.createRange().createContextualFragment(S));var S;characteristic q(){var n=new Date,t=n.getMonth(),e=n.getFullYear();return”lisp material-cliff-warning-displayed-“.concat(e,”-“).concat(t)}return p.querySelector(“a”).addEventListener(“click on”,a),{warn:characteristic(){generateGrowl(n,”#lisp material-cliff-warning-growl”,{lisp material:p,onShow:characteristic(){var n;i(),n=q(),setLocalStorage(n,”trusty”)},scrollDepth:h})},shouldWarn:characteristic(n){return t=q(),!(“trusty”===getLocalStorage(t))||n0&&void 0!==arguments[0]?arguments[0]:””;return doc.querySelectorAll(“”.concat(n,” ~ *”))}(p)).forEach(characteristic(n){return n.decide()}),t=o.contentCliffStatus,e=o.contentCliffPromo,r=o.contentCliffCTA,c=o.contentCliffURL,i=n.querySelector(“[data-content-cliff-status]”),a=n.querySelector(“[data-content-cliff-promo]”),(f=n.querySelector(“[data-content-cliff-cta]”))&&f.setAttribute(“href”,c),f&&f.insertAdjacentHTML(“afterbegin”,r),i&&i.insertAdjacentHTML(“afterbegin”,t),a&&a.insertAdjacentHTML(“afterbegin”,e),f&&f.addEventListener(“click on”,u),S.classList.decide(“collapsed”),m.forEach(characteristic(n){var t=doc.querySelector(‘[data-uri*=”/’.concat(n,’/”]’));t&&t.decide()}),b.addEventListener(“click on”,characteristic(){return auth0.showLogin()})}}[characteristic(){if(q1&&iclassListadd(“multi-youngsters”)a=0;a=1180?t.push({mode:a?”thumbnails-f”:”thumbnails-b”,container:”taboola-desktop-below-article-thumbnails”,placement:”Desktop Below Article Thumbnails”,target_type:”combine”}):window.innerWidth>=768?t.push({mode:a?”thumbnails-g”:”thumbnails-c”,container:”taboola-tablet-below-article-thumbnails”,placement:”Tablet Below Article Thumbnails”,target_type:”combine”}):t.push({mode:a?”thumbnails-h”:”thumbnails-d”,container:”taboola-mobile-below-article-thumbnails”,placement:”Cell Below Article Thumbnails”,target_type:”combine”})}module.exports=characteristic(t){var e,a,o,i,n=t.getAttribute(“knowledge-taboolaId”),l=t.getAttribute(“knowledge-space-slug”);t.classList.comprises(“disabled”)||(window._taboola=window._taboola||[],window._taboola.push({article:”auto”}),e=doc.createElement(“script”),a=doc.getElementsByTagName(“script”)[0],o=”//cdn.taboola.com/libtrc/”.concat(n,”/loader.js”),i=”tb_loader_script”,doc.getElementById(i)||(e.async=1,e.src=o,e.identification=i,a.parentNode.insertBefore(e,a)),window.efficiency&&”characteristic”==typeof window.efficiency.trace&&window.efficiency.trace(“tbl_ic”),pushUnits(window._taboola,l),window._taboola.push({flush:!0}))};
}, {}];
window.modules[“article.client”] = [function(require,module,exports){“use strict”;var $visibility=require(28),$gtm=require(41);DS.controller(“article”,[function(){var e=40;function t(t){var i=document.querySelector(“.wrapper > .tertiary”),n=t.querySelector(“.article-header”),r=n?n.querySelector(“img”):null,o=function(){i.style.paddingTop=n.getBoundingClientRect().height+e+”px”};i&&n&&(window.innerWidth-1,o=new RegExp(“[\?&]mark=[^&]+”);if(r&&n)return(i=_get(e,”search”,””)).match(o)||(e.search=(i?i+”&”:”?”)+”mark=”+n),e.href}(u,r)||f(s,r,u))&&(u.href=i))}characteristic h(e){var t,n,r=dom.closest(e.aim,”a”),o=r&&r.href;o&&o.size&&(r.href=(n=(t=o).split(i)).size>1?decodeURIComponent(n[1]):t)}return characteristic(e){var i=characteristic(e){return!!(r=e.getAttribute(“knowledge-skimlinks”))}(e),a=characteristic(e){return!!(n=e.getAttribute(“knowledge-amazon”))}(e);search the recommendation of with.onceReady(characteristic(e){o=e}),(i||a)&&(!characteristic(e){t=(e.getAttribute(“knowledge-excluded-hostnames”)||””).toLowerCase().split(“,”)}(e),globalClick.addHandler(_,h))}}]);
}, {“1″:1,”30″:30,”31″:31,”32″:32,”33″:33,”34″:34,”35″:35,”36”:36}];
window.modules[“gtm.client”] = [function(require,module,exports){“use strict”;var $gtm=require(41);DS.controller(“gtm”,[function(){return function(t){$gtm.init(t.getAttribute(“data-container-id”))}}]);
}, {“forty one”:forty one}];
window.modules[“sailthru-personalization-pixel.client”] = [function(require,module,exports){“use strict”;DS.controller(“sailthru-personalization-pixel”,[function(){return function(){var t,e=document.querySelector(“.sailthru-personalization-pixel”),o=e.getAttribute(“data-horizon”);(t=document.createElement(“script”)).type=”text/javascript”,t.async=!0,t.src=”https://ak.sail-horizon.com/horizon/v1.js”,t.onload=function(){Sailthru.setup({domain:o,useStoredTags:!1})},e.appendChild(t)}}]);
}, {}];
window.modules[“global-nav.client”] = [function(require,module,exports){“use strict”;var dom=require(1),auth0=require(7),signInButton=dom.find(“.user-signin”),signOutButton=dom.find(“.user-signout”);function init(i){auth0.on(“init”,function(){signInButton.addEventListener(“click”,function(){return auth0.showLogin()}),signOutButton.addEventListener(“click”,function(){return auth0.logout()}),auth0.isAuthenticated()&&i.classList.add(“signed-in”),auth0.isSubscriber()&&i.classList.add(“subscribed”)}),auth0.on(“login”,function(){i.classList.add(“signed-in”),auth0.isSubscriber()&&i.classList.add(“subscribed”)}),auth0.on(“logout”,function(){i.classList.remove(“signed-in”),i.classList.remove(“subscribed”)})}module.exports=init;
}, {“1″:1,”7”:7}];
window.modules[“aaa-module-mounting.legacy”] = [function(require,module,exports){“use strict”;var eventify=require(133),_pickBy=require(57),_each=require(210),fingerprintjs2=require(209),DS=require(208);function registerGlobals(){window.DS=DS,window.Eventify=eventify,window.Fingerprint2=fingerprintjs2,DS.value(“Eventify”,eventify),DS.value(“Fingerprint2”,fingerprintjs2),DS.value(“$document”,window.document),DS.value(“$window”,window)}function mountDollarSliceComponents(){DS.service(“components”,[“$document”,”$module”,function(e,n){var r=_pickBy(n.definitions,function(e){return e.providerStrategy===n.providers.controller}),o=Object.keys(r);function t(e){return function(r){try{n.get(e,r)}catch(e){logMountError(r,e)}}}_each(o,function(n){var r=e.querySelectorAll(‘[data-uri*=”/_components/’+n+’/”]’),o=e.querySelectorAll(‘[data-uri$=”/_components/’+n+'”]’);_each(r,t(n)),_each(o,t(n))}),this.substances=o}]),DS.gain(“substances”)}characteristic logMountError(e,n){var r=e.outerHTML.gash(0,e.outerHTML.indexOf(e.innerHTML));console.error(“Error attaching controller to “+r,n)}registerGlobals(),doc.addEventListener(“DOMContentLoaded”,characteristic(){mountDollarSliceComponents()});
}, {“fifty seven”:fifty seven,”133″:133,”208″:208,”209″:209,”210″:210}];
window.modules[“ads.legacy”] = [characteristic(requiremoduleexports){“advisestrict”;var_map=require(37)_forEach=require(27)_isString=require(155)_each=require(210)_debounce=require(101)_sortBy=require(ninetyfive)weblisp=require(164)searchtherecommendationofwith=require(35);DSservice(“adService”[“Eventify””$cid””$doc””$window”characteristic(etai){varnrosduc={}l=thisg=[],f=search the recommendation of with.getQueryParamsObject([“utm_campaign”]);i.NYM={},i.NYM.analytics={},i.NYM.analytics.adStartTime=i.efficiency.now(),i.googletag=i.googletag||{},i.googletag.cmd=i.googletag.cmd||[],u=i.googletag,n=characteristic(e){var t,a,n=e.knowledge;return n.loaded?e:(n.loaded=!0,t=null,(t=n.sizes?u.defineSlot(n.name,n.sizes,n.identification).addService(u.pubads()):u.defineOutOfPageSlot(n.name,n.identification).addService(u.pubads())).setTargeting(“adid”,n.identification),f.hasOwnProperty(“utm_campaign”)&&t.setTargeting(“utmcamp”,f.utm_campaign),a=l.getAdCount(n.imprint),t.setTargeting(“imprint”,n.imprint+”_”+n.space+”-“+a),u.existing(n.identification),u.pubads().addEventListener(“slotOnload”,characteristic(){i.NYM.analytics.firstAdLoadTime||(i.NYM.analytics.firstAdLoadTime=i.efficiency.now(),i.NYM.analytics.firstAdLoadLabel=e.knowledge.imprint)}),e.slot=t,e)},r=characteristic(e){var a,i,n,r=t(),o=e.getAttribute(“knowledge-name”),s=e.getAttribute(“knowledge-sizes”),d=e.getAttribute(“knowledge-imprint”),u=e.getAttribute(“knowledge-space”);r=e.identification,s&&s.size?(s=s.split(“,”),a=[],_map(s,characteristic(e){e=e.split(“x”),i=parseInt(e[0]),n=parseInt(e[1]),a.push([i,n])})):(e.classList.add(“oop”),a=!1),this.knowledge={identification:r,name:o,sizes:a,loaded:!1,imprint:d,space:u},c[r]=this},s=characteristic(e){u.cmd.push(characteristic(){var t=n(e);c[e.data.id]=t})},o=characteristic(e){e.slot?u.pubads().refresh([e.slot],{changeCorrelator:!1}):e&&s(e)},u.cmd.push(characteristic(){var e,t,n,r=web lisp.getMeta(“article:mark”),o=web lisp.getMeta(“author”),s=i.location.href,d=(e=a.head.querySelector(“.head-gtm”),t=a.physique.querySelector(“.gtm”),e&&”top”===e.getAttribute(“knowledge-gtm”)?”gtmtop”:t&&”backside”===t.getAttribute(“knowledge-gtm”)?”gtmbottom”:””);n=[],_forEach([r,o,d],characteristic(e){_forEach(e.split(“,”),characteristic(e){(e=e.natty().toLowerCase().change(/s/g,”-“).change(/’|’/g,””)).size&&n.push(e)})}),u.pubads().setTargeting(“kw”,n),s=s.gash(s.lastIndexOf(“/”)+1),u.pubads().setTargeting(“pn”,s),u.companionAds().setRefreshUnfilledSlots(!0),u.pubads().enableAsyncRendering(),u.enableServices()}),this.load=s,this.invent=characteristic(e){return new r(e)},this.refresh=characteristic(e){var t;_isString(e)?(t=this.getById(e),o(t)):o(e)},this.decide=characteristic(e){var t=e.knowledge.identification;a.getElementById(t).innerHTML=””},this.getAdCount=characteristic(e){var t,a=0,i=Object.keys(c);return _each(i,characteristic(i){(t=c[i]).knowledge.loaded&&t.knowledge.imprint===e&&a++}),a},this.getById=characteristic(e){return c[e]},d=_debounce(characteristic(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:ninety nine,”homepageTakeover/TopLeaderboard”:1},t=_sortBy(g,characteristic(t){return e[t.data.label]||10});_forEach(t,characteristic(e){return e.knowledge.sizes?s(e):i.setTimeout(characteristic(){s(e)},1200)}),g=[]},10),this.addToPageLoadQueue=characteristic(e){g.push(e),d()}}]);
}, {“27″:27,”35″:35,”37″:37,”ninety five”:ninety five,”101″:101,”155″:155,”164″:164,”210″:210}];
window.modules[“chartbeat.legacy”] = [function(require,module,exports){“use strict”;var page=require(164),auth0=require(7);DS.service(“chartbeat”,[“$document”,”$window”,function(t,e){var a,n,o,i,c,s=t.getElementById(“cb-sponsor-data”);function r(){var a=t.createElement(“script”);e._sf_endpt=(new Date).getTime(),a.setAttribute(“language”,”javascript”),a.setAttribute(“type”,”text/javascript”),a.setAttribute(“src”,”//static.chartbeat.com/js/chartbeat.js”),t.body.appendChild(a)}e._sf_async_config={uid:19989,useCanonical:!0,domain:”nymag.com”,sections:(a=page.getSiteBase(),n=page.getSiteName(),o=n||a,”The Cut”!==o&&”Vulture”!==o||(o+=[“,”,o,page.getChannel()].be half of(” “)),o)},(i=web lisp.getPrimaryPageComponent())&&”Sponsored Account”===i.getAttribute(“knowledge-form”)?(e._sf_async_config.sponsorName=s&&s.getAttribute(“knowledge-sponsor”),e._sf_async_config.form=”Sponsored”):e._sf_async_config.sponsorName=void 0,(c=t.querySelectorAll(“.article-author”)).size&&(e._sf_async_config.authors=c[0].textContent.natty()),e._cbq=e._cbq||[],auth0.on(“init”,characteristic(){var a,n;e._cbq.push([“_acct”,auth0.isAuthenticated()?”lgdin”:”anon”]),a=r,”total”===t.readyState?a():(n=”characteristic”==typeof e.onload?e.onload:characteristic(){},e.onload=characteristic(){n(),a()})})}]),setTimeout(characteristic(){DS.gain(“chartbeat”)},0);
}, {“7″:7,”164”:164}];
window.modules[“cid.legacy”] = [function(require,module,exports){“use strict”;DS.service(“$cid”,function(){var r=Math.floor(100*Math.random());return function(){return”cid-“+ ++r}});
}, {}];
window.modules[“facebook.legacy”] = [characteristic(requiremoduleexports){“advisestrict”;DSservice(“facebook”[characteristic(){thisfb=characteristic(i){windowFB&&windowFB[i].apply(this,Array.prototype.gash.name(arguments,1))}}]);
}, {}];
require=(characteristic e(t,n,r){characteristic s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==”characteristic”&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(“Can’t earn module ‘”+o+”‘”);throw f.code=”MODULE_NOT_FOUND”,f}var l=n[o]={exports:{}};t[o][0].name(l.exports,characteristic(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==”characteristic”&&require;for(var o=0;o typeof key === ‘string’ && key.match(/.legacy$/))
.forEach((key) => window.require(key));
}

characteristic tryToMount(fn, el, name) {
are attempting {
fn(el); // init the controller
} decide (e) {
const elementTag = el.outerHTML.gash(0, el.outerHTML.indexOf(el.innerHTML));

console.error(`Error initializing controller for “${name}” on “${elementTag}”`, e);
}
}

/**
* mount client.js factor controllers
*/
characteristic mountComponentModules() {
Object.keys(window.modules)
.filter((key) => typeof key === ‘string’ && key.match(/.client$/))
.forEach((key) => {
let controllerFn = window.require(key);

if (typeof controllerFn === ‘characteristic’) {
const name = key.change(‘.client’, ”),
instancesSelector = `[data-uri*=”_components/${name}/”]`,
defaultSelector = `[data-uri$=”_components${name}”]`,
cases = doc.querySelectorAll(instancesSelector),
defaults = doc.querySelectorAll(defaultSelector);

for (let el of cases) {
tryToMount(controllerFn, el, name);
}

for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}

// existing: legacy controllers that require legacy products and services (e.g. buck-gash) must
// wait for DOMContentLoaded to initialize themselves, because the files themselves want to be mounted first
mountLegacyServices();
mountComponentModules();

// ]]

Read More

Leave a Reply