Health and Wellness

WATCH: The Ebb and Flow of Progress for Black Americans – The Essence

Published

on

“; } }); // 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=UXetryDO&pmnd=0&pmxd=60000&ad_rule=1&cust_params=ttid%3DUXetryDO%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-the-ebb-and-flow-of-progress-for-black-americans/h=450&w=800&cb=6453″,”offset”:”50%”}]”offers”:{“bidders”:[{“id”:”jw-video-UXetryDO”,”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(“,”); } // Injecting Operational Mage signals. if ( dfp_ad_object && dfp_ad_object[0].page_targeting.length > 0 ) { let dfp_ad_targeting = JSON.parse(dfp_ad_object[0]page targeting); if ( dfp_ad_targeting.opsmage && dfp_ad_targeting.opsmage.length > 0 ) { additional_params.opsmage = dfp_ad_targeting.opsmage.join(“,”); } if ( dfp_ad_targeting.opsmage_alt && dfp_ad_targeting.opsmage_alt.length > 0 ) { additional_params.opsmag_alt = dfp_ad_targeting.opsmage_alt.join(“,”); } } // Create a string 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 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-UXetryDO'; jwplayerQueue.push({ 'instanceId': 'playerInstance_UXetryDO', 'playerId': playerId, 'config': { pid: 't6KP9zcV', playlist: "https://cdn.jwplayer.com/v2/media/UXetryDO", 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 } } });

This article was originally published on : www.essence.com

Leave a Reply

Your email address will not be published. Required fields are marked *

Trending

Exit mobile version