Fareed: This is what went wrong for Netanyahu

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2021/06/13/fareed-zakaria-benjamin-netanyahu-israel-prime-minister-analysis-sot-nr-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/210602132918-01-netanyahu-file-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210602132918-01-netanyahu-file-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210602132918-01-netanyahu-file-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210602132918-01-netanyahu-file-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210602132918-01-netanyahu-file-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210602132918-01-netanyahu-file-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210602132918-01-netanyahu-file-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”CNN’s Fareed Zakaria discusses the impact Benjamin Netanyahu has had on Israel as the country’s longest serving prime minister and says legal troubles helped turn many Israelis against him.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210602132918-01-netanyahu-file-large-169.jpg”,”title”:”Fareed: This is what went wrong for Netanyahu”,”videoCMSUrl”:”/videos/world/2021/06/13/fareed-zakaria-benjamin-netanyahu-israel-prime-minister-analysis-sot-nr-vpx.cnn”,”videoLeafUrl”:”/videos/world/2021/06/13/fareed-zakaria-benjamin-netanyahu-israel-prime-minister-analysis-sot-nr-vpx.cnn”,”videoId”:”world/2021/06/13/fareed-zakaria-benjamin-netanyahu-israel-prime-minister-analysis-sot-nr-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/13/fareed-zakaria-benjamin-netanyahu-israel-prime-minister-analysis-sot-nr-vpx.cnn”,”surrogateKey”:”video_62B03EC0-0427-E782-C9FC-069624B4E6AC”},{“descriptionPlainText”:”At least 12 people were killed in a huge gas explosion in central China, state media reported. The blast took place at about 6:30 a.m. local time in the Zhangwan district of Shiyan city, in Hubei province, according to local authorities.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210613063241-gas-explosion-china-large-169.jpg”,”title”:”Video of explosion aftermath in China shows a harrowing picture “,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/13/gas-explosion-shiyan-china-lu-stout-ndwknd-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/13/gas-explosion-shiyan-china-lu-stout-ndwknd-vpx.cnn”,”videoId”:”world/2021/06/13/gas-explosion-shiyan-china-lu-stout-ndwknd-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/13/gas-explosion-shiyan-china-lu-stout-ndwknd-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_3C89E33C-9860-44F0-43AA-04E294355BA2″},{“descriptionPlainText”:”British Prime Minister Boris Johnson was asked by CNN’s Clarissa Ward at the 2021 G7 Summit if he agrees with President Joe Biden’s statement that Russian President Vladimir Putin is a “killer.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210612134420-boris-johnson-g7-interview-ward-vpx-large-169.jpg”,”title”:”Boris Johnson asked if he agrees that Putin is a ‘killer’ “,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/12/boris-johnson-intv-sot-biden-putin-nr-ward-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/12/boris-johnson-intv-sot-biden-putin-nr-ward-vpx.cnn”,”videoId”:”world/2021/06/12/boris-johnson-intv-sot-biden-putin-nr-ward-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/12/boris-johnson-intv-sot-biden-putin-nr-ward-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_EF0F32DE-B1CC-1733-B613-0140E4C76166″},{“descriptionPlainText”:”The Queen smiled and joked with Catherine, Duchess of Cambridge and Camilla, Duchess of Cornwall as she swapped a knife for the longer blade to slice through a cake while visiting the organizers of the Big Lunch during the G7 summit in Cornwall.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210612083738-queen-elizabeth-sword-cake-06-11-2021-large-169.jpg”,”title”:”Watch the Queen cut a cake with a sword “,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/12/queen-cuts-cake-with-a-sword-g7-vpx.reuters/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/12/queen-cuts-cake-with-a-sword-g7-vpx.reuters”,”videoId”:”world/2021/06/12/queen-cuts-cake-with-a-sword-g7-vpx.reuters”,”videoUrl”:”/videos/world/2021/06/12/queen-cuts-cake-with-a-sword-g7-vpx.reuters/video/playlists/around-the-world/”,”surrogateKey”:”video_60DDE5DB-BAC3-EE87-DD3D-012635E11632″},{“descriptionPlainText”:”In an interview with NBC, Russian President Vladimir Putin discussed the relationship between his country and the US, and compared President Biden to his predecessor Donald Trump. CNN’s Kaitlan Collins reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210611185332-vladimir-putin-nbc-intv-large-169.jpg”,”title”:”Hear how Putin compared Donald Trump to Joe Biden”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/11/vladimir-putin-nbc-interview-trump-biden-russia-us-relationship-collins-sot-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/11/vladimir-putin-nbc-interview-trump-biden-russia-us-relationship-collins-sot-tsr-vpx.cnn”,”videoId”:”politics/2021/06/11/vladimir-putin-nbc-interview-trump-biden-russia-us-relationship-collins-sot-tsr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/11/vladimir-putin-nbc-interview-trump-biden-russia-us-relationship-collins-sot-tsr-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_300FA578-4DE5-0FA8-4A42-FD419C878A66″},{“descriptionPlainText”:”The remains of a Great Wall fort dating back to the Ming Dynasty were discovered in Northwest China’s Shaanxi Province.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210611124241-great-wall-discovery-02-large-169.jpg”,”title”:”Never-before-seen Great Wall fort discovered”,”videoCMSUrl”:”/video/data/3.0/video/travel/2021/06/11/great-wall-ruins-discovery-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/travel/2021/06/11/great-wall-ruins-discovery-orig.cnn”,”videoId”:”travel/2021/06/11/great-wall-ruins-discovery-orig.cnn”,”videoUrl”:”/videos/travel/2021/06/11/great-wall-ruins-discovery-orig.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_458E474C-D230-C4BD-B305-FC92C2700834″},{“descriptionPlainText”:”Russian President Vladimir Putin is going to Geneva, Switzerland, not merely to appear on the same platform as President Joe Biden, but because “the poor state of relations” between both countries demands a summit, Kremlin spokesman Dmitry Peskov told CNN in an exclusive interview. CNN’s Matthew Chance reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210611174702-peskov-large-169.jpg”,”title”:”Kremlin spokesman speaks on state of US-Russia relations”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/11/dmitry-peskov-russia-putin-biden-chance-hgt-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/11/dmitry-peskov-russia-putin-biden-chance-hgt-intl-ldn-vpx.cnn”,”videoId”:”world/2021/06/11/dmitry-peskov-russia-putin-biden-chance-hgt-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/11/dmitry-peskov-russia-putin-biden-chance-hgt-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_B9160759-DE4E-818A-2988-FB640E0E3831″},{“descriptionPlainText”:”In less than a week, seven of President Daniel Ortega’s most high-profile opponents have been detained months before a crucial election in Nicaragua as Ortega seeks a fourth term in office. CNN’s Matt Rivers reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210609160506-opositores-detenidos-nicaragua-precandidatos-presidenciales-daniel-ortega-elecciones-redaccion-mexico-large-169.jpg”,”title”:”At least 7 Nicaraguan opposition leaders detained ahead of election”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/11/nicaragua-daniel-ortega-democracy-rivers-dnt-lead-intl-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/11/nicaragua-daniel-ortega-democracy-rivers-dnt-lead-intl-hnk-vpx.cnn”,”videoId”:”world/2021/06/11/nicaragua-daniel-ortega-democracy-rivers-dnt-lead-intl-hnk-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/11/nicaragua-daniel-ortega-democracy-rivers-dnt-lead-intl-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_ED8F4902-B658-BA0B-7AE8-F8EC82A55578″},{“descriptionPlainText”:”CNN’s Tom Foreman breaks down the history and significance of the G7, or Group of Seven Summit.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210611123250-03-g7-summit-0611-large-169.jpg”,”title”:”What is the G7?”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/11/g7-summit-explainer-foreman-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/11/g7-summit-explainer-foreman-nr-vpx.cnn”,”videoId”:”world/2021/06/11/g7-summit-explainer-foreman-nr-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/11/g7-summit-explainer-foreman-nr-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_FA52B1AF-9638-DC3B-F314-FC13828B2E99″},{“descriptionPlainText”:”A herd of 15 wild Asian elephants has been wandering across Yunnan province in southern China since March last year. They have trekked more than 300 miles in search of food and a new habitat. CNN’s Anna Coren talks to an expert on what this migration means for the species and its survival in China.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210611125441-screengrab-china-elephants-large-169.jpg”,”title”:”Elephant migration may reveal serious problem for China”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/11/china-elephants-migration-coren-pkg-intl-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/11/china-elephants-migration-coren-pkg-intl-hnk-vpx.cnn”,”videoId”:”world/2021/06/11/china-elephants-migration-coren-pkg-intl-hnk-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/11/china-elephants-migration-coren-pkg-intl-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_5B91B987-3443-851A-9C97-F933973A0A13″},{“descriptionPlainText”:”CNN’s Nic Robertson says British Prime Minister Boris Johnson’s reaction to a joke from President Joe Biden shows that Johnson desperately wants to get along with Biden.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210610112719-joe-biden-boris-johnson-for-video-june-10-2021-01-large-169.jpg”,”title”:”See Boris Johnson’s reaction to Biden’s joke about their wives “,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/10/biden-boris-johnson-wants-to-be-liked-robertson-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/10/biden-boris-johnson-wants-to-be-liked-robertson-sot-vpx.cnn”,”videoId”:”world/2021/06/10/biden-boris-johnson-wants-to-be-liked-robertson-sot-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/10/biden-boris-johnson-wants-to-be-liked-robertson-sot-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_F59183C4-DF93-A4A6-90B1-F68473E2124E”},{“descriptionPlainText”:”First Lady Jill Biden and Catherine, Duchess of Cambridge, are participating in a roundtable about early childhood education and will tour a school in Hayle, England. CNN’s Max Foster reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210611135131-04-jill-biden-catherine-0611-large-169.jpg”,”title”:”See Jill Biden and the Duchess of Cambridge host school roundtable”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/11/jill-biden-catherine-duchess-cambridge-school-g7-foster-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/11/jill-biden-catherine-duchess-cambridge-school-g7-foster-intl-ldn-vpx.cnn”,”videoId”:”world/2021/06/11/jill-biden-catherine-duchess-cambridge-school-g7-foster-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/11/jill-biden-catherine-duchess-cambridge-school-g7-foster-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_FF963F3A-1907-AF18-B2CA-FAF9E0F000B7″},{“descriptionPlainText”:”Kim Jong Un’s apparent weight loss prompts speculation over the North Korean leader’s health. CNN’s Will Ripley reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210601234328-king-jong-un-0111-large-169.jpg”,”title”:”How Kim Jong Un’s weight could have geopolitical consequences “,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/10/kim-jong-un-weight-loss-north-korea-ripley-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/10/kim-jong-un-weight-loss-north-korea-ripley-pkg-vpx.cnn”,”videoId”:”world/2021/06/10/kim-jong-un-weight-loss-north-korea-ripley-pkg-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/10/kim-jong-un-weight-loss-north-korea-ripley-pkg-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_BD1CC7A1-B668-8479-E425-F82EBCCC4916″},{“descriptionPlainText”:”CNN’s Matthew Chance details actions taken by Russian President Vladimir Putin ahead of his anticipated meeting with President Joe Biden in Lake Geneva, Switzerland.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210524094049-biden-putin-split-large-169.jpg”,”title”:”Putin sends message ahead of Biden meeting”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/10/vladimir-putin-joe-biden-meeting-chance-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/10/vladimir-putin-joe-biden-meeting-chance-nr-vpx.cnn”,”videoId”:”politics/2021/06/10/vladimir-putin-joe-biden-meeting-chance-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/10/vladimir-putin-joe-biden-meeting-chance-nr-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_B6D805F0-BB2D-F600-314A-F6EED35C13D8″},{“descriptionPlainText”:”CNN’s Matt Rivers reports on the poor conditions in Honduras forcing citizens to attempt to cross the US border in larger numbers.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210610101826-video-thumbnail-rivers-hondoras-large-169.jpg”,”title”:”These boys are leaving their home for the US. There’s a good reason why”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/09/honduras-increasing-migrants-rivers-pkg-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/09/honduras-increasing-migrants-rivers-pkg-ebof-vpx.cnn”,”videoId”:”politics/2021/06/09/honduras-increasing-migrants-rivers-pkg-ebof-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/09/honduras-increasing-migrants-rivers-pkg-ebof-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_76289103-2F1A-18C9-9165-F3345CC99572″},{“descriptionPlainText”:”Taiwan has experienced one of its worst droughts in decades, with authorities limiting water supply as some reservoirs reported alarmingly low levels. The drought has threatened the island’s valuable semiconductor industry, which could have global ramifications in the production of smartphones, cars and other electronic devices. CNN’s Will Ripley talks to major companies like the TSMC on the challenge.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210609151834-screengrab-taiwan-drought-large-169.jpg”,”title”:”How island’s historic drought could threaten the global economy “,”videoCMSUrl”:”/video/data/3.0/video/business/2021/06/09/taiwan-semiconductor-climate-crisis-ripley-intl-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/06/09/taiwan-semiconductor-climate-crisis-ripley-intl-hnk-vpx.cnn”,”videoId”:”business/2021/06/09/taiwan-semiconductor-climate-crisis-ripley-intl-hnk-vpx.cnn”,”videoUrl”:”/videos/business/2021/06/09/taiwan-semiconductor-climate-crisis-ripley-intl-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_F69FEA2F-B122-DE35-8881-EF1AF07E055C”}],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:”world/2021/06/13/fareed-zakaria-benjamin-netanyahu-israel-prime-minister-analysis-sot-nr-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-1wdflup’,videoDescriptionDivId: ‘js-video_description-1wdflup’,videoDurationDivId: ‘js-video_duration-1wdflup’,videoTitleDivId: ‘js-leaf-video_headline-1wdflup’,videoSourceDivId: ‘js-video_sourceName-1wdflup’});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