Bernie Sanders is rising in the polls. Here's why

0
17

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘politics/2020/01/24/bernie-sanders-rise-in-polls-cuomo-cpt-sot-vpx.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/191125125525-bernie-sanders-1109-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191125125525-bernie-sanders-1109-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191125125525-bernie-sanders-1109-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191125125525-bernie-sanders-1109-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191125125525-bernie-sanders-1109-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191125125525-bernie-sanders-1109-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191125125525-bernie-sanders-1109-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Democratic presidential candidate Sen. Bernie Sanders leads in New Hampshire, continuing to widen his top position ahead of the primaries, according to a new WBUR poll.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191125125525-bernie-sanders-1109-large-169.jpg”,”title”:”Bernie Sanders is rising in the polls. Here’s why”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/24/bernie-sanders-rise-in-polls-cuomo-cpt-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/24/bernie-sanders-rise-in-polls-cuomo-cpt-sot-vpx.cnn”,”videoId”:”politics/2020/01/24/bernie-sanders-rise-in-polls-cuomo-cpt-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/24/bernie-sanders-rise-in-polls-cuomo-cpt-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_7FFDD48E-6EE1-3099-6C7C-D630EABE4E1F”},{“descriptionPlainText”:”CNN Supreme Court analyst Joan Biskupic explains what would happen if a vote during the Senate impeachment trial ends in a tie.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200124010228-joan-biskupic-01242020-large-169.jpg”,”title”:”How a tie in a Senate impeachment trial is decided”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/24/chief-justice-split-vote-tie-impeachment-trial-senate-sot-cpt-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/24/chief-justice-split-vote-tie-impeachment-trial-senate-sot-cpt-vpx.cnn”,”videoId”:”politics/2020/01/24/chief-justice-split-vote-tie-impeachment-trial-senate-sot-cpt-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/24/chief-justice-split-vote-tie-impeachment-trial-senate-sot-cpt-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_7FFDD48E-6EE1-3099-6C7C-D630EABE4E1F”},{“descriptionPlainText”:”Republican Sen. Marsha Blackburn attacked Lt. Col. Alexander Vindman, a key National Security Council aide who testified before Congress on the Ukraine scandal, on Twitter, including questioning the Purple Heart recipient’s patriotism.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123235107-blackburn-vindman-split-large-169.jpg”,”title”:”GOP lawmaker questions patriotism of Purple Heart recipient”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/24/blackburn-tweet-vindman-duckworth-cooper-intv-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/24/blackburn-tweet-vindman-duckworth-cooper-intv-ac360-vpx.cnn”,”videoId”:”politics/2020/01/24/blackburn-tweet-vindman-duckworth-cooper-intv-ac360-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/24/blackburn-tweet-vindman-duckworth-cooper-intv-ac360-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_FE5267F9-BC75-191C-67FE-D616693B7410″},{“descriptionPlainText”:”CNN’s Manu Raju asks Republican senators about the evidence Democrats have presented against President Trump at his impeachment trial.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123171152-gop-senators-impeachment-evidence-reaction-raju-vpx-00000000-large-169.jpg”,”title”:”See what GOP senators think about evidence against Trump”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/23/gop-senators-impeachment-evidence-reaction-raju-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/23/gop-senators-impeachment-evidence-reaction-raju-vpx.cnn”,”videoId”:”politics/2020/01/23/gop-senators-impeachment-evidence-reaction-raju-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/23/gop-senators-impeachment-evidence-reaction-raju-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_29ACA251-518A-16B3-9C8E-D5D90354A958″},{“descriptionPlainText”:”Sen. Sheldon Whitehouse tells CNN’s John Berman that Republican Sen. Lindsey Graham congratulated Democratic Rep. Adam Schiff, the lead House impeachment manager, on a job well done after day two of the Senate impeachment trial of President Donald Trump wrapped.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123111757-sen-sheldon-whitehouse-graham-schiff-exchange-photo-sot-newday-vpx-00000118-large-169.jpg”,”title”:”Sen. Whitehouse: Graham paid Schiff a compliment”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/23/sen-sheldon-whitehouse-graham-schiff-exchange-photo-sot-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/23/sen-sheldon-whitehouse-graham-schiff-exchange-photo-sot-newday-vpx.cnn”,”videoId”:”politics/2020/01/23/sen-sheldon-whitehouse-graham-schiff-exchange-photo-sot-newday-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/23/sen-sheldon-whitehouse-graham-schiff-exchange-photo-sot-newday-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_4B4A6971-7E8F-C4DD-9B73-D46E8D7351FB”},{“descriptionPlainText”:”Massachusetts Sen. Elizabeth Warren said she was not thinking “in terms of the politics” when asked if she was worried discussions of former Vice President Joe Biden in the ongoing impeachment trial were strengthening Biden’s presidential bid.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191216122345-08-elizabeth-warren-lead-image-large-169.jpg”,”title”:”Warren: I don’t think of this in terms of the politics”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/24/elizabeth-warren-joe-biden-trump-impeachment-trial-bash-intv-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/24/elizabeth-warren-joe-biden-trump-impeachment-trial-bash-intv-vpx.cnn”,”videoId”:”politics/2020/01/24/elizabeth-warren-joe-biden-trump-impeachment-trial-bash-intv-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/24/elizabeth-warren-joe-biden-trump-impeachment-trial-bash-intv-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_25E505FD-1EA2-7A46-6C0F-D31D18B5B5C3″},{“descriptionPlainText”:”Impeachment manager Rep. Jerry Nadler (D) plays a clip of Sen. Lindsey Graham (R-SC) from 1999 during the impeachment trial of President Donald Trump.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123165048-jerry-nadler-large-169.jpg”,”title”:”Democrat uses 1999 clip of Graham to support his argument”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/23/jerry-nadler-lindsey-graham-crime-impeachment-trial-mattingly-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/23/jerry-nadler-lindsey-graham-crime-impeachment-trial-mattingly-vpx.cnn”,”videoId”:”politics/2020/01/23/jerry-nadler-lindsey-graham-crime-impeachment-trial-mattingly-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/23/jerry-nadler-lindsey-graham-crime-impeachment-trial-mattingly-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_824A4B14-D8AD-8B4C-AF16-D5613496C833″},{“descriptionPlainText”:”Impeachment House manager Rep. Adam Schiff (D-CA) said, “Well you gotta give Donald Trump credit for this,” when referencing a statement from Russian President Vladimir Putin on meddling in the US election.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123161513-adam-schiff-large-169.jpg”,”title”:”Adam Schiff: You gotta give Donald Trump credit for this”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/23/schiff-russia-thank-god-trump-impeachment-trial-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/23/schiff-russia-thank-god-trump-impeachment-trial-vpx.cnn”,”videoId”:”politics/2020/01/23/schiff-russia-thank-god-trump-impeachment-trial-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/23/schiff-russia-thank-god-trump-impeachment-trial-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_1242F892-AC1D-9DC7-88CD-D4584487B0B9″},{“descriptionPlainText”:”CNN’s John Berman criticizes a group of GOP senators who missed portions of President Trump’s impeachment trial.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123080143-john-berman-1-23-2020-large-169.jpg”,”title”:”Berman slams GOP senators’ behavior during trial”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/23/republican-senators-trump-impeachment-trial-berman-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/23/republican-senators-trump-impeachment-trial-berman-newday-vpx.cnn”,”videoId”:”politics/2020/01/23/republican-senators-trump-impeachment-trial-berman-newday-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/23/republican-senators-trump-impeachment-trial-berman-newday-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_5A1E6264-9EB1-803C-88F9-D4303CA7B1C0″},{“descriptionPlainText”:”CNN’s John Avlon points out that although President Donald Trump often declares he would “love” to do something, it usually means it won’t happen.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123074818-john-avlon-new-day-reality-check-large-169.jpg”,”title”:”Avlon reveals all the things Trump loves not to do”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/23/things-trump-loves-not-doing-reality-check-avlon-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/23/things-trump-loves-not-doing-reality-check-avlon-newday-vpx.cnn”,”videoId”:”politics/2020/01/23/things-trump-loves-not-doing-reality-check-avlon-newday-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/23/things-trump-loves-not-doing-reality-check-avlon-newday-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_9455D3F1-8382-C8A7-F85A-D27A4C6F1424″},{“descriptionPlainText”:”Each side has 24 hours over three days to make their opening arguments in the Senate impeachment trial. House manager Adam Schiff said the facts against President Donald Trump are “damning.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200122151433-04-impeachment-trial-unf-0122-large-169.jpg”,”title”:”We watched 400+ minutes of the trial so you can watch 2″,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/23/impeachment-democrats-opening-arguments-mh-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/23/impeachment-democrats-opening-arguments-mh-orig.cnn”,”videoId”:”politics/2020/01/23/impeachment-democrats-opening-arguments-mh-orig.cnn”,”videoUrl”:”/videos/politics/2020/01/23/impeachment-democrats-opening-arguments-mh-orig.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_1496A34F-7100-1262-23D4-D25830FCD3D3″},{“descriptionPlainText”:”More than 20 Democratic candidates joined Rep. Jim Clyburn’s Fish Fry in Columbia, South Carolina.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/190622012735-politics-clyburns-fish-fry-large-169.jpg”,”title”:”2020 Democrats share the stage in South Carolina”,”videoCMSUrl”:”/video/data/3.0/video/politics/2019/06/22/democrats-2020-south-carolina-fish-fry-me-lr-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2019/06/22/democrats-2020-south-carolina-fish-fry-me-lr-orig.cnn”,”videoId”:”politics/2019/06/22/democrats-2020-south-carolina-fish-fry-me-lr-orig.cnn”,”videoUrl”:”/videos/politics/2019/06/22/democrats-2020-south-carolina-fish-fry-me-lr-orig.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_28DC097D-0A51-60CE-F7FF-CFFAFF61C18B”},{“descriptionPlainText”:”Lead impeachment manager Rep. Adam Schiff (R-CA) invoked the words of Alexander Hamilton and said President Trump tried to influence Ukraine to help him “cheat” to win the 2020 presidential election.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123013717-adam-schiff-alexander-hamilton-split-large-169.jpg”,”title”:”Adam Schiff invokes Alexander Hamilton against Trump”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/23/schiff-invokes-alexander-hamilton-impeachment-trial-opening-day-2-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/23/schiff-invokes-alexander-hamilton-impeachment-trial-opening-day-2-sot-vpx.cnn”,”videoId”:”politics/2020/01/23/schiff-invokes-alexander-hamilton-impeachment-trial-opening-day-2-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/23/schiff-invokes-alexander-hamilton-impeachment-trial-opening-day-2-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_07E1F331-7C44-BAF1-5029-7F54C9001F28″},{“descriptionPlainText”:”President Donald Trump said he does not consider potential brain injuries to be as serious as physical combat wounds, downplaying the severity of US service members being treated for concussion symptoms from an Iranian attack as “headaches.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123024431-trump-us-service-member-head-injuries-concussions-sot-vpx-00001927-large-169.jpg”,”title”:”Trump downplays service members’ concussions: I heard they had headaches”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/22/trump-us-service-member-head-injuries-concussions-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/22/trump-us-service-member-head-injuries-concussions-sot-vpx.cnn”,”videoId”:”politics/2020/01/22/trump-us-service-member-head-injuries-concussions-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/22/trump-us-service-member-head-injuries-concussions-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_A0861E1B-2BA0-3229-FC96-D10CC847F133″},{“descriptionPlainText”:”Impeachment manager Rep. Adam Schiff (D-CA) played clips of President Donald Trump saying Article II gives him the “right to do whatever he wants as president” and another clip where Trump claimed they’re “fighting all the subpoenas.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200121152137-02-schiff-senate-floor-screengrab-large-169.jpg”,”title”:”Adam Schiff uses tapes to make case against Trump”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/01/23/adam-schiff-donald-trump-tape-article-2-senate-impeachment-trial-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/01/23/adam-schiff-donald-trump-tape-article-2-senate-impeachment-trial-sot-vpx.cnn”,”videoId”:”politics/2020/01/23/adam-schiff-donald-trump-tape-article-2-senate-impeachment-trial-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2020/01/23/adam-schiff-donald-trump-tape-article-2-senate-impeachment-trial-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_8EF718EB-6CAA-220B-560F-CDBD2134A9C7″}],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/2020/01/24/bernie-sanders-rise-in-polls-cuomo-cpt-sot-vpx.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-girvwx’,videoDescriptionDivId: ‘js-video_description-girvwx’,videoDurationDivId: ‘js-video_duration-girvwx’,videoTitleDivId: ‘js-leaf-video_headline-girvwx’,videoSourceDivId: ‘js-video_sourceName-girvwx’});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(‘

Source link

LEAVE A REPLY