From 639bfd5a363217bcdba71799c2313a55346e8455 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sun, 20 Jun 2021 14:39:33 +0200 Subject: [PATCH] Move an the OptIn annotation in main.kt and load the script in the head of index.html --- src/main/kotlin/main.kt | 2 +- src/main/resources/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/main.kt b/src/main/kotlin/main.kt index 20c80fc..1c9af08 100644 --- a/src/main/kotlin/main.kt +++ b/src/main/kotlin/main.kt @@ -1,3 +1,4 @@ +@file:OptIn(ExperimentalJsExport::class) package fr.username404.website import kotlinx.browser.document @@ -5,7 +6,6 @@ import kotlinx.browser.window import kotlinx.html.dom.append import kotlinx.html.js.div -@OptIn(ExperimentalJsExport::class) @JsExport fun makeBody() { document.body!!.append.div { diff --git a/src/main/resources/index.html b/src/main/resources/index.html index cba4e2c..6562420 100644 --- a/src/main/resources/index.html +++ b/src/main/resources/index.html @@ -34,6 +34,7 @@ height: 300px; } +
@@ -47,7 +48,6 @@ Source
-