CNN Heroes: One billion free meals as well as also also counting

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘health/2018/04/03/cnnheroes-macfarlane-barrow-marys-meals-update-billionth-meal.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnn.com_us_heroes_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180330131319-cnnheroes-magnus-macfarlane-barrow-marys-meals-billionth-meal-little-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180330131319-cnnheroes-magnus-macfarlane-barrow-marys-meals-billionth-meal-medium-plus-169.jpg”,”height”:173},”little”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180330131319-cnnheroes-magnus-macfarlane-barrow-marys-meals-billionth-meal-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180330131319-cnnheroes-magnus-macfarlane-barrow-marys-meals-billionth-meal-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180330131319-cnnheroes-magnus-macfarlane-barrow-marys-meals-billionth-meal-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180330131319-cnnheroes-magnus-macfarlane-barrow-marys-meals-billionth-meal-full-169.jpg”,”height”:900},”mini1x1″:{“width”:0,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180330131319-cnnheroes-magnus-macfarlane-barrow-marys-meals-billionth-meal-little-11.jpg”,”height”:0}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”2010 CNN Hero Magnus MacFarlane-Barrow’s nonprofit, Mary’s Meals, has given more than one billion free, nutritious meals to schoolchildren around the planet. Anderson Cooper reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180330131319-cnnheroes-magnus-macfarlane-barrow-marys-meals-billionth-meal-large-169.jpg”,”title”:”CNN Heroes: One billion free meals as well as also also counting”,”videoCMSUrl”:”/video/data/3.0/video/health/2018/04/03/cnnheroes-macfarlane-barrow-marys-meals-update-billionth-meal.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2018/04/03/cnnheroes-macfarlane-barrow-marys-meals-update-billionth-meal.cnn”,”videoId”:”health/2018/04/03/cnnheroes-macfarlane-barrow-marys-meals-update-billionth-meal.cnn”,”videoUrl”:”/videos/health/2018/04/03/cnnheroes-macfarlane-barrow-marys-meals-update-billionth-meal.cnn/video/playlists/2018-cnn-heroes/”},{“descriptionPlainText”:”After seeing how music helped her husband, who has dementia, Carol Rosenstein started out creating bands for people with neurodegenerative diseases.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180314152251-cnnheroes-carol-rosenstein-with-husband-large-169.jpg”,”title”:”CNN Hero Carol Rosenstein”,”videoCMSUrl”:”/video/data/3.0/video/health/2018/03/15/cnnheroes-rosenstein-mixed.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2018/03/15/cnnheroes-rosenstein-mixed.cnn”,”videoId”:”health/2018/03/15/cnnheroes-rosenstein-mixed.cnn”,”videoUrl”:”/videos/health/2018/03/15/cnnheroes-rosenstein-mixed.cnn/video/playlists/2018-cnn-heroes/”},{“descriptionPlainText”:”A piano player living with memory loss shares how CNN Hero Carol Rosenstein’s nonprofit band keeps the ‘magic’ of music in his life.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180315143719-cnnheroes-rosenstein-extra-00023316-large-169.jpg”,”title”:”CNN Heroes: Playing to remember”,”videoCMSUrl”:”/video/data/3.0/video/health/2018/03/15/cnnheroes-rosenstein-extra.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2018/03/15/cnnheroes-rosenstein-extra.cnn”,”videoId”:”health/2018/03/15/cnnheroes-rosenstein-extra.cnn”,”videoUrl”:”/videos/health/2018/03/15/cnnheroes-rosenstein-extra.cnn/video/playlists/2018-cnn-heroes/”},{“descriptionPlainText”:”Since 2006, Jon Albert’s nonprofit has helped more than 1,000 families facing late-stage cancer to create lasting memories on free, fun-filled trips.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180322153119-cnnheroes-albert-mixed-00020023-large-169.jpg”,”title”:”CNN Hero Jon Albert”,”videoCMSUrl”:”/video/data/3.0/video/us/2018/03/22/cnnheroes-albert-mixed.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2018/03/22/cnnheroes-albert-mixed.cnn”,”videoId”:”us/2018/03/22/cnnheroes-albert-mixed.cnn”,”videoUrl”:”/videos/us/2018/03/22/cnnheroes-albert-mixed.cnn/video/playlists/2018-cnn-heroes/”},{“descriptionPlainText”:”Chad Houser’s nonprofit restaurant in Dallas has provided a 12-month paid internship program for hundreds of young people coming out of juvenile detention.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180329100708-cnnheroes-chad-houser-cu-large-169.jpg”,”title”:”CNN Hero Chad Houser”,”videoCMSUrl”:”/video/data/3.0/video/us/2018/03/29/cnnheroes-houser-correct-mixed.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2018/03/29/cnnheroes-houser-correct-mixed.cnn”,”videoId”:”us/2018/03/29/cnnheroes-houser-correct-mixed.cnn”,”videoUrl”:”/videos/us/2018/03/29/cnnheroes-houser-correct-mixed.cnn/video/playlists/2018-cnn-heroes/”},{“descriptionPlainText”:”One woman shares the pride she felt after her nomination led Sister Tesa Fitzgerald to be honored as a CNN Hero in 2012.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180227182254-cnnheroes-sis-tesa-orig-00001822-large-169.jpg”,”title”:”How ‘Sis Tesa’ became a CNN Hero”,”videoCMSUrl”:”/video/data/3.0/video/us/2018/02/27/cnnheroes-sis-tesa-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2018/02/27/cnnheroes-sis-tesa-orig.cnn”,”videoId”:”us/2018/02/27/cnnheroes-sis-tesa-orig.cnn”,”videoUrl”:”/videos/us/2018/02/27/cnnheroes-sis-tesa-orig.cnn/video/playlists/2018-cnn-heroes/”}],currentVideoCollectionId = ”,isLivePlayer = false,mediaMetadataCallbacks,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 = {autostart: false,muteOverlayClicked: true,videoCollection: This specific.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:”health/2018/04/03/cnnheroes-macfarlane-barrow-marys-meals-update-billionth-meal.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(‘

right 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-1l3r0fy’,videoDescriptionDivId: ‘js-video_description-1l3r0fy’,videoDurationDivId: ‘js-video_duration-1l3r0fy’,videoTitleDivId: ‘js-leaf-video_headline-1l3r0fy’,videoSourceDivId: ‘js-video_sourceName-1l3r0fy’});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 : CNN Heroes: One billion free meals as well as also also counting