Contenido
Terremoto
Marruecos confirma casi 3 mil muertos y 5 mil 500 heridos tras terremoto
Los servicios de emergencia de Marruecos continúan desplegados en las zonas damnificadas, con sólo equipos de cuatro países, puesto que Rabat no ha aceptado la ayuda ofrecida por otros gobiernos alegando razones logísticas.
// ------------------------------------------------------------------------------------------------------------------------------- // PHOTOSWIPE
var initPhotoSwipeFromDOM = function(gallerySelector) {
// parse slide data (url, title, size ...) from DOM elements // (children of gallerySelector) var parseThumbnailElements = function(el) { var thumbElements = el.childNodes, numNodes = thumbElements.length, items = [], figureEl, linkEl, size, item;
for(var i = 0; i element
// include only element nodes if(figureEl.nodeType !== 1) { continue; }
linkEl = figureEl.children[0]; // element
size = linkEl.getAttribute('data-size').split('x');
// create slide object item = { src: linkEl.getAttribute('href'), w: parseInt(size[0], 10), h: parseInt(size[1], 10) };
if(figureEl.children.length > 1) {
//
if(linkEl.children.length > 0) { // thumbnail element, retrieving thumbnail url item.msrc = linkEl.children[0].getAttribute('src'); }
item.el = figureEl; // save link to element for getThumbBoundsFn items.push(item); }
return items; };
// find nearest parent element var closest = function closest(el, fn) { return el && ( fn(el) ? el : closest(el.parentNode, fn) ); };
// triggers when user clicks on thumbnail var onThumbnailsClick = function(e) { e = e || window.event; e.preventDefault ? e.preventDefault() : e.returnValue = false;
var eTarget = e.target || e.srcElement;
// find root element of slide var clickedListItem = closest(eTarget, function(el) { return (el.tagName && el.tagName.toUpperCase() === 'FIGURE'); });
if(!clickedListItem) { return; }
// find index of clicked item by looping through all child nodes // alternatively, you may define index via data- attribute var clickedGallery = clickedListItem.parentNode, childNodes = clickedListItem.parentNode.childNodes, numChildNodes = childNodes.length, nodeIndex = 0, index;
for (var i = 0; i = 0) { // open PhotoSwipe if valid index found openPhotoSwipe( index, clickedGallery ); } return false; };
// parse picture index and gallery index from URL (#&pid=1&gid=2) var photoswipeParseHash = function() { var hash = window.location.hash.substring(1), params = {};
if(hash.length getThumbBoundsFn section of documentation for more info var thumbnail = items[index].el.getElementsByTagName('img')[0], // find thumbnail pageYScroll = window.pageYOffset || document.documentElement.scrollTop, rect = thumbnail.getBoundingClientRect();
return {x:rect.left, y:rect.top + pageYScroll, w:rect.width}; }
};
// PhotoSwipe opened from URL if(fromURL) { if(options.galleryPIDs) { // parse real index when custom PIDs are used // http://photoswipe.com/documentation/faq.html#custom-pid-in-url for(var j = 0; j
MADRID (Europa Press).- Más de 2 mil 900 personas perdieron la vida como consecuencia del terremoto con un epicentro de magnitud de 6.8 en la escala de Richter que sacudió la noche del viernes 8 la zona del Alto Atlas, en el centro de Marruecos, según un nuevo balance oficial de víctimas divulgado este martes 12 por el Ministerio del Interior marroquí.
El epicentro se situó a 71 kilómetros al sur de la ciudad de Marrakech, cuya ciudad es muy turística y uno de los centros económicos de Marruecos, y 20 minutos después hubo una réplica de magnitud de 4.9, según el Servicio Geológico de Estados Unidos.
En concreto, el gobierno tiene documentados ya 2 mil 901 fallecidos, mientras que la cifra de heridos asciende a 5 mil 530. Tan sólo en la provincia de Al Hauz murieron mil 643 personas, mientras que en Tarudant el dato asciende a 976 muertos, según un informe que da cuenta de muertes en una decena de regiones.
Los servicios de emergencia de Marruecos continúan desplegados en las zonas damnificadas, hasta donde sólo han podido acceder equipos enviados por cuatro países -España, Reino Unido, Qatar y Emiratos Árabes Unidos-, puesto que Rabat, la capital de Marruecos, no ha aceptado la ayuda ofrecida por otros gobiernos alegando razones logísticas.
Comentarios
Otras Noticias
// Obtener todos los elementos con clase .col-md-12 var colElements = document.querySelectorAll('.col-md-12');
// Iterar sobre cada elemento colElements.forEach(function(element) { // Verificar si tiene un hijo inmediato con clase .titulo-region var tituloRegion = element.querySelector('.titulo-region');
if (tituloRegion) { // Agregar la clase .is-sticky al elemento padre element.classList.add('is-sticky'); } });
// Obtener el elemento article dentro de .fila-especial-v2 .p50 var articleElement = document.querySelector('.home .fila-especial-v2 .p50 article');
// Obtener el texto del elemento .z-foto .bajada p var bajadaText = articleElement.querySelector('.z-foto .bajada p').textContent;
// Crear un nuevo elemento para mostrar el texto obtenido var textoElement = document.createElement('p'); textoElement.textContent = bajadaText;
// Obtener el elemento .z-txt .titulo dentro del article var tituloElement = articleElement.querySelector('.z-txt .titulo');
// Insertar el nuevo elemento al final del article articleElement.appendChild(textoElement);
Cortesía de Proceso.