We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60bc130 commit e7ab9d7Copy full SHA for e7ab9d7
src/wasmJsMain/kotlin/main.kt
@@ -1,5 +1,6 @@
1
import kotlinx.browser.document
2
3
+@OptIn(kotlin.contracts.ExperimentalContracts::class)
4
fun main() {
5
document.body?.addTimeZoneWidget()
6
}
src/wasmJsMain/kotlin/timeZoneWidget.kt
@@ -5,6 +5,7 @@ import kotlinx.dom.appendText
import org.w3c.dom.Element
import org.w3c.dom.HTMLInputElement
7
8
+@kotlin.contracts.ExperimentalContracts
9
fun Element.addTimeZoneWidget() {
10
appendElement("div") {
11
appendText("Time in ")
0 commit comments