First-grade teacher goes viral for items she bought in the event of an active shooting

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘us/2022/06/01/teacher-protects-classroom-active-shooter-bullet-proof-backpack-safety-orig-llr.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/220601101616-02-teacher-classroom-safety-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220601101616-02-teacher-classroom-safety-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220601101616-02-teacher-classroom-safety-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220601101616-02-teacher-classroom-safety-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220601101616-02-teacher-classroom-safety-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220601101616-02-teacher-classroom-safety-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220601101616-02-teacher-classroom-safety-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”After the shooting at Robb Elementary School in Uvalde, Texas, first-grade teacher Kelsey Vidal posted a series of TikToks hoping to inspire safety ideas for others.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220601101616-02-teacher-classroom-safety-large-169.jpg”,”title”:”Crayons, books, a bullet-proof backpack: See how this teacher protects her class”,”videoCMSUrl”:”/videos/us/2022/06/01/teacher-protects-classroom-active-shooter-bullet-proof-backpack-safety-orig-llr.cnn”,”videoLeafUrl”:”/videos/us/2022/06/01/teacher-protects-classroom-active-shooter-bullet-proof-backpack-safety-orig-llr.cnn”,”videoId”:”us/2022/06/01/teacher-protects-classroom-active-shooter-bullet-proof-backpack-safety-orig-llr.cnn”,”videoUrl”:”/videos/us/2022/06/01/teacher-protects-classroom-active-shooter-bullet-proof-backpack-safety-orig-llr.cnn”,”surrogateKey”:”video_A4DF1A08-FB4C-CC86-C3BB-1F9F7A08304A”},{“descriptionPlainText”:”Celia Muñoz, a Spanish opera singer-turned-ventriloquist, made a unique performance on “America’s Got Talent” that surprised the judges.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220531123501-agt-ventriloquist-orig-jc-large-169.jpg”,”title”:”This ventriloquist surprised the judges on ‘America’s Got Talent'”,”videoCMSUrl”:”/video/data/3.0/video/media/2022/05/31/celia-muoz-ventriloquist-agt-orig-jc.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2022/05/31/celia-muoz-ventriloquist-agt-orig-jc.cnn”,”videoId”:”media/2022/05/31/celia-muoz-ventriloquist-agt-orig-jc.cnn”,”videoUrl”:”/videos/media/2022/05/31/celia-muoz-ventriloquist-agt-orig-jc.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_F628C295-EF09-3CBB-91BE-1AF82D5FC285″},{“descriptionPlainText”:””The Late Late Show” host James Corden directed an ad hoc music video with pop star Harry Styles. The duo tried to produce it with $300 and within three hours in a random New York apartment.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220527150416-harry-styles-james-corden-large-169.jpg”,”title”:”Harry Styles makes $300 music video with James Corden”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/27/harry-styles-james-corden-music-video-orig-ht.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/27/harry-styles-james-corden-music-video-orig-ht.cnn-business”,”videoId”:”business/2022/05/27/harry-styles-james-corden-music-video-orig-ht.cnn-business”,”videoUrl”:”/videos/business/2022/05/27/harry-styles-james-corden-music-video-orig-ht.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_3CB8EB54-2075-EEEA-FBD8-06E5A486977C”},{“descriptionPlainText”:”Jamie Dimon, CEO of JPMorgan Chase, spoke at the Bernstein Strategic Decisions Conference about economic headwinds. CNN’s Christine Romans unpacks his comments.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220602084714-jamie-dimon-bernstein-conference-large-169.jpg”,”title”:”JPMorgan Chase CEO warns of an economic ‘hurricane'”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/06/02/jamie-dimon-jpmorgan-chase-hurricane-economy-romans-earlystart-vpx.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2022/06/02/jamie-dimon-jpmorgan-chase-hurricane-economy-romans-earlystart-vpx.cnnbusiness”,”videoId”:”business/2022/06/02/jamie-dimon-jpmorgan-chase-hurricane-economy-romans-earlystart-vpx.cnnbusiness”,”videoUrl”:”/videos/business/2022/06/02/jamie-dimon-jpmorgan-chase-hurricane-economy-romans-earlystart-vpx.cnnbusiness/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_80B34170-60CD-9150-D1A5-23F2E8376284″},{“descriptionPlainText”:”In a one-on-one interview with CNN’s Wolf Blitzer, US Treasury Secretary Janet Yellen admits she was wrong about inflation and the path that it would take in the country.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220531191243-yellen-inflation-05-31-22-large-169.jpg”,”title”:”‘I was wrong’: US treasury secretary admits she was wrong about US inflation in 2021″,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/31/janet-yellen-admits-to-being-wrong-about-inflation-sot-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/31/janet-yellen-admits-to-being-wrong-about-inflation-sot-tsr-vpx.cnn”,”videoId”:”business/2022/05/31/janet-yellen-admits-to-being-wrong-about-inflation-sot-tsr-vpx.cnn”,”videoUrl”:”/videos/business/2022/05/31/janet-yellen-admits-to-being-wrong-about-inflation-sot-tsr-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_21E6C407-DB6C-36F5-19C7-1C2269926C9E”},{“descriptionPlainText”:”Paris Hilton has dived into the metaverse. Selling NFTs and a digital experience in Roblox, Hilton has rebranded herself as the metaverse mogul. CNN Business’ Samantha Kelly talks with Hilton about the hype and controversy around NFTs.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220506122008-paris-hilton-metaverse-large-169.jpg”,”title”:”How Paris Hilton became ‘The Queen of the Metaverse'”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/06/paris-hilton-metaverse-nfts-sk-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/06/paris-hilton-metaverse-nfts-sk-orig.cnn”,”videoId”:”business/2022/05/06/paris-hilton-metaverse-nfts-sk-orig.cnn”,”videoUrl”:”/videos/business/2022/05/06/paris-hilton-metaverse-nfts-sk-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_1CDE4026-2768-C4F5-4D0D-9AC3C4DE20F6″},{“descriptionPlainText”:””Top Gun: Maverick” star Tom Cruise flew a plane with “The Late Late Show” host James Corden, who was terrified by this once-in-a-lifetime trip.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220524153213-tom-cruise-large-169.jpg”,”title”:”Tom Cruise terrifies James Corden with wild plane ride”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/24/top-gun-tom-cruise-james-corden-orig-ht.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/24/top-gun-tom-cruise-james-corden-orig-ht.cnn-business”,”videoId”:”business/2022/05/24/top-gun-tom-cruise-james-corden-orig-ht.cnn-business”,”videoUrl”:”/videos/business/2022/05/24/top-gun-tom-cruise-james-corden-orig-ht.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_2C551DA2-C831-16BB-2761-F78C46E8FD5A”},{“descriptionPlainText”:”While touting her new book, former Trump aide Kellyanne Conway got into a heated exchange with former White House colleague Alyssa Farah Griffin on “The View.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191218165322-kellyanne-conway-gaggle-large-169.jpg”,”title”:”Watch Kellyanne Conway’s contentious appearance on ‘The View'”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/25/kellyanne-conway-alyssa-farah-griffin-the-view.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/25/kellyanne-conway-alyssa-farah-griffin-the-view.cnn”,”videoId”:”business/2022/05/25/kellyanne-conway-alyssa-farah-griffin-the-view.cnn”,”videoUrl”:”/videos/business/2022/05/25/kellyanne-conway-alyssa-farah-griffin-the-view.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_15BC4A9D-745A-402A-D41A-F88A4294920E”},{“descriptionPlainText”:”Walmart has been criticized for using Juneteenth, which commemorates the end of slavery in the US, as a “marketing scheme” for its products. CNN’s Robin Meade reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220524184759-vid-thumb-walmart-juneteenth-2-large-169.jpg”,”title”:” Walmart pulls ‘tone-deaf’ Juneteenth products after criticism”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/24/walmart-juneteenth-backlash-vo-meade-hln-ldn-vpx.hln/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/24/walmart-juneteenth-backlash-vo-meade-hln-ldn-vpx.hln”,”videoId”:”business/2022/05/24/walmart-juneteenth-backlash-vo-meade-hln-ldn-vpx.hln”,”videoUrl”:”/videos/business/2022/05/24/walmart-juneteenth-backlash-vo-meade-hln-ldn-vpx.hln/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_D28A5DD7-1893-88B3-A376-F72C59769D52″},{“descriptionPlainText”:”Former Treasury Secretary Larry Summers says the consensus on inflation last year was wrong, and that conventional forecasting models need to be evaluated. He says more interest rate hikes are needed to tame inflation.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220601080008-larry-summers-large-169.jpg”,”title”:”Larry Summers: More rate increases ahead to contain inflation”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/06/01/larry-summers-inflation-janet-yellen-federal-reserve-newday-vpx.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2022/06/01/larry-summers-inflation-janet-yellen-federal-reserve-newday-vpx.cnnbusiness”,”videoId”:”business/2022/06/01/larry-summers-inflation-janet-yellen-federal-reserve-newday-vpx.cnnbusiness”,”videoUrl”:”/videos/business/2022/06/01/larry-summers-inflation-janet-yellen-federal-reserve-newday-vpx.cnnbusiness/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_6E2C09DA-4623-96F5-1F9B-1F1D8C58AFFE”},{“descriptionPlainText”:”Street View is turning 15 and Google is marking the occasion by rolling out a camera the company hopes will bring more of the world to users’ living rooms.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220523151332-google-street-view-new-camera-large-169.jpg”,”title”:”Google’s Street View is 15 years old. See the new camera it’s rolling out”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/23/google-street-view-new-camera-gr-org.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/23/google-street-view-new-camera-gr-org.cnn”,”videoId”:”business/2022/05/23/google-street-view-new-camera-gr-org.cnn”,”videoUrl”:”/videos/business/2022/05/23/google-street-view-new-camera-gr-org.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_8C5AAF80-1EA7-2F62-431E-F2F93304CC69″},{“descriptionPlainText”:”From construction worker to newest champion of “American Idol,” singer Noah Thompson appeared on “Good Morning America” to reflect on winning the competition.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220523171340-noah-thompson-2-large-169.jpg”,”title”:”‘American Idol’ winner says he wants to ‘stay in the house for a bit'”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/23/american-idol-champion-noah-thompson-orig-ht.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/23/american-idol-champion-noah-thompson-orig-ht.cnn-business”,”videoId”:”business/2022/05/23/american-idol-champion-noah-thompson-orig-ht.cnn-business”,”videoUrl”:”/videos/business/2022/05/23/american-idol-champion-noah-thompson-orig-ht.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_B0FF1F63-DB05-DAE8-414E-F2BEAA7C9319″},{“descriptionPlainText”:”CNN’s Gabe Cohen reports on how record housing prices and rising mortgage rates are widening the racial divide in the US.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220511162706-house-for-sale-file-033121-large-169.jpg”,”title”:”Typical monthly payment for US home up 42% in a year”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/20/housing-prices-racial-divide-arizona-cohen-dnt-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/20/housing-prices-racial-divide-arizona-cohen-dnt-lead-vpx.cnn”,”videoId”:”business/2022/05/20/housing-prices-racial-divide-arizona-cohen-dnt-lead-vpx.cnn”,”videoUrl”:”/videos/business/2022/05/20/housing-prices-racial-divide-arizona-cohen-dnt-lead-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_71C232AF-AD61-43D7-0CD5-E346673F6D14″},{“descriptionPlainText”:”Diesel prices are soaring to record levels and oil tanks are sitting at alarmingly low levels as demand outpaces supply. CNN’s Vanessa Yurkevich speaks with an oil analyst about how consumers may be impacted.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220519085843-oil-tanks-large-169.jpeg”,”title”:”How soaring diesel prices may impact consumers”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/19/diesel-prices-yurkevich-dnt-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/19/diesel-prices-yurkevich-dnt-newday-vpx.cnn”,”videoId”:”business/2022/05/19/diesel-prices-yurkevich-dnt-newday-vpx.cnn”,”videoUrl”:”/videos/business/2022/05/19/diesel-prices-yurkevich-dnt-newday-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_7543AF2C-A7E3-947F-8B7D-DC4FFAD45F29″},{“descriptionPlainText”:”Fox News host Tucker Carlson is trying to distance himself from the document allegedly written by the shooter who killed 10 people in Buffalo, which endorses the “great replacement” theory. The conspiracy idea has been embraced and promoted by the host and far-right extremists.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220517160021-tucker-carlson-large-169.jpg”,”title”:”Watch Fox host react to Buffalo shooting”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/17/tucker-carlson-replacement-theory-buffalo-shooting-orig-ht.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/17/tucker-carlson-replacement-theory-buffalo-shooting-orig-ht.cnn-business”,”videoId”:”business/2022/05/17/tucker-carlson-replacement-theory-buffalo-shooting-orig-ht.cnn-business”,”videoUrl”:”/videos/business/2022/05/17/tucker-carlson-replacement-theory-buffalo-shooting-orig-ht.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_0D41207E-8A9B-66FD-DAD8-D39A7C7193FB”},{“descriptionPlainText”:”Elon Musk says his deal to acquire Twitter is on hold until the social media company proves the accuracy of its user numbers, citing spam bots. CNN’s Brian Stelter reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220513060533-03-elon-musk-file-large-169.jpg”,”title”:”Here’s what Elon Musk may be aiming for as he puts Twitter deal on hold”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/17/elon-musk-twitter-bots-tweet-stelter-sot-qmb-vpx.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/17/elon-musk-twitter-bots-tweet-stelter-sot-qmb-vpx.cnnbusiness”,”videoId”:”business/2022/05/17/elon-musk-twitter-bots-tweet-stelter-sot-qmb-vpx.cnnbusiness”,”videoUrl”:”/videos/business/2022/05/17/elon-musk-twitter-bots-tweet-stelter-sot-qmb-vpx.cnnbusiness/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_C9CB37FA-E3A8-1D84-C220-D3ACE88A81C0″}],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:”us/2022/06/01/teacher-protects-classroom-active-shooter-bullet-proof-backpack-safety-orig-llr.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-2ytchq’,videoDescriptionDivId: ‘js-video_description-2ytchq’,videoDurationDivId: ‘js-video_duration-2ytchq’,videoTitleDivId: ‘js-leaf-video_headline-2ytchq’,videoSourceDivId: ‘js-video_sourceName-2ytchq’});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