-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
45 lines (39 loc) · 1.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<html>
<head>
<title>Kotlin to Javascript!!!</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.css">
<style>
p { line-height: 24px }
code {
font-size: 14px;
background: #eee;
padding: 4px;
}
.container {
display: flex;
justify-content: center;
align-items: center;
}
.content {
max-width: 746px;
}
</style>
</head>
<body class="container">
<div class="content">
<p>
Open your developer tools, and check out the console! There should be "Hello World!" printed there!
</p>
<p>
Also, since we've enabled sourcemaps, you can open the Sources tab, hit <code>cmd + p</code>
(<code>ctrl + p</code> on non macOS) to bring up the fuzzy-search file browser, and type "Main.kt".
You're able to put breakpoints in the kotlin code as the browser runs the compiled javascript.
</p>
<p>
That's pretty neat!
</p>
</div>
<script src="node_modules/kotlin/kotlin.js"></script>
<script src="build/js/module.js"></script>
</body>
</html>