Hong Kong lawmaker: Our young are fighting for their future

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/2020/05/23/hong-kong-new-china-law-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/200522095420-08-hong-kong-political-unrest-0522-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200522095420-08-hong-kong-political-unrest-0522-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200522095420-08-hong-kong-political-unrest-0522-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200522095420-08-hong-kong-political-unrest-0522-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200522095420-08-hong-kong-political-unrest-0522-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200522095420-08-hong-kong-political-unrest-0522-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200522095420-08-hong-kong-political-unrest-0522-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Activists in Hong Kong are decrying China’s move to pass a hugely controversial national security law for Hong Kong, in what could be the biggest blow to the city’s autonomy and civil liberties since its handover to Chinese rule in 1997. CNN’s Anna Coren reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200522095420-08-hong-kong-political-unrest-0522-large-169.jpg”,”title”:”Hong Kong lawmaker: Our young are fighting for their future”,”videoCMSUrl”:”/videos/world/2020/05/23/hong-kong-new-china-law-coren-pkg-vpx.cnn”,”videoLeafUrl”:”/videos/world/2020/05/23/hong-kong-new-china-law-coren-pkg-vpx.cnn”,”videoId”:”world/2020/05/23/hong-kong-new-china-law-coren-pkg-vpx.cnn”,”videoUrl”:”/videos/world/2020/05/23/hong-kong-new-china-law-coren-pkg-vpx.cnn”,”surrogateKey”:”video_9B2C2639-0A33-C3AB-283C-423677D226BB”},{“descriptionPlainText”:”Residents of Sao Paulo, Brazil’s favelas struggle to get medical help and social distance as the coronavirus cases continue to rise across the country. CNN’s Nick Paton Walsh reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200522142742-14-brazil-coronavirus-large-169.jpg”,”title”:”Brazil’s favelas struggle as coronavirus cases skyrocket”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/23/brazil-coronavirus-favela-numbers-npw-ndwknd-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/23/brazil-coronavirus-favela-numbers-npw-ndwknd-vpx.cnn”,”videoId”:”world/2020/05/23/brazil-coronavirus-favela-numbers-npw-ndwknd-vpx.cnn”,”videoUrl”:”/videos/world/2020/05/23/brazil-coronavirus-favela-numbers-npw-ndwknd-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_D50EF4FD-F4A3-02F2-5807-415FC822F496″},{“descriptionPlainText”:”The pilot of a Pakistan International Airlines plane that crashed in Karachi relayed he had technical problems, airline spokesperson Abdullah Khan told CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200522125849-06-karachi-plane-crash-0522-large-169.jpg”,”title”:”Pilot made mayday call before Karachi plane crash”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/22/pakistan-international-airlines-crash-karachi-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/22/pakistan-international-airlines-crash-karachi-intl-ldn-vpx.cnn”,”videoId”:”world/2020/05/22/pakistan-international-airlines-crash-karachi-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2020/05/22/pakistan-international-airlines-crash-karachi-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_EF89164B-BE33-83C1-ED2B-3C4EFFA97A4C”},{“descriptionPlainText”:”China will move to pass a hugely controversial national security law for Hong Kong, in what could be the biggest blow to the city’s autonomy and civil liberties since its handover to Chinese rule in 1997. CNN’s Kristie Lu Stout reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200521230411-02-hong-kong-security-law-npc-large-169.jpg”,”title”:”China proposes controversial Hong Kong security law”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/22/hong-kong-security-law-lu-stout-intl-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/22/hong-kong-security-law-lu-stout-intl-hnk-vpx.cnn”,”videoId”:”world/2020/05/22/hong-kong-security-law-lu-stout-intl-hnk-vpx.cnn”,”videoUrl”:”/videos/world/2020/05/22/hong-kong-security-law-lu-stout-intl-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_D73E9E0A-EEB8-54EE-2029-3A6E6F134F93″},{“descriptionPlainText”:”CNN’s Nick Paton Walsh takes us inside of an ICU in Sao Paulo, Brazil, where medical personnel are struggling to meet the needs of those infected with coronavirus.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200521203553-drone-shot-mass-grave-brazil-large-169.jpg”,”title”:”Drone footage captures mass graves dug in Brazil”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/21/brazil-sao-paulo-icu-covid-19-walsh-pkg-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/21/brazil-sao-paulo-icu-covid-19-walsh-pkg-ebof-vpx.cnn”,”videoId”:”world/2020/05/21/brazil-sao-paulo-icu-covid-19-walsh-pkg-ebof-vpx.cnn”,”videoUrl”:”/videos/world/2020/05/21/brazil-sao-paulo-icu-covid-19-walsh-pkg-ebof-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_C64F1014-F47C-D9BB-77DC-39AA99CFF7F8″},{“descriptionPlainText”:”CNN’s Fred Pleitgen reports on the measures Denmark schools are taking to ensure safety for students and teachers upon reopening.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200521123206-students-learning-in-cemetery-denmark-pleitgen-large-169.jpg”,”title”:”Denmark schools are reopening with new safety measures”,”videoCMSUrl”:”/video/data/3.0/video/health/2020/05/21/denmark-schools-reopening-safety-measures-pleitgen-newday-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2020/05/21/denmark-schools-reopening-safety-measures-pleitgen-newday-pkg-vpx.cnn”,”videoId”:”health/2020/05/21/denmark-schools-reopening-safety-measures-pleitgen-newday-pkg-vpx.cnn”,”videoUrl”:”/videos/health/2020/05/21/denmark-schools-reopening-safety-measures-pleitgen-newday-pkg-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_0688D074-3E7B-34E6-6821-3808250F4F69″},{“descriptionPlainText”:”The strongest storm ever recorded in the Bay of Bengal slammed into India and Bangladesh, killing dozens and forcing millions to evacuate.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200521115959-09-cyclone-amphan-0521-kolkata-large-169.jpg”,”title”:”Cyclone Amphan kills dozens and leaves thousands homeless”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/20/cyclone-amphan-bangladesh-india-orig-na-mss.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/20/cyclone-amphan-bangladesh-india-orig-na-mss.cnn”,”videoId”:”world/2020/05/20/cyclone-amphan-bangladesh-india-orig-na-mss.cnn”,”videoUrl”:”/videos/world/2020/05/20/cyclone-amphan-bangladesh-india-orig-na-mss.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_1275DDF2-0D64-F65C-F459-337B1B393EEE”},{“descriptionPlainText”:”As students in Israel return to school, CNN catches up with one mother whose frustration at homeschooling went viral.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200521130138-viral-video-mom-rant-israel-kids-back-to-school-lon-orig-mkd-large-169.jpg”,”title”:”Her homeschooling rant went viral; now schools are back”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/21/viral-video-mom-rant-israel-kids-back-to-school-lon-orig-mkd.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/21/viral-video-mom-rant-israel-kids-back-to-school-lon-orig-mkd.cnn”,”videoId”:”world/2020/05/21/viral-video-mom-rant-israel-kids-back-to-school-lon-orig-mkd.cnn”,”videoUrl”:”/videos/world/2020/05/21/viral-video-mom-rant-israel-kids-back-to-school-lon-orig-mkd.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_CFC79F06-9C99-A236-D2E1-3706FAE1F927″},{“descriptionPlainText”:”Two Massachusetts men accused of helping to smuggle former Nissan chief executive Carlos Ghosn out of Japan in late 2019 were arrested in the US, according to court documents.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200108084453-13-carlos-ghosn-press-conference-0108-large-169.jpg”,”title”:”2 men arrested in plot to smuggle former Nissan CEO”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/20/ghosn-smuggling-arrest-intv-quest-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/20/ghosn-smuggling-arrest-intv-quest-vpx.cnn”,”videoId”:”business/2020/05/20/ghosn-smuggling-arrest-intv-quest-vpx.cnn”,”videoUrl”:”/videos/business/2020/05/20/ghosn-smuggling-arrest-intv-quest-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_CEBCF0F6-2A15-8526-C768-3421A518CAE5″},{“descriptionPlainText”:”Etihad Airways CEO Tony Douglas talks to CNN’s Richard Quest about the humanitarian missions bringing Etihad to new locations around the world.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191231150524-etihad-airplane-large-169.jpg”,”title”:”Etihad flies first known commercial flight from UAE to Israel”,”videoCMSUrl”:”/video/data/3.0/video/travel/2020/05/20/etihad-airways-ceo-quest-first-move-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/travel/2020/05/20/etihad-airways-ceo-quest-first-move-vpx.cnn”,”videoId”:”travel/2020/05/20/etihad-airways-ceo-quest-first-move-vpx.cnn”,”videoUrl”:”/videos/travel/2020/05/20/etihad-airways-ceo-quest-first-move-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_0C3263DC-AA20-186A-1F54-3268238104A6″},{“descriptionPlainText”:”Designer Anya Hindmarch has created a “holdster” for frontline workers to carry personal items while treating patients of the pandemic.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200520202110-amanpour-anya-hindmarch-handbag-coronavirus-nhs-00005807-large-169.jpg”,”title”:”Amanpour: ‘Holdster’ is a handbag for our time”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/20/handbag-designer-anya-hindmarch-frontline-workers-amanpour-intl-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/20/handbag-designer-anya-hindmarch-frontline-workers-amanpour-intl-vpx.cnn”,”videoId”:”world/2020/05/20/handbag-designer-anya-hindmarch-frontline-workers-amanpour-intl-vpx.cnn”,”videoUrl”:”/videos/world/2020/05/20/handbag-designer-anya-hindmarch-frontline-workers-amanpour-intl-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_3F87F2F0-7FB8-35CD-F90D-34142A605A43″},{“descriptionPlainText”:”Russia’s Covid-19 cases have jumped after previously saying they had the virus under control. Now, they are turning to the global community for help. CNN’s Matthew Chance reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200520174331-us-russia-aid-chance-pkg-large-169.jpg”,”title”:”US sends help to Russia as their Covid-19 cases jump”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/20/russia-coronavirus-us-aid-chance-pkg-cnni-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/20/russia-coronavirus-us-aid-chance-pkg-cnni-lead-vpx.cnn”,”videoId”:”world/2020/05/20/russia-coronavirus-us-aid-chance-pkg-cnni-lead-vpx.cnn”,”videoUrl”:”/videos/world/2020/05/20/russia-coronavirus-us-aid-chance-pkg-cnni-lead-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_BA3DB042-57EF-01CF-02B2-340555D4D861″},{“descriptionPlainText”:”Brazil has recorded its highest number of coronavirus deaths and cases in one day, according to their Health Ministry. President Trump says he’s considering a ban on travel from the country. CNN’s Shasta Darlington reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200518101425-04-bolsonaro-0517-large-169.jpg”,”title”:”Brazil sees record surge of coronavirus deaths and cases”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/20/brazil-coronavirus-covid-19-pandemic-bolsonaro-darlington-lok-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/20/brazil-coronavirus-covid-19-pandemic-bolsonaro-darlington-lok-intl-ldn-vpx.cnn”,”videoId”:”world/2020/05/20/brazil-coronavirus-covid-19-pandemic-bolsonaro-darlington-lok-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2020/05/20/brazil-coronavirus-covid-19-pandemic-bolsonaro-darlington-lok-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_4C10C0AC-A306-2D19-4ECF-316714A69D93″},{“descriptionPlainText”:”In an address to the World Health Assembly, Chinese President Xi Jinping said China has acted transparently and openly on Covid-19 and supports a WHO-led review of the handling of the pandemic after the virus is contained. CNN’s Steven Jiang reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200518081758-china-president-xi-jinping-0518-large-169.jpg”,”title”:” Xi: China has acted transparently on Covid-19 pandemic”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/19/china-xi-jinping-who-coronavirus-jiang-sot-intl-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/19/china-xi-jinping-who-coronavirus-jiang-sot-intl-hnk-vpx.cnn”,”videoId”:”world/2020/05/19/china-xi-jinping-who-coronavirus-jiang-sot-intl-hnk-vpx.cnn”,”videoUrl”:”/videos/world/2020/05/19/china-xi-jinping-who-coronavirus-jiang-sot-intl-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_35D84AEE-713B-F9DB-A9CF-2BB8C809FE71″},{“descriptionPlainText”:”A scuffle broke out between rival Hong Kong lawmakers as pro-Beijing legislators took control of a key committee, clearing the path for several controversial bills to pass.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200518102636-06-hong-kong-lawmakers-scuffle-0518-large-169.jpg”,”title”:”Scuffle breaks out in Hong Kong’s Legislative Council”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/18/hong-kong-parliament-scuffle-lon-orig-mrg.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/18/hong-kong-parliament-scuffle-lon-orig-mrg.cnn”,”videoId”:”world/2020/05/18/hong-kong-parliament-scuffle-lon-orig-mrg.cnn”,”videoUrl”:”/videos/world/2020/05/18/hong-kong-parliament-scuffle-lon-orig-mrg.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_AC06AE8B-CDE9-2011-C716-28225FA5F918″},{“descriptionPlainText”:”India’s Ministry of Home Affairs has announced that the nationwide coronavirus lockdown will continue until at least May 31.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200428103754-10-india-coronavirus-0330-large-169.jpg”,”title”:”India enters fourth phase of nationwide lockdown”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/05/18/india-lockdown-fourth-phase-lon-orig-tp.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/05/18/india-lockdown-fourth-phase-lon-orig-tp.cnn”,”videoId”:”world/2020/05/18/india-lockdown-fourth-phase-lon-orig-tp.cnn”,”videoUrl”:”/videos/world/2020/05/18/india-lockdown-fourth-phase-lon-orig-tp.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_CFDA0CF0-35DE-4FED-7E42-2851DB183483″}],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/2020/05/23/hong-kong-new-china-law-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-1dtayfi’,videoDescriptionDivId: ‘js-video_description-1dtayfi’,videoDurationDivId: ‘js-video_duration-1dtayfi’,videoTitleDivId: ‘js-leaf-video_headline-1dtayfi’,videoSourceDivId: ‘js-video_sourceName-1dtayfi’});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