Health and Wellness
WATCH: Cynthia Erivo on the importance of being a sister – 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’); playlistContainer.offsetTop; scrollTop = playlistContainer.scrollTop; }); playlistContainer.addEventListener(‘mouseleave’, () => { isDown = false; playlistContainer.classList.remove(‘active’); }); ‘, () => { isDown = false; playlistContainer.classList.remove(‘active’); playlistContainer.addEventListener(‘mousemove’, (e) => { if (!isDown) return; e.preventDefault(); const y = e.pageY -List Container playlist.offsetTop; const walk = (y – startY) * 3; // quick playlistContainer.scrollTop = scrollTop – walk; }); } } if (” !== ‘efoc24’) { // Check DoubleVerify Quality Targeting signals before rendering the player if ( ‘undefined’ !== PQ type ) { 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=4QHYeDGA&pmnd=0&pmxd=60000&ad_rule=1&cust_params=ttid%3D4QHYeDGA%26frnch%3D__item-franchise__%26environment%3Dproduction%26kwblock%3DAbb%2CCapOne%2CLincoln%2CUPS%2CVG%2CATTCric%2CDisney”,”offset”:”pre”},{“tag”:”https://vid.springserve.com/vast/670880?url=https://www.essence.com/news/watch-cynthia-erivo-on-importance-of-sisterhood/h=450&w=800&cb=1535″,”offset”:”50%”}]”offers”:{“bidders”:[{“id”:”jw-video-4QHYeDGA”,”name”:”jwdemand”,”publisherId”:”evcxFIDZ”,”siteId”:”WT5iFegj”,”placementId”:”24399785″},{“id”:”jw-video-4QHYeDGA”,”name”:”connatix”,”siteId”:”WT5iFegj”,”placementId”:”23419a80-fc77-4fd5-bd0c-2a4807a66a6c”}]”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’ !== schedule type ads ) { for (let i = 0; i < ad_schedule.length; i++) { let ad_url = 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-4QHYeDGA'; jwplayerQueue.push({ 'instanceId': 'playerInstance_4QHYeDGA', 'playerId': playerId, 'config': { pid: 't6KP9zcV', playlist: "https://cdn.jwplayer.com/v2/media/4QHYeDGA", 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' , camp ID: '640x360', ias_xps: "autoplay", // autoplay status ias_xbp: "2", // video destination type ias_xar: "1" // autoplay status }; // Start IAS integration googleImaVansAdapter.init(google, adsManager, videoElement , configuration });