This repository was archived by the owner on Aug 10, 2024. It is now read-only.
Commit de81909 1 parent f86836c commit de81909 Copy full SHA for de81909
File tree 2 files changed +4
-13
lines changed
src/main/kotlin/com/github/sanity/kweb/samples
2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 1
1
group ' com.github.sanity'
2
- version ' 0.0.30 '
2
+ version ' 0.0.31 '
3
3
4
4
buildscript {
5
5
ext. kotlin_version = ' 1.1.0'
@@ -67,6 +67,7 @@ dependencies {
67
67
compile group : ' commons-io' , name : ' commons-io' , version : ' 2.5'
68
68
69
69
compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
70
+ compile " org.jetbrains.kotlin:kotlin-reflect:$kotlin_version "
70
71
compile ' org.jetbrains.kotlinx:kotlinx-coroutines-core:0.12'
71
72
compile ' org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:0.12'
72
73
Original file line number Diff line number Diff line change @@ -2,24 +2,14 @@ package com.github.sanity.kweb.samples
2
2
3
3
import com.github.sanity.kweb.KWeb
4
4
import com.github.sanity.kweb.dom.element.creation.h1
5
- import com.github.sanity.kweb.dom.element.events.on
6
5
import com.github.sanity.kweb.dom.element.modification.setText
7
6
8
7
/* *
9
8
* Created by ian on 3/3/17.
10
9
*/
11
10
12
- // [START HW]
13
11
fun main (args : Array <String >) {
14
12
KWeb (port = 7823 ) {
15
- var counter = 0
16
- val h1 = doc.body.h1()
17
- h1.setText(" Hello World!" )
18
-
19
- h1.on.click {
20
- h1.setText(counter.toString())
21
- counter++
22
- }
13
+ doc.body.h1().setText(" Hello World!" )
23
14
}
24
- }
25
- // [END HW]
15
+ }
You can’t perform that action at this time.
0 commit comments