Protesters attempt to flee Hong Kong university

0
12

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2019/11/20/hong-kong-polytechnic-university-protesters-coren-pkg-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/191120163247-hong-kong-coren-pkg-2-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191120163247-hong-kong-coren-pkg-2-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191120163247-hong-kong-coren-pkg-2-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191120163247-hong-kong-coren-pkg-2-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191120163247-hong-kong-coren-pkg-2-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191120163247-hong-kong-coren-pkg-2-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191120163247-hong-kong-coren-pkg-2-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Police have called on protesters to resign after they occupied the campus of Hong Kong Polytechnic University. CNN’s Anna Coren reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191120163247-hong-kong-coren-pkg-2-large-169.jpg”,”title”:”Protesters attempt to flee Hong Kong university”,”videoCMSUrl”:”/videos/world/2019/11/20/hong-kong-polytechnic-university-protesters-coren-pkg-vpx.cnn”,”videoLeafUrl”:”/videos/world/2019/11/20/hong-kong-polytechnic-university-protesters-coren-pkg-vpx.cnn”,”videoId”:”world/2019/11/20/hong-kong-polytechnic-university-protesters-coren-pkg-vpx.cnn”,”videoUrl”:”/videos/world/2019/11/20/hong-kong-polytechnic-university-protesters-coren-pkg-vpx.cnn”,”surrogateKey”:”video_80BC2E68-A58B-FCC5-E157-8AA4A7F6595A”},{“descriptionPlainText”:”Gordon Sondland, U.S. Ambassador to the European Union, described several conversations he’s had with President Donald Trump at the impeachment hearing on Capitol Hill Wednesday.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191120163154-sondland-trump-split-large-169.jpg”,”title”:”Sondland talks about talking to President Trump”,”videoCMSUrl”:”/video/data/3.0/video/politics/2019/11/20/gordon-sondland-president-trump-ukraine-impeachment-mh-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2019/11/20/gordon-sondland-president-trump-ukraine-impeachment-mh-orig.cnn”,”videoId”:”politics/2019/11/20/gordon-sondland-president-trump-ukraine-impeachment-mh-orig.cnn”,”videoUrl”:”/videos/politics/2019/11/20/gordon-sondland-president-trump-ukraine-impeachment-mh-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_7A214985-A9D5-FF04-903C-8A34F94332FC”},{“descriptionPlainText”:”A Texas woman is speaking out after a daycare employee left an offensive fat shaming note in her son’s lunchbox. CNN affiliate KTRK has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191119151900-day-care-worker-fired-note-large-169.jpg”,”title”:”Mom fights back after daycare employee fat shames son”,”videoCMSUrl”:”/video/data/3.0/video/us/2019/11/20/tx-mother-daycare-lunchbox-note-orig-vstop-bdk.ktrk/index.xml”,”videoLeafUrl”:”/videos/us/2019/11/20/tx-mother-daycare-lunchbox-note-orig-vstop-bdk.ktrk”,”videoId”:”us/2019/11/20/tx-mother-daycare-lunchbox-note-orig-vstop-bdk.ktrk”,”videoUrl”:”/videos/us/2019/11/20/tx-mother-daycare-lunchbox-note-orig-vstop-bdk.ktrk/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_B3E7F177-4095-903D-D5EA-89DD9EDF716D”},{“descriptionPlainText”:”Hoda Kotb and Jenna Bush Hager, hosts of “Today with Hoda and Jenna,” weighed themselves on air prior to beginning their intermittent fasting experiment.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191119090900-hoda-jenna-bush-hager-large-169.jpg”,”title”:”‘Today’ hosts weigh themselves on air”,”videoCMSUrl”:”/video/data/3.0/video/entertainment/2019/11/19/hoda-kotb-jenna-bush-hager-check-weight-on-air-mxp-knowles-vpx.hln/index.xml”,”videoLeafUrl”:”/videos/entertainment/2019/11/19/hoda-kotb-jenna-bush-hager-check-weight-on-air-mxp-knowles-vpx.hln”,”videoId”:”entertainment/2019/11/19/hoda-kotb-jenna-bush-hager-check-weight-on-air-mxp-knowles-vpx.hln”,”videoUrl”:”/videos/entertainment/2019/11/19/hoda-kotb-jenna-bush-hager-check-weight-on-air-mxp-knowles-vpx.hln/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_47C6461C-D413-78B3-E806-83F966F443FC”},{“descriptionPlainText”:”New video shows authorities rescuing a 8-year-old girl after breaking into the hotel room she was being kept in in Fort Worth, Texas.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191119085656-texas-kidnapped-girl-rescue-hotel-room-large-169.jpg”,”title”:”See the moment police rescue kidnapped 8-year-old girl”,”videoCMSUrl”:”/video/data/3.0/video/us/2019/11/19/texas-police-rescue-kidnapped-girl-mxp-vpx.hln/index.xml”,”videoLeafUrl”:”/videos/us/2019/11/19/texas-police-rescue-kidnapped-girl-mxp-vpx.hln”,”videoId”:”us/2019/11/19/texas-police-rescue-kidnapped-girl-mxp-vpx.hln”,”videoUrl”:”/videos/us/2019/11/19/texas-police-rescue-kidnapped-girl-mxp-vpx.hln/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_2A8D5781-C160-0ED0-F6DE-83E1B39C9764″},{“descriptionPlainText”:”When Krista and Anthony Rivera had problems conceiving their first child, they turned to a radio contest that promised free IVF. Now they are a family of three. CNN’s Anderson Cooper reports. Watch “Full Circle” weeknights at 5 p.m. ET.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191118174221-radio-contest-ivf-baby-the-goods-cooper-acfc-vpx-00000614-large-169.jpg”,”title”:”‘Win a baby’ contest has heartwarming ending”,”videoCMSUrl”:”/video/data/3.0/video/us/2019/11/18/radio-contest-ivf-baby-the-goods-cooper-acfc-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2019/11/18/radio-contest-ivf-baby-the-goods-cooper-acfc-vpx.cnn”,”videoId”:”us/2019/11/18/radio-contest-ivf-baby-the-goods-cooper-acfc-vpx.cnn”,”videoUrl”:”/videos/us/2019/11/18/radio-contest-ivf-baby-the-goods-cooper-acfc-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_FC222E97-8EE8-B329-EFA9-808532F3F026″},{“descriptionPlainText”:””The Real Housewives of Salt Lake City” will be the newest addition to the reality franchise, and will debut in 2020.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191118074933-new-real-housewives-utah-large-169.jpg”,”title”:”‘The Real Housewives’ is coming to Utah in 2020″,”videoCMSUrl”:”/video/data/3.0/video/entertainment/2019/11/18/new-real-housewives-franchise-announced-mxp-knowles-vpx.hln/index.xml”,”videoLeafUrl”:”/videos/entertainment/2019/11/18/new-real-housewives-franchise-announced-mxp-knowles-vpx.hln”,”videoId”:”entertainment/2019/11/18/new-real-housewives-franchise-announced-mxp-knowles-vpx.hln”,”videoUrl”:”/videos/entertainment/2019/11/18/new-real-housewives-franchise-announced-mxp-knowles-vpx.hln/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_D2BC5AAD-8813-0383-85BF-7E786DFB711D”},{“descriptionPlainText”:”Taco Bell wants you to serve Rolled Chicken Tacos Bisque at your traditional holiday dinner. The food chain has released the recipe on its blog for all to use.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191117165623-02-taco-bell-taco-bisque-thanksgiving-recipe-trnd-large-169.jpg”,”title”:”Taco Bell wants you to make their bisque for Thanksgiving”,”videoCMSUrl”:”/video/data/3.0/video/us/2019/11/18/taco-bell-bisque-thanksgiving-rolled-chicken-tacos-mxp-vpx.hln/index.xml”,”videoLeafUrl”:”/videos/us/2019/11/18/taco-bell-bisque-thanksgiving-rolled-chicken-tacos-mxp-vpx.hln”,”videoId”:”us/2019/11/18/taco-bell-bisque-thanksgiving-rolled-chicken-tacos-mxp-vpx.hln”,”videoUrl”:”/videos/us/2019/11/18/taco-bell-bisque-thanksgiving-rolled-chicken-tacos-mxp-vpx.hln/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_49F72825-49BD-F81E-DEFC-7F0486F886A2″},{“descriptionPlainText”:”The family of deceased Cornell University student Antonio Tsialas is offering a $10,000 reward for any information on how and why their son died last month.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191117220034-01-cornell-university-student-antonio-tsialas-large-169.jpg”,”title”:”Parents of Cornell student who died want answers”,”videoCMSUrl”:”/video/data/3.0/video/us/2019/11/18/cornell-student-mysteriously-dies-family-reward-vpx.hln/index.xml”,”videoLeafUrl”:”/videos/us/2019/11/18/cornell-student-mysteriously-dies-family-reward-vpx.hln”,”videoId”:”us/2019/11/18/cornell-student-mysteriously-dies-family-reward-vpx.hln”,”videoUrl”:”/videos/us/2019/11/18/cornell-student-mysteriously-dies-family-reward-vpx.hln/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_8FA4C2AA-F269-049C-2BBD-7EFDDEF3433E”},{“descriptionPlainText”:”Dr. Jonathan Reiner, who treated former Vice President Dick Cheney, discusses President Trump’s unannounced trip to Walter Reed Medical Center.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191118165543-trump-doctor-split-walter-reed-large-169.jpg”,”title”:”Doctor on Trump’s hospital visit: It’s worrisome”,”videoCMSUrl”:”/video/data/3.0/video/politics/2019/11/18/trump-walter-reed-visit-jonathan-reiner-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2019/11/18/trump-walter-reed-visit-jonathan-reiner-nr-vpx.cnn”,”videoId”:”politics/2019/11/18/trump-walter-reed-visit-jonathan-reiner-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2019/11/18/trump-walter-reed-visit-jonathan-reiner-nr-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_045055DB-ABE3-E65B-B5E4-804586EAB1C9″},{“descriptionPlainText”:”Minnesota Timberwolves center Gorgui Dieng was given a philanthropy award by the NBA for his charity to his home country of Senegal. It’s the latest example of athletes giving to charity.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191114163108-gorgui-dieng-minnesota-timberwolves-nba-large-169.jpg”,”title”:”Minnesota Timberwolf Gorgui Dieng gives back to Senegal”,”videoCMSUrl”:”/video/data/3.0/video/sports/2019/11/14/gorgui-dieng-minnesota-timberwolves-nba-award-basketball-charity-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2019/11/14/gorgui-dieng-minnesota-timberwolves-nba-award-basketball-charity-spt-intl-lon-orig.cnn”,”videoId”:”sports/2019/11/14/gorgui-dieng-minnesota-timberwolves-nba-award-basketball-charity-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2019/11/14/gorgui-dieng-minnesota-timberwolves-nba-award-basketball-charity-spt-intl-lon-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_8EBC29AC-93B6-9F6F-1096-6A87C957343A”},{“descriptionPlainText”:”Parts of Venice were damaged by the most severe high waters the city has seen in over half a century, with six-foot high tide levels engulfing 85% of its streets and buildings, some of which are of tremendous cultural value. CNN’s Scott McLean reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191117123941-03-venice-flooding-1117-large-169.jpg”,”title”:”Record flooding in Venice threatens historical treasures”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/11/18/venice-floods-italy-st-marks-basilica-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/11/18/venice-floods-italy-st-marks-basilica-intl-ldn-vpx.cnn”,”videoId”:”world/2019/11/18/venice-floods-italy-st-marks-basilica-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2019/11/18/venice-floods-italy-st-marks-basilica-intl-ldn-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_73532C6C-1BFC-EBCE-796A-7EE4EBD39E85″},{“descriptionPlainText”:”Sen. Richard Blumenthal (D-CT) was giving a speech on gun violence on the Senate floor when he received word of the deadly school shooting in Santa Clarita, California.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191114155248-blumenthal-gun-violence-large-169.jpg”,”title”:”He was speaking about gun violence. Then this happened”,”videoCMSUrl”:”/video/data/3.0/video/politics/2019/11/14/senator-blumenthal-gun-violence-speech-saugus-school-shooting-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2019/11/14/senator-blumenthal-gun-violence-speech-saugus-school-shooting-vpx.cnn”,”videoId”:”politics/2019/11/14/senator-blumenthal-gun-violence-speech-saugus-school-shooting-vpx.cnn”,”videoUrl”:”/videos/politics/2019/11/14/senator-blumenthal-gun-violence-speech-saugus-school-shooting-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_C9CA8A38-36AD-8E01-5EDB-6BA4479A717F”},{“descriptionPlainText”:”A Massachusetts man pleaded not guilty to drug possession and reckless child endangerment charges after his 5-year-old son brought cocaine to school.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191118163907-benny-garcia-child-endangerment-cocaine-large-169.jpg”,”title”:”Man charged after 5-year-old son brings cocaine to school”,”videoCMSUrl”:”/video/data/3.0/video/us/2019/11/18/5-year-old-son-brings-cocaine-school-pkg-vpx.wggb/index.xml”,”videoLeafUrl”:”/videos/us/2019/11/18/5-year-old-son-brings-cocaine-school-pkg-vpx.wggb”,”videoId”:”us/2019/11/18/5-year-old-son-brings-cocaine-school-pkg-vpx.wggb”,”videoUrl”:”/videos/us/2019/11/18/5-year-old-son-brings-cocaine-school-pkg-vpx.wggb/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_AC61C931-9F7B-B92B-29F0-80CC0A187F18″},{“descriptionPlainText”:”Laurent Simons isn’t like most other nine-year-old boys. He’s on course to soon have his bachelor’s degree in electrical engineering.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191119135014-laurent-simons-large-169.jpg”,”title”:”This nine-year-old boy is about to graduate from college”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/11/15/child-prodigy-graduates-university-laurent-simons-jba-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/11/15/child-prodigy-graduates-university-laurent-simons-jba-lon-orig.cnn”,”videoId”:”world/2019/11/15/child-prodigy-graduates-university-laurent-simons-jba-lon-orig.cnn”,”videoUrl”:”/videos/world/2019/11/15/child-prodigy-graduates-university-laurent-simons-jba-lon-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_710006D8-C99C-7BC5-497D-6F52440944CF”},{“descriptionPlainText”:”Narwhal, a 10-week-old puppy rescued in Missouri, has a special tail that catapulted him to internet fame.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191114104437-narwhal-puppy-02-large-169.jpg”,”title”:”Rescue puppy has a tail on his forehead”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/11/14/puppy-tail-forehead-lon-orig-mrg.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/11/14/puppy-tail-forehead-lon-orig-mrg.cnn”,”videoId”:”world/2019/11/14/puppy-tail-forehead-lon-orig-mrg.cnn”,”videoUrl”:”/videos/world/2019/11/14/puppy-tail-forehead-lon-orig-mrg.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_67F14178-81C0-2342-3EDA-69D17918965C”}],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/2019/11/20/hong-kong-polytechnic-university-protesters-coren-pkg-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-11h57f9’,videoDescriptionDivId: ‘js-video_description-11h57f9’,videoDurationDivId: ‘js-video_duration-11h57f9’,videoTitleDivId: ‘js-leaf-video_headline-11h57f9’,videoSourceDivId: ‘js-video_sourceName-11h57f9’});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