Commit 04cc342051b291381210af1ef5c13ae743079c3c
no tab on null
nomand committed on 6/10/2018, 10:13:39 PMParent: 91794b4e93b5b5eb3fd5ebb2b148e4e4d89a67de
Files changed
js/letnice.js | changed |
js/letnice.js | ||
---|---|---|
@@ -79,12 +79,14 @@ | ||
79 | 79 | while(week < 7 && date != monthLength) |
80 | 80 | { |
81 | 81 | y = week * 14; |
82 | 82 | let day = new Date(year, month, date, 0); |
83 | + let dotab = `tabIndex="0"`; | |
83 | 84 | |
84 | 85 | if(day.getDay() != week) |
85 | 86 | { |
86 | 87 | style = "null"; |
88 | + dotab = ""; | |
87 | 89 | date-- |
88 | 90 | } |
89 | 91 | else if(String(day) == String(today)) |
90 | 92 | { |
@@ -103,9 +105,9 @@ | ||
103 | 105 | style = "day"; |
104 | 106 | } |
105 | 107 | |
106 | 108 | 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>` | |
108 | 110 | |
109 | 111 | week++ |
110 | 112 | date++ |
111 | 113 | } |
Built with git-ssb-web