Username404-Website/src/main/kotlin/main.kt

18 lines
362 B
Kotlin

package fr.username404.website
import kotlinx.browser.document
import kotlinx.browser.window
import kotlinx.html.dom.append
import kotlinx.html.js.div
@OptIn(ExperimentalJsExport::class)
@JsExport
fun makeBody() {
document.body!!.append.div {
// TODO Add elements to the body
}
}
fun main() {
if (window.closed) window.open("index.html")
}