‘Smile’ Blu-Ray Receives Release Date Just in Time for the

0
99

[]
{this.persisted=e.persisted})),window.addEventListener(“DOMContentLoaded”,(()=>{this._preconnect3rdParties()})),this.delayedScripts={normal:[],async:[],defer:[]},this.allJQueries=[]}_addUserInteractionListener(e){document.hidden?e._triggerListener():(this.triggerEvents.forEach((t=>window.addEventListener(t,e.userEventHandler,{passive:!0}))),window.addEventListener(“touchstart”,e.touchStartHandler,{passive:!0}),window.addEventListener(“mousedown”,e.touchStartHandler),document.addEventListener(“visibilitychange”,e.userEventHandler))}_removeUserInteractionListener(){this.triggerEvents.forEach((e=>window.removeEventListener(e,this.userEventHandler,{passive:!0}))),document.removeEventListener(“visibilitychange”,this.userEventHandler)}_onTouchStart(e){“HTML”!==e.target.tagName&&(window.addEventListener(“touchend”,this.touchEndHandler),window.addEventListener(“mouseup”,this.touchEndHandler),window.addEventListener(“touchmove”,this.touchMoveHandler,{passive:!0}),window.addEventListener(“mousemove”,this.touchMoveHandler),e.target.addEventListener(“click”,this.clickHandler),this._renameDOMAttribute(e.target,”onclick”,”rocket-onclick”))}_onTouchMove(e){window.removeEventListener(“touchend”,this.touchEndHandler),window.removeEventListener(“mouseup”,this.touchEndHandler),window.removeEventListener(“touchmove”,this.touchMoveHandler,{passive:!0}),window.removeEventListener(“mousemove”,this.touchMoveHandler),e.target.removeEventListener(“click”,this.clickHandler),this._renameDOMAttribute(e.target,”rocket-onclick”,”onclick”)}_onTouchEnd(e){window.removeEventListener(“touchend”,this.touchEndHandler),window.removeEventListener(“mouseup”,this.touchEndHandler),window.removeEventListener(“touchmove”,this.touchMoveHandler,{passive:!0}),window.removeEventListener(“mousemove”,this.touchMoveHandler)}_onClick(e){e.target.removeEventListener(“click”,this.clickHandler),this._renameDOMAttribute(e.target,”rocket-onclick”,”onclick”),this.interceptedClicks.push(e),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()}_replayClicks(){window.removeEventListener(“touchstart”,this.touchStartHandler,{passive:!0}),window.removeEventListener(“mousedown”,this.touchStartHandler),this.interceptedClicks.forEach((e=>{e.target.dispatchEvent(new MouseEvent(“click”,{view:e.view,bubbles:!0,cancelable:!0}))}))}_renameDOMAttribute(e,t,n){e.hasAttribute&&e.hasAttribute(t)&&(event.target.setAttribute(n,event.target.getAttribute(t)),event.target.removeAttribute(t))}_triggerListener(){this._removeUserInteractionListener(this),”loading”===document.readyState?document.addEventListener(“DOMContentLoaded”,this._loadEverythingNow.bind(this)):this._loadEverythingNow()}_preconnect3rdParties(){let e=[];document.querySelectorAll(“script[type=rocketlazyloadscript]”).forEach((t=>{if(t.hasAttribute(“src”)){const n=new URL(t.src).origin;n!==location.origin&&e.push({src:n,crossOrigin:t.crossOrigin||”module”===t.getAttribute(“data-rocket-type”)})}})),e=[…new Map(e.map((e=>[JSON.stringify(e),e]))).values()],this._batchInjectResourceHints(e,”preconnect”)}async _loadEverythingNow(){this.lastBreath=Date.now(),this._delayEventListeners(),this._delayJQueryReady(this),this._handleDocumentWrite(),this._registerAllDelayedScripts(),this._preloadAllScripts(),await this._loadScriptsFromList(this.delayedScripts.normal),await this._loadScriptsFromList(this.delayedScripts.defer),await this._loadScriptsFromList(this.delayedScripts.async);try{await this._triggerDOMContentLoaded(),await this._triggerWindowLoad()}catch(e){}window.dispatchEvent(new Event(“rocket-allScriptsLoaded”)),this._replayClicks()}_registerAllDelayedScripts(){document.querySelectorAll(“script[type=rocketlazyloadscript]”).forEach((e=>{e.hasAttribute(“src”)?e.hasAttribute(“async”)&&!1!==e.async?this.delayedScripts.async.push(e):e.hasAttribute(“defer”)&&!1!==e.defer||”module”===e.getAttribute(“data-rocket-type”)?this.delayedScripts.defer.push(e):this.delayedScripts.normal.push(e):this.delayedScripts.normal.push(e)}))}async _transformScript(e){return await this._littleBreath(),new Promise((t=>{const n=document.createElement(“script”);[…e.attributes].forEach((e=>{let t=e.nodeName;”type”!==t&&(“data-rocket-type”===t&&(t=”type”),n.setAttribute(t,e.nodeValue))})),e.hasAttribute(“src”)?(n.addEventListener(“load”,t),n.addEventListener(“error”,t)):(n.text=e.text,t());try{e.parentNode.replaceChild(n,e)}catch(e){t()}}))}async _loadScriptsFromList(e){const t=e.shift();return t?(await this._transformScript(t),this._loadScriptsFromList(e)):Promise.resolve()}_preloadAllScripts(){this._batchInjectResourceHints([…this.delayedScripts.normal,…this.delayedScripts.defer,…this.delayedScripts.async],”preload”)}_batchInjectResourceHints(e,t){var n=document.createDocumentFragment();e.forEach((e=>{if(e.src){const i=document.createElement(“link”);i.href=e.src,i.rel=t,”preconnect”!==t&&(i.as=”script”),e.getAttribute&&”module”===e.getAttribute(“data-rocket-type”)&&(i.crossOrigin=!0),e.crossOrigin&&(i.crossOrigin=e.crossOrigin),n.appendChild(i)}})),document.head.appendChild(n)}_delayEventListeners(){let e={};function t(t,n){!function(t){function n(n){return e[t].eventsToRewrite.indexOf(n)>=0?”rocket-“+n:n}e[t]||(e[t]={originalFunctions:{add:t.addEventListener,remove:t.removeEventListener},eventsToRewrite:[]},t.addEventListener=function(){arguments[0]=n(arguments[0]),e[t].originalFunctions.add.apply(t,arguments)},t.removeEventListener=function(){arguments[0]=n(arguments[0]),e[t].originalFunctions.remove.apply(t,arguments)})}(t),e[t].eventsToRewrite.push(n)}function n(e,t){let n=e[t];Object.defineProperty(e,t,{get:()=>n||function(){},set(i){e[“rocket”+t]=n=i}})}t(document,”DOMContentLoaded”),t(window,”DOMContentLoaded”),t(window,”load”),t(window,”pageshow”),t(document,”readystatechange”),n(document,”onreadystatechange”),n(window,”onload”),n(window,”onpageshow”)}_delayJQueryReady(e){let t=window.jQuery;Object.defineProperty(window,”jQuery”,{get:()=>t,set(n){if(n&&n.fn&&!e.allJQueries.includes(n)){n.fn.ready=n.fn.init.prototype.ready=function(t){e.domReadyFired?t.bind(document)(n):document.addEventListener(“rocket-DOMContentLoaded”,(()=>t.bind(document)(n)))};const t=n.fn.on;n.fn.on=n.fn.init.prototype.on=function(){if(this[0]===window){function e(e){return e.split(” “).map((e=>”load”===e||0===e.indexOf(“load.”)?”rocket-jquery-load”:e)).join(” “)}”string”==typeof arguments[0]||arguments[0]instanceof String?arguments[0]=e(arguments[0]):”object”==typeof arguments[0]&&Object.keys(arguments[0]).forEach((t=>{delete Object.assign(arguments[0],{[e(t)]:arguments[0][t]})[t]}))}return t.apply(this,arguments),this},e.allJQueries.push(n)}t=n}})}async _triggerDOMContentLoaded(){this.domReadyFired=!0,await this._littleBreath(),document.dispatchEvent(new Event(“rocket-DOMContentLoaded”)),await this._littleBreath(),window.dispatchEvent(new Event(“rocket-DOMContentLoaded”)),await this._littleBreath(),document.dispatchEvent(new Event(“rocket-readystatechange”)),await this._littleBreath(),document.rocketonreadystatechange&&document.rocketonreadystatechange()}async _triggerWindowLoad(){await this._littleBreath(),window.dispatchEvent(new Event(“rocket-load”)),await this._littleBreath(),window.rocketonload&&window.rocketonload(),await this._littleBreath(),this.allJQueries.forEach((e=>e(window).trigger(“rocket-jquery-load”))),await this._littleBreath();const e=new Event(“rocket-pageshow”);e.persisted=this.persisted,window.dispatchEvent(e),await this._littleBreath(),window.rocketonpageshow&&window.rocketonpageshow({persisted:this.persisted})}_handleDocumentWrite(){const e=new Map;document.write=document.writeln=function(t){const n=document.currentScript,i=document.createRange(),r=n.parentElement;let o=e.get(n);void 0===o&&(o=n.nextSibling,e.set(n,o));const s=document.createDocumentFragment();i.setStart(s,0),s.appendChild(i.createContextualFragment(t)),r.insertBefore(s,o)}}async _littleBreath(){Date.now()-this.lastBreath>45&&(await this._requestAnimFrame(),this.lastBreath=Date.now())}async _requestAnimFrame(){return document.hidden?new Promise((e=>setTimeout(e))):new Promise((e=>requestAnimationFrame(e)))}static run(){const e=new RocketLazyLoadScripts;e._addUserInteractionListener(e)}}RocketLazyLoadScripts.run();]]> .mvp-blog-story-wrap”,”skip”:0,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“desktop”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:”body.single, body.page:not(.home)”,”spacing”:0.85,”max”:1,”lazy”:true,”lazyMax”:98,”elementSelector”:”#mvp-content-main > *:not(h2):not(h3):not(.wp-block-image) + *:not(.wp-block-image):not(.wp-block-embed-youtube):not(.instagram-media), .mvp-post-add-story”,”skip”:3,”classNames”:[],”position”:”beforebegin”,”every”:1,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“tablet”,”phone”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:”body.single, body.page:not(.home)”,”spacing”:0.85,”max”:2,”lazy”:true,”lazyMax”:97,”elementSelector”:”#mvp-content-main > *:not(h2):not(h3):not(.wp-block-image) + *:not(.wp-block-image):not(.wp-block-embed-youtube):not(.instagram-media), .mvp-post-add-story”,”skip”:3,”classNames”:[],”position”:”beforebegin”,”every”:1,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Below Post”],”key”:”location”}],”devices”:[“desktop”,”tablet”,”phone”],”name”:”Below_Post”,”sticky”:false,”location”:”Below Post”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:0,”lazy”:true,”lazyMax”:1,”elementSelector”:”#mvp-related-posts”,”skip”:0,”classNames”:[],”position”:”beforebegin”,”every”:1,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[250,250],[1,1],[320,100],[300,250],[970,250],[728,250]],”priority”:99,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Footer”],”key”:”location”},{“value”:true,”key”:”sticky”}],”devices”:[“desktop”,”phone”,”tablet”],”name”:”Footer”,”sticky”:true,”location”:”Footer”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:1,”lazy”:false,”lazyMax”:null,”elementSelector”:”body”,”skip”:0,”classNames”:[],”position”:”beforeend”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[320,100],[728,90],[970,90],[468,60],[1,1],[300,50]],”priority”:-1,”autosize”:true}],”adDensityLayout”:{“mobile”:{“adDensity”:0.25,”onePerViewport”:false},”pageOverrides”:[],”desktop”:{“adDensity”:0.22,”onePerViewport”:false}},”adDensityEnabled”:true,”siteExperiments”:[],”adTypes”:{“nativeMobileRecipe”:true,”expandableFooter”:true,”nativeDesktopSidebar”:true,”nativeDesktopContent”:true,”outstreamDesktop”:true,”interscroller”:false,”miniscroller”:true,”nativeDesktopRecipe”:true,”outstreamMobile”:true,”animatedFooter”:true,”nativeMobileContent”:true},”adOptions”:{“theTradeDesk”:true,”verizon”:true,”undertone”:true,”footerCloseButton”:true,”teads”:true,”pmp”:false,”thirtyThreeAcross”:true,”sharethrough”:true,”removeVideoTitleWrapper”:true,”pubMatic”:true,”roundel”:true,”infiniteScroll”:false,”yahoossp”:true,”sonobi”:true,”yieldmo”:true,”footerSelector”:””,”amazonUAM”:true,”gamMCMEnabled”:true,”gamMCMChildNetworkCode”:”22515929979″,”stickyContainerAds”:true,”rubicon”:true,”conversant”:false,”openx”:true,”mobileHeaderHeight”:1,”unruly”:true,”mediaGrid”:true,”bRealTime”:true,”gumgum”:true,”comscoreFooter”:true,”desktopInterstitial”:true,”footerCloseButtonDesktop”:false,”isAutoOptimized”:false,”comscoreTAL”:true,”brightroll”:true,”targetaff”:false,”advancePlaylistOptions”:{“playlistPlayer”:{“enabled”:true},”relatedPlayer”:{“enabled”:true,”applyToFirst”:true}},”kargo”:true,”liveRampATS”:true,”footerCloseButtonMobile”:false,”allowSmallerAdSizes”:true,”comscore”:”General”,”mobileInterstitial”:true,”tripleLift”:true,”sensitiveCategories”:[“alcohol”,”astrology, black magic, esoteric”,”cbd”,”consumer loans”,”cosmetic procedures and body modification”,”dating”,”downloadable utilities”,”drugs and supplements”,”games, casinos”,”games, video, casual”,”get rich quick”,”politics”,”religion”,”sensationalism”,”sex and sexuality references”,”sexual and reproductive health”,”skin exposure”,”tobacco”,”weight loss”],”liveRamp”:true,”mobileInterstitialBlockedPageSelectors”:””,”adthriveEmailIdentity”:true,”criteo”:true,”nativo”:false,”infiniteScrollOptions”:{“selector”:””,”heightThreshold”:0},”clsOptimizedAds”:true,”colossus”:true,”verticals”:[“Entertainment”],”inImage”:false,”advancePlaylist”:true,”delayLoading”:false,”inImageZone”:null,”appNexus”:true,”liveRampId”:””,”infiniteScrollRefresh”:false,”indexExchange”:true},”videoPlayers”:{“contextual”:{“autoplayCollapsibleEnabled”:true,”overrideEmbedLocation”:false,”defaultPlayerType”:”collapse”},”videoEmbed”:”wordpress”,”footerSelector”:””,”players”:[{“playlistId”:”uPUllysa”,”pageSelector”:”body.single, body.page:not(.home)”,”devices”:[“desktop”],”description”:””,”skip”:0,”title”:””,”type”:”stickyPlaylist”,”enabled”:true,”elementSelector”:”#mvp-content-main > *:not(h2):not(h3)”,”id”:4079455,”position”:”afterend”,”saveVideoCloseState”:false,”shuffle”:false,”mobileHeaderSelector”:null,”playerId”:”XTBI11BL”},{“playlistId”:”uPUllysa”,”pageSelector”:”body.single, body.page:not(.home)”,”devices”:[“mobile”],”mobileLocation”:”top-center”,”description”:””,”skip”:0,”title”:””,”type”:”stickyPlaylist”,”enabled”:true,”elementSelector”:”#mvp-content-main > *:not(h2):not(h3)”,”id”:4079454,”position”:”afterend”,”saveVideoCloseState”:false,”shuffle”:false,”mobileHeaderSelector”:”#mvp-main-nav-top”,”playerId”:”XTBI11BL”},{“playlistId”:””,”pageSelector”:””,”devices”:[“mobile”,”desktop”],”mobileLocation”:null,”description”:””,”skip”:0,”title”:””,”type”:”stationaryRelated”,”enabled”:true,”elementSelector”:””,”id”:4079456,”position”:””,”saveVideoCloseState”:false,”shuffle”:false,”mobileHeaderSelector”:null,”playerId”:”XTBI11BL”},{“playlistId”:””,”pageSelector”:””,”devices”:[“desktop”],”description”:””,”skip”:0,”title”:””,”type”:”stickyRelated”,”enabled”:true,”elementSelector”:”#mvp-content-main > *:not(h2):not(h3)”,”id”:4079632,”position”:”afterend”,”saveVideoCloseState”:false,”shuffle”:false,”mobileHeaderSelector”:null,”playerId”:”XTBI11BL”},{“playlistId”:””,”pageSelector”:””,”devices”:[“mobile”],”mobileLocation”:”top-center”,”description”:””,”skip”:0,”title”:””,”type”:”stickyRelated”,”enabled”:true,”elementSelector”:”#mvp-content-main > *:not(h2):not(h3)”,”id”:4079633,”position”:”afterend”,”saveVideoCloseState”:false,”shuffle”:false,”mobileHeaderSelector”:”#mvp-main-nav-top”,”playerId”:”XTBI11BL”}],”partners”:{“roundel”:true,”yahoossp”:true,”criteo”:true,”unruly”:true,”mediaGrid”:true,”gumgum”:true,”telaria”:true,”colossus”:true,”pmp”:true,”amazonUAM”:true,”kargo”:true,”thirtyThreeAcross”:true,”stickyOutstream”:{“allowOnHomepage”:true,”mobile”:{“enabled”:true},”desktop”:{“enabled”:true},”blockedPageSelectors”:””,”allowForPageWithStickyPlayer”:{“enabled”:true}},”sharethrough”:true,”rubicon”:true,”appNexus”:true,”conversant”:false,”tripleLift”:true,”openx”:true,”pubMatic”:true,”spotx”:true,”indexExchange”:true}}};]]> ‘Smile’ Blu-Ray Receives Release Date Just in Time for the Holidays – iHorror iHorror

