
.img_fo{
aspect-ratio: 16/9;
width: 100%;
height: auto;
margin-bottom: 8px;
object-fit: contain;
}
.badge-pl-plus__md-and-lg__element-text{
font-family: “Acto-Tiny-Medium” !important;
color: #0f213b !important;
font-size: 12px !important;
line-height: 15px !important;
z-index: 2 !important;
padding-top: 2px !important;
padding-right: 2px !important;
}
.posted-on{
color: #474747;
font-family: Acto-Small-Light;
font-size: 14px;
font-style: normal;
font-weight: 300;
line-height: 18px;
}
.ux-excerpt-post{
color: #474747 !important;
font-family: Acto-Large-Light !important;
font-size: 20px !important;
font-style: normal !important;
font-weight: 300 !important;
line-height: 27px !important;
}
En clave de Fo
Malas nuevas
Caricatura de Fo
Foto:
document.addEventListener(‘DOMContentLoaded’, function () {
const saveFavImg = document.getElementById(‘save-fav-img’);
if (saveFavImg) {
saveFavImg.addEventListener(‘click’, function () {
const user = tp?.pianoId?.getUser?.();
if (user && user.uid !== ‘0’ && this.classList.contains(‘tosavefav’)) {
const postIdInput = document.getElementById(‘id_post’);
const post_id = postIdInput ? postIdInput.value : null;
if (!post_id) return;
fetch(‘https://foservices.prensalibre.com/usuario/favoritos/save_piano’, {
method: ‘POST’,
headers: {
‘Content-Type’: ‘application/x-www-form-urlencoded’,
},
body: new URLSearchParams({
uid: user.uid,
aid: post_id
}),
})
.then(response => response.json())
.then(data => {
const actions = saveFavImg.querySelector(‘.actions’);
if (actions) {
actions.textContent = data.message;
}
sendPostMessageGtag({
event_label: ‘Artículo guardado’,
value: ‘1’,
}, ‘articulos_guardados’);
sendPostMessageGtag({
event_label: ”,
value: ‘1’,
}, ‘articulos_guardados_detalle’);
if (data.message !== ‘guardar’) {
saveFavImg.classList.remove(‘tosavefav’);
saveFavImg.classList.add(‘tomyfavs’);
}
})
.catch(error => {
console.error(‘Error en la petición:’, error);
});
}
if (this.classList.contains(‘tomyfavs’)) {
window.open(‘https://www.prensalibre.com/mis-articulos/’, ‘_blank’);
}
});
}
});

