Three states you should be watching on election night

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘politics/2021/10/29/races-to-watch-mh-orig.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘const-video-leaf’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211029172410-mcauliffe-youngkin-split-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211029172410-mcauliffe-youngkin-split-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211029172410-mcauliffe-youngkin-split-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211029172410-mcauliffe-youngkin-split-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211029172410-mcauliffe-youngkin-split-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211029172410-mcauliffe-youngkin-split-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211029172410-mcauliffe-youngkin-split-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Elections in Virginia, New York and Minnesota could reveal trends that will shape the midterm elections in 2022. CNN’s Eva McKend tells us how.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211029172410-mcauliffe-youngkin-split-large-169.jpg”,”title”:”These are the races to watch on election night”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/29/races-to-watch-mh-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/29/races-to-watch-mh-orig.cnn”,”videoId”:”politics/2021/10/29/races-to-watch-mh-orig.cnn”,”videoUrl”:”/videos/politics/2021/10/29/races-to-watch-mh-orig.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_6C5A1754-2536-AC4C-1C64-CDEECAC8CAC7″},{“descriptionPlainText”:”CNN’s Pamela Brown talks with Rep. Jamie Raskin (D-MD) about the House Select Committee’s attempt to target a 134-year-old law in an effort to prevent another Capitol siege.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211030190836-rep-jamie-raskin-large-169.jpg”,”title”:”House committee taking aim at 134-year-old law “,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/30/raskin-january-6-intv-sot-pamela-brown-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/30/raskin-january-6-intv-sot-pamela-brown-nr-vpx.cnn”,”videoId”:”politics/2021/10/30/raskin-january-6-intv-sot-pamela-brown-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/30/raskin-january-6-intv-sot-pamela-brown-nr-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_3B9114AC-7B0F-A3EE-4575-DD00E464FF58″},{“descriptionPlainText”:”Former Ambassador to the United Nations Bill Richardson joins Jim Acosta to discuss President Joe Biden’s overseas trip and his plan to fight climate change.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211030121011-biden-merkel-macron-johnson-103021-large-169.jpg”,”title”:”Former UN Ambassador: Biden is on a roll”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/30/bill-richardson-joe-biden-trip-cop26-acostanr.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/30/bill-richardson-joe-biden-trip-cop26-acostanr.cnn”,”videoId”:”politics/2021/10/30/bill-richardson-joe-biden-trip-cop26-acostanr.cnn”,”videoUrl”:”/videos/politics/2021/10/30/bill-richardson-joe-biden-trip-cop26-acostanr.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_5DF9D06F-C5FB-5476-5A93-DD3F4F818E78″},{“descriptionPlainText”:”President Joe Biden told French President Emmanuel Macron that France was an important friend and said the US was “clumsy” in the way the submarine deal with Australia that led to Canberra bailing on a deal with France was handled.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211029120633-121-biden-macron-1029-large-169.jpg”,”title”:”Biden to France’s Macron: What we did was clumsy”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/29/joe-biden-emmanuel-macron-france-relationship-clumsy-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/29/joe-biden-emmanuel-macron-france-relationship-clumsy-sot-vpx.cnn”,”videoId”:”world/2021/10/29/joe-biden-emmanuel-macron-france-relationship-clumsy-sot-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/29/joe-biden-emmanuel-macron-france-relationship-clumsy-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_72288980-74F1-0CC5-B208-DC14D99DE91F”},{“descriptionPlainText”:”CNN’s Kaitlan Collins reports that the specifics about former President Donald Trump’s efforts to keep secret the support from his White House for overturning his loss of the 2020 election were revealed in late-night court filings that detail more than 700 pages of handwritten notes, draft documents and daily logs his top advisers kept related to January 6.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211027234429-02-donald-trump-100921-large-169.jpg”,”title”:”Reporter reveals what Trump is trying to keep secret from January 6 probe”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/30/court-filing-trump-january-6-documents-collins-nr-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/30/court-filing-trump-january-6-documents-collins-nr-sot-vpx.cnn”,”videoId”:”politics/2021/10/30/court-filing-trump-january-6-documents-collins-nr-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/30/court-filing-trump-january-6-documents-collins-nr-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_5286DEDE-E3FB-FB3B-37AE-DC3379FC5141″},{“descriptionPlainText”:”Sen. Elizabeth Warren says Elon Musk and other billionaires are not paying their fair share of taxes and instead are “freeloading” on the backs of the rest of taxpayers.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211030101655-elizabeth-warren-smerconish-vpx-103021-large-169.jpg”,”title”:”Sen. Warren: Elon Musk is riding on the backs of hard-working families”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/30/elizabeth-warren-elon-musk-taxes-bts-smerconish-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/30/elizabeth-warren-elon-musk-taxes-bts-smerconish-vpx.cnn”,”videoId”:”politics/2021/10/30/elizabeth-warren-elon-musk-taxes-bts-smerconish-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/30/elizabeth-warren-elon-musk-taxes-bts-smerconish-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_55A90135-7EF9-E414-0602-DB8221561CE6″},{“descriptionPlainText”:”As the close Virginia gubernatorial race between former Gov. Terry McAuliffe (D) and businessman Glenn Youngkin (R) nears its end, CNN’s Michael Smerconish has a theory for former President Donald Trump’s relatively hands-off campaign approach.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211029164541-trump-youngkin-split-large-169.jpg”,”title”:”Trump has been relatively hands off. Smerconish has a theory why”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/30/youngkin-trump-virginia-governors-race-endorsement-playbook-smerconish-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/30/youngkin-trump-virginia-governors-race-endorsement-playbook-smerconish-vpx.cnn”,”videoId”:”politics/2021/10/30/youngkin-trump-virginia-governors-race-endorsement-playbook-smerconish-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/30/youngkin-trump-virginia-governors-race-endorsement-playbook-smerconish-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_B7FC1BEE-0C54-4D17-958A-D79FF3D761D4″},{“descriptionPlainText”:”Sen. Joe Manchin (D-WV) says he won’t support the $1.75 trillion reconciliation bill Democrats are negotiating until there is “greater clarity” about the impact it will have on the country’s national debt and the economy.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211101144650-01-manchin-presser-1101-large-169.jpg”,”title”:”‘I see budget gimmicks’: Manchin blasts Biden’s spending bill”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/11/01/joe-manchin-spending-bill-comments-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/11/01/joe-manchin-spending-bill-comments-sot-vpx.cnn”,”videoId”:”politics/2021/11/01/joe-manchin-spending-bill-comments-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2021/11/01/joe-manchin-spending-bill-comments-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_F0778537-12A7-2EC3-EBFB-D6C036310CD9″},{“descriptionPlainText”:”In an interview with CNN’s Jake Tapper, CEO and founder of the Public Religion Research Robert P. Jones attributes 30% of Republicans believing violence may be justified to “save” the US to former President Trump’s “Make American Great Again” messaging.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211101165245-robert-p-jones-large-169.jpg”,”title”:”Poll: 30% of Republicans say violence may be justified to ‘save’ US”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/11/01/robert-p-jones-intv-poll-30-percent-gop-violence-us-sot-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/11/01/robert-p-jones-intv-poll-30-percent-gop-violence-us-sot-lead-vpx.cnn”,”videoId”:”politics/2021/11/01/robert-p-jones-intv-poll-30-percent-gop-violence-us-sot-lead-vpx.cnn”,”videoUrl”:”/videos/politics/2021/11/01/robert-p-jones-intv-poll-30-percent-gop-violence-us-sot-lead-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_0FCAE5BA-5ED1-7C7A-037A-DB26932ABE0A”},{“descriptionPlainText”:”President Joe Biden said the climate crisis is “the existential threat to human existence as we know it,” and urged world leaders gathered for the COP26 climate summit to come together to reduce emissions and save the planet.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211101114400-biden-cop26-vpx-large-169.jpeg”,”title”:”Biden: This is an existential threat to human existence as we know it”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/11/01/biden-climate-change-cop26-speech-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/11/01/biden-climate-change-cop26-speech-sot-vpx.cnn”,”videoId”:”politics/2021/11/01/biden-climate-change-cop26-speech-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2021/11/01/biden-climate-change-cop26-speech-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_CBFB299E-F029-E70A-10B7-DB2C3F6B6A9F”},{“descriptionPlainText”:”CNN Chief Legal Analyst Jeffrey Toobin shares his thoughts on the Supreme Court justices’ questions as they hear oral arguments on a Texas law that bars most abortions after six weeks.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211101120310-toobin-ath-1-large-169.jpg”,”title”:”Toobin: Kavanaugh asked important question about abortion law”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/11/01/texas-abortion-law-supreme-court-jeffrey-toobin-ath-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/11/01/texas-abortion-law-supreme-court-jeffrey-toobin-ath-vpx.cnn”,”videoId”:”politics/2021/11/01/texas-abortion-law-supreme-court-jeffrey-toobin-ath-vpx.cnn”,”videoUrl”:”/videos/politics/2021/11/01/texas-abortion-law-supreme-court-jeffrey-toobin-ath-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_6C5A1754-2536-AC4C-1C64-CDEECAC8CAC7″},{“descriptionPlainText”:”CNN’s John Avlon discusses how the GOP continues to try and change the narrative surrounding the January 6 insurrection for political gain.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210630162208-capitol-insurrection-0106-large-169.jpg”,”title”:”If Jan. 6 was so innocent, why are so many Republicans trying to hide it?”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/11/01/gop-jan-6-insurrection-reality-check-new-day-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/11/01/gop-jan-6-insurrection-reality-check-new-day-vpx.cnn”,”videoId”:”politics/2021/11/01/gop-jan-6-insurrection-reality-check-new-day-vpx.cnn”,”videoUrl”:”/videos/politics/2021/11/01/gop-jan-6-insurrection-reality-check-new-day-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_9E3891B4-FB4A-927D-B272-D36BB3D9301C”},{“descriptionPlainText”:”Sen. Bernie Sanders (I-VT) says all 50 Democrats in the Senate need to agree upon the framework of the massive economic bill before the House votes on the bill this week.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211031144937-bernie-sanders-october-31-2021-large-169.jpg”,”title”:”Bernie Sanders wants Senate to agree on framework before economic bill vote”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/31/bernie-sanders-progressives-economic-bill-framework-sotu-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/31/bernie-sanders-progressives-economic-bill-framework-sotu-sot-vpx.cnn”,”videoId”:”politics/2021/10/31/bernie-sanders-progressives-economic-bill-framework-sotu-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/31/bernie-sanders-progressives-economic-bill-framework-sotu-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_74370C87-5966-E128-F22E-D315E81BB91B”},{“descriptionPlainText”:”Terry McAuliffe and Glenn Youngkin are making their final pitches to voters in the closely-watched race for governor of Virginia. CNN’s Dana Bash reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211029172410-mcauliffe-youngkin-split-large-169.jpg”,”title”:”Candidates make closing arguments in tight VA governor race”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/10/31/virginia-governor-race-youngkin-mcauliffe-pkg-sotu-bash-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/10/31/virginia-governor-race-youngkin-mcauliffe-pkg-sotu-bash-vpx.cnn”,”videoId”:”politics/2021/10/31/virginia-governor-race-youngkin-mcauliffe-pkg-sotu-bash-vpx.cnn”,”videoUrl”:”/videos/politics/2021/10/31/virginia-governor-race-youngkin-mcauliffe-pkg-sotu-bash-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_DA51506F-9380-6AB3-532A-CCD024E09A1D”},{“descriptionPlainText”:”CNN political analyst Maggie Haberman reacts to former President Donald Trump’s appearance at the World Series, which he falsely claimed the MLB invited him to attend.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211031082412-world-series-game-4-trump-large-169.jpg”,”title”:”MLB denies Trump’s claim they invited him to World Series”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/11/01/mlb-denies-trump-claim-world-series-invite-haberman-analysis-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/11/01/mlb-denies-trump-claim-world-series-invite-haberman-analysis-newday-vpx.cnn”,”videoId”:”politics/2021/11/01/mlb-denies-trump-claim-world-series-invite-haberman-analysis-newday-vpx.cnn”,”videoUrl”:”/videos/politics/2021/11/01/mlb-denies-trump-claim-world-series-invite-haberman-analysis-newday-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_E17BC0A4-17DC-0E21-C61B-D1A01717D97C”},{“descriptionPlainText”:”Southwest Airlines says it is launching an internal investigation after a report that one of its pilots used the anti-Biden slang phrase “Let’s go Brandon” over a plane’s public address system during a flight.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210526114301-southwest-airlines-jets-file-2020-large-169.jpg”,”title”:”Southwest pilot reportedly used anti-Biden phrase over PA system”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/11/01/southwest-airlines-pilot-lets-go-brandon-investigation-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/11/01/southwest-airlines-pilot-lets-go-brandon-investigation-vpx.cnn”,”videoId”:”business/2021/11/01/southwest-airlines-pilot-lets-go-brandon-investigation-vpx.cnn”,”videoUrl”:”/videos/business/2021/11/01/southwest-airlines-pilot-lets-go-brandon-investigation-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_BEF26EB8-AF3B-F2C6-F3E1-D1881A40DC8D”}],currentVideoCollectionId = ”,isLivePlayer = false,mediaMetadataCallbacks,mobilePinnedView = null,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImpl;if (CNN.autoPlayVideoExist === false) {autoStartVideo = true;if (autoStartVideo === true) {if (turnOnFlashMessaging === true) {autoStartVideo = false;containerEl = jQuery(document.getElementById(configObj.markupId));CNN.VideoPlayer.showFlashSlate(containerEl);} else {CNN.autoPlayVideoExist = true;}}}configObj.autostart = CNN.Features.enableAutoplayBlock ? false : autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, isVideoReplayClicked, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId);var embedLinkHandler = {},videoPinner,embedCodeCopy;function onVideoCarouselItemClicked(evt) {‘use strict’;var videoId,articleElem,videoPlayer,thumbImageElem,thumbImageLargeSource,overrides = {autostart: false,muteOverlayClicked: true,videoCollection: this.videoCollection},shouldStartVideo = false,playerInstance;try {articleElem = jQuery(evt.currentTarget).find(‘article’);thumbImageElem = jQuery(articleElem).find(‘.media__image’);videoId = articleElem.data().videoId;if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘fave’) {playerInstance = FAVE.player.getInstance(configObj.markupId);if (CNN.Utils.existsObject(playerInstance) &&typeof playerInstance.getVideoData === ‘function’ &&playerInstance.getVideoData().id !== videoId) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();playerInstance.play(videoId, overrides);}} else {videoPlayer = CNNVIDEOAPI.CNNVideoManager.getInstance().getPlayerByContainer(configObj.markupId);if (videoPlayer && videoPlayer.videoInstance) {if (!videoPlayer.videoInstance.cvp) {if (typeof thumbImageElem !== ‘undefined’ && thumbImageElem !== null) {thumbImageLargeSource = thumbImageElem.data() && thumbImageElem.data().srcLarge ? thumbImageElem.data().srcLarge : ‘none’;}overrides.thumb = thumbImageLargeSource ? thumbImageLargeSource : ‘none’;shouldStartVideo = true;}if (videoPlayer.videoInstance.config) {if (videoPlayer.videoInstance.config.video !== videoId) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, videoId, overrides);}}}}} catch (error) {console.log(“error in initializing video player” + error);}}function setInitialVideoEmbed() {}function initialize(){var carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),owl;if (carousel) {carousel.find(‘.cn__column.carousel__content__item’).find(‘a’).removeAttr(‘href’);jQuery(carousel).on(‘click’, ‘.cn__column.carousel__content__item’, onVideoCarouselItemClicked);}}if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘videoLoader’) {window.CNNVideoAPILoadCompleteHandlers = window.CNNVideoAPILoadCompleteHandlers ? window.CNNVideoAPILoadCompleteHandlers : [];window.CNNVideoAPILoadCompleteHandlers.push(initialize);window.CNNVideoAPILoadCompleteHandlers.push(setInitialVideoEmbed);} else {initialize();}CNN.INJECTOR.executeFeature(‘videx’).done(function () {var initMeta = {id:”politics/2021/10/29/races-to-watch-mh-orig.cnn”, isEmbeddable: “yes”};CNN.Videx.EmbedButton.updateCode(initMeta);}).fail(function () {throw ‘Unable to fetch the videx bundle.’;});function updateCurrentlyPlaying(videoId) {var videoCollectionId = ‘current_video_collection’,videocardContents = getCurrentVideoCardContents(videoId),carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),domain = CNN.Host.domain || (document.location.protocol + ‘//’ + document.location.hostname),owl,$owlFirstItem,$owlPrevItem,showDetailsSpanContent = ”,gigyaShareElement,showIndex,whatsappShareElement,$carouselContentItems = jQuery(‘.carousel__content__item’, document.getElementById(‘cn-current_video_collection’));gigyaShareElement = jQuery(‘div.js-gigya-sharebar’);if (typeof gigyaShareElement !== ‘undefined’ && CNN.Utils.existsObject(videocardContents)) {jQuery(gigyaShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(gigyaShareElement).attr(‘data-description’, videocardContents.descriptionPlainText || ”);jQuery(gigyaShareElement).attr(‘data-link’, domain + videocardContents.url || ”);jQuery(gigyaShareElement).attr(‘data-image-src’, (videocardContents.media && videocardContents.media.elementContents && videocardContents.media.elementContents.imageUrl) || ”);}whatsappShareElement = jQuery(‘div.share-bar-whatsapp-container’);if (typeof whatsappShareElement !== ‘undefined’) {jQuery(whatsappShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(whatsappShareElement).attr(‘data-storyurl’, domain + videocardContents.url || ”);}if (carousel && currentVideoCollectionContainsId(videoId)) {owl = carousel.data(‘owl.carousel’) || {};showIndex = getCurrentVideoIndex(videoId);if (typeof owl.to === ‘function’) {owl.to(showIndex);}$owlPrevItem = CNN.Utils.exists(owl.$element) ? owl.$element.find(‘.cd.cd–active’) : $carouselContentItems.find(‘.cd.cd–active’);$owlPrevItem.removeClass(‘cd–active’);$owlPrevItem.find(‘.media__over-text’).remove();$owlPrevItem.find(‘.media__icon’).show();$owlFirstItem = CNN.Utils.exists(owl._items) ? jQuery(owl._items[showIndex]) : $carouselContentItems.eq(showIndex);$owlFirstItem.find(‘.cd’).addClass(‘cd–active’);$owlFirstItem.find(‘.media a:first-child’).append(‘

Now Playing

‘);if (Modernizr && !Modernizr.phone) {$owlFirstItem.find(‘.media__icon’).hide();}}CNN.Videx.Metadata.init({dateCreated: videocardContents.dateCreated,descriptionText: videocardContents.descriptionText,duration: videocardContents.duration,sourceLink: videocardContents.sourceLink,sourceName: videocardContents.sourceName,title: videocardContents.headlineText},{videoCollectionDivId: ‘cn-1t78ooh’,videoDescriptionDivId: ‘js-video_description-1t78ooh’,videoDurationDivId: ‘js-video_duration-1t78ooh’,videoTitleDivId: ‘js-leaf-video_headline-1t78ooh’,videoSourceDivId: ‘js-video_sourceName-1t78ooh’});if (CNN.Utils.exists(videocardContents.showName)) {if (CNN.Utils.exists(videocardContents.showUrl)) {showDetailsSpanContent = ‘‘ + videocardContents.showName + ‘ | ‘;} else {showDetailsSpanContent = videocardContents.showName + ‘ | ‘;}}fastdom.measure(function getShowInfo() {var $show = jQuery(‘.metadata__show’),$isShowDetailsSpanExists = $show.find(‘span’).hasClass(‘metadata–show__name’),$showName = jQuery(‘.metadata–show__name’);fastdom.mutate(function updateShowInfo() {if (!$isShowDetailsSpanExists) {$show.prepend(‘

Loading

Leave a Reply

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

Follow by Email
Pinterest
LinkedIn
Share