What NOT to do in a heat wave

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘weather/2016/06/20/what-not-to-do-in-a-heat-wave-mobile-orig-mss.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/160620185905-heat-wave-3-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160620185905-heat-wave-3-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160620185905-heat-wave-3-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160620185905-heat-wave-3-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160620185905-heat-wave-3-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160620185905-heat-wave-3-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160620185905-heat-wave-3-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”CNN’s Jennifer Gray offers four surprising tips on how to stay cool during a heat wave.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160620185905-heat-wave-3-large-169.jpg”,”title”:”What NOT to do in a heat wave”,”videoCMSUrl”:”/videos/weather/2016/06/20/what-not-to-do-in-a-heat-wave-mobile-orig-mss.cnn”,”videoLeafUrl”:”/videos/weather/2016/06/20/what-not-to-do-in-a-heat-wave-mobile-orig-mss.cnn”,”videoId”:”weather/2016/06/20/what-not-to-do-in-a-heat-wave-mobile-orig-mss.cnn”,”videoUrl”:”/videos/weather/2016/06/20/what-not-to-do-in-a-heat-wave-mobile-orig-mss.cnn”,”surrogateKey”:”video_1CEFC2F9-3B6B-FA0E-A42D-6FFC4F90E0B6″},{“descriptionPlainText”:”CNN’s Pamela Brown talks to conservative talk radio host Mike Broomhead about the Republican-led election audit in Arizona that is entering its final stages, despite a process that was plagued by questions about transparency.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210507131521-maricopa-county-ballot-recount-0501-large-169.jpg”,”title”:”Growing list of Arizona Republicans have had enough amid ‘audit'”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/19/conservative-radio-host-arizona-election-audit-sot-brown-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/19/conservative-radio-host-arizona-election-audit-sot-brown-nr-vpx.cnn”,”videoId”:”politics/2021/06/19/conservative-radio-host-arizona-election-audit-sot-brown-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/19/conservative-radio-host-arizona-election-audit-sot-brown-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_C0159C4D-35C7-F849-DEF9-26822E89E1A9″},{“descriptionPlainText”:”The Bidens have announced that Champ, their “beloved” German Shepherd who had been with their family since 2008, has died. Champ passed away at the Biden family home in Wilmington, Delaware, a White House official told CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210619161504-champ-biden-german-shepherd-2012-file-large-169.jpg”,”title”:”Bidens announce their ‘beloved’ German Shepherd has died”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/19/biden-dog-champ-german-shepherd-dies-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/19/biden-dog-champ-german-shepherd-dies-vpx.cnn”,”videoId”:”politics/2021/06/19/biden-dog-champ-german-shepherd-dies-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/19/biden-dog-champ-german-shepherd-dies-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_D04EDF3E-44F5-ACE4-3DD3-25E25426B65D”},{“descriptionPlainText”:”Claudette continues to threaten portions of the Southeast with tornadoes, damaging winds, and heavy rain. Meteorologist Allison Chinchar has the latest.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210619110420-weather-tropical-storm-claudette-severe-storms-06192021-large-169.jpg”,”title”:”Tropical Storm Claudette brings tornado threat to Southeast”,”videoCMSUrl”:”/video/data/3.0/video/weather/2021/06/19/tropical-storm-claudette-rain-flood-tornado-landfall.cnn/index.xml”,”videoLeafUrl”:”/videos/weather/2021/06/19/tropical-storm-claudette-rain-flood-tornado-landfall.cnn”,”videoId”:”weather/2021/06/19/tropical-storm-claudette-rain-flood-tornado-landfall.cnn”,”videoUrl”:”/videos/weather/2021/06/19/tropical-storm-claudette-rain-flood-tornado-landfall.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_B8A545D9-BFE4-9E4A-4DD6-23927892FBBF”},{“descriptionPlainText”:”As India’s second wave of Covid-19 declines, there is growing worry about a surge of a deadly Covid-related infection that feasts on dead flesh. CNN’s Sam Kiley reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618212733-kiley-india-pkg-061821-large-169.jpg”,”title”:”India now being ravaged by a new deadly crisis”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/19/india-black-fungus-surge-coronavirus-sam-kiley-pkg-intl-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/19/india-black-fungus-surge-coronavirus-sam-kiley-pkg-intl-vpx.cnn”,”videoId”:”world/2021/06/19/india-black-fungus-surge-coronavirus-sam-kiley-pkg-intl-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/19/india-black-fungus-surge-coronavirus-sam-kiley-pkg-intl-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_9450A88A-AFDE-51CB-D5FE-21D28F80A224″},{“descriptionPlainText”:”In Atlanta’s well-to-do community of Buckhead, the debate over becoming an independent city has been brewing off and on for decades. Now, amid a spike in crime, calls to split from the capital have grown louder than ever. CNN’s Natasha Chen reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210603164222-buckhead-atlanta-skyline-stock-large-169.jpg”,”title”:”One of Atlanta’s richest neighborhoods wants to break up with the city”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/06/19/buckhead-moves-to-leave-atlanta-chen-pkg-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/06/19/buckhead-moves-to-leave-atlanta-chen-pkg-nr-vpx.cnn”,”videoId”:”us/2021/06/19/buckhead-moves-to-leave-atlanta-chen-pkg-nr-vpx.cnn”,”videoUrl”:”/videos/us/2021/06/19/buckhead-moves-to-leave-atlanta-chen-pkg-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_015757A4-CCD4-234B-6BBF-256A93CD0449″},{“descriptionPlainText”:”William Braddock, a Republican congressional candidate in Florida, can reportedly be heard threatening the life of political rival Anna Paulina Luna, according to a secret phone call recording exclusively obtained by Politico. CNN’s Leyla Santiago has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618212436-william-braddock-anna-paulina-luna-split-large-169.jpg”,”title”:”Candidate allegedly threatens opponent’s life in recorded call”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/19/florida-congressional-race-death-threat-pkg-santiago-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/19/florida-congressional-race-death-threat-pkg-santiago-ac360-vpx.cnn”,”videoId”:”politics/2021/06/19/florida-congressional-race-death-threat-pkg-santiago-ac360-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/19/florida-congressional-race-death-threat-pkg-santiago-ac360-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_BC6101A8-3399-11D1-2434-21C5A48803C0″},{“descriptionPlainText”:”The United States Conference of Catholic Bishops has proceeded with a plan that would deny communion to public figures who support abortion rights, setting up a potential public rebuke of President Joe Biden.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618150709-01-biden-vaccine-remarks-0618-large-169.jpg”,”title”:”‘A private matter’: Biden on US Catholic bishops’ potential rebuke”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/18/catholic-bishops-communion-biden-doris-kearns-goodwin-sot-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/18/catholic-bishops-communion-biden-doris-kearns-goodwin-sot-tsr-vpx.cnn”,”videoId”:”politics/2021/06/18/catholic-bishops-communion-biden-doris-kearns-goodwin-sot-tsr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/18/catholic-bishops-communion-biden-doris-kearns-goodwin-sot-tsr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_D3441144-74E5-3F40-6510-2134F6743F33″},{“descriptionPlainText”:”Ebrahim Raisi, a hardline judiciary chief with a brutal human rights record, is set to win Iran’s controversial presidential election, according to preliminary results announced by the interior ministry and reported by state media Saturday.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210617165426-ebrahim-raeesi-0616-restricted-large-169.jpg”,”title”:”Ultra-conservative candidate set to win Iran’s presidential election”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/19/ebrahim-raisi-iran-election-results-update-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/19/ebrahim-raisi-iran-election-results-update-vpx.cnn”,”videoId”:”world/2021/06/19/ebrahim-raisi-iran-election-results-update-vpx.cnn”,”videoUrl”:”/videos/world/2021/06/19/ebrahim-raisi-iran-election-results-update-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_9E18E875-C0AF-ACDF-C85C-23C71E8EAC6F”},{“descriptionPlainText”:”CNN’s Drew Griffin speaks with Josh Pruitt, a member of the Proud Boys who stormed the Capitol on January 6. Watch “Assault on Democracy: The Roots of Trump’s Insurrection” at 6pm on June 20, 2021.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618160037-drew-griffin-josh-pruitt-capitol-riot-split-large-169.jpg”,”title”:”‘You know that’s not true’: CNN reporter corrects man who stormed Capitol”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/18/capitol-riot-documentary-cnn-preview-drew-griffin-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/18/capitol-riot-documentary-cnn-preview-drew-griffin-vpx.cnn”,”videoId”:”politics/2021/06/18/capitol-riot-documentary-cnn-preview-drew-griffin-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/18/capitol-riot-documentary-cnn-preview-drew-griffin-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_BAEC77D4-6FBC-A1C2-5889-20ACC20C3158″},{“descriptionPlainText”:”Members of the crowd heckled former Vice President Mike Pence while he was speaking at a Faith and Freedom Coalition conference in Kissimmee, Florida.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618131544-mike-pence-heckled-at-conservative-conference-vpx-00000918-large-169.jpg”,”title”:”Mike Pence heckled at conservative conference”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/18/mike-pence-heckled-at-conservative-conference-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/18/mike-pence-heckled-at-conservative-conference-vpx.cnn”,”videoId”:”politics/2021/06/18/mike-pence-heckled-at-conservative-conference-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/18/mike-pence-heckled-at-conservative-conference-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_71AC2449-3D00-1C8E-CF9B-201097AECE98″},{“descriptionPlainText”:”Newly released footage from January 6 shows a supporter of former President Donald Trump taunting, stalking and punching law enforcement outside the US Capitol — the latest release of up-close video of rioters who have been charged with assaulting police.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618123919-new-capitol-riot-video-large-169.jpg”,”title”:”New video shows police getting punched during Capitol riot”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/18/police-punched-capitol-riot-video-ip-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/18/police-punched-capitol-riot-video-ip-vpx.cnn”,”videoId”:”politics/2021/06/18/police-punched-capitol-riot-video-ip-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/18/police-punched-capitol-riot-video-ip-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_6C73BF4C-2FBA-6F0E-1A69-1FF5499B6ADA”},{“descriptionPlainText”:”Ronnie Oneal, a man in Tampa, Florida, accused of killing his wife and daughter and attempting to kill his son, is serving as his own attorney in his murder trial.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618000343-ronnie-oneal-tampa-florida-murder-trial-2-large-169.jpg”,”title”:”11-year-old cross-examined by father in Florida murder trial”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/06/17/tampa-florida-murder-trial-ronnie-oneal-jk-eg-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/06/17/tampa-florida-murder-trial-ronnie-oneal-jk-eg-orig.cnn”,”videoId”:”us/2021/06/17/tampa-florida-murder-trial-ronnie-oneal-jk-eg-orig.cnn”,”videoUrl”:”/videos/us/2021/06/17/tampa-florida-murder-trial-ronnie-oneal-jk-eg-orig.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_A6277C72-5047-85E9-C66F-1C0B06E3F946″},{“descriptionPlainText”:”A boatman found the three-week-old baby in a wooden box, which also contained incense sticks, an image of a Hindu deity and the child’s astrological birth chart, according to local police.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618154111-abandoned-baby-video-thumbnail-lon-orig-sd-na-large-169.jpg”,”title”:”Newborn girl found abandoned in a box floating down river”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/06/18/baby-found-in-box-india-ganges-lon-orig-sd-na.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/06/18/baby-found-in-box-india-ganges-lon-orig-sd-na.cnn”,”videoId”:”world/2021/06/18/baby-found-in-box-india-ganges-lon-orig-sd-na.cnn”,”videoUrl”:”/videos/world/2021/06/18/baby-found-in-box-india-ganges-lon-orig-sd-na.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_5278BE38-AC98-9FC5-9CDD-1F8881113BB8″},{“descriptionPlainText”:”Nearly a year after being indicted on federal bribery charges, the Ohio State House voted to expel former speaker Larry Householder.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210617205536-larry-householder-ohio-state-house-expelled-large-169.jpg”,”title”:”Ohio lawmaker expelled from state house in historic vote”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/17/larry-householder-ohio-lawmaker-expelled-orig-vf.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/17/larry-householder-ohio-lawmaker-expelled-orig-vf.cnn”,”videoId”:”politics/2021/06/17/larry-householder-ohio-lawmaker-expelled-orig-vf.cnn”,”videoUrl”:”/videos/politics/2021/06/17/larry-householder-ohio-lawmaker-expelled-orig-vf.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_45333199-1E06-94B7-B9B7-1B87CF86FEBC”},{“descriptionPlainText”:”Sen. Ted Cruz (R-TX) criticizes teaching critical race theory in schools, where he accuses it of being as racist as Klansmen in white sheets.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618130333-ted-cruz-large-169.jpg”,”title”:”Ted Cruz: Critical race theory is as racist as Klansmen”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/06/18/critical-race-theory-ted-cruz-sot-ip-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/06/18/critical-race-theory-ted-cruz-sot-ip-vpx.cnn”,”videoId”:”politics/2021/06/18/critical-race-theory-ted-cruz-sot-ip-vpx.cnn”,”videoUrl”:”/videos/politics/2021/06/18/critical-race-theory-ted-cruz-sot-ip-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_67D3B6D6-D9C0-E1B0-1953-2007E87A8444″},{“descriptionPlainText”:”CNN’s Stephanie Elam reports on the harsh drought plaguing the Western US and explains the impact this can have on the rest of the country.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210618110404-cattle-rancher-large-169.jpg”,”title”:”Cattle rancher grapples with punishing drought in Western US”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/06/18/west-drought-impact-colorado-river-pkg-elam-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/06/18/west-drought-impact-colorado-river-pkg-elam-newday-vpx.cnn”,”videoId”:”us/2021/06/18/west-drought-impact-colorado-river-pkg-elam-newday-vpx.cnn”,”videoUrl”:”/videos/us/2021/06/18/west-drought-impact-colorado-river-pkg-elam-newday-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_42E97EF9-1F69-BD0E-9EDA-1F9AF5DB3551″}],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:”weather/2016/06/20/what-not-to-do-in-a-heat-wave-mobile-orig-mss.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-j672pe’,videoDescriptionDivId: ‘js-video_description-j672pe’,videoDurationDivId: ‘js-video_duration-j672pe’,videoTitleDivId: ‘js-leaf-video_headline-j672pe’,videoSourceDivId: ‘js-video_sourceName-j672pe’});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