iHorror

‘Smile’ Blu-Ray Receives Release Date Just in Time for the Holidays

News

Published

3 days ago

on

November 3, 2022 Smile

Smile made some big money at the box office. It managed to scare up $188 million and is still playing in select theaters. Naturally, the film has a lot of fans eagerly awaiting the chance to bring this one home on blu-ray. Good news! Smile is coming to blu-ray and 4K UHD just in time for the holidays. The perfect time to put a smile on that face of yours.

The synopsis for Smile is as follows:

After witnessing a bizarre, traumatic incident involving a patient, Dr. Rose Cotter starts experiencing frightening occurrences that she can’t explain. As an overwhelming terror begins taking over her life, Rose must confront her troubling past in order to survive and escape her horrifying new reality.

The film stars Sosie Bacon, Jesse T Usher, Kal Penn, Rob Morgan, Kyle Gallner, and Caitlin Stasey.

Smile arrives on Blu-ray and 4K UHD beginning December 13. Head over HERE to pre-order a copy.

News

Published

7 hours ago

on

November 6, 2022 Smile

The producers of Smile must be smiling big. The Parker Finn Directed feature has now crossed the $200 million mark in theaters worldwide. The film has been in theaters for six weeks now and it doesn’t show signs of slowing down. Currently, the film has reached $202.9 million.

