Lunes 20 de febrero de 2023
El tradicional Entierro de la Sardina pone el broche de oro a un exitoso Carnaval de Adra 2023
.nda-portada-widget {
display: block;
width: 100%;
box-sizing: border-box;
margin: 24px 0;
border: 2px solid #f58220;
border-radius: 5px;
overflow: hidden;
background: #fff;
font-family: Arial, Helvetica, sans-serif;
}
.nda-portada-cabecera {
background: #f58220;
color: #fff;
padding: 11px 14px;
font-size: 17px;
font-weight: 800;
letter-spacing: .5px;
line-height: 1.3;
}
.nda-portada-contenido {
display: flex;
align-items: center;
gap: 14px;
padding: 13px;
color: #222 !important;
text-decoration: none !important;
background: #fff;
transition: background .2s ease;
}
.nda-portada-contenido:hover {
background: #fff5ec;
}
.nda-portada-contenido img {
display: block;
width: 34%;
max-width: 190px;
height: 110px;
object-fit: cover;
flex-shrink: 0;
border-radius: 3px;
}
.nda-portada-contenido img[hidden] {
display: none;
}
.nda-portada-texto {
display: flex;
flex-direction: column;
gap: 9px;
min-width: 0;
}
#nda-portada-titular {
font-size: 18px;
font-weight: 700;
line-height: 1.35;
}
.nda-portada-leer {
color: #e76f00;
font-size: 13px;
font-weight: 700;
}
@media (max-width: 480px) {
.nda-portada-contenido {
gap: 10px;
padding: 10px;
}
.nda-portada-contenido img {
width: 36%;
height: 88px;
}
#nda-portada-titular {
font-size: 15px;
}
.nda-portada-cabecera {
font-size: 15px;
}
}
(function () {
const rss = 'https://www.noticiasdealmeria.com/rss/tag/principal-2';
const titulo = document.getElementById('nda-portada-titular');
const enlace = document.getElementById('nda-portada-enlace');
const imagen = document.getElementById('nda-portada-imagen');
function textoDe(elemento, nombre) {
const nodo = elemento.getElementsByTagName(nombre)[0];
return nodo ? nodo.textContent.trim() : '';
}
function cargarPortada() {
fetch(rss, { cache: 'no-cache' })
.then(function (respuesta) {
if (!respuesta.ok) throw new Error('RSS no disponible');
return respuesta.text();
})
.then(function (xmlTexto) {
const xml = new DOMParser().parseFromString(
xmlTexto, 'text/xml'
);
if (xml.querySelector('parsererror')) {
throw new Error('RSS no válido');
}
const noticia = xml.querySelector('item');
if (!noticia) throw new Error('No hay noticias');
const titular = textoDe(noticia, 'title');
const url = textoDe(noticia, 'link');
if (!titular || !url) throw new Error('Noticia incompleta');
const destino = new URL(url, location.href);
if (destino.origin !== location.origin) {
throw new Error('Enlace de noticia no válido');
}
titulo.textContent = titular;
enlace.href = destino.href;
let foto = '';
const contenido = noticia.getElementsByTagNameNS(
'*', 'content'
)[0];
const enclosure = noticia.querySelector('enclosure');
if (contenido) {
foto = contenido.getAttribute('url') || '';
}
if (!foto && enclosure) {
foto = enclosure.getAttribute('url') || '';
}
if (!foto) {
const descripcion = textoDe(noticia, 'description');
const documento = new DOMParser().parseFromString(
descripcion, 'text/html'
);
const img = documento.querySelector('img');
if (img) foto = img.getAttribute('src') || '';
}
if (foto) {
try {
const fotoURL = new URL(foto, location.href);
if (fotoURL.protocol === 'https:' ||
fotoURL.protocol === 'http:') {
imagen.src = fotoURL.href;
imagen.hidden = false;
}
} catch (e) {}
}
})
.catch(function () {
titulo.textContent = 'Consulta las noticias destacadas en portada';
enlace.href = 'https://www.noticiasdealmeria.com/';
imagen.hidden = true;
});
}
cargarPortada();
window.setInterval(cargarPortada, 5 * 60 * 1000);
})();
La ciudad de Adra ha despedido el Carnaval 2023 con el tradicional Entierro de la Sardina, un evento que ha tenido lugar este domingo y que ha reunido a cientos de personas en la Playa de San Nicolás. Un perfecto broche de oro, que ha contado con el acompañamiento musical de la Banda Ortiz de Villajos, para una fiesta de las máscaras que ha sido todo un éxito de participación, tanto en el pasacalles infantil celebrado en la barriada de La Curva, como el Pasacalles Escolar que recorrió Natalio Rivas el pasado viernes y el Desfile de Carnaval, un pasacalles que se desarrolló el sábado y que fue sucedido por la actuación de la primera chirigota formada por personas con discapacidad de Adra y el tradicional concurso de disfraces, dotado con casi 800 euros, premios fueron entregados por el alcalde, Manuel Cortés, y concejales de su equipo de Gobierno.
TEMAS RELACIONADOS: