forked from yui/yui3-gallery
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
56 lines (53 loc) · 1.57 KB
/
index.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<title>Accordion test</title>
<script type="text/javascript" src="http://yui.yahooapis.com/3.4.1pr1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam yui-skin-sam">
<h1>Algun texto por aqui</h1>
<div id="acc"></div>
<hr/>
<p>alguito más por aquí</p>
<script type="text/javascript">
/*jslint white: true, nomen: true, maxerr: 50, indent: 4 */
/*global YUI*/
YUI({
// debug:true,
// filter:'debug',
// combine:false,
groups: {
sp: {
base: '../../../build/',
modules: {
"gallery-md-accordion": {
path: 'gallery-md-accordion/gallery-md-accordion.js',
requires: ['widget', 'widget-parent', 'widget-child', 'widget-stdmod', 'gallery-makenode'],
skinnable: true
},
"gallery-makenode": {
path: 'gallery-makenode/gallery-makenode.js',
requires:['substitute','classnamemanager']
}
}
}
}
}).use('gallery-md-accordion','resize-plugin', 'transition', function(Y) {
"use strict";
var acc = new Y.Accordion({
children:[
{label:'one', expanded:true, content:'this is the content <br/> of the first'},
{label:'two', expanded:true, content:'this is the content <br/> of the second'},
{label:'three', expanded:true, content:'this is the content <br/> of the third'}
],
multiExpand:false,
closeable: true
}).render('#acc'),
child1 = acc.item(0),
child2 = acc.item(1),
child3 = acc.item(2);
// acc.set('resizeable', false);
});
</script>
</body>
</html>