2in3_calendar.html revision 2c9fe75ac1579cf6e444f668fbc5bf7e2a76f44e
0N/A<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
0N/A<html debug="true">
0N/A<head>
0N/A<style type="text/css">
0N/Abody {
0N/A margin:0;
0N/A padding:0;
0N/A}
0N/A</style>
0N/A<title>use('yui2-calendar') and then get dependencies</title>
0N/A<script src="/build/yui/yui-debug.js" type="text/javascript" charset="utf-8"></script>
0N/A<script type="text/javascript" charset="utf-8">
0N/AYUI({
0N/A
0N/A // When pulling from the CDN, you can choose a YUI2 distribution.
0N/A // The default is 2.8.0. This is the same as 2.8.0r4.
0N/A // 2.5.2, 2.6.0, 2.7.0, 2.8.0 -- skins won't work in 2.5.2 if you
0N/A // let them be combo handled. Set combine to false, or include
0N/A // them statically and set fetchCSS to false.
0N/A // yui2: '2.5.2',
0N/A yui2: '2.8.1',
0N/A
0N/A '2in3': '3',
0N/A
0N/A // Tangental to this example, but you can specify a gallery revision the same way
0N/A // gallery: 'gallery-2010.02.22-22'
0N/A
0N/A // if including skins statically, set fetchCSS to false. another way
0N/A // do prevent refetching the CSS files is to include the module names
0N/A // the 'ignore' config
0N/A // fetchCSS: false,
0N/A
0N/A // when running yui.js locally, you can force remote combo
0N/A // handling by setting combine to true
0N/A combine: false,
0N/A
0N/A // this is a way to hack in to test a yui dist locally. normally you
0N/A // shouldn't need to do this. See the groups example for more information
0N/A // about the 'groups' config.
0N/A // groups: {
0N/A // yui2: {
0N/A // base: '/2in3/',
0N/A // patterns: {
0N/A // 'yui2-': {
0N/A // configFn: function(me) {
0N/A // if(/-skin|reset|fonts|grids|base/.test(me.name)) {
0N/A // me.type = 'css';
0N/A // me.path = me.path.replace(/\.js/, '.css');
0N/A // me.path = me.path.replace(/\/yui2-skin/, '/assets/skins/sam/yui2-skin');
0N/A // }
0N/A // }
0N/A // }
0N/A // }
0N/A // }
0N/A // },
0N/A filter: 'debug' // you need to ask for yui2-logger for 'debug' to work
0N/A
0N/A}).use('yui2-logger', 'yui2-calendar', function (Y) {
0N/A var YAHOO = Y.YUI2;
0N/A
0N/A YAHOO.namespace("example.calendar");
0N/A
0N/A YAHOO.example.calendar.init = function() {
0N/A YAHOO.example.calendar.cal1 = new YAHOO.widget.CalendarGroup("cal1","cal1Container", {PAGES:3});
0N/A YAHOO.example.calendar.cal1.render();
0N/A }
0N/A
0N/A YAHOO.util.Event.onDOMReady(YAHOO.example.calendar.init);
0N/A
0N/A
0N/A});
0N/A</script>
0N/A</head>
0N/A<body class="yui-skin-sam">
0N/A<div id="cal1Container"></div>
0N/A</body>
0N/A</html>
0N/A