-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
48 lines (45 loc) · 1.32 KB
/
app.js
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
41
42
43
44
45
46
47
48
/**
Author: Ricardo Leon
Jan 2012
*/
Ext.require('Ext.panel.Panel');
/**
This gets all the jChess app started by drawing the board and the two windows on the right side
*/
Ext.application({
name: 'jChess',
controllers: ['Board'],
launch: function () {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [{
xtype: 'panel',
title: 'jChess by Ricardo Leon',
layout: 'hbox',
items: [{
xtype: 'board',
padding: '1px'
}, {
xtype: 'panel',
layout: 'auto',
title: false,
items: [{
xtype: 'panel',
layout: 'fit',
collapsible: true,
title: 'Instructions',
html: "Drag and drop the pieces to play",
padding: '1px'
}, {
xtype: 'panel',
itemId: 'status',
layout: 'fit',
collapsible: true,
title: 'Status',
padding: '1px'
}]
}]
}]
});
}
});