git ssb

0+

Rômulo Alves / dat-letnice



Commit 04cc342051b291381210af1ef5c13ae743079c3c

no tab on null

nomand committed on 6/10/2018, 10:13:39 PM
Parent: 91794b4e93b5b5eb3fd5ebb2b148e4e4d89a67de

Files changed

js/letnice.jschanged
js/letnice.jsView
@@ -79,12 +79,14 @@
7979 while(week < 7 && date != monthLength)
8080 {
8181 y = week * 14;
8282 let day = new Date(year, month, date, 0);
83+ let dotab = `tabIndex="0"`;
8384
8485 if(day.getDay() != week)
8586 {
8687 style = "null";
88+ dotab = "";
8789 date--
8890 }
8991 else if(String(day) == String(today))
9092 {
@@ -103,9 +105,9 @@
103105 style = "day";
104106 }
105107
106108 html += `<rect id="square" class='${style}' x='${x}' y='${y}' title='${(date+1) == 0 ? "null" : dayNames[week] + " " + (date+1)}' width="12px" height="12px" rx="2" ry="2" onclick="
107- UpdateFooter(${year}, ${month}, ${(date+1)}, ${week}, this)" onblur="" tabIndex="0"></rect>`
109+ UpdateFooter(${year}, ${month}, ${(date+1)}, ${week}, this)" onblur="" ${dotab}></rect>`
108110
109111 week++
110112 date++
111113 }

Built with git-ssb-web