function updateWeekNumber() {
  btnSelectedWeek.innerHTML = 'KW ' + selectedYearWeek[1] + ', ' + selectedYearWeek[0];
  // Set dates in calendar header
  let screenWidth = window.innerWidth;
  weekdayTitle.forEach((element, index) => {
    element.innerHTML = weekdays[index] + (screenWidth <= 1000 ? '<br>' : ', ') + selectedYearWeek[2][index];
  });
}
/**
 * Updates the week number and week dates
 */
Updates the week number and week dates
Updates the week number and week dates
function updateWeekNumber() {
  btnSelectedWeek.innerHTML = 'KW ' + selectedYearWeek[1] + ', ' + selectedYearWeek[0];
  let screenWidth = window.innerWidth;
  weekdayTitle.forEach((element, index) => {
    element.innerHTML = weekdays[index] + (screenWidth <= 1000 ? '<br>' : ', ') + selectedYearWeek[2][index];
  });
}
function updateWeekNumber ( ) { btnSelectedWeek . innerHTML = 'KW ' + selectedYearWeek [ 1 ] + ', ' + selectedYearWeek [ 0 ] ; let screenWidth = window . innerWidth ; weekdayTitle . forEach ( ( element , index ) => { element . innerHTML = weekdays [ index ] + ( screenWidth <= 1000 ? '<br>' : ', ' ) + selectedYearWeek [ 2 ] [ index ] ; } ) ; }
Updates the week number and week dates
Updates the week number and week dates
// Set dates in calendar header
