Andrew Yang concedes in New York mayoral race



‘);$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/06/23/andrew-yang-concession-new-york-city-mayoral-race-sot-vpx.spectrum-news-ny1’,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/210622235539-andrew-yang-concedes-nyc-mayoral-race-vpx-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210622235539-andrew-yang-concedes-nyc-mayoral-race-vpx-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210622235539-andrew-yang-concedes-nyc-mayoral-race-vpx-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210622235539-andrew-yang-concedes-nyc-mayoral-race-vpx-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210622235539-andrew-yang-concedes-nyc-mayoral-race-vpx-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210622235539-andrew-yang-concedes-nyc-mayoral-race-vpx-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210622235539-andrew-yang-concedes-nyc-mayoral-race-vpx-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Democratic NYC mayoral candidate Andrew Yang conceded in a speech as the results from early and primary day in-person voting came in showing he placed a distant fourth behind candidates Eric Adams, Kathryn Garcia and Maya Wiley. CNN projects the New York City Democratic mayoral primary winner will be determined using ranked-choice voting tabulation.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210622235539-andrew-yang-concedes-nyc-mayoral-race-vpx-large-169.jpg”,”title”:”Andrew Yang concedes in NYC mayoral race”,”videoCMSUrl”:”/videos/politics/2021/06/23/andrew-yang-concession-new-york-city-mayoral-race-sot-vpx.spectrum-news-ny1″,”videoLeafUrl”:”/videos/politics/2021/06/23/andrew-yang-concession-new-york-city-mayoral-race-sot-vpx.spectrum-news-ny1″,”videoId”:”politics/2021/06/23/andrew-yang-concession-new-york-city-mayoral-race-sot-vpx.spectrum-news-ny1″,”videoUrl”:”/videos/politics/2021/06/23/andrew-yang-concession-new-york-city-mayoral-race-sot-vpx.spectrum-news-ny1″,”surrogateKey”:”video_A302E38C-A3DF-2247-1324-36FA8C29C061″},{“descriptionPlainText”:”American Airlines is canceling hundreds of flights through at least mid-July as the company strives to maintain service in the midst of massively increasing travel demand while the coronavirus pandemic continues to recede in the United States, according to a spokesperson from the airline. CNN’s Pete Muntean reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210614074529-american-airlines-plane-0528-large-169.jpg”,”title”:”See why American Airlines is canceling hundreds of flights”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/21/american-airlines-flight-cancellations-ath-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/21/american-airlines-flight-cancellations-ath-vpx.cnn”,”videoId”:”business/2021/06/21/american-airlines-flight-cancellations-ath-vpx.cnn”,”videoUrl”:”/videos/business/2021/06/21/american-airlines-flight-cancellations-ath-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_75CD8CF9-AA4C-91E5-0F81-2F3125FC9EEA”},{“descriptionPlainText”:”Tyler Hamilton has worked at the Amazon warehouse in Shakopee, Minnesota for four years. He shares the good and the bad about the fast-paced job.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618174628-tyler-hamilton-amazon-employee-large-169.jpg”,”title”:”This is what it’s like to work in an Amazon warehouse”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/21/amazon-warehouse-worker-rn-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/21/amazon-warehouse-worker-rn-orig.cnn-business”,”videoId”:”business/2021/06/21/amazon-warehouse-worker-rn-orig.cnn-business”,”videoUrl”:”/videos/business/2021/06/21/amazon-warehouse-worker-rn-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_A651D98C-E9CD-5577-1C02-302A98AEF0E0″},{“descriptionPlainText”:”Former Counselor to President Obama John Podesta describes being targeted by QAnon in the group’s early years.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210621091200-john-podesta-new-day-06212021-large-169.jpg”,”title”:”‘It’s no fun’: One of QAnon’s first targets speaks out”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/21/john-podesta-qanon-target-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/21/john-podesta-qanon-target-newday-vpx.cnn”,”videoId”:”business/2021/06/21/john-podesta-qanon-target-newday-vpx.cnn”,”videoUrl”:”/videos/business/2021/06/21/john-podesta-qanon-target-newday-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_7483F46D-2025-CE37-4C2B-2EA539D889F4″},{“descriptionPlainText”:”James Michael Tyler, who appeared as Gunther in 150 episodes of “Friends,” revealed he has been living with prostate cancer since 2018.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210621115917-james-michael-tyler-friends-large-169.jpg”,”title”:”Actor who played Gunther on ‘Friends’ reveals cancer fight”,”videoCMSUrl”:”/video/data/3.0/video/media/2021/06/21/friends-james-michael-tyler-cancer-orig-bdk.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2021/06/21/friends-james-michael-tyler-cancer-orig-bdk.cnn”,”videoId”:”media/2021/06/21/friends-james-michael-tyler-cancer-orig-bdk.cnn”,”videoUrl”:”/videos/media/2021/06/21/friends-james-michael-tyler-cancer-orig-bdk.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_8DAE4DCE-C361-52E3-C70C-2F40391701E8″},{“descriptionPlainText”:”Designer Stella McCartney talks from the sidelines of the G7 summit about the importance of sustainability in the fashion industry.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210621114351-stella-mccartney-large-169.jpg”,”title”:”Stella McCartney: Fast fashion is hugely damaging to the plant”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/21/marketplace-europe-stella-mccartney-sustainable-fashion.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/21/marketplace-europe-stella-mccartney-sustainable-fashion.cnnbusiness”,”videoId”:”business/2021/06/21/marketplace-europe-stella-mccartney-sustainable-fashion.cnnbusiness”,”videoUrl”:”/videos/business/2021/06/21/marketplace-europe-stella-mccartney-sustainable-fashion.cnnbusiness/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_053CD8ED-C6B0-CE12-115F-2F348DE31A7E”},{“descriptionPlainText”:”A Boy Scout leader shares his frustrations after realizing that his two home rentals, which were supposed to be near the beach, led him to an empty lot. CNN affiliate WSVN reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210621134049-empty-lot-large-169.jpeg”,”title”:”A Boy Scout troop booked a home on Airbnb. See what they found instead”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/21/boy-scout-leader-airbnb-empty-lot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/21/boy-scout-leader-airbnb-empty-lot-vpx.cnn”,”videoId”:”business/2021/06/21/boy-scout-leader-airbnb-empty-lot-vpx.cnn”,”videoUrl”:”/videos/business/2021/06/21/boy-scout-leader-airbnb-empty-lot-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_9DE1909D-5AD5-6723-ABC5-2FA0554C6F86″},{“descriptionPlainText”:”The 23-time grand slam winning champion Serena Williams took to Instagram to share an adorable video of her giving her 3-year-old daughter Olympia a tennis lesson.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618101727-serena-williams-large-169.jpg”,”title”:”Serena Williams gives daughter tennis lesson in adorable video”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/18/serena-williams-daughter-tennis-lesson-instagram-mxp-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/18/serena-williams-daughter-tennis-lesson-instagram-mxp-vpx.cnn”,”videoId”:”business/2021/06/18/serena-williams-daughter-tennis-lesson-instagram-mxp-vpx.cnn”,”videoUrl”:”/videos/business/2021/06/18/serena-williams-daughter-tennis-lesson-instagram-mxp-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_BACA7CE3-C22F-1AE2-D637-1F6FFD5008B5″},{“descriptionPlainText”:”Cities debate keeping extra outdoor dining spaces for restaurants as the pandemic winds down. CNN’s Tom Foreman reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618172212-outdoor-dining-tom-foreman-pkg-vpx-large-169.jpg”,”title”:”Cities debate future of outdoor dining post-pandemic “,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/18/restaurants-extra-outdoor-dining-space-debate-foreman-lead-dnt-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/18/restaurants-extra-outdoor-dining-space-debate-foreman-lead-dnt-vpx.cnn”,”videoId”:”business/2021/06/18/restaurants-extra-outdoor-dining-space-debate-foreman-lead-dnt-vpx.cnn”,”videoUrl”:”/videos/business/2021/06/18/restaurants-extra-outdoor-dining-space-debate-foreman-lead-dnt-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_1901593B-707F-24AF-429D-20EAACE4453A”},{“descriptionPlainText”:”Banking firms like Morgan Stanley and Goldman Sachs announced they want their employees to return to the office as more people are getting vaccinated against Covid-19. CNN’s Christine Romans reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210617092359-02-morgan-stanley-new-york-0409-restricted-large-169.jpg”,”title”:”Wall Street wants employees back in the office”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/18/wall-street-return-to-office.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/18/wall-street-return-to-office.cnnbusiness”,”videoId”:”business/2021/06/18/wall-street-return-to-office.cnnbusiness”,”videoUrl”:”/videos/business/2021/06/18/wall-street-return-to-office.cnnbusiness/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_2C7EAB00-3CCA-1BC5-D292-1F05E46FEAD0″},{“descriptionPlainText”:”A Colorado Springs, Colorado, house was so badly trashed by a former tenant that its real estate agent describes it as a “house of horrors.” CNN affiliate KMGH takes us inside.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210617132657-colorado-house-from-hell-large-169.jpg”,”title”:”Colorado realtor puts ‘house from hell’ on the market”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/17/colorado-house-vandalized-graffiti-realtor-pkg-vpx.kmgh/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/17/colorado-house-vandalized-graffiti-realtor-pkg-vpx.kmgh”,”videoId”:”business/2021/06/17/colorado-house-vandalized-graffiti-realtor-pkg-vpx.kmgh”,”videoUrl”:”/videos/business/2021/06/17/colorado-house-vandalized-graffiti-realtor-pkg-vpx.kmgh/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_67B6B002-2BB5-32F6-6262-1AF29E7D054E”},{“descriptionPlainText”:”The cast of the cult-classic TV show “Friends” reunited on James Corden’s “Carpool Karaoke” segment to sing their theme song, HLN’s Robin Meade reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210617133734-friends-carpool-karaoke-cbs-large-169.jpg”,”title”:”‘Friends’ cast sings their theme song on James Corden’s show”,”videoCMSUrl”:”/video/data/3.0/video/media/2021/06/17/friends-cast-sing-theme-song-corden-meade-sot-vpx.hln/index.xml”,”videoLeafUrl”:”/videos/media/2021/06/17/friends-cast-sing-theme-song-corden-meade-sot-vpx.hln”,”videoId”:”media/2021/06/17/friends-cast-sing-theme-song-corden-meade-sot-vpx.hln”,”videoUrl”:”/videos/media/2021/06/17/friends-cast-sing-theme-song-corden-meade-sot-vpx.hln/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_27352175-1D75-158B-2377-1AFED219DBE6″},{“descriptionPlainText”:”Late-night host Stephen Colbert welcomes back a live studio audience for the first time in 15 months.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210615031559-stephen-colbert-large-169.jpg”,”title”:”Stephen Colbert welcomes back live audience”,”videoCMSUrl”:”/video/data/3.0/video/media/2021/06/15/colbert-return-of-live-audience-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2021/06/15/colbert-return-of-live-audience-orig.cnn”,”videoId”:”media/2021/06/15/colbert-return-of-live-audience-orig.cnn”,”videoUrl”:”/videos/media/2021/06/15/colbert-return-of-live-audience-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_96A0C017-2607-666D-BC52-0E778F58ED43″},{“descriptionPlainText”:”Using a pre-fab, modular design, BROAD Group was able to construct a 10-story apartment building in 28 hours and 45 minutes in Changsha, China.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210616165057-one-day-building-broad-group-large-169.jpg”,”title”:”Timelapse: 10-story building goes up in nearly one day”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/16/10-story-building-constructed-in-one-day-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/16/10-story-building-constructed-in-one-day-orig.cnn-business”,”videoId”:”business/2021/06/16/10-story-building-constructed-in-one-day-orig.cnn-business”,”videoUrl”:”/videos/business/2021/06/16/10-story-building-constructed-in-one-day-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_D2A9F6E2-C553-D514-CA29-168F61CFC0BF”},{“descriptionPlainText”:”Paris Jackson joined Willow Smith on “Red Table Talk Takeover” for a candid conversation about her past suicide attempts and how she coped with growing up in the shadow of her father, Michael Jackson.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210617111659-paris-jackson-red-table-talk-interview-large-169.jpg”,”title”:”Paris Jackson thinks her dad would be proud of her”,”videoCMSUrl”:”/video/data/3.0/video/media/2021/06/17/paris-jackson-willow-smith-red-table-talk-orig-bdk.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2021/06/17/paris-jackson-willow-smith-red-table-talk-orig-bdk.cnn”,”videoId”:”media/2021/06/17/paris-jackson-willow-smith-red-table-talk-orig-bdk.cnn”,”videoUrl”:”/videos/media/2021/06/17/paris-jackson-willow-smith-red-table-talk-orig-bdk.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_8AE2DAB2-D0CA-A851-F5E1-1A6DE637C597″},{“descriptionPlainText”:”Airlines, banks, stock exchanges and trading platforms suffered brief website outages, sparking the second major interruption in the past 10 days. CNN’s Anna Stewart reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210617013748-southwest-airlines-file-large-169.jpg”,”title”:”Banks and airline websites get hit by another major internet outage”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/17/airlines-banks-website-outage-qmb.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/17/airlines-banks-website-outage-qmb.cnnbusiness”,”videoId”:”business/2021/06/17/airlines-banks-website-outage-qmb.cnnbusiness”,”videoUrl”:”/videos/business/2021/06/17/airlines-banks-website-outage-qmb.cnnbusiness/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_AB6448B8-462F-42F2-70DB-1A1B11925726″},{“descriptionPlainText”:”Fox News host Tucker Carlson is promoting a new baseless conspiracy theory that the FBI planned the attack on the Capitol on Jan. 6. CNN’s Brian Stelter has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200612120334-01-tucker-carlson-file-large-169.jpg”,”title”:”Carlson promotes conspiracy that FBI planned Capitol riot”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/17/tucker-carlson-conspiracy-capitol-riot-stelter-dlt-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/17/tucker-carlson-conspiracy-capitol-riot-stelter-dlt-vpx.cnn”,”videoId”:”business/2021/06/17/tucker-carlson-conspiracy-capitol-riot-stelter-dlt-vpx.cnn”,”videoUrl”:”/videos/business/2021/06/17/tucker-carlson-conspiracy-capitol-riot-stelter-dlt-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_820CFED1-F7C9-CCF1-D81D-18114CB88BA6″}],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/06/23/andrew-yang-concession-new-york-city-mayoral-race-sot-vpx.spectrum-news-ny1″, 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-rgbt23’,videoDescriptionDivId: ‘js-video_description-rgbt23’,videoDurationDivId: ‘js-video_duration-rgbt23’,videoTitleDivId: ‘js-leaf-video_headline-rgbt23’,videoSourceDivId: ‘js-video_sourceName-rgbt23’});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

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