‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2017/12/24/philippines-tropical-storm-tembin-bernal.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”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171224020932-philippines-tropical-storm-tembin-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171224020932-philippines-tropical-storm-tembin-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171224020932-philippines-tropical-storm-tembin-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171224020932-philippines-tropical-storm-tembin-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171224020932-philippines-tropical-storm-tembin-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171224020932-philippines-tropical-storm-tembin-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171224020932-philippines-tropical-storm-tembin-small-11.jpg”}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Tropical Storm Tembin slammed into another set of Philippine islands late Saturday, hours after unleashing devastating flooding and landslides that has left dozens dead on the southern island of Mindanao, authorities said.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171224020932-philippines-tropical-storm-tembin-large-169.jpg”,”title”:”Tropical Storm leaves dozens dead”,”videoCMSUrl”:”/videos/world/2017/12/24/philippines-tropical-storm-tembin-bernal.cnn”,”videoId”:”world/2017/12/24/philippines-tropical-storm-tembin-bernal.cnn”,”videoUrl”:”/videos/world/2017/12/24/philippines-tropical-storm-tembin-bernal.cnn”},{“descriptionPlainText”:”Chance the Rapper made an appearance on a local Chicago news station where he tried his hand as a weatherman on live TV.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171209044911-chance-the-rapper-wgn-large-169.jpg”,”title”:”Rapper acts as weatherman on live TV”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/12/09/chance-the-rapper-weatherman-tv-fsc-orig-vstan.wgn/index.xml”,”videoId”:”us/2017/12/09/chance-the-rapper-weatherman-tv-fsc-orig-vstan.wgn”,”videoUrl”:”/videos/us/2017/12/09/chance-the-rapper-weatherman-tv-fsc-orig-vstan.wgn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”Check out this wind test from the Insurance Institute for Business & Home Safety to see how a typical US house would hold up to winds over 100 mph.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171005212029-insurance-institute-for-business–home-safety-wind-test-house-4-large-169.jpg”,”title”:”Watch what winds over 100 mph do to this house”,”videoCMSUrl”:”/video/data/3.0/video/weather/2017/10/06/wind-test-house-zw-orig-vstan.cnn/index.xml”,”videoId”:”weather/2017/10/06/wind-test-house-zw-orig-vstan.cnn”,”videoUrl”:”/videos/weather/2017/10/06/wind-test-house-zw-orig-vstan.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”CNN’s Chad Myers explains what it means for a storm to go through “rapid intensification.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170919163358-rapid-intensification-hurricane-large-169.jpg”,”title”:”What ‘rapid intensification’ means for storms “,”videoCMSUrl”:”/video/data/3.0/video/weather/2017/09/19/rapid-intensification-hurricanes-chad-myers-orig-trnd-lab.cnn/index.xml”,”videoId”:”weather/2017/09/19/rapid-intensification-hurricanes-chad-myers-orig-trnd-lab.cnn”,”videoUrl”:”/videos/weather/2017/09/19/rapid-intensification-hurricanes-chad-myers-orig-trnd-lab.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”CNN’s Jennifer Gray discusses the causes and dangers of flash floods.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170716160250-02-arizona-flash-flooding-large-169.jpg”,”title”:”Why flash floods are so dangerous”,”videoCMSUrl”:”/video/data/3.0/video/tv/2016/08/12/what-is-flash-flood-orig-jpm.cnn/index.xml”,”videoId”:”tv/2016/08/12/what-is-flash-flood-orig-jpm.cnn”,”videoUrl”:”/videos/tv/2016/08/12/what-is-flash-flood-orig-jpm.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”Hurricanes Harvey, Irma, and Maria have left devastation in their wakes, racking up potentially over $200 billion in damages, according to Moody’s Analytics.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170926130132-puerto-rico-damaged-road-large-169.jpg”,”title”:”2017 hurricanes could cost over $200 billion”,”videoCMSUrl”:”/video/data/3.0/video/cnnmoney/2017/09/26/cost-of-hurricanes.cnnmoney/index.xml”,”videoId”:”cnnmoney/2017/09/26/cost-of-hurricanes.cnnmoney”,”videoUrl”:”/videos/cnnmoney/2017/09/26/cost-of-hurricanes.cnnmoney/video/playlists/wicket-weather/”},{“descriptionPlainText”:”The hurricane ripped through the Caribbean, hitting islands from Dominica to Puerto Rico.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170921143045-hurricane-maria-damage-sg-orig-00002516-large-169.jpg”,”title”:”Hurricane Maria leaves trail of devastation”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/09/20/hurricane-maria-damage-sg-orig.cnn/index.xml”,”videoId”:”us/2017/09/20/hurricane-maria-damage-sg-orig.cnn”,”videoUrl”:”/videos/us/2017/09/20/hurricane-maria-damage-sg-orig.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”Hurricane Irma ripped though several islands in the Caribbean. The storm destroyed buildings and left hundreds of thousands without power.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170913132621-05-irma-st-martin-0912-large-169.jpg”,”title”:”Irma’s destructive path through the Caribbean”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/14/irma-destruction-caribbean-vstan-orig-nws.cnn/index.xml”,”videoId”:”world/2017/09/14/irma-destruction-caribbean-vstan-orig-nws.cnn”,”videoUrl”:”/videos/world/2017/09/14/irma-destruction-caribbean-vstan-orig-nws.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”Storm surge warnings in effect along the Gulf Coast as Hurricane Nate strikes. CNN’s Martin Savidge reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171008003208-hurricane-nate-biloxi-mississippi-savidge-00002526-large-169.jpg”,”title”:”Storm surge engulfs Mississippi highway”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/10/08/hurricane-nate-biloxi-mississippi-savidge.cnn/index.xml”,”videoId”:”us/2017/10/08/hurricane-nate-biloxi-mississippi-savidge.cnn”,”videoUrl”:”/videos/us/2017/10/08/hurricane-nate-biloxi-mississippi-savidge.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”Wind caused only 8% of all hurricane-related deaths in the US from 1963 and 2012.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/161012092655-06-north-carolina-hurricane-matthew-flooding-1011-large-169.jpg”,”title”:”Wind isn’t the biggest worry during a hurricane”,”videoCMSUrl”:”/video/data/3.0/video/weather/2016/10/12/myers-hurricane-flooding-deaths-explainer-zworig.cnn/index.xml”,”videoId”:”weather/2016/10/12/myers-hurricane-flooding-deaths-explainer-zworig.cnn”,”videoUrl”:”/videos/weather/2016/10/12/myers-hurricane-flooding-deaths-explainer-zworig.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”What are the top global forecast models and is one more accurate than the other?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170908140323-weather-model-large-169.jpg”,”title”:”The differences between weather forecast models”,”videoCMSUrl”:”/video/data/3.0/video/weather/2017/09/08/the-differences-between-weather-forecast-models-orig-tc.cnn/index.xml”,”videoId”:”weather/2017/09/08/the-differences-between-weather-forecast-models-orig-tc.cnn”,”videoUrl”:”/videos/weather/2017/09/08/the-differences-between-weather-forecast-models-orig-tc.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”CNN’s Jennifer Gray explains some of the important things your family should do to prepare for a hurricane.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160829165243-orig-weather-preparing-for-a-hurricane-00000000-large-169.jpg”,”title”:”How to prepare for a hurricane”,”videoCMSUrl”:”/video/data/3.0/video/weather/2016/08/29/orig-weather-preparing-for-a-hurricane.cnn/index.xml”,”videoId”:”weather/2016/08/29/orig-weather-preparing-for-a-hurricane.cnn”,”videoUrl”:”/videos/weather/2016/08/29/orig-weather-preparing-for-a-hurricane.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”CNN’s Jennifer Gray explains what you should know about hurricanes.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170524205250-hurricane-patricia-large-169.jpg”,”title”:”What you should know about hurricanes”,”videoCMSUrl”:”/video/data/3.0/video/weather/2017/05/25/hurricanes-explainer-orig-llr.cnn/index.xml”,”videoId”:”weather/2017/05/25/hurricanes-explainer-orig-llr.cnn”,”videoUrl”:”/videos/weather/2017/05/25/hurricanes-explainer-orig-llr.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”As Hurricane Irma tracks toward the US, it leaves behind a trail of wreckage in parts of the Caribbean.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170910113946-01-irma-cuba-0910-large-169.jpg”,”title”:”Hurricane Irma’s trail of destruction”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/09/08/hurricane-irma-destruction-caribbean-sje-lon-orig.cnn/index.xml”,”videoId”:”world/2017/09/08/hurricane-irma-destruction-caribbean-sje-lon-orig.cnn”,”videoUrl”:”/videos/world/2017/09/08/hurricane-irma-destruction-caribbean-sje-lon-orig.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”Hurricane Irma storm winds pushed water away from the coast and into the core of the storm.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170910121526-waterless-beach2-large-169.jpg”,”title”:”An ocean used to be here. Irma stole it away”,”videoCMSUrl”:”/video/data/3.0/video/weather/2017/09/10/hurricane-irma-pushes-water-away-from-beach-orig-tc.cnn/index.xml”,”videoId”:”weather/2017/09/10/hurricane-irma-pushes-water-away-from-beach-orig-tc.cnn”,”videoUrl”:”/videos/weather/2017/09/10/hurricane-irma-pushes-water-away-from-beach-orig-tc.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”CNN’s Jennifer Gray explains how each hurricane is named and the history behind the naming of hurricanes.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/150930093425-how-hurricanes-are-named-orig-00002729-large-169.jpg”,”title”:”How are hurricanes named? “,”videoCMSUrl”:”/video/data/3.0/video/us/2015/09/30/how-hurricanes-are-named-orig.cnn/index.xml”,”videoId”:”us/2015/09/30/how-hurricanes-are-named-orig.cnn”,”videoUrl”:”/videos/us/2015/09/30/how-hurricanes-are-named-orig.cnn/video/playlists/wicket-weather/”},{“descriptionPlainText”:”Security video caught the moment when heavy winds sent Madison Gardner flying with her front door.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170309184841-girl-blown-away-by-wind-large-169.jpg”,”title”:”4-year-old girl blown away by wind”,”videoCMSUrl”:”/video/data/3.0/video/us/2017/03/10/girl-blown-away-by-wind-orig-gs.cnn/index.xml”,”videoId”:”us/2017/03/10/girl-blown-away-by-wind-orig-gs.cnn”,”videoUrl”:”/videos/us/2017/03/10/girl-blown-away-by-wind-orig-gs.cnn/video/playlists/wicket-weather/”}],currentVideoCollectionId = ”,isLivePlayer = false,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 = {videoCollection: this.videoCollection,autostart: false},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/2017/12/24/philippines-tropical-storm-tembin-bernal.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-1wcq0ms’,videoDescriptionDivId: ‘js-video_description-1wcq0ms’,videoDurationDivId: ‘js-video_duration-1wcq0ms’,videoTitleDivId: ‘js-leaf-video_headline-1wcq0ms’,videoSourceDivId: ‘js-video_sourceName-1wcq0ms’});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

NO COMMENTS