1document.addEventListener('DOMContentLoaded', function () { 2 3 /* ========================================================== 4 HORA OFICIAL (YA EXISTENTE) 5 ========================================================== */ 6 document.querySelectorAll('.als-hora-oficial').forEach(function (el) { 7 8 let timestamp = parseInt(el.dataset.timestamp, 10) * 1000; 9 10 const fechaEl = el.querySelector('.als-fecha'); 11 const h = el.querySelector('.als-h'); 12 const m = el.querySelector('.als-m'); 13 const s = el.querySelector('.als-s'); 14 15 const dias = ['Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb']; 16 const meses = [ 17 'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 18 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic' 19 ]; 20 21 function render() { 22 const d = new Date(timestamp); 23 24 // Fecha 25 const fechaTexto = 26 dias[d.getDay()] + ', ' + 27 String(d.getDate()).padStart(2, '0') + ' ' + 28 meses[d.getMonth()] + ' ' + 29 d.getFullYear(); 30 31 fechaEl.textContent = fechaTexto; 32 33 // Hora 34 h.textContent = String(d.getHours()).padStart(2, '0'); 35 m.textContent = String(d.getMinutes()).padStart(2, '0'); 36 s.textContent = String(d.getSeconds()).padStart(2, '0'); 37 38 timestamp += 1000; 39 } 40 41 render(); 42 setInterval(render, 1000); 43 }); 44 45 46 /* ========================================================== 47 TABLAS GUTENBERG â ARREGLAR CELDAS VACÃAS 48 ========================================================== */ 49 document.querySelectorAll('.wp-block-table td').forEach(function (td) { 50 51 // Texto real visible 52 const text = td.textContent.replace(/\s+/g, '').trim(); 53 54 // ¿Tiene contenido útil? 55 const hasContent = 56 text.length > 0 || 57 td.querySelector('a, img, figure'); 58 59 // Si está visualmente vacÃa â inyectar 60 if (!hasContent) { 61 td.innerHTML = ' '; 62 td.classList.add('als-td-vacia'); 63 } 64 }); 65 66});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.