Why the 2018 midterm elections matter – CNN Video

Why the 2018 midterm elections matter – CNN Video

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘politics/2018/03/14/why-the-2018-midterm-elections-matter-ets-orig-vstan.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/160128100623-getty-voting-polls-bilingual-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160128100623-getty-voting-polls-bilingual-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160128100623-getty-voting-polls-bilingual-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160128100623-getty-voting-polls-bilingual-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160128100623-getty-voting-polls-bilingual-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160128100623-getty-voting-polls-bilingual-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160128100623-getty-voting-polls-bilingual-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Beyond the balance of power in Congress, the 2018 midterm elections’ impact will be felt at every level of government for at least the next decade. Learn what the effects might be.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160128100623-getty-voting-polls-bilingual-large-169.jpg”,”title”:”Why the 2018 midterm elections matter”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/03/14/why-the-2018-midterm-elections-matter-ets-orig-vstan.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/03/14/why-the-2018-midterm-elections-matter-ets-orig-vstan.cnn”,”videoId”:”politics/2018/03/14/why-the-2018-midterm-elections-matter-ets-orig-vstan.cnn”,”videoUrl”:”/videos/politics/2018/03/14/why-the-2018-midterm-elections-matter-ets-orig-vstan.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”M.J. Hegar, a former Air Force combat search and rescue pilot and Democrat running for Congress in Texas, shares her story in a political ad that’s gone viral.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180626020656-mj-hegar-congressional-candidate-viral-political-ad-newday-00001506-large-169.jpg”,”title”:”Candidate’s ad for Congress goes viral”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/06/25/mj-hegar-congressional-candidate-viral-political-ad-newday.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/06/25/mj-hegar-congressional-candidate-viral-political-ad-newday.cnn”,”videoId”:”politics/2018/06/25/mj-hegar-congressional-candidate-viral-political-ad-newday.cnn”,”videoUrl”:”/videos/politics/2018/06/25/mj-hegar-congressional-candidate-viral-political-ad-newday.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”CNN projects Democrat Lt. Gov. Gavin Newsom will claim one of the top two spots in the California gubernatorial election, advancing him to the November general election.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180606041337-gavin-newsom-speech-ca-large-169.jpg”,”title”:”Newsom will face off in general election”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/06/06/gavin-newsom-california-governor-primary-speech-bts.kpix/index.xml”,”videoLeafUrl”:”/videos/politics/2018/06/06/gavin-newsom-california-governor-primary-speech-bts.kpix”,”videoId”:”politics/2018/06/06/gavin-newsom-california-governor-primary-speech-bts.kpix”,”videoUrl”:”/videos/politics/2018/06/06/gavin-newsom-california-governor-primary-speech-bts.kpix/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”CNN projects Republican John Cox will claim one one of the spots in California’s gubernatorial election, advancing him to the general election in November.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180606043638-john-cox-ca-primary-speech-large-169.jpg”,”title”:”Cox earns spot in CA general election”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/06/06/john-cox-california-governor-primary-speech-bts.kusi/index.xml”,”videoLeafUrl”:”/videos/politics/2018/06/06/john-cox-california-governor-primary-speech-bts.kusi”,”videoId”:”politics/2018/06/06/john-cox-california-governor-primary-speech-bts.kusi”,”videoUrl”:”/videos/politics/2018/06/06/john-cox-california-governor-primary-speech-bts.kusi/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”Deb Haaland has won the primary for New Mexico’s 1st Congressional District, CNN projects, putting her on track to become the first Native American woman in Congress.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180606020748-deb-haaland-victory-speech-primaries-nm-large-169.jpg”,”title”:”Deb Haaland: Tonight we made history”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/06/06/deb-haaland-primary-win-new-mexico.krqe/index.xml”,”videoLeafUrl”:”/videos/politics/2018/06/06/deb-haaland-primary-win-new-mexico.krqe”,”videoId”:”politics/2018/06/06/deb-haaland-primary-win-new-mexico.krqe”,”videoUrl”:”/videos/politics/2018/06/06/deb-haaland-primary-win-new-mexico.krqe/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”California is a key part of the Democrats’ plan to take back the House of Representatives, but the state’s unusual primary system could spell trouble.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160128100623-getty-voting-polls-bilingual-large-169.jpg”,”title”:”California’s primary could be trouble for Dems”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/05/30/california-primary-top-two-explr-cs-zw-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/05/30/california-primary-top-two-explr-cs-zw-orig.cnn”,”videoId”:”politics/2018/05/30/california-primary-top-two-explr-cs-zw-orig.cnn”,”videoUrl”:”/videos/politics/2018/05/30/california-primary-top-two-explr-cs-zw-orig.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”CNN’s Chris Cillizza breaks down the 22 seats that could decide the majority in the House this fall.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180511134258-key-house-race-toss-ups-orig-bw-vstan-00005022-large-169.jpg”,”title”:”A closer look at toss-up House races”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/05/11/key-house-race-toss-ups-orig-bw-vstan.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/05/11/key-house-race-toss-ups-orig-bw-vstan.cnn”,”videoId”:”politics/2018/05/11/key-house-race-toss-ups-orig-bw-vstan.cnn”,”videoUrl”:”/videos/politics/2018/05/11/key-house-race-toss-ups-orig-bw-vstan.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”Former coal magnate and ex-con Don Blankenship concedes the West Virginia GOP Senate primary and attributes blame to President Donald Trump for his loss.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180509050400-don-blankenship-concedes-west-virginia-senate-race-bts-00001107-large-169.jpg”,”title”:”Blankenship blames Trump for loss”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/05/09/don-blankenship-concedes-west-virginia-senate-race-bts.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/05/09/don-blankenship-concedes-west-virginia-senate-race-bts.cnn”,”videoId”:”politics/2018/05/09/don-blankenship-concedes-west-virginia-senate-race-bts.cnn”,”videoUrl”:”/videos/politics/2018/05/09/don-blankenship-concedes-west-virginia-senate-race-bts.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”CNN’s Chris Cillizza tells you who to watch in West Virginia and Indiana’s Republican primary races.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170125081427-voting-booth-large-169.jpg”,”title”:”3 names you need to know today”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/05/07/indiana-west-virginia-primaries-cillizza-orig-bw.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/05/07/indiana-west-virginia-primaries-cillizza-orig-bw.cnn”,”videoId”:”politics/2018/05/07/indiana-west-virginia-primaries-cillizza-orig-bw.cnn”,”videoUrl”:”/videos/politics/2018/05/07/indiana-west-virginia-primaries-cillizza-orig-bw.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”Former Rep. Charlie Dent (R-PA) talks to CNN’s John Berman about President Trump’s claim that “13 Angry Democrats” working on special counsel Robert Mueller’s investigation will meddle in the 2018 midterm elections to benefit Democrats.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180526130908-03-donald-trump-0525-large-169.jpg”,”title”:”Trump claims Mueller team will meddle in midterms”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/05/29/trump-robert-mueller-team-midterm-elections-tweet-charlie-dent-new-day.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/05/29/trump-robert-mueller-team-midterm-elections-tweet-charlie-dent-new-day.cnn”,”videoId”:”politics/2018/05/29/trump-robert-mueller-team-midterm-elections-tweet-charlie-dent-new-day.cnn”,”videoUrl”:”/videos/politics/2018/05/29/trump-robert-mueller-team-midterm-elections-tweet-charlie-dent-new-day.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”During a rally in Michigan, President Trump told supporters that if Republicans lose the majority in Congress, Democrats will impeach him.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180428205505-04-trump-rally-0428-large-169.jpg”,”title”:”Trump: If Dems win midterms, I’ll be impeached”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/04/30/trump-keep-house-or-ill-be-impeached-chalian-sot-nr.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/04/30/trump-keep-house-or-ill-be-impeached-chalian-sot-nr.cnn”,”videoId”:”politics/2018/04/30/trump-keep-house-or-ill-be-impeached-chalian-sot-nr.cnn”,”videoUrl”:”/videos/politics/2018/04/30/trump-keep-house-or-ill-be-impeached-chalian-sot-nr.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”A political brawl between President Donald Trump and Sen. Jon Tester (D-MT) is seeping into the 2018 midterm elections and could affect the senator’s re-election. CNN’s Miguel Marquez reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180430204219-senator-tester-donald-trump-split-large-169.jpg”,”title”:”Trump’s political brawl seeps into Senate race”,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/05/01/senator-jon-tester-trump-reelection-montana-marquez-dnt-ebof.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/05/01/senator-jon-tester-trump-reelection-montana-marquez-dnt-ebof.cnn”,”videoId”:”politics/2018/05/01/senator-jon-tester-trump-reelection-montana-marquez-dnt-ebof.cnn”,”videoUrl”:”/videos/politics/2018/05/01/senator-jon-tester-trump-reelection-montana-marquez-dnt-ebof.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”Gov. John Kasich (R-OH) discusses how he thinks the Republican party will fare in the 2018 midterms with CNN’s Jake Tapper.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180429100906-john-kasich-april-29-2018-02-large-169.jpg”,”title”:”Kasich: Democrats are more energized in 2018″,”videoCMSUrl”:”/video/data/3.0/video/politics/2018/04/30/democrats-energized-midterms-kasich-sotu-sot.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2018/04/30/democrats-energized-midterms-kasich-sotu-sot.cnn”,”videoId”:”politics/2018/04/30/democrats-energized-midterms-kasich-sotu-sot.cnn”,”videoUrl”:”/videos/politics/2018/04/30/democrats-energized-midterms-kasich-sotu-sot.cnn/video/playlists/2018-midterm-elections/”},{“descriptionPlainText”:”More than 450 seats in the US Congress will be up for grabs in 2018. CNN’s Chris Cillizza explains how the political landscape could change after midterm elections.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171222144006-politics-2018-large-169.jpg”,”title”:”How politics could change in 2018″,”videoCMSUrl”:”/video/data/3.0/video/politics/2017/12/22/politics-2018-midterm-elections-cillizza-llr-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2017/12/22/politics-2018-midterm-elections-cillizza-llr-orig.cnn”,”videoId”:”politics/2017/12/22/politics-2018-midterm-elections-cillizza-llr-orig.cnn”,”videoUrl”:”/videos/politics/2017/12/22/politics-2018-midterm-elections-cillizza-llr-orig.cnn/video/playlists/2018-midterm-elections/”}],currentVideoCollectionId = ”,isLivePlayer = false,mediaMetadataCallbacks,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 = 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/2018/03/14/why-the-2018-midterm-elections-matter-ets-orig-vstan.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-3poz11’,videoDescriptionDivId: ‘js-video_description-3poz11’,videoDurationDivId: ‘js-video_duration-3poz11’,videoTitleDivId: ‘js-leaf-video_headline-3poz11’,videoSourceDivId: ‘js-video_sourceName-3poz11’});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(‘