Skip to content

Instantly share code, notes, and snippets.

@comfuture
Created December 2, 2010 05:30
Show Gist options
  • Save comfuture/724821 to your computer and use it in GitHub Desktop.
Save comfuture/724821 to your computer and use it in GitHub Desktop.
sample juice usage
juice.namespace('sample');
juice.include('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js')
.css('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/flick/jquery-ui.css')
.require('ui.Form')
(function() {
juice.sample.Calendar = Class({
__init__: function() {
},
draw: function() {
$('<div id="dp">').appendTo($('body')).datepicker();
}
});
var cal = new juice.sample.Calendar();
cal.draw();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment