add dayname to calendar
parent
dcde5f5fd7
commit
13df722d28
|
@ -20,6 +20,9 @@ const calRefresh=function () {
|
||||||
el.remove()
|
el.remove()
|
||||||
}
|
}
|
||||||
}catch(e){}
|
}catch(e){}
|
||||||
|
|
||||||
|
let weekDayNames = ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"];
|
||||||
|
|
||||||
for (let item of cal) {
|
for (let item of cal) {
|
||||||
let li = $("<li/>");
|
let li = $("<li/>");
|
||||||
//li.text(item.summary)
|
//li.text(item.summary)
|
||||||
|
@ -35,6 +38,8 @@ const calRefresh=function () {
|
||||||
|
|
||||||
let date = $("<span class='date row"+todayClass+"'/>");
|
let date = $("<span class='date row"+todayClass+"'/>");
|
||||||
date.text(
|
date.text(
|
||||||
|
weekDayNames[startDate.getDay()] +
|
||||||
|
"., " +
|
||||||
zeropad(startDate.getDate()) +
|
zeropad(startDate.getDate()) +
|
||||||
"." +
|
"." +
|
||||||
zeropad(1 + startDate.getMonth()) +
|
zeropad(1 + startDate.getMonth()) +
|
||||||
|
|
Loading…
Reference in New Issue