HEALTH COACH -
The study of stem cells offers hope for ALS
; $ VidEndSlate.removeClass (video__end-slate - inactive). AddClass (video__end-slate - active);}}; CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true)? True: false; Var configObj = {thumb: none ,, video / health / 2017/05/18 / vital-signs-stem-cell-study-offers-hope-for-als-a.cnn & # 39 ;, width: & 100% & # 39; section: # # # ; Network: cnn, markupId: wide-media_0, adsection: cnn.com_specialreports_vitalsigns_videopage, frameWidth: & # 39; 100% & # 39; ;, FrameHeight: 100% & posterImageOverride: {"mini": {"height": 124, "width": 220, "type": "jpg", "uri": "// i2.cdn.cnn .com / Cnnnext / dam / assets / 170518150154-vital signs-cell-cells-study-offers-hope-for-als-a-00064904-small-169.jpg ": 307," type ":" jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170518150154-vital-signs-stem-cell-study-offers -hope-for -sa-00064904-medium-plus-169.jpg "," small ": {" height ": 259," width ": 460," type ":" jpg " .cdn.cnn.com/cnnnext/dam/assets/170518150154-vital-signs-stem-cell-study-offers-hope-for-als-a-00064904-large-169.jpg " "Height": 438, "width": 780, "type": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170518150154-vi Tal-signs-stem- } "," Width ": {" height ": 619," width ": 1100," type ":" Jpg "," Uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170518150154-vital-signs-stem-cell-study-offers-hope- For-als-a-00064904- Super-169.jpg "," full16x9 ": {" height ": 900," width ": 1600," type ":" jpg "," uri ":" // i2. Cdn.cnn.com/cnnnext/ Dam / trumps / 170518150154-vital-signs-for-als-a-00064904-full-169.jpg "}," mini1x1 ": { 120, "type": "jpg", "uri": "// i2.cdn.cnn.com/cnnnext/dam/assets/170518150154-vital-signs-stem-cell- AutoVideo = false, callbackObj, containerEl, currentVideoCollection = [{"videoCMSUrl":"/videos/health/2017/05/18/vital-signs-stem-cell-study-offers-hope-for-als-a.cnn","videoId":"health/2017/05/18/vital-signs-stem-cell-study-offers-hope-for-als-a.cnn","videoUrl":"/videos/health/2017/05/18/vital-signs-stem-cell-study-offers-hope-for-als-a.cnn"},{"videoCMSUrl":"/video/data/3.0/video/health/2016/10/20/vital-signs-video-games-spc-a.cnn/index.xml","videoId":"health/2016/10/20/vital-signs-video-games-spc-a.cnn","videoUrl":"/videos/health/2016/10/20/vital-signs-video-games-spc-a.cnn/video/playlists/vital-signs-video-games-brain-training/"},{"videoCMSUrl":"/video/data/3.0/video/health/2016/10/20/vital-signs-video-games-spc-b.cnn/index.xml","videoId":"health/2016/10/20/vital-signs-video-games-spc-b.cnn","videoUrl":"/videos/health/2016/10/20/vital-signs-video-games-spc-b.cnn/video/playlists/vital-signs-video-games-brain-training/"},{"videoCMSUrl":"/video/data/3.0/video/health/2016/10/20/vital-signs-video-games-spc-c.cnn/index.xml","videoId":"health/2016/10/20/vital-signs-video-games-spc-c.cnn","videoUrl":"/videos/health/2016/10/20/vital-signs-video-games-spc-c.cnn/video/playlists/vital-signs-video-games-brain-training/"},{"videoCMSUrl":"/video/data/3.0/video/living/2015/10/05/brain-training-to-help-with-anxiety-and-adhd.cnn/index.xml","videoId":"living/2015/10/05/brain-training-to-help-with-anxiety-and-adhd.cnn","videoUrl":"/videos/living/2015/10/05/brain-training-to-help-with-anxiety-and-adhd.cnn/video/playlists/vital-signs-video-games-brain-training/"}] currentVideoCollectionId = ", isLivePlayer = False, moveToNextTimeout, mutePlayerEnabled = false, nextVideoId =, NextVideoUrl =, turnOnFlashMessaging = false, videoPinner, videoEndSlateImpl; If (CNN.autoPlayVideoExist === false) {autoStartVideo = true; If (autoStartVideo === true) {if (turnOnFlashMessag Ing == 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, 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) {/ * Removes the metadata script videoobject.Si The user clicks other than the video loaded initially * / 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 is null, it means that it has not yet been initialized to * pass in the thumbnail too. * / 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; {// * Removes the videoobject metadata script. If the user clicks other than the initial upload Video * / jQuery (articleElem) .closest (Cn-carousel-medium-strip). Parent (). Find script [name="metaScript"]. Remove (); CNNVIDEOAPI.CNNVideoManager.getInstance (). PlayVideo (ConfigObj.markupId, videoId, overrides);} / * The video player is not auto play, so initial (shouldStartVideo && this.carouselClickAutostartsVideo) {try {videoPlayer.videoInstance.start ();} catch (StartError) {console.log ("Error in video player initialization" + startError);}} * /}}}} catch Video player "+ error);}} function setInitialVideoEmbed () {} function initialize () {var carousel = jQuery (document.getElementById (cn-current_video_collection)). Finds (Js-owl-carousel), owl; If (carousel) {carousel.find ('Cn__column.carousel__content__item'). Find (& # 39; a). RemoveAttr (hr Ef); JQuery (carousel) .on (click & # 39; .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 {initialalize ();} CNN.INJECTOR.executeFeature (emptyx). Done (function () {var initMeta = {id: "health / 2017/05/18 / vital-signs-stem-cell-study-offers-hope-for-als-a.cnn", isEmbeddable: "yes"} ; CNN.Videx.EmbedButton.updateCode (initMeta);}). Fail (function () {throw Can not retrieve empty bundle.}; Update of the functionCurrentlyPlaying (videoId) {var videoCollectionId = current_video_collection, video_containers = 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 (& quot; Carousel__content__item & quot ;, GetElementById document (cn-current_video_collection)); GigyaShareElement = jQuery (div.js-gigya-sharebar); If (typeof gigyaShareElement! === undefined) {jQuery (gigyaShareElement) .attr (title title & # 39; VideocardContents.headlinePlainText || & # 39; JQuery (gigyaShareElement) .attr (data-description), videocardContents.descriptionPlainText || & # 39; JQuery (gigyaShareElement) .attr (data-link, domain + videocardContents.url | | & # 39;); JQuery (gigyaShareElement) .attr (data-image-src), videocardContents.media.elementContents.imageUrl || &};} whatsappShareElement = jQuery (div. Share-bar-whatsapp-container); If (typeof whatsappShareElement! == undefined) {jQuery (whatsappShareElement) .attr (title title), videoocontrainte.headlinePlainText || & # 39; 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: first -child). AppendixNow 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 -1jv7ivp, VideoDescriptionDivId: js-video_description-1jv7ivp, videoDurationDivId: js-video_duration-1jv7ivp, videoTitleDivId: js-leaf-video_headline-1jv7ivp & # 39; 39 ;, videoSourceDivId: js-video_sourceName-1jv7ivp}} if (CNN.Utils.exist (videocardContents.showName)) {if (CNN.Utils.exists (videocardContents.showUrl)) {showDetailsSpanContent = # 39; & # 39; + VideocardContents.showName + | Else {showDetailsSpanContent = videocardContents.showName + | ($ Metric), $ isShowDetailsSpanExists = $ show.find (& # 39; span & # 39; HashClass (metadata - show__name), $ showName = JQuery (.Metadata - show__name), fastdom.mutate (function updateShowInfo () {if (! $ IsShowDetailsSpanExists ) {$ Show.prepend (& # 39;
Comments
Post a Comment