Widget:DzScript2: mudanças entre as 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...'
(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 diferença)
5 667

edições