Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame^] | 1 | requirejs.config({ |
2 | baseUrl: '../js/src', | ||||
3 | paths : { | ||||
4 | 'lib': '../lib' | ||||
5 | } | ||||
6 | }); | ||||
7 | |||||
8 | require(['datepicker', 'lib/domReady'], function (dpClass, domReady) { | ||||
9 | domReady(function () { | ||||
10 | var dp = dpClass.create(); | ||||
11 | document.getElementById('dp').appendChild( | ||||
12 | dp.select(2015,4,12).show(2015,4) | ||||
13 | ); | ||||
14 | }); | ||||
15 | }); |