Leer más
`;
fragment.appendChild(notificationCard);
});
// Append all notification cards at once
notiOBJ.innerHTML = »;
notiOBJ.appendChild(fragment);
} catch (error) {
console.error(«Error fetching notifications:», error);
notiOBJ.innerHTML = ‘
Hubo un error al cargar las notificaciones. Inténtalo más tarde.
‘;
}
}
const userSessionFullName = localStorage.getItem(‘userSessionFullName’);
if (userSessionFullName) {
const nameUserSessionElements = document.querySelectorAll(‘.nameUserSession’);
// Verificar si hay elementos con la clase nameUserSession
if (0 < nameUserSessionElements.length) {
nameUserSessionElements.forEach((element) => {
element.textContent=»Hola, » + userSessionFullName.split(‘ ‘)[0]; // eslint-disable-line no-param-reassign
});
}
}
tp.push([«init», function() {
window.domBatch.add(() => {
const elements = document.querySelectorAll(‘.showPianoLoginPl’);
elements.forEach((element) => {
element.addEventListener(‘click’, () => {
// eslint-disable-next-line no-shadow
const tp = window.tp || [];
const isAuthenticated = tp.user.isUserValid();
const domainName = window.location.hostname;
const loginPath=»/login»;
const profilePath=»/mi-perfil»;
const url = ` ? profilePath : loginPath}`;
window.open(url, ‘_self’);
});
});
});
if (tp.pianoId.isUserValid()) {
const tokenUser = JSON.stringify({
tokenUser: tp.pianoId.getToken()
});
const myHeaders = new Headers();
myHeaders.append(‘Content-Type’, ‘application/json’);
const request = {
method: ‘POST’,
headers: myHeaders,
body: tokenUser,
mode: ‘cors’,
redirect: ‘follow’,
};
fetch(‘ request)
.then(response => response.json())
.then((data) => {
let isSuscriptionActive=»no-suscriptor»;
if (data.status === ‘active’) {
isSuscriptionActive=»suscriptor»;
window.domBatch.add(() => {
jQuery(‘#ux-btn-impreso’).show();
});
}
if (data.status !== ‘active’) {
window.domBatch.add(() => {
jQuery(‘#btn-suscribase-header’).attr(‘style’, ‘display:inline-block !important’);
});
}
// SETEA EL BADGE DE NOTIFICACIONES
jQuery.ajax({
url: `
type: ‘GET’,
success: (dataresp) => {
window.domBatch.add(() => {
const notifications = jQuery(‘.ux-notifications’);
const notificationsHeader = jQuery(‘.ux-notifications-header’);
const notiNumber = jQuery(‘.ux-noti-number’);
const unreadCount = dataresp?.unread || 0;
if (unreadCount > 0) {
// Show notification badges
notifications.css(‘display’, ‘inline-block’).text(unreadCount);
notificationsHeader.css(‘display’, ‘inline-block’).text(unreadCount);
notiNumber.css(‘display’, ‘block’)
.css(‘text-align’, ‘center’)
.html(`Hay ${unreadCount} notificación${unreadCount > 1 ? ‘es’ : »} nueva${unreadCount > 1 ? ‘s’ : »}
Leer`);
} else {
// Hide all notification elements
notifications.hide();
notificationsHeader.hide();
notiNumber.hide();
}
});
},
error: (xhr, status, error) => {
console.error(`Error fetching notifications: ${status} – ${error}`);
}
});
const cUrl = window.location.pathname;
if (‘/mis-notificaciones/’ === cUrl) {
//FETCH NOTIFICATIONS HERE
// Call the function to fetch notifications
fetchNotifications(isSuscriptionActive);
}
})
.catch((error) => {
console.error(‘Error:’, error)
});
} else {
window.domBatch.add(() => {
jQuery(‘#btn-suscribase-header’).removeClass(‘d-none’);
});
}
}]);
Deporte Nacional
El boxeador guatemalteco defenderá su título interino supermediano del CMB ante el invicto croata en el Galen Center de Los Ángeles.
Léster Martínez y Luka Plantić se enfrentarán esta noche por el Título Mundial Interino del CMB. (Foto Prensa Libre)
Léster Martínez afrontará este sábado 29 de agosto uno de los desafíos más importantes de su carrera cuando defienda su título interino supermediano del Consejo Mundial de Boxeo (CMB) frente al invicto croata Luka Plantić.
El combate será el estelar de la cartelera que se celebrará en el Galen Center de Los Ángeles, California, escenario en el que el guatemalteco buscará mantener su invicto y dar otro paso hacia una oportunidad por el título absoluto de las 168 libras.
Martínez y Plantić superaron sin inconvenientes el pesaje oficial previo al enfrentamiento.
El guatemalteco registró 167.2 libras, mientras que el croata marcó 167, por lo que ambos quedaron dentro del límite establecido para la división supermediano.El enfrentamiento ha generado expectativa por el historial de ambos pugilistas.
Martínez llega como campeón interino del CMB, mientras que Plantić lo hará con su condición de invicto y con la intención de arrebatarle el cinturón al guatemalteco.
¿Dónde ver la pelea de Léster Martínez?
La pelea entre Léster Martínez y Luka Plantić podrá seguirse a través de ProBox TV, plataforma que transmitirá la cartelera desde Los Ángeles. La señal también estará disponible mediante el canal oficial de ProBox TV en YouTube.
El acceso a la transmisión en vivo puede requerir una suscripción o membresía, por lo que los aficionados deberán verificar las condiciones de acceso de la plataforma antes del inicio de la cartelera.
La pelea se disputará durante la noche de este sábado, en horario de Guatemala. Martínez buscará aprovechar la oportunidad para defender su cinturón y mantener vigente el objetivo de convertirse en campeón mundial absoluto.
Para conocer todos los detalles del enfrentamiento, los lectores también pueden consultar la previa de Léster Martínez vs. Luka Plantić, las declaraciones del boxeador guatemalteco antes de la pelea y la información del pesaje oficial, donde ambos cumplieron con el límite de la división.
