Health and Wellness

SEE: Essence Partners with McDonald’s to Highlight Emerging Black Designers in Groundbreaking Fashion Film ‘Blueprint’ – Essence

Published

on

“; } }); // Drag-to-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.scrollTop }); ; playlistContainer.classList.remove(‘active’); playlistContainer.addEventListener(‘mouseup’, () => { isDown = false; playlistContainer.classList.remove(‘active’); }); playlistContainer.addEventListener(‘mousemove’, (e) => { if (!isDown) return; e.preventDefault(); const y = e.pageY – playlistContainer. offsetTop; const walk = (y – startY) * 3; // fast scrolling playlistContainer.scrollTop = scrollTop – walk; }); } } if (” !== ‘efoc24’) { // Check DoubleVerify Quality Targeting signals before rendering the player if ( ‘undefined’ !== typeof PQ ) { PQ.cmd.push(function() { // If DVQT signals are not available after 500ms, 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=0&vpa=auto&vad_type=linear&url=__page-url__&vpos=preroll&unviewed_position_start=1&v=HNSgWMKU&pmnd=0&pmxd=60000&ad_rule=1&cust_params=ttid%3DHNSgWMKU%26frnch%3D__item-franchise__%26environment%3Dproduction%26kwblock%3DAbb%2CCapOne%2CLincoln%2CUPS%2CVG%2CATTCric%2Cmcd%2CToyota%2CDisney%2CPubW+Precision%2Cattefoc3%2CWalmart”,”offset”:”pre”},{“tag”:”https://vid.springserve.com/vast/670880?url=https://www.essence.com/news/watch-essence-partners-with-mcdonalds-to-spotlight-emerging-black-designers-in-groundbreaking-fashion-film-blueprint-2/h=450&w=800&cb=3396″,”offset”:”50%”}]”offers”:{,,offers”:[{“id”:”jw-video-HNSgWMKU”,”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}]}}}; // On-the-fly ad tag configuration… let additional_params = {}; // Inject DVQT signals. if ( dvqt_signals && dvqt_signals.ABS.length > 0 ) { additional_params.ABS = dvqt_signals.ABS.join(“,”); } // Inject Ops 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 additional_params. let additional_params_str=””; for ( let key in additional_params ) { let value = additional_params[key]; additional_params_str += `${key}=${value}`; if ( key !== Object.keys( additional_params ).pop() ) { additional_params_str += ‘&’; } } // Update cust_params ad tag (have to be URL encoded). if ( Object.keys( additional_params ).length > 0 ) { let ad_schedule = jw_ad_tag.schedule; if ( ‘undefined’ !== typeof ad_schedule ) { for (let i = 0; i < ad_schedule.length; i++) { let ad_url = recent URL(jw_ad_tag.schedule[i].tag); let query_params = recent 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' !== typeof jwplayerQueue) { playerId = 'jw-video-HNSgWMKU'; jwplayerQueue.push({ 'instanceId': 'playerInstance_HNSgWMKU', 'playerId': playerId, 'config': { pid: 't6KP9zcV', playlist: "https://cdn.jwplayer.com/v2/media/HNSgWMKU", autostart: !jw_ad_tag, repeat: true, mute: true, aspect ratio: '16:9', sharing: {sites: ["facebook", "twitter", "email", "linkedin"]}, forged: {}, floating: {dismissible: true}, autoPause: {viewability: false}, displaytitle: true, displaydescription: true, controls: true, related: {displayMode: 'shelfWidget'}, interactive: {}, promoting: jw_ad_tag ​​​​} }); } // Load video. jQuery(window).trigger("jw:loadplayers"); function waitForJWPlayer(callback) { if (typeof 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: "autoplayed", // autoplay state ias_xbp: "2", // video placement type ias_xar: "1" // auto refresh state }; // Init IAS Integration googleImaVansAdapter.init( google, adsManager, videoElement, 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