Finn’s feature based on the short, Laura Hasn’t Slept has moved above and beyond expectation.

The synopsis for Smile goes like this:

“After witnessing a bizarre, traumatic incident involving a patient, Dr. Rose Cotter starts experiencing frightening occurrences that she can’t explain. As an overwhelming terror begins taking over her life, Rose must confront her troubling past in order to survive and escape her horrifying new reality.

We can’t wait to see what Finn does next. Have you watched Smile yet?

News

Published

8 hours ago

on

November 6, 2022

November 6 marked Stranger Things Day. In order to celebrate this day select theaters screened Stranger Things season 4 Volume 2. Along with that, The Duffer Brothers offered up a tease of season 5.

The creators teased the first episode of the new season. The first episode titled “The Crawl” will kick off the brand-new highly anticipated season.

The Duffer Brothers intend to focus on the characters that already exist in the universe.

“I just like shaking it up, so we shake it up by changing the plot or adding in a new monster. We’re doing our best to resist [adding new characters] for Season 5. We’re trying not to do that so we can focus on the OG characters, I guess,” Matt Duffer told Indiewire.

We can’t wait for the new season to start. It still looks to be a long way till we see it arrive on Netflix but this is a nice little tease.

Stranger

News

Published

1 day ago

on

November 5, 2022 Chantal

Laney Chantal was a profound makeup and FX artist. She was one of the best parts of Face Off Season 5 and continued to evolve makeup FX for the better. Chantel passed away in Milford, Michigan according to her family. The masterful makeup artist and all-around great person was found dead from an accidental overdose at the age of 33.

Chantal worked on several awesome films as well as music videos for The Smashing Pumpkins, Marilyn Manson and more. Everyone that had the opportunity to work with her had nothing but great things to say about the 33-year-old.

Chantal attended the Cinema Makeup School in Los Angeles in 2007. From there she took to Face Off in season 5 – before removing herself from the competition leaving her in 5th place.

Chantal was a fantastic human and a brilliant artist. The horror community lost a substantial piece this week.

=0;l–)(o=e[l])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function a(e,t){if(“object”==typeof Reflect&&”function”==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e){var t=”function”==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&”number”==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?”Object is not iterable.”:”Symbol.iterator is not defined.”)}function s(e,t){var n=”function”==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t– >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o=t;if(o&&!r)return n&&p(e,o.value),o.value}}catch(e){}return null},y=function(e,t,n,i,r){var a;void 0===i&&(i=!0);var l=”abgroup”,s=h(l,n,i);if(null!==s){var c=s[e];if(null!=c)return c}var u=t(),d=o(o({},s),((a={})[e]=u,a));return p(l,d),r&&r(),u},f=function(){var e=navigator.userAgent,t=/Tablet|iPad|Playbook|Nook|webOS|Kindle|Android (?!.*Mobile).*Safari/i.test(e);return/Mobi|iP(hone|od)|Opera Mini/i.test(e)&&!t},m=function(){try{return Math.round(window.performance.now())}catch(e){return 0}},g=function(e){try{return{valid:!0,elements:document.querySelectorAll(e)}}catch(e){return o({valid:!1},e)}},_=function(e){return””===e?{valid:!0}:g(e)},v=function(){function e(){}return e.prototype.info=function(e,t){for(var n=[],i=2;i0:window.innerHeight>t.top+t.height/2},e.playerVisible=function(e){var t=e.getBoundingClientRect();return window.innerHeight>t.top},e.createQueryString=function(e){return Object.keys(e).map((function(t){return””.concat(t,”=”).concat(e[t])})).join(“&”)},e.createEncodedQueryString=function(e){return Object.keys(e).map((function(t){return””.concat(t,”=”).concat(encodeURIComponent(e[t]))})).join(“&”)},e.setMobileLocation=function(e){return”top-left”===(e=e||”bottom-right”)?e=”adthrive-collapse-top-left”:”top-right”===e?e=”adthrive-collapse-top-right”:”bottom-left”===e?e=”adthrive-collapse-bottom-left”:”bottom-right”===e?e=”adthrive-collapse-bottom-right”:”top-center”===e&&(e=f()?”adthrive-collapse-top-center”:”adthrive-collapse-bottom-right”),e},e}(),E=function(t){this._clsOptions=t,this.removeVideoTitleWrapper=e(this._clsOptions.siteAds.adOptions.removeVideoTitleWrapper,!1);var n=this._clsOptions.siteAds.videoPlayers;this.footerSelector=e(n&&n.footerSelector,””),this.players=e(n&&n.players.map((function(e){return e.mobileLocation=A.setMobileLocation(e.mobileLocation),e})),[]),this.contextualSettings=n&&n.contextual},w=function(e){this.mobileStickyPlayerOnPage=!1,this.playlistPlayerAdded=!1,this.contextualPlayerAdded=!1,this.sekindoPlayerAdded=!1,this.footerSelector=””,this.removeVideoTitleWrapper=!1,this.videoAdOptions=new E(e),this.players=this.videoAdOptions.players,this.contextualSettings=this.videoAdOptions.contextualSettings,this.removeVideoTitleWrapper=this.videoAdOptions.removeVideoTitleWrapper,this.footerSelector=this.videoAdOptions.footerSelector},O=function(){},D=function(e){function t(t){var n=e.call(this)||this;return n._probability=t,n}return i(t,e),t.prototype.get=function(){if(this._probability<0||this._probability>1)throw new Error(“Invalid probability”);return Math.random()100&&i.result)}(n.location,e,t,i)})),devices:n.devices,pageSelector:e(n.dynamic.pageSelector,””).trim(),elementSelector:e(n.dynamic.elementSelector,””).trim(),position:e(n.dynamic.position,”beforebegin”),max:Math.floor(e(n.dynamic.max,0)),spacing:e(n.dynamic.spacing,0),skip:Math.floor(e(n.dynamic.skip,0)),every:Math.max(Math.floor(e(n.dynamic.every,1)),1),classNames:n.dynamic.classNames||[],sticky:”Footer”===n.location||n.sticky,stickyOverlapSelector:e(n.stickyOverlapSelector,””).trim(),autosize:n.autosize,special:e(n.targeting,[]).filter((function(e){return”special”===e.key})).reduce((function(e,t){return e.concat.apply(e,c([],s(t.value),!1))}),[]),lazy:e(n.dynamic.lazy,!1),lazyMax:e(n.dynamic.lazyMax,2),lazyMaxDefaulted:0!==n.dynamic.lazyMax&&!n.dynamic.lazyMax}}))},j=function(e,t){var n=function(e){var t=e.clientWidth;if(getComputedStyle){var n=getComputedStyle(e,null);t-=parseFloat(n.paddingLeft||”0″)+parseFloat(n.paddingRight||”0″)}return t}(t),i=e.sticky&&”Sidebar”===e.location;return e.sizes.filter((function(t){var o=!e.autosize||(t[0]<=n||t[0]<=320),r=!i||t[1] div {n flex-basis: unset;n position: sticky !important;n display: block;n flex-direction: column;n top: 5px;n }n ')},B=function(e){function t(t,n){void 0===t&&(t=[]);var i=e.call(this)||this;return i._choices=t,i._default=n,i}return i(t,e),t.fromArray=function(e,n){return new t(e.map((function(e){var t=s(e,2);return{choice:t[0],weight:t[1]}})),n)},t.prototype.addChoice=function(e,t){this._choices.push({choice:e,weight:t})},t.prototype.get=function(){var e,t,n,i,o=(n=0,i=100,Math.random()*(i-n)+n),r=0;try{for(var a=l(this._choices),s=a.next();!s.done;s=a.next()){var c=s.value,u=c.choice;if((r+=c.weight)>=o)return u}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this._default},Object.defineProperty(t.prototype,”totalWeight”,{get:function(){return this._choices.reduce((function(e,t){return e+t.weight}),0)},enumerable:!1,configurable:!0}),t}(O);!function(e){e.Prebid=”prebid”,e.GAM=”gam”,e.Amazon=”amazon”,e.WebVitals=”webvitals”,e.Marmalade=”marmalade”,e.Floors=”floors”,e.CMP=”cmp”}(R||(R={})),function(e){e.prebidLoad=”prebidLoad”,e.amazonLoad=”amazonLoad”,e.gptLoad=”gptLoad”,e.rubiconFloors=”rubiconFloors”}(T||(T={})),function(e){e.Video_Collapse_Autoplay_SoundOff=”Video_Collapse_Autoplay_SoundOff”,e.Video_Individual_Autoplay_SOff=”Video_Individual_Autoplay_SOff”,e.Video_Coll_SOff_Smartphone=”Video_Coll_SOff_Smartphone”,e.Video_In_Post_ClicktoPlay_SoundOn=”Video_In-Post_ClicktoPlay_SoundOn”}(G||(G={})),function(e){e.StickySekindo=”stickySekindo”,e.StaticSekindo=”staticSekindo”,e.None=”none”}(H||(H={})),function(e){e.WEIGHTEDCHOICE=”weightedChoice”,e.BERNOULLITRIAL=”bernoulliTrial”}(V||(V={})),function(e){e.INTEGER=”integer”,e.FLOAT=”float”,e.BOOLEAN=”boolean”,e.STRING=”string”}(F||(F={})),function(e){e.DESKTOP=”desktop”,e.MOBILE=”mobile”,e.ALL=”all”}(W||(W={})),function(e){e.AdDensity=”addensity”,e.FooterCloseButton=”footerclose”,e.Interstitial=”interstitial”,e.RemoveVideoTitleWrapper=”removevideotitlewrapper”,e.StickyOutstream=”stickyoutstream”,e.StickyOutstreamOnStickyPlayer=”sospp”,e.VideoAdvancePlaylistRelatedPlayer=”videoadvanceplaylistrp”,e.MobileStickyPlayerPosition=”mspp”}(N||(N={}));var q,U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(function(){function e(){}return Object.defineProperty(e.prototype,”enabled”,{get:function(){return void 0!==this.experimentConfig},enumerable:!1,configurable:!0}),e}()),K=function(){function e(e){var t;this.siteExperiments=[],this._clsOptions=e;var n=this._clsOptions.siteAds.siteExperiments,i=f()?”mobile”:”desktop”;this.siteExperiments=null!==(t=null==n?void 0:n.filter((function(e){return function(e,t){if(!e)return!1;var n=!!e.enabled,i=null==e.dateStart||Date.now()>=e.dateStart,o=null==e.dateEnd||Date.now()0&&u.every((function(e){var t=e.value,n=e.weight;return!(void 0===t||!n)}))&&100===d);var u,d;return n&&i&&o&&r&&s&&c}(e,i)})))&&void 0!==t?t:[]}return e.prototype.getSiteExperimentByKey=function(e){return this.siteExperiments.filter((function(t){return t.key.toLowerCase()===e.toLowerCase()}))[0]},e}(),J=function(e){return function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(–n);return t>>>0}(e).toString(16)},Q=function(e,t,n,i,o,r){var a=Math.round(r-o),l=[],u=[];l.push(“(“,n.map((function(){return”%o”})).join(“, “),”)”),u.push.apply(u,c([],s(n),!1)),void 0!==i&&(l.push(” => %o”),u.push(i)),l.push(” %c(“.concat(a,”ms)”)),u.push(“color: #999;”)},Y=function(e,t,n){var i=void 0!==n.get?n.get:n.value;return function(){for(var e=[],t=0;t=e?”tablet”:”phone”}(i,o),this._config=new L(e),this._clsOptions.enabledLocations=this._config.enabledLocations,this._clsAdDensitySiteExperiment=this._clsOptions.siteAds.siteExperiments?new Z(this._clsOptions):null}return n.prototype.start=function(){var e=this;try{!function(e){var t=document.body,n=”adthrive-device-“.concat(e);if(!t.classList.contains(n))try{t.classList.add(n)}catch(e){document.createElement(“_”)}}(this._device);var t=I(this._device,this._clsOptions.siteAds.adUnits).filter((function(t){return e._locationEnabled(t)})).filter((function(t){return n=t,i=e._device,n.devices.includes(i);var n,i})).filter((function(e){return 0===(t=e).pageSelector.length||null!==document.querySelector(t.pageSelector);var t})),n=this.inject(t);(new $).result&&z(),n.forEach((function(t){return e._clsOptions.setInjectedSlots(t)}))}catch(e){}},n.prototype.inject=function(t,n){void 0===n&&(n=document),this._densityDevice=”desktop”===this._device?u.Desktop:u.Mobile,this._overrideDefaultAdDensitySettingsWithSiteExperiment();var i=this._clsOptions.siteAds,o=e(i.adDensityEnabled,!0),r=i.adDensityLayout&&o,a=t.filter((function(e){return r?”Content”!==e.location:e})),l=t.filter((function(e){return r?”Content”===e.location:null}));return c(c([],s(a.length?this._injectNonDensitySlots(a,n):[]),!1),s(l.length?this._injectDensitySlots(l,n):[]),!1)},n.prototype._injectNonDensitySlots=function(e,n){var i,o,r=this;void 0===n&&(n=document);var a=[],u=[];try{for(var d=l(e),p=d.next();!p.done;p=d.next()){var h=p.value,y=0,f=0,m=0;h.spacing>0&&(y=window.innerHeight*h.spacing,f=y);var g=this._repeatDynamicAds(h),_=this.getElements(h.elementSelector,n);h.skip;for(var v=function(e){if(m+1>g.length)return”break”;var i=_[e];if(y>0){var o=t(i).bottom;if(o<=f)return"continue";f=o+y}var r=g[m],l="".concat(r.location,"_").concat(r.sequence);a.some((function(e){return e.name===l}))&&(m+=1);var d=b.getDynamicElementId(r),p="adthrive-".concat(h.location.replace("_","-").toLowerCase()),v=c([p,"".concat(p,"-").concat(h.sequence)],s(h.classNames),!1),S=b.addAd(i,d,h.position,v);if(S){var P=j(r,S);if(P.length){var A={clsDynamicAd:h,dynamicAd:r,element:S,sizes:P,name:l,infinite:n!==document};a.push(A),u.push({location:r.location,element:S}),"Recipe"===h.location&&++b._recipeCount,m+=1}i=S}},b=this,S=h.skip;S0?[d]:[]),!1)),!1));return this._pubLog={onePerViewport:a,targetDensity:r,targetDensityUnits:u,combinedMax:d},{onePerViewport:a,targetAll:l,targetDensityUnits:u,combinedMax:d,numberOfUnits:p}},n.prototype._determineOverrides=function(e){var t=this;return e.filter((function(e){var t=_(e.pageSelector);return""===e.pageSelector||t.elements&&t.elements.length})).map((function(e){return e[t._densityDevice]}))},n.prototype._shouldTargetAllEligible=function(e){return e===this._densityMax},n.prototype._getTargetDensityUnits=function(e,t){return t?this._totalAvailableElements.length:Math.floor(e*this._mainContentHeight/(1-e)/this._minDivHeight)-this._recipeCount},n.prototype._getCombinedMax=function(t,n){return void 0===n&&(n=document),e(t.filter((function(e){var t;try{t=n.querySelector(e.elementSelector)}catch(e){}return t})).map((function(e){return Number(e.max)+Number(e.lazyMaxDefaulted?0:e.lazyMax)})).sort((function(e,t){return t-e}))[0],0)},n.prototype._elementLargerThanMainContent=function(e){return e.offsetHeight>=this._mainContentHeight&&this._totalAvailableElements.length>1},n.prototype._elementDisplayNone=function(e){var t=window.getComputedStyle(e,null).display;return t&&”none”===t||”none”===e.style.display},n.prototype._isBelowMaxes=function(e,t){return this._adInjectionMap.map.lengthi?window.innerHeight:i},n.prototype._useWiderSpacing=function(e,t){return this._mainContentHeight/Math.min(e,t)},n.prototype._useSmallestSpacing=function(e){return e&&window.innerHeight>this._absoluteMinimumSpacingByDevice?window.innerHeight:this._absoluteMinimumSpacingByDevice},n.prototype._moreAvailableElementsThanUnitsToInject=function(e,t){return this._totalAvailableElements.length>e||this._totalAvailableElements.length>t},n.prototype._logDensityInfo=function(e,t,n){var i=this._pubLog;i.onePerViewport,i.targetDensity;i.targetDensityUnits;i.combinedMax,this._totalAvailableElements.length},n.prototype._checkElementSpacing=function(e){var t=e.dynamicAd,n=e.element,i=e.insertEvery,r=e.targetAll,a=e.target,l=void 0===a?document:a;(this._isFirstAdInjected()||this._hasProperSpacing(n,t,r,i))&&(++this._totalContentInserted,this._markSpotForContentAd(n,o({},t),l))},n.prototype._isFirstAdInjected=function(){return!this._adInjectionMap.map.length},n.prototype._markSpotForContentAd=function(e,t,n){void 0===n&&(n=document);var i=”beforebegin”===t.position||”afterbegin”===t.position;this._adInjectionMap.add(e,this._getElementCoords(e,i),t,n),this._adInjectionMap.sort()},n.prototype._hasProperSpacing=function(e,t,n,i){var o=”beforebegin”===t.position||”afterbegin”===t.position,r=”beforeend”===t.position||”afterbegin”===t.position,a=n||this._isElementFarEnoughFromOtherAdElements(e,i,o),l=r||this._isElementNotInRow(e,o),s=-1===e.id.indexOf(“AdThrive_”.concat(“Below_Post”));return a&&l&&s},n.prototype._isElementFarEnoughFromOtherAdElements=function(e,t,n){for(var i=this._getElementCoords(e,n),o=!1,r=0;ra&&(!l||i+te.offsetHeight?t:e}))||document.body},n.prototype._getElementsFromDynamicAdEntry=function(e,t){var n=this;void 0===t&&(t=document);var i=this._getLongestArticleTag(t),o=i?[i]:[],r=[];e.forEach((function(e){var i=Array.from(n.getElements(e.elementSelector,t)).slice(0,e.skip);n._getSelectors(e.elementSelector).forEach((function(a){for(var l=t.querySelectorAll(a),s=function(t){var a=l[t];if(n._adInjectionMap.map.some((function(e){return e.el.isEqualNode(a)})))return”continue”;var s=a&&a.parentElement;s&&s!==document.body?o.push(s):o.push(a),-1===i.indexOf(a)&&r.push({dynamicAd:e,element:a})},c=0;ce.offsetHeight?t:e}));return n&&n.offsetHeight>1.5*window.innerHeight?n:null},n.prototype._getSelectors=function(e){return e.includes(“,”)?e.split(“,”):[e]},n.prototype._getElementCoords=function(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return(t?n.top:n.bottom)+window.scrollY},n.prototype._addContentAd=function(e,t,n){void 0===n&&(n=document);var i=null,o=”adthrive-“.concat(t.location.replace(“_”,”-“).toLowerCase()),r=””.concat(o,”-“).concat(t.sequence),a=this.addAd(e,this.getDynamicElementId(t),t.position,c([o,r],s(t.classNames),!1));if(a){var l=j(t,a);if(l.length)a.style.minHeight=this.locationToMinHeight[t.location],i={clsDynamicAd:t,dynamicAd:t,element:a,sizes:l,name:””.concat(t.location,”_”).concat(t.sequence),infinite:n!==document}}return i},n.prototype.getDynamicElementId=function(e){return””.concat(“AdThrive”,”_”).concat(e.location,”_”).concat(e.sequence,”_”).concat(this._device)},n.prototype.getElements=function(e,t){return void 0===t&&(t=document),t.querySelectorAll(e)},n.prototype.addAd=function(e,t,n,i){if(void 0===i&&(i=[]),!document.getElementById(t)){var o=’]]>’);e.insertAdjacentHTML(n,o)}return document.getElementById(t)},n.prototype._repeatDynamicAds=function(t){for(var n=[],i=t.lazy?e(this.locationMaxLazySequence.get(t.location),0):0,r=t.max,a=t.lazyMax,l=0===i&&t.lazy?r+a:Math.min(Math.max(i-t.sequence+1,0),r+a),s=Math.max(r,l),c=0;c=r;n.push(o(o({},t),{sequence:u,lazy:d}))}return n},n.prototype._locationEnabled=function(e){var t=this._clsOptions.enabledLocations.includes(e.location),n=this._clsOptions.disableAds&&this._clsOptions.disableAds.all||document.body.classList.contains(“adthrive-disable-all”),i=!document.body.classList.contains(“adthrive-disable-content”)&&!this._clsOptions.disableAds.reasons.has(“content_plugin”);return t&&!n&&i},n}(),ne=function(e){function t(){var t=e.call(this)||this;return t.key=”sekho”,t._result=!1,t._choices=[{choice:!0},{choice:!1}],t._result=t.run(),t.setExperimentKey(),t}return i(t,e),Object.defineProperty(t.prototype,”result”,{get:function(){return this._result},enumerable:!1,configurable:!0}),t.prototype.run=function(){return new D(.05).get()},t}(C),ie=function(e){function t(t,n){var i=e.call(this,t,(new ne).result,”ClsVideoInsertion”)||this;return i._videoConfig=t,i._clsOptions=n,i._IN_POST_SELECTOR=”.adthrive-video-player”,i._WRAPPER_BAR_HEIGHT=36,i._playersAddedFromPlugin=[],i}return i(t,e),t.prototype.init=function(){this._initializePlayers()},t.prototype._wrapJWPlayerWithCLS=function(e,t,n){if(void 0===n&&(n=0),e.parentNode){var i=e.offsetWidth*(9/16),o=this._createGenericCLSWrapper(i,t,n);return e.parentNode.insertBefore(o,e),o.appendChild(e),o}return null},t.prototype._createSekindoCLSWrapper=function(e,t){var n=this._getTitleHeight(document.createElement(“h4”));return this._createGenericCLSWrapper(e,t,n)},t.prototype._createGenericCLSWrapper=function(e,t,n){var i=document.createElement(“div”);return i.id=”cls-video-container-“.concat(t),i.className=”adthrive”,i.style.minHeight=””.concat(e+n,”px”),i},t.prototype._getTitleHeight=function(e){e.innerText=”Title”,e.style.visibility=”hidden”,document.body.appendChild(e);var t=window.getComputedStyle(e),n=parseInt(t.height,10),i=parseInt(t.marginTop,10),o=parseInt(t.marginBottom,10);return document.body.removeChild(e),Math.min(n+o+i,50)},t.prototype._initializePlayers=function(){var e=document.querySelectorAll(this._IN_POST_SELECTOR);e.length&&this._initializeRelatedPlayers(e),this._shouldRunAutoplayPlayers()&&this._determineAutoplayPlayers()},t.prototype._createStationaryRelatedPlayer=function(e,t){var n=”mobile”===this._device?[400,225]:[640,360],i=G.Video_In_Post_ClicktoPlay_SoundOn;if(t&&e.mediaId){var o=this._wrapJWPlayerWithCLS(t,e.mediaId);this._playersAddedFromPlugin.push(e.mediaId),o&&this._clsOptions.setInjectedVideoSlots({playerId:e.playerId,playerName:i,playerSize:n,element:o,type:”stationaryRelated”})}},t.prototype._createStickyRelatedPlayer=function(e,t){var n=”mobile”===this._device?[400,225]:[640,360],i=G.Video_Individual_Autoplay_SOff;if(this._stickyRelatedOnPage=!0,this._videoConfig.mobileStickyPlayerOnPage=”mobile”===this._device,t&&e.position&&e.mediaId){var o=document.createElement(“div”);t.insertAdjacentElement(e.position,o);var r=document.createElement(“h3″);r.style.margin=”10px 0″;var a=this._getTitleHeight(r),l=this._wrapJWPlayerWithCLS(o,e.mediaId,this._WRAPPER_BAR_HEIGHT+a);this._playersAddedFromPlugin.push(e.mediaId),l&&this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:n,playerName:i,element:o,type:”stickyRelated”})}},t.prototype._createSekindoPlayer=function(e,t){var n=e.playlistId,i=”mobile”===this._device?{width:340,height:260}:{width:320,height:250},o=this._createSekindoCLSWrapper(i.height,n);t.insertAdjacentElement(e.position,o),this._playersAddedFromPlugin.push(n),o&&this._clsOptions.setInjectedVideoSlots({playlistId:n,playerId:e.playerId,playerSize:[i.width,i.height],element:o,type:”sekindo”})},t.prototype._createPlaylistPlayer=function(e,t){var n=e.playlistId,i=”mobile”===this._device?G.Video_Coll_SOff_Smartphone:G.Video_Collapse_Autoplay_SoundOff,o=”mobile”===this._device?[400,225]:[640,360];this._videoConfig.mobileStickyPlayerOnPage=!0;var r=document.createElement(“div”);t.insertAdjacentElement(e.position,r);var a=this._wrapJWPlayerWithCLS(r,n,this._WRAPPER_BAR_HEIGHT);this._playersAddedFromPlugin.push(“playlist-“.concat(n)),a&&this._clsOptions.setInjectedVideoSlots({playlistId:e.playlistId,playerId:e.playerId,playerSize:o,playerName:i,element:r,type:”stickyPlaylist”})},t.prototype._isVideoAllowedOnPage=function(){var e=this._clsOptions.disableAds;return e&&e.video?(e.reasons.has(“video_tag”)||e.reasons.has(“video_plugin”)||e.reasons.has(“video_page”),!1):!this._clsOptions.videoDisabledFromPlugin},t}(function(e){function t(t,n,i){var o=e.call(this)||this;o._videoConfig=t,o._component=i,o._stickyRelatedOnPage=!1,o._contextualMediaIds=[];var r,a=o._videoConfig.players||[];o._device=(void 0===r&&(r=navigator.userAgent),/Windows NT|Macintosh/i.test(r)?”desktop”:”mobile”),o._potentialPlayerMap=o._setPotentialPlayerMap(n);var l=a.filter((function(e){return”stationaryRelated”===e.type&&e.enabled}));return o._potentialPlayerMap.stationaryRelated=l,o}return i(t,e),t.prototype._setPotentialPlayerMap=function(e){var t=this,n=this._videoConfig.players,i={stickyRelated:[],stickyPlaylist:[],sekindo:[],stationaryRelated:[]};return n&&n.length?n.filter((function(e){var n;return null===(n=e.devices)||void 0===n?void 0:n.includes(t._device)})).reduce((function(n,i){return n[i.type]||(b.event(t._component,”constructor”,”Unknown Video Player Type detected”,i.type),n[i.type]=[]),i.enabled&&(e&&”sekindo”===i.type||n[i.type].push(i)),n}),i):i},t.prototype._checkPlayerSelectorOnPage=function(e){var t=this,n=this._potentialPlayerMap[e].map((function(e){return{player:e,playerElement:t._getPlacementElement(e)}}));return n.length?n[0]:{player:null,playerElement:null}},t.prototype._getOverrideElement=function(e,t,n){if(e&&t){var i=document.createElement(“div”);t.insertAdjacentElement(e.position,i),n=i}else{var o=this._checkPlayerSelectorOnPage(“stickyPlaylist”),r=o.player,a=o.playerElement;if(r&&a){i=document.createElement(“div”);a.insertAdjacentElement(r.position,i),n=i}}return n},t.prototype._shouldOverrideElement=function(e){var t=e.getAttribute(“override-embed”);return”true”===t||”false”===t?”true”===t:!!this._videoConfig.contextualSettings&&this._videoConfig.contextualSettings.overrideEmbedLocation},t.prototype._getPlacementElement=function(e){var t=_(e.pageSelector),n=g(e.elementSelector);return t.valid?e.pageSelector&&!t.elements.length?(b.event(“VideoUtils”,”getPlacementElement”,new Error(“PSNF: “.concat(e.pageSelector,” does not exist on the page”))),null):n.valid?n.elements.length>e.skip?n.elements[e.skip]:(b.event(“VideoUtils”,”getPlacementElement”,new Error(“ESNF: “.concat(e.elementSelector,” does not exist on the page”))),null):null:null},t.prototype._getEmbeddedPlayerType=function(e){var t=e.getAttribute(“data-player-type”);return t&&”default”!==t||(t=this._videoConfig.contextualSettings?this._videoConfig.contextualSettings.defaultPlayerType:”static”),this._stickyRelatedOnPage&&(t=”static”),t},t.prototype._getUnusedMediaId=function(e){var t=e.getAttribute(“data-video-id”);return!(!t||this._contextualMediaIds.includes(t))&&(this._contextualMediaIds.push(t),t)},t.prototype._createRelatedPlayer=function(e,t,n){“collapse”===t?this._createCollapsePlayer(e,n):”static”===t&&this._createStaticPlayer(e,n)},t.prototype._createCollapsePlayer=function(e,t){var n=this._checkPlayerSelectorOnPage(“stickyRelated”),i=n.player,r=n.playerElement,a=i||this._potentialPlayerMap.stationaryRelated[0];a&&a.playerId&&(this._shouldOverrideElement(t)&&(t=this._getOverrideElement(i,r,t)),t=document.querySelector(“#cls-video-container-“.concat(e,” > div”))||t,this._createStickyRelatedPlayer(o(o({},a),{mediaId:e}),t))},t.prototype._createStaticPlayer=function(e,t){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId){var n=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(o(o({},n),{mediaId:e}),t)}},t.prototype._shouldRunAutoplayPlayers=function(){return!(!this._isVideoAllowedOnPage()||!(this._potentialPlayerMap.stickyRelated.length||this._potentialPlayerMap.stickyPlaylist.length||this._potentialPlayerMap.sekindo.length))},t.prototype._determineAutoplayPlayers=function(){var e=this._component,t=”VideoManagerComponent”===e,n=this._config;if(this._stickyRelatedOnPage)b.event(e,”stickyRelatedOnPage”,t&&{device:n&&n.context.device,isDesktop:this._device}||{});else{var i=this._checkPlayerSelectorOnPage(“stickyPlaylist”),o=i.player,r=i.playerElement,a=this._checkPlayerSelectorOnPage(“sekindo”),l=a.player,s=a.playerElement;o&&o.playerId&&o.playlistId&&r?this._createPlaylistPlayer(o,r):l&&l.playlistId&&s?this._createSekindoPlayer(l,s):b.event(e,”noStickyPlaylistOrSekindo”,t&&{vendor:”none”,device:n&&n.context.device,isDesktop:this._device}||{})}},t.prototype._initializeRelatedPlayers=function(e){for(var t=0;t 3) { var type = ‘event’; var eventName = ‘timing_complete’; fieldsArray = { event_category : ‘Scroll Depth’, name : action, event_label : label, value : timing, non_interaction: 1, send_to: ‘UA-137362326-1’ }; MonsterInsightsObject.sendEvent( type, eventName, fieldsArray ); } } function calculateMarks(docHeight) { return { ‘25%’ : parseInt(docHeight * 0.25, 10), ‘50%’ : parseInt(docHeight * 0.50, 10), ‘75%’ : parseInt(docHeight * 0.75, 10), /* Cushion to trigger 100% event in iOS */ ‘100%’: docHeight – 5 }; } function checkMarks(marks, scrollDistance, timing) { /* Check each active mark */ $.each(marks, function(key, val) { if ( $.inArray(key, cache) === -1 && scrollDistance >= val ) { sendEvent(‘Percentage’, key, scrollDistance, timing); cache.push(key); } }); } function rounded(scrollDistance) { /* Returns String */ return (Math.floor(scrollDistance/250) * 250).toString(); } function init() { bindScrollDepth(); } /* * Public Methods */ /* Reset Scroll Depth with the originally initialized options */ $.scrollDepth.reset = function() { cache = []; lastPixelDepth = 0; $window.off(‘scroll.scrollDepth’); bindScrollDepth(); }; /* Add DOM elements to be tracked */ $.scrollDepth.addElements = function(elems) { if (typeof elems == “undefined” || !$.isArray(elems)) { return; } $.merge(options.elements, elems); /* If scroll event has been unbound from window, rebind */ if (!scrollEventBound) { bindScrollDepth(); } }; /* Remove DOM elements currently tracked */ $.scrollDepth.removeElements = function(elems) { if (typeof elems == “undefined” || !$.isArray(elems)) { return; } $.each(elems, function(index, elem) { var inElementsArray = $.inArray(elem, options.elements); var inCacheArray = $.inArray(elem, cache); if (inElementsArray != -1) { options.elements.splice(inElementsArray, 1); } if (inCacheArray != -1) { cache.splice(inCacheArray, 1); } }); }; /* * Throttle function borrowed from: * Underscore.js 1.5.2 * http://underscorejs.org * (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Underscore may be freely distributed under the MIT license. */ function throttle(func, wait) { var context, args, result; var timeout = null; var previous = 0; var later = function() { previous = new Date; timeout = null; result = func.apply(context, args); }; return function() { var now = new Date; if (!previous) previous = now; var remaining = wait – (now – previous); context = this; args = arguments; if (remaining headerHeight){ $(“#mvp-main-nav-top”).addClass(“mvp-fixed”); $(“#mvp-main-nav-bot”).addClass(“mvp-fixed1”); $(“#mvp-main-body-wrap”).css(“margin-top”, totalHeight ); $(“#mvp-main-nav-top”).addClass(“mvp-fixed-shadow”); $(“.mvp-nav-top-mid”).addClass(“mvp-fixed-post”); $(“.mvp-drop-nav-title”).show(); $(“.mvp-fly-top”).addClass(“mvp-to-top”); if(scroll logoHeight){ $(“#mvp-main-nav-top”).addClass(“mvp-nav-small”); $(“#mvp-main-nav-bot”).css(“margin-top”, logoHeight ); } else { $(“#mvp-main-nav-top”).removeClass(“mvp-nav-small”); $(“#mvp-main-nav-bot”).css(“margin-top”,”0″); } if ($(window).scrollTop() > navHeight){ $(“#mvp-main-nav-top”).addClass(“mvp-fixed”); $(“#mvp-main-nav-bot”).addClass(“mvp-fixed1”); $(“#mvp-main-body-wrap”).css(“margin-top”, totalHeight ); $(“#mvp-main-nav-top”).addClass(“mvp-fixed-shadow”); $(“.mvp-nav-top-mid”).addClass(“mvp-fixed-post”); $(“.mvp-drop-nav-title”).show(); $(“.mvp-fly-top”).addClass(“mvp-to-top”); if(scroll distance + aboveHeight + screen.height){ $(“#mvp-video-embed-cont”).addClass(“mvp-vid-fixed”); $(“#mvp-video-embed-wrap”).addClass(“mvp-vid-height”); $(“.mvp-video-close”).show(); } else { $(“#mvp-video-embed-cont”).removeClass(“mvp-vid-fixed”); $(“#mvp-video-embed-wrap”).removeClass(“mvp-vid-height”); $(“.mvp-video-close”).hide(); } }); $(“.mvp-video-close”).on(“click”, function(){ $(“#mvp-video-embed-cont”).removeClass(“mvp-vid-fixed”); $(“#mvp-video-embed-wrap”).removeClass(“mvp-vid-height”); $(“.mvp-video-close”).hide(); $(window).off(“scroll.video”); }); }); jQuery(document).ready(function($) { // Mobile Social Buttons More $(“.mvp-soc-mob-right”).on(“click”, function(){ $(“#mvp-soc-mob-wrap”).toggleClass(“mvp-soc-mob-more”); }); }); jQuery(document).ready(function($) { $(“.menu-item-has-children a”).click(function(event){ event.stopPropagation(); }); $(“.menu-item-has-children”).click(function(){ $(this).addClass(“toggled”); if($(“.menu-item-has-children”).hasClass(“toggled”)) { $(this).children(“ul”).toggle(); $(“.mvp-fly-nav-menu”).getNiceScroll().resize(); } $(this).toggleClass(“tog-minus”); return false; }); // Main Menu Scroll $(“.mvp-fly-nav-menu”).niceScroll({cursorcolor:”#888″,cursorwidth: 7,cursorborder: 0,zindex:999999}); }); jQuery(document).ready(function($) { $(“.infinite-content”).infinitescroll({ navSelector: “.mvp-nav-links”, nextSelector: “.mvp-nav-links a:first”, itemSelector: “.infinite-post”, errorCallback: function(){ $(“.mvp-inf-more-but”).css(“display”, “none”) } }); $(window).unbind(“.infscr”); $(“.mvp-inf-more-but”).click(function(){ $(“.infinite-content”).infinitescroll(“retrieve”); return false; }); if ($(“.mvp-nav-links a”).length) { $(“.mvp-inf-more-but”).css(“display”,”inline-block”); } else { $(“.mvp-inf-more-but”).css(“display”,”none”); } }); ]]> Read The Full Article Here