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