| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
| 3 | <html> |
| 4 | |
| 5 | <head> |
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 7 | <title>Calendar Sample: Desktop</title> |
| 8 | <style type="text/css"> |
| 9 | @import "../themes/claro/Calendar.css"; |
| 10 | @import "../themes/claro/MonthColumnView.css"; |
| 11 | @import "calendar.css"; |
| 12 | @import "../../../dojo/resources/dojo.css"; |
| 13 | @import "../../../dijit/themes/dijit.css"; |
| 14 | @import "../../../dijit/themes/claro/claro.css"; |
| 15 | |
| 16 | .dojoxCalendar .dojoxCalendarGrid .Wed, |
| 17 | .dojoxCalendar .dojoxCalendarGrid .H12, |
| 18 | .dojoxCalendar .dojoxCalendarGrid .H13 { |
| 19 | background-color: #F8F8F8 !important; |
| 20 | } |
| 21 | </style> |
| 22 | </head> |
| 23 | |
| 24 | <body class="claro"> |
| 25 | <script type="text/javascript" |
| 26 | data-dojo-config="async: true, parseOnLoad: true, paths : {'demo' : '../dojox/calendar/tests'}" |
| 27 | src="../../../dojo/dojo.js"></script> |
| 28 | |
| 29 | <script type="text/javascript"> |
| 30 | |
| 31 | require(["dojo/ready", "dojo/_base/lang", "dojo/_base/sniff", "dojo/_base/array", "dojo/_base/fx", "dojo/dom-class", "dojo/on", |
| 32 | "dojo/date/locale", "dojo/parser", "dojo/dom", "dojo/dom-construct", "dojo/store/Memory", |
| 33 | "dojo/store/Observable", "demo/ExtendedCalendar"], |
| 34 | |
| 35 | function(ready, lang, has, arr, fx, domClass, on, locale, parser, dom, domConstruct, |
| 36 | Memory, Observable, Calendar){ |
| 37 | |
| 38 | ready(function(){ |
| 39 | |
| 40 | var startOfWeek = calendar.floorToWeek(new calendar.dateClassObj()); |
| 41 | |
| 42 | calendar.set("date", startOfWeek); |
| 43 | |
| 44 | // Hide loading panel when application is ready |
| 45 | fx.fadeOut({ |
| 46 | node:"loadingPanel", |
| 47 | onEnd: function(node){ |
| 48 | node.parentNode.removeChild(node) |
| 49 | }}).play(500); |
| 50 | |
| 51 | |
| 52 | }); |
| 53 | }); |
| 54 | </script> |
| 55 | |
| 56 | <div id="loadingPanel" style="position:absolute;z-index:10;width:100%;height:100%;background:#ffffff"> |
| 57 | <span style="background: #DBEB8F;padding:2px">Loading...</span> |
| 58 | </div> |
| 59 | |
| 60 | <div data-dojo-id="calendar" data-dojo-type="demo.ExtendedCalendar" |
| 61 | style="position:absolute;left:10px;top:10px;bottom:10px;right:10px"> |
| 62 | </div> |
| 63 | |
| 64 | </div> |
| 65 | |
| 66 | </body> |
| 67 | </html> |