Barcelona terror attack: Cómo sucedió

'); $ vidEndSlate.removeClass (' video__end-slate-inactive '). AddClass (' video__end-slate-active '); CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true)? Anchura: '100%', anchura: 100%, 'var / s / , Altura: '100%', sección: 'doméstico', perfil: 'expansión', red: 'cnn', markupId: 'large-media_0', adsection: 'const-video-leaf' , FrameHeight: '100%', posterImageOverride: {"mini": {"height": 124, "width": 220, "tipo": "jpg", "uri": "// i2.cdn.cnn.com /cnnnext/dam/assets/170817210115-las-ramblas-police-small-169.jpg"},"xsmall":{"height":173,"width":307,"type":"jpg","uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170817210115-las-ramblas-police-medium-plus-169.jpg"},"small":{"height":259,"width ": 460," tipo ":" jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170817210115-las-ramblas-police-large-169.jpg "}, Medio ": {" height ": 438," width ": 780," tipo ":" jpg "," uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170817210115-las-ramblas -police-exlarge-169.jpg "}," grande ": {" altura ": 619," anchura ": 1100," tipo ":" jpg "," uri ":" // i2.cdn.cnn.com / Cnnnext / dam / assets / 170817210115-las-ramblas -police-super-169.jpg "}," full16x9 ": {" height ": 900," width ": 1600," type ":" jpg "," uri ":" // i2.cdn.cnn.com /cnnnext/dam/assets/170817210115-las-ramblas-police-full-169.jpg"},"mini1x1":{"height":120,"width":120,"type":"jpg","uri ":" // i2.cdn.cnn.com/cnnnext/dam/assets/170817210115-las-ramblas-police-small-11.jpg"}}}autoStartVideo = false, callbackObj, containerEl, currentVideoCollection = [{«videoCMSUrl»:»/videos/world/2017/08/17/barcelona-las-ramblas-attack-spain-sje-lon-orig.cnn»,»videoId»:»world/2017/08/17/barcelona-las-ramblas-attack-spain-sje-lon-orig.cnn»,»videoUrl»:»/videos/world/2017/08/17/barcelona-las-ramblas-attack-spain-sje-lon-orig.cnn»},{«videoCMSUrl»:»/video/data/3.0/video/world/2017/08/17/witness-van-crash-barcelona.cnn/index.xml»,»videoId»:»world/2017/08/17/witness-van-crash-barcelona.cnn»,»videoUrl»:»/videos/world/2017/08/17/witness-van-crash-barcelona.cnn/video/playlists/van-plows-crowd-in-barcelona/»},{«videoCMSUrl»:»/video/data/3.0/video/world/2017/08/17/barcelona-van-attack-graphic-video.cnn/index.xml»,»videoId»:»world/2017/08/17/barcelona-van-attack-graphic-video.cnn»,»videoUrl»:»/videos/world/2017/08/17/barcelona-van-attack-graphic-video.cnn/video/playlists/van-plows-crowd-in-barcelona/»},{«videoCMSUrl»:»/video/data/3.0/video/tv/2017/08/17/barcelona-eye-witness-ejk-mob-lon-orig.cnn/index.xml»,»videoId»:»tv/2017/08/17/barcelona-eye-witness-ejk-mob-lon-orig.cnn»,»videoUrl»:»/videos/tv/2017/08/17/barcelona-eye-witness-ejk-mob-lon-orig.cnn/video/playlists/van-plows-crowd-in-barcelona/»},{«videoCMSUrl»:»/video/data/3.0/video/world/2017/08/17/van-plows-into-crowds-barcelona-ramblas-cnni.cnn/index.xml»,»videoId»:»world/2017/08/17/van-plows-into-crowds-barcelona-ramblas-cnni.cnn»,»videoUrl»:»/videos/world/2017/08/17/van-plows-into-crowds-barcelona-ramblas-cnni.cnn/video/playlists/van-plows-crowd-in-barcelona/»},{«videoCMSUrl»:»/video/data/3.0/video/world/2017/08/17/witness-van-crash-barcelona-sot-2.cnn/index.xml»,»videoId»:»world/2017/08/17/witness-van-crash-barcelona-sot-2.cnn»,»videoUrl»:»/videos/world/2017/08/17/witness-van-crash-barcelona-sot-2.cnn/video/playlists/van-plows-crowd-in-barcelona/»},{«videoCMSUrl»:»/video/data/3.0/video/world/2017/06/03/vehicles-used-as-weapons-jpm-orig.cnn/index.xml»,»videoId»:»world/2017/06/03/vehicles-used-as-weapons-jpm-orig.cnn»,»videoUrl»:»/videos/world/2017/06/03/vehicles-used-as-weapons-jpm-orig.cnn/video/playlists/van-plows-crowd-in-barcelona/»},{«videoCMSUrl»:»/video/data/3.0/video/us/2016/03/24/psychology-of-terror-sanjay-gupta-nws-orig.cnn/index.xml»,»videoId»:»us/2016/03/24/psychology-of-terror-sanjay-gupta-nws-orig.cnn»,»videoUrl»:»/videos/us/2016/03/24/psychology-of-terror-sanjay-gupta-nws-orig.cnn/video/playlists/van-plows-crowd-in-barcelona/»}] , CurrentVideoCollectionId = '', isLivePlayer = false, moveToNextTimeout, mutePlayerEnabled = false, nextVideoId = '', nextVideoUrl = '', turnOnFlashMessaging = false, videoPinner, videoEndSlateImpl; if (CNN.autoPlayVideoExist === false) (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 , MutePlayerEnabled); CNN.VideoPlayer.setFirstVideoInCollection (currentVideoCollection, configObj.markupId); var embedLinkHandler = {}, videoPinner, embedCodeCopy; función onVideoCarouselItemClicked (evt) {'use strict'; var videoId, articleElem, videoPlayer, thumbImageElem, thumbImageLargeSource = {VideoCollection: this.videoCollection, autostart: false}, shouldStartVideo = false, playerInstance; intenta {articleElem = jQuery (evt.currentTarget) .find ('article'); thumbImageElem = jQuery (articleElem) ) 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) {/ * Eliminar la secuencia de comandos de metadatos del videoobjeto.Si el usuario hace clic en otro video que el inicial cargado * / jQuery (articleElem) .closest ('.cn-carousel-medium-strip'). Parent (). Find ('script [194590]] remove () playerInstance.play (videoId, anula);}} else {videoPlayer = CNNVIDEOAPI.CNNVideoManager.getInstance (). GetPlayerByContainer (configObj.markupId); if (videoPlayer && videoPlayer.videoInstance) * If videoPlayer.videoInstance.cvp es null, lo que significa que no se ha inicializado aún así * pasar en la miniatura, también. * / 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;} si (videoPlayer.videoInstance.config) {if (videoPlayer.videoInstance.config.video! == videoId) {/ * Elimina la secuencia de comandos de metadatos de videoobject. Video * / jQuery (articleElem) .closest ('.cn-carousel-medium-strip') .producto (). Find ('script [name=»metaScript»]'). RemoveVIDIR () ConfigObj.markupId, videoId, overrides);} / * El reproductor de video no es autoplay, así que init itif (shouldStartVideo && this.carouselClickAutostartsVideo) {try {videoPlayer.videoInstance.start ();} catch (startError) {console.log (Error en la inicialización del reproductor de video + error);}} función setInitialVideoEmbed () {} function initialize () ) {Var carousel = jQuery (documento.getElementById ('cn-current_video_collection')). ​​Find ('.js-owl-carousel'), owl; if (carrusel) {carousel.find ('.cn__column.carousel__content__item'). Find ('a'). RemoveAttr ('hr E) jQuery (carrusel) .on ('clic', '.cn__column.carousel__content__item', onVideoCarouselItemClicked);}} if (CNN.VideoPlayer.getLibraryName (configObj.markupId) === 'videoLoader') {window.CNNVideoAPILoadCompleteHandlers = Window.CNNVideoAPILoadCompleteHandlers? Window.CNNVideoAPILoadCompleteHandlers: []; window.CNNVideoAPILoadCompleteHandlers.push (inicializar); window.CNNVideoAPILoadCompleteHandlers.push (setInitialVideoEmbed);} else {initialize ();} CNN.INJECTOR.executeFeature ('videx'). {Var initMeta = {id: "world / 2017/08/17 / barcelona-las-ramblas-attack-spain-sje-lon-orig.cnn", isEmbeddable: "yes"}; CNN.Videx.EmbedButton.updateCode InitMeta), fall (function () {throw 'Incapaz de buscar el 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', documento. GetElementById ('cn-current_video_collection')); gigyaShareElement = jQuery ('div.js-gigya-sharebar'); if (typeof gigyaShareElement! == 'undefined') {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.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', dominio + videocardContents.url || ');} If (carrusel && currentVideoCollectionContainsId (videoId)) {owl = carousel.data (' owl.carousel ') || {}; ShowIndex = getCurrentVideoIndex (videoId); si (typeof owl.to === 'function') {owl.to (showIndex);} $ owlPrevItem = CNN.Utils.exists (owl. $ Element)? $ OwlPrevItem.removeClass ('cd-active'); $ owlPrevItem. '$ OwlPrevItem.removeClass (' cd-active '); 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 (' -child ') .append ('

Reproducción en curso

'); if (Modernizr &&! Modernizr.phone) {$ owlFirstItem.find ('. Metadata.init ({dateCreated: videocardContents.dateCreated, descriptionText: videocardContents.descriptionText, duration: videocardContents.duration, sourceLink: videocardContents.sourceLink, sourceName: videocardContents.sourceName, title: videocardContents.headlineText}, {videoCollectionDivId: 'cn-u3kj3l' , VideoDescriptionDivId: 'js-video_description-u3kj3l', videoDurationDivId: 'js-video_duration-u3kj3l', videoTitleDivId: 'js-leaf-video_headline-u3kj3l', videoSourceDivId: .exists (videocardContents.showName)) {if (CNN.Utils.exists (videocardContents.showUrl)) {showDetailsSpanContent = '' + videocardContents.showName + ' | ';} Else {showDetailsSpanContent = videocardContents.showName +' | ',' Showname ',' showname ',' showname ',' showname ',' showname ',' showname ' = JQuery ('. Metadata – show__name'); fastdom.mutate (function updateShowInfo () {if (! $ IsShowDetailsSpanExists) {$ show.prepend ('

Fuente CNN