-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
37 lines (36 loc) · 1.18 KB
/
test.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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>JTK test</title>
<script language="javascript" src="jtk.js"></script>
<script language="javascript">
window.onload = function(){
var j = new jtk('testcanvas');
var p = j.create("vbox",{ children : 10, parent : j, index : 0 });
for(var i=0;i<10;i++){
var p2 = j.create("hbox",{ children : 3, parent : p, index : i });
j.create("textfield",{ parent : p2, index : 0 }, { text: "Published" , size: 10 , color: "#999",
onclick : function(e){
//alert(this.value);
} });
j.create("label",{ parent : p2, index : 1 }, { text: "Title" , size: 10 , color: "#222222" });
j.create("button",{ parent : p2, index : 2 }, { label: "Button",
custom : {
link : "http://"
},
onclick : function(e){
console.log(j);
}
});
}
}
</script>
</head>
<body>
<canvas id="testcanvas" width="924" height="620" style="border:1px solid #999;">
There is supposed to be an example drawing here, but it's not important.
</canvas>
<input name="" type="submit">
</body>
</html>