Health and Wellness
WATCH: Tia Mowry opens up about her divorce from Jackée Harry – Essence
“; } }); // Drag and scroll functionality const playlistContainer = document.getElementById(‘playlist’); let isDown = false; let startY; let scrollTop; playlistContainer.addEventListener(‘mousedown’, (e) => { isDown = true; playlistContainer.classList.add(‘active’); startY = e.pageY – playlistContainer.offsetTop = playlistContainer.addEventListener(‘mouseleave’; playlistContainer.classList.remove(‘active’); playlistContainer.addEventListener(‘mouseup’, () => { isDown = false; playlistContainer.classList.remove(‘active’); }); mousemove’, (e) => { if (!isDown) return; e.preventDefault(); const y = e.pageY – playlistContainer.offsetTop; const walk = (y – startY) * 3; .scrollTop = scrollTop – walk; }); } } if (” !== ‘efoc24’) { // Check DoubleVerify Quality Targeting signals before rendering the player if ( ‘unknown’ !== typeof PQ ) { PQ.cmd. push(function() { // If DVQT signals are not available after 500 ms, render the player anyway. const timeout_id = setTimeout( jwPlayerRender, 500 ); // Get “Authentic Direct” signals. PQ.getTargeting({ signals: [‘abs’] }, function(error, targetingData) { clearTimeout(timeout_id); jwPlayerRender(error? undefined: targetingData); }); }); } else { jwPlayerRender(); } function jwPlayerRender( dvqt_signals=”” ) { let jw_ad_tag = {“client”:”googima”,”adscheduleid”:”G7hR9pQ2″,”schedule”:[{“tag”:”https://pubads.g.doubleclick.net/gampad/ads?correlator=&iu=/21698916284/ess/VideoNews&env=vp&gdfp_req=1&output=vast&sz=400×300%7C640x480%7C1000x1%7C1920x1080&description_url=__page-url__&tfcd=0&npa=0&vpmute=1&vpa=auto&vad_type=linear&url=__page-url__&vpos=preroll&unviewed_position_start=1&v=wdgel3fw&pmnd=0&pmxd=60000&ad_rule=1&cust_params=ttid%3Dwdgel3fw%26frnch%3D__item-franchise__%26environment%3Dproduction%26kwblock%3DAbb%2CMicrosoft%2CAir%2CCapOne%2CLincoln%2CCoca%2CUPS%2CVG%2CATTCric%2CDisney%2CPubW+Precision%2Cattefoc3%2CWalmart%2CCokeBWIH”,”offset”:”pre”},{“tag”:”https://vid.springserve.com/vast/670880?url=https://www.essence.com/news/watch-tia-mowry-opens-up-about-divorce-with-jackee-harry/h=450&w=800&cb=3801″,”offset”:”50%”}]”offers”:{“bidders”:[{“id”:”jw-video-wdgel3fw”,”name”:”jwdemand”,”publisherId”:”evcxFIDZ”,”siteId”:”WT5iFegj”,”placementId”:”24399785″}]”settings”:{“disableConsentManagementOnNoCmp”:true,”mediationLayerAdServer”:”dfp”,”floorPriceCents”:200,”floorPriceCurrency”:”usd”,”buckets”:[{“increment”:0.1,”max”:30,”min”:0},{“increment”:0.5,”max”:50,”min”:30}]}}}; // Configure ad tag on the fly… let additional_params = {}; // Input DVQT signals. if ( dvqt_signals && dvqt_signals.ABS.length > 0 ) { additional_params.ABS = dvqt_signals.ABS.join(“,”); } // Create a string of additional_parameters. let extra_params_str=””; for (enter additional_parameters) { let value = additional_parameters[key]; additional_params_str += `${key}=${value}`; if ( key !== Object.keys( additional_params .pop() ) { additional_params_str += ‘&’; } } // Update ad tag cust_params (must be URL encoded). if ( Object.keys( additional_parameters ). length > 0 ) { let ad_schedule = jw_ad_tag.schedule; if ( ‘undefined’ !== ad schedule type ) { for (let i = 0; i < ad_schedule. length; i++) { let address_address = new URL(jw_ad_tag. schedule[i].label); let query_params = new URLSearchParams(ad_url.search); query_params.set("cust_params", query_params.get("cust_params") + `&${additional_params_str}`); ad_url.search = query_params.toString(); jw_ad_tag.schedule[i].tag = ad_url.toString(); } } } let playerId; if ("undefined" !== type jwplayerQueue) { playerId = 'jw-video-wdgel3fw'; jwplayerQueue.push({ 'instanceId': 'playerInstance_wdgel3fw', 'playerId': playerId, 'config': { pid: 't6KP9zcV', playlist: "https://cdn.jwplayer.com/v2/media/wdgel3fw", autostart: !jw_ad_tag, repeat: true, mute: true, aspect ratio: "16:9", share: {sites: ["facebook", "twitter", "email", "linkedin"]}, cast: {}, float: {disibility: true}, autoPause: {viewability: true}, displaytitle: true, displaydescription: true, controls: true, related: {displayMode: 'shelfWidget'}, interactive: {} , ad: jw_ad_tag } }); } // Load video. jQuery(window).trigger("jw:loadplayers"); function waitForJWPlayer(callback) { if (type jwplayer !== 'undefined') { callback(); } else { setTimeout(function() { waitForJWPlayer(callback); }, 500); } } waitForJWPlayer(function() { jwplayer(playerId).on('adsManager', function (adsManagerLoaded) { let adsManager = adsManagerLoaded.adsManager; let videoElement = document.getElementById(playerId ); let config = { anId: '929481' , campId: '640x360', ias_xps: "autoplay", // autoplay state ias_xbp: "2", // video destination type ias_xar: "1" // autoplay state } // Start IAS integration googleImaVansAdapter. init(google, adsmanager, videoitem, config } } });