1document.addEventListener('DOMContentLoaded', () => { 2 const clocks = document.querySelectorAll('.city-clock'); 3 4 function updateClocks() { 5 const now = new Date(); 6 clocks.forEach(el => { 7 const city = el.dataset.city; 8 const tz = worldClockData[city]; 9 if (!tz) return; 10 11 const time = new Intl.DateTimeFormat('ru-RU', { 12 timeZone: tz, 13 hour: '2-digit', 14 minute: '2-digit', 15 second: '2-digit' 16 }).format(now); 17 18 el.innerHTML = `<strong>${time}</strong><span>${city}</span>`; 19 }); 20 } 21 22 updateClocks(); 23 setInterval(updateClocks, 1000); 24});
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.