Access the main.kt from javascript
This commit is contained in:
parent
446421ed7b
commit
ea9b852e4a
|
@ -37,7 +37,8 @@ kotlin {
|
||||||
browser {
|
browser {
|
||||||
webpackTask {
|
webpackTask {
|
||||||
destinationDirectory = outputDirectory
|
destinationDirectory = outputDirectory
|
||||||
output.libraryTarget = "global"
|
output.library = "Web404"
|
||||||
|
output.libraryTarget = "this"
|
||||||
cssSupport.enabled = true
|
cssSupport.enabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
package fr.username404.website
|
|
||||||
|
|
||||||
import kotlinx.browser.document
|
import kotlinx.browser.document
|
||||||
import kotlinx.browser.window
|
import kotlinx.browser.window
|
||||||
import kotlinx.html.dom.append
|
import kotlinx.html.dom.append
|
||||||
|
|
|
@ -48,8 +48,6 @@
|
||||||
Source
|
Source
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>Web404.makeBody()</script>
|
||||||
// TODO Call kotlin code from the html file
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue