blob: 4ec7d3040eeeb74c2c5e752822a77b7cf2ec7b36 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package webpage
import org.scalajs.dom
import scalajs.js.annotation.JSExport
@JSExport
object HelloWorld0 extends{
@JSExport
def main(target: dom.HTMLDivElement) ={
val (f, d) = ("fox", "dog")
target.innerHTML = s"""
<div>
<h1>Hello World!</h1>
<p>
The quick brown <b>$f</b>
jumps over the lazy <i>$d</b>
</p>
</div>
"""
}
}
|