forked from nelstrom/Exquisite-layouts
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathapp.js
47 lines (40 loc) · 1.1 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
Ext.application({
name: 'Sencha',
requires: ['Ext.Carousel'],
launch: function() {
var heads = {
xtype: 'carousel',
items: [
{cls: "head-1 head"},
{cls: "head-2 head"},
{cls: "head-3 head"}
]
};
var torsos = {
xtype: 'carousel',
items: [
{cls: "torso-1 torso"},
{cls: "torso-2 torso"},
{cls: "torso-3 torso"}
]
};
var legs = {
xtype: 'carousel',
items: [
{cls: "legs-1 legs"},
{cls: "legs-2 legs"},
{cls: "legs-3 legs"}
]
};
var credits = {
docked: 'bottom',
html: 'Illustrations by <a href="http://www.veryworrying.com/">Laurie Pink</a>'
};
Sencha.container = Ext.create('Ext.Container', {
fullscreen: true,
layout: 'vbox',
defaults: { flex: 1 },
items: [heads, torsos, legs, credits]
});
}
});