-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03_html.html
46 lines (34 loc) · 1.13 KB
/
03_html.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<title>Sencha Touch</title>
<link rel="shortcut icon" href="../image/icon.png">
<link rel="apple-touch-icon" href="../image/icon.png">
<link rel="stylesheet" type="text/css" href="./sdk/resources/css/sencha-touch.css">
<script type="text/javascript" src="./sdk/sencha-touch.js"></script>
<script type="text/javascript">
Ext.Loader.setConfig({ enabled: true });
Ext.application({
name: "MyApp",
launch: function() {
var panel1 = Ext.create("Ext.Panel", {
style: "background-color:#ff0000",
items: [ Ext.create("Ext.Button", {text:"버튼1", width:100}) ]
});
var panel2 = Ext.create("Ext.Panel", {
style: "background-color:#00ff00",
html: "<button style='width:100px'>버튼2</button>"
});
var rootPanel = Ext.create("Ext.Panel", {
items: [ panel1, panel2 ]
});
Ext.Viewport.add(rootPanel);
}
});
</script>
</head>
<body>
</body>
</html>