‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2018/08/09/kenya-prison-reform-lon-orig-ejk.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/180809154441-kenya-prison-reform-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180809154441-kenya-prison-reform-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180809154441-kenya-prison-reform-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180809154441-kenya-prison-reform-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180809154441-kenya-prison-reform-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180809154441-kenya-prison-reform-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180809154441-kenya-prison-reform-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Peter Ouko spent 18 years in Kenya’s notorious Kamiti Maximum Security Prison, during that time he witnessed the prison service reform from punishment to rehabilitation.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180809154441-kenya-prison-reform-large-169.jpg”,”title”:”What prison systems can learn from Kenya”,”videoCMSUrl”:”http://rss.cnn.com/videos/world/2018/08/09/kenya-prison-reform-lon-orig-ejk.cnn”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2018/08/09/kenya-prison-reform-lon-orig-ejk.cnn”,”videoId”:”world/2018/08/09/kenya-prison-reform-lon-orig-ejk.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2018/08/09/kenya-prison-reform-lon-orig-ejk.cnn”},{“descriptionPlainText”:”Samsung’s newest smartphone, the Galaxy Note 9, doesn’t look too different from the Note 8. But the device has some new features, including all-day battery and a better camera.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180808192913-samsung-galaxy-note-9-large-169.jpg”,”title”:”Samsung unveils the Galaxy Note 9″,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/08/samsung-galaxy-note-9-cnnmoney-orig.cnnmoney/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/08/samsung-galaxy-note-9-cnnmoney-orig.cnnmoney”,”videoId”:”cnnmoney/2018/08/08/samsung-galaxy-note-9-cnnmoney-orig.cnnmoney”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/08/samsung-galaxy-note-9-cnnmoney-orig.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Who regrets voting for Trump? Michael Che and Colin Jost put their friendship and political views to the test for Vanity Fair.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180809123316-snl-che-jost-large-169.jpg”,”title”:”Watch: ‘SNL’ writers take a lie detector test”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/09/snl-lie-detector-test.cnnmoney/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/09/snl-lie-detector-test.cnnmoney”,”videoId”:”cnnmoney/2018/08/09/snl-lie-detector-test.cnnmoney”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/09/snl-lie-detector-test.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Critics are accusing Fox News host Laura Ingraham of promoting white nationalism during her show on August 8.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180809115818-laura-ingraham-fox-large-169.jpg”,”title”:”Critics accuse Fox News host of racism”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/09/fox-news-laura-ingraham-immigration-white-nationalism-zw-orig.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/09/fox-news-laura-ingraham-immigration-white-nationalism-zw-orig.cnn”,”videoId”:”cnnmoney/2018/08/09/fox-news-laura-ingraham-immigration-white-nationalism-zw-orig.cnn”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/09/fox-news-laura-ingraham-immigration-white-nationalism-zw-orig.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Country singer Carrie Underwood announced on Instagram that she and husband Mike Fisher are expecting their second child.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180808093939-01-carrie-underwood-mike-fisher-0808-large-169.jpg”,”title”:”Carrie Underwood announces second pregnancy”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/08/carrie-underwood-announces-second-pregnancy-aa-vpx.hln/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/08/carrie-underwood-announces-second-pregnancy-aa-vpx.hln”,”videoId”:”cnnmoney/2018/08/08/carrie-underwood-announces-second-pregnancy-aa-vpx.hln”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/08/carrie-underwood-announces-second-pregnancy-aa-vpx.hln/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Singer Justin Bieber, 24, is engaged to Hailey Baldwin, 21, according to a source close to Bieber.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180708163616-justin-bieber-hailey-baldwin-2-large-169.jpg”,”title”:”Meet Hailey Baldwin, Justin Bieber’s fiancée”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/07/08/justin-bieber-hailey-baldwin-engaged-orig-mss.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/07/08/justin-bieber-hailey-baldwin-engaged-orig-mss.cnn”,”videoId”:”cnnmoney/2018/07/08/justin-bieber-hailey-baldwin-engaged-orig-mss.cnn”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/07/08/justin-bieber-hailey-baldwin-engaged-orig-mss.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Late night comedians poked fun at President Trump for having a dinner at his private golf club with CEOs of several companies and for Rick Gates’ testimony in Paul Manafort’s trial.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180808062850-jimmy-fallon-8-8-large-169.jpg”,”title”:”Comedian jokes Trump job hunting after dinner”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/08/late-night-laughs-trump-dinner-ceos-business-new-job-manafort-gates-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/08/late-night-laughs-trump-dinner-ceos-business-new-job-manafort-gates-newday-vpx.cnn”,”videoId”:”cnnmoney/2018/08/08/late-night-laughs-trump-dinner-ceos-business-new-job-manafort-gates-newday-vpx.cnn”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/08/late-night-laughs-trump-dinner-ceos-business-new-job-manafort-gates-newday-vpx.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”CNN’s Frank Pallotta explains how MoviePass went from the talk of the entertainment industry to running out of cash in under a year.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180420124557-moviepass-logo-large-169.jpg”,”title”:”What went wrong with MoviePass”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/07/moviepass-what-went-wrong.cnnmoney/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/moviepass-what-went-wrong.cnnmoney”,”videoId”:”cnnmoney/2018/08/07/moviepass-what-went-wrong.cnnmoney”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/moviepass-what-went-wrong.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Spoofed videos known as deepfakes are increasingly appearing on social media, but tech companies are still trying to figure out how to handle them. CNN’s Laurie Segall explains why these fake videos are so hard to spot.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180808110414-google-eyeball-large-169.jpg”,”title”:”Here’s why it’s so hard to spot deepfakes”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/08/deepfakes-tech-social-media-gfycat-albany-carnegie-mellon-cnnmoney-orig.cnnmoney/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/08/deepfakes-tech-social-media-gfycat-albany-carnegie-mellon-cnnmoney-orig.cnnmoney”,”videoId”:”cnnmoney/2018/08/08/deepfakes-tech-social-media-gfycat-albany-carnegie-mellon-cnnmoney-orig.cnnmoney”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/08/deepfakes-tech-social-media-gfycat-albany-carnegie-mellon-cnnmoney-orig.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”A study looks at the reasons so many people are sleeping at 24-hour McDonald’s restaurants in Hong Kong.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180806093636-hong-kong-mcdonalds-sleepers-large-169.jpg”,”title”:”Why so many people sleep at McDonald’s”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/06/mcdonalds-sleepers-hong-kong-study-orig-vstop-bdk.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/06/mcdonalds-sleepers-hong-kong-study-orig-vstop-bdk.cnn”,”videoId”:”cnnmoney/2018/08/06/mcdonalds-sleepers-hong-kong-study-orig-vstop-bdk.cnn”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/06/mcdonalds-sleepers-hong-kong-study-orig-vstop-bdk.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”On season 14 of “The Bachelorette,” Becca Kufrin chose Garrett Yrigoyen during her final rose ceremony, even after Yrigoyen found himself in a social media scandal.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180807085253-becca-garrett-bachelorette-final-rose-large-169.jpg”,”title”:”‘The Bachelorette’ ends with controversial pick”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/07/abc-bachelorette-controversial-pick-mxp-vpx.hln/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/abc-bachelorette-controversial-pick-mxp-vpx.hln”,”videoId”:”cnnmoney/2018/08/07/abc-bachelorette-controversial-pick-mxp-vpx.hln”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/abc-bachelorette-controversial-pick-mxp-vpx.hln/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Spike Lee hopes his new film, “BlacKkKlansman,” inspires Americans not to vote President Donald Trump into office for a second term. CNN’s Chloe Melas has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180515161030-spike-lee-cannes-large-169.jpg”,”title”:”Spike Lee hopes his new film sinks Trump”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/07/spike-lee-blackkklansman-movie-trump-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/spike-lee-blackkklansman-movie-trump-sot-vpx.cnn”,”videoId”:”cnnmoney/2018/08/07/spike-lee-blackkklansman-movie-trump-sot-vpx.cnn”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/spike-lee-blackkklansman-movie-trump-sot-vpx.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Late night comedians Stephen Colbert, Jimmy Kimmel and Jimmy Fallon take aim at President Trump’s “working vacation” in New Jersey.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180807080446-jimmy-fallon-late-night-laughs-8-6-2018-large-169.jpg”,”title”:”Late-night hosts mock Trump’s working vacation”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/07/late-night-laughs-colbert-kimmel-fallon-trump-working-vacation-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/late-night-laughs-colbert-kimmel-fallon-trump-working-vacation-newday-vpx.cnn”,”videoId”:”cnnmoney/2018/08/07/late-night-laughs-colbert-kimmel-fallon-trump-working-vacation-newday-vpx.cnn”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/late-night-laughs-colbert-kimmel-fallon-trump-working-vacation-newday-vpx.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Pink has been admitted to a hospital in Sydney twice since Sunday, suffering from dehydration and a gastric virus, according to Live Nation, her concert tour promoter.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180806110842-pink-large-169.jpg”,”title”:”Pink cancels concerts after hospitalization”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/07/pink-hospitalized-cnnmoney-orig.cnnmoney/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/pink-hospitalized-cnnmoney-orig.cnnmoney”,”videoId”:”cnnmoney/2018/08/07/pink-hospitalized-cnnmoney-orig.cnnmoney”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/pink-hospitalized-cnnmoney-orig.cnnmoney/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”CNN’s Brooke Baldwin and Poppy Harlow discuss how Pepsi CEO Indra Nooyi’s resignation highlights the lack of female leadership at major companies.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180806111246-indra-nooyi-large-169.jpg”,”title”:”Outgoing Pepsi CEO: Women can’t have it all”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/07/indra-nooyi-pepsi-ceo-woman-cant-have-it-all-harlow-baldwin-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/indra-nooyi-pepsi-ceo-woman-cant-have-it-all-harlow-baldwin-nr-vpx.cnn”,”videoId”:”cnnmoney/2018/08/07/indra-nooyi-pepsi-ceo-woman-cant-have-it-all-harlow-baldwin-nr-vpx.cnn”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/07/indra-nooyi-pepsi-ceo-woman-cant-have-it-all-harlow-baldwin-nr-vpx.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”In recent efforts to stop the spread of fake news, big tech is taking a hard look at Alex Jones and his conspiracy theory site InfoWars. Facebook, Youtube, Apple and Spotify have all removed Jones’ content in the past week.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180806134001-20180806-infowars-alex-jones-facebook-apple-youtube-large-169.jpg”,”title”:”Why big tech is removing InfoWars content”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/cnnmoney/2018/08/06/facebook-removes-infowars-alex-jones-youtube-apple-orig.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/06/facebook-removes-infowars-alex-jones-youtube-apple-orig.cnn”,”videoId”:”cnnmoney/2018/08/06/facebook-removes-infowars-alex-jones-youtube-apple-orig.cnn”,”videoUrl”:”http://rss.cnn.com/videos/cnnmoney/2018/08/06/facebook-removes-infowars-alex-jones-youtube-apple-orig.cnn/video/playlists/stories-worth-watching/”}],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:”world/2018/08/09/kenya-prison-reform-lon-orig-ejk.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-18a7t4y’,videoDescriptionDivId: ‘js-video_description-18a7t4y’,videoDurationDivId: ‘js-video_duration-18a7t4y’,videoTitleDivId: ‘js-leaf-video_headline-18a7t4y’,videoSourceDivId: ‘js-video_sourceName-18a7t4y’});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(‘

Add a Comment

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