-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayground.html
37 lines (34 loc) · 984 Bytes
/
playground.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
<html>
<head>
<script src="lib/jquery-1.6.1.min.js"></script>
<script src="lib/workstation.js"></script>
<script src="lib/workstation.browser.js"></script>
<script>
function init() {
app(function() {
screen("screen 123", function() {
label({ text: "Username", style: { top: 10, left: 20 } });
textbox({ id: "txtUsername", style: { top: 8, left: 100 } });
label({ text: "Password", style: { top: 40, left: 20 } });
passwordfield({ id: "txtPassword", style: { top: 38, left: 100 } });
button({
text: "Login",
style: { top: 70, left: 178 },
onclick: function() {
alert("hello world");
} });
button({
text: "Cancel",
style: { top: 70, left: 120 },
onclick: function() {
that.txtUsername.runtime.text("");
that.txtPassword.runtime.text("");
} });
});
});
}
</script>
</head>
<body onload="init();">
</body>
</html>