|
|
|
@ -252,7 +252,15 @@ window.addEventListener('load', function (e) {
|
|
|
|
|
case 'SoftRight': |
|
|
|
|
rsk() |
|
|
|
|
break |
|
|
|
|
case '*': |
|
|
|
|
case '1': |
|
|
|
|
date.setDate(date.getDate() - 1) |
|
|
|
|
refresh() |
|
|
|
|
break |
|
|
|
|
case '3': |
|
|
|
|
date.setDate(date.getDate() + 1) |
|
|
|
|
refresh() |
|
|
|
|
break |
|
|
|
|
case '7': |
|
|
|
|
showKm = !showKm |
|
|
|
|
document.querySelectorAll('.km').forEach(function (kmItem) { |
|
|
|
|
if (showKm) { |
|
|
|
@ -263,14 +271,6 @@ window.addEventListener('load', function (e) {
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
break |
|
|
|
|
case '1': |
|
|
|
|
date.setDate(date.getDate() - 1) |
|
|
|
|
refresh() |
|
|
|
|
break |
|
|
|
|
case '3': |
|
|
|
|
date.setDate(date.getDate() + 1) |
|
|
|
|
refresh() |
|
|
|
|
break |
|
|
|
|
default: |
|
|
|
|
console.log(e.key) |
|
|
|
|
} |
|
|
|
|