Fix wand
This commit is contained in:
parent
90b4a990af
commit
76945c20d2
|
@ -21,7 +21,7 @@ class Calendar(calendar: HTMLElement) : View(calendar) {
|
||||||
val calendarTable = calendar.getElementsByClassName("calendar-table")[0] as HTMLElement
|
val calendarTable = calendar.getElementsByClassName("calendar-table")[0] as HTMLElement
|
||||||
private val calendarTableHeader = calendar.getElementsByClassName("calendar-header")[0] as HTMLElement
|
private val calendarTableHeader = calendar.getElementsByClassName("calendar-header")[0] as HTMLElement
|
||||||
|
|
||||||
val htmlBody = document.body ?: createHtmlView()
|
private val htmlBody = document.body ?: createHtmlView()
|
||||||
|
|
||||||
val day = calendarTable.dataset["day"]?.toIntOrNull() ?: -1
|
val day = calendarTable.dataset["day"]?.toIntOrNull() ?: -1
|
||||||
val referenceDate = calendarTable.dataset["reference"]?.toLongOrNull() ?: -1L
|
val referenceDate = calendarTable.dataset["reference"]?.toLongOrNull() ?: -1L
|
||||||
|
|
|
@ -10,7 +10,6 @@ import org.w3c.dom.HTMLElement
|
||||||
import org.w3c.dom.INSTANT
|
import org.w3c.dom.INSTANT
|
||||||
import org.w3c.dom.SMOOTH
|
import org.w3c.dom.SMOOTH
|
||||||
import org.w3c.dom.ScrollBehavior
|
import org.w3c.dom.ScrollBehavior
|
||||||
import kotlin.browser.document
|
|
||||||
import kotlin.js.Date
|
import kotlin.js.Date
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
import kotlin.math.min
|
import kotlin.math.min
|
||||||
|
@ -133,7 +132,7 @@ class CalendarBody(val calendar: Calendar, view: HTMLElement) : ViewCollection<C
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
calendarEntries = document.getElementsByClassName("calendar-entry")
|
calendarEntries = view.getElementsByClassName("calendar-entry")
|
||||||
.iterator().asSequence().map { CalendarEntry(this, it) }.toList()
|
.iterator().asSequence().map { CalendarEntry(this, it) }.toList()
|
||||||
|
|
||||||
wrapContent {
|
wrapContent {
|
||||||
|
|
|
@ -101,6 +101,7 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 1.7rem;
|
font-size: 1.7rem;
|
||||||
font-family: $headFont;
|
font-family: $headFont;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.board-schedule {
|
.board-schedule {
|
||||||
|
|
Loading…
Reference in a new issue