Contenido
Fórmula 1
“Checo” Pérez acaba segundo y sube al podio del GP de Monza
// ------------------------------------------------------------------------------------------------------------------------------- // 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 < numNodes; i++) {
figureEl = thumbElements[i]; //
// 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 < numChildNodes; i++) { if(childNodes[i].nodeType !== 1) { continue; } if(childNodes[i] === clickedListItem) { index = nodeIndex; break; } nodeIndex++; } if(index >= 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 < 5) { return params; } var vars = hash.split('&'); for (var i = 0; i < vars.length; i++) { if(!vars[i]) { continue; } var pair = vars[i].split('='); if(pair.length < 2) { continue; } params[pair[0]] = pair[1]; } if(params.gid) { params.gid = parseInt(params.gid, 10); } return params; }; var openPhotoSwipe = function(index, galleryElement, disableAnimation, fromURL) { var pswpElement = document.querySelectorAll('.pswp')[0], gallery, options, items; items = parseThumbnailElements(galleryElement); // define options (if needed) options = { // define gallery index (for URL) galleryUID: galleryElement.getAttribute('data-pswp-uid'), getThumbBoundsFn: function(index) { // See Options -> 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 < items.length; j++) { if(items[j].pid == index) { options.index = j; break; } } } else { // in URL indexes start from 1 options.index = parseInt(index, 10) - 1; } } else { options.index = parseInt(index, 10); } // exit if index not found if( isNaN(options.index) ) { return; } if(disableAnimation) { options.showAnimationDuration = 0; } // Pass data to PhotoSwipe and initialize it gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options); gallery.init(); }; // loop through all gallery elements and bind events var galleryElements = document.querySelectorAll( gallerySelector ); for(var i = 0, l = galleryElements.length; i < l; i++) { galleryElements[i].setAttribute('data-pswp-uid', i+1); galleryElements[i].onclick = onThumbnailsClick; } // Parse URL and open gallery if it contains #&pid=3&gid=1 var hashData = photoswipeParseHash(); if(hashData.pid && hashData.gid) { openPhotoSwipe( hashData.pid , galleryElements[ hashData.gid - 1 ], true, true ); } }; // execute above function initPhotoSwipeFromDOM('.my-gallery'); // ====================================== // FIN SCRIPTS PHOTOSWIPE // ======================================
CIUDAD DE MÉXICO (proceso.com.mx).-El piloto mexicano Sergio “Checo” Pérez volvió a subir al podio, pues quedó en segundo lugar, solo por detrás de Max Vertasppen en el Gran Premio de Italia. El tercer puesto fue para Carlos Sainz (Ferrari).
Sainz comenzó sólido en el Autódromo Nacional de Monza y mantuvo el liderato general de la carrera en la primera vuelta, por su parte, el Checo ostentó la quinta posición. Para la segunda vuelta, Verstappen mantuvo a raya a Charles Leclerc (Ferrari), quien buscaba quedarse con el segundo lugar.
LAP 2/51
Sainz leads Verstappen, Leclerc, Russell and Perez as we begin the second lap#ItalianGP #F1 pic.twitter.com/x6vkWmz2vQ
— Formula 1 (@F1) September 3, 2023
En la vuelta 14, la batalla no sólo se mantuvo en los primeros tres lugares, sino también entre el entonces cuarto lugar, George Russell (Mercedes) y Sergio Pérez. Nadie daba tregua para ser superado.
El momento que marcó el podio final de la carrera ocurrió en la vuelta 15, pues Verstappen no especuló y se lanzó al ataque para rebasar a Sainz. Los Ferrari no pudieron contener el embate del neerlandés. Por su parte, el Checo rebasó a Russell y se posicionó en cuarto lugar.
LAP 15/51
Sainz's defense finally cracks as he locks up a Turn 1 uD83DuDE31
Verstappen and Sainz run millimetres apart through Curva Grande, and Verstappen takes the lead!#ItalianGP #F1 pic.twitter.com/X9YZAYoKHM
— Formula 1 (@F1) September 3, 2023
En la vuelta 32, el mexicano dejó claro que su objetivo era el podio y rebasó a Leclerc para arrebatarle el tercer lugar. Conforme avanzó la carrera y a falta de 15 vueltas, Verstappen se colocó como líder absoluto con ocho segundo de ventaja sobre Sainz.
LAP 32/51
Perez wrestles third from Leclerc, and sets off after Sainz #ItalianGP #F1 pic.twitter.com/1XsTqBnB9U
— Formula 1 (@F1) September 3, 2023
Checo Pérez no dejó de pisar el acelerador y en la vuelta 46 se colocó como segundo lugar y, una vuelta después se colocó dos segundos por delante sobre Sainz. Red Bull comenzó a controlar la batalla que se estaba dando en Monza. Ventaja que la escudería suiza ya no soltó.
LAP 46/51
After spending roughly half the race trying to get past, Perez finally gets Sainz for second! It's a Red Bull 1-2#ItalianGP #F1 pic.twitter.com/fwc7OCCZji
— Formula 1 (@F1) September 3, 2023
Tras las 51 vueltas, el GP de Italia culminó con el 1-2 de Red Bull, con Verstappen como primer lugar y Ferrari en tercer puesto con el monoplaza de Sainz. Este segundo lugar mantiene en la lucha por el campeonato de pilotos a "Checo" Pérez.
VERSTAPPEN WIIIIIINS!
He never looked back after taking the lead at the Temple of Speed, taking another crushing victory in 2023
It's his TENTH in-a-row!#ItalianGP #F1 pic.twitter.com/8NRPP5cehM
— Formula 1 (@F1) September 3, 2023
Campeonato de pilotos, primeros cinco lugares
Max Verstappen (Red Bull), 364 puntos.
Sergio Pérez (Red Bull), 219.
Fernando Alonso (Aston Martin), 170.
Lewis Hamilton (Mercedes), 16
Carlos Sainz (Ferrari), 117.
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.

Dejanos un comentario: