This commit is contained in:
Lars Westermann 2019-06-12 15:01:10 +02:00
parent 90b4a990af
commit 76945c20d2
Signed by: lars.westermann
GPG key ID: 9D417FA5BB9D5E1D
3 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ class Calendar(calendar: HTMLElement) : View(calendar) {
val calendarTable = calendar.getElementsByClassName("calendar-table")[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 referenceDate = calendarTable.dataset["reference"]?.toLongOrNull() ?: -1L

View file

@ -10,7 +10,6 @@ import org.w3c.dom.HTMLElement
import org.w3c.dom.INSTANT
import org.w3c.dom.SMOOTH
import org.w3c.dom.ScrollBehavior
import kotlin.browser.document
import kotlin.js.Date
import kotlin.math.max
import kotlin.math.min
@ -133,7 +132,7 @@ class CalendarBody(val calendar: Calendar, view: HTMLElement) : ViewCollection<C
}
init {
calendarEntries = document.getElementsByClassName("calendar-entry")
calendarEntries = view.getElementsByClassName("calendar-entry")
.iterator().asSequence().map { CalendarEntry(this, it) }.toList()
wrapContent {

View file

@ -101,6 +101,7 @@
text-align: center;
font-size: 1.7rem;
font-family: $headFont;
display: none;
}
.board-schedule {