5 667
edições
(Criou página com '<script> document.addEventListener('DOMContentLoaded', function () { function getWeekNumber(date) { let d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); let dayNum = d.getUTCDay() || 7; // Ensures Sunday (0) is the last day of the week let yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); return Math.ceil((((d - yearStart) / 86400000) + dayNum) / 7); // Calculate the week number } const url = window.location.ori...') |
Sem resumo de edição |
||
Linha 11: | Linha 11: | ||
const dzCard = document.getElementById('dz-card'); | const dzCard = document.getElementById('dz-card'); | ||
fetch(' | fetch('https://worldtimeapi.org/api/timezone/America/Sao_Paulo') | ||
.then(response => response.json()) | .then(response => response.json()) | ||
.then(data => { | .then(data => { |