lazy_datepicker.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!-- Theme -->
  5. <link rel="stylesheet" href="../themes/themeroller/default-theme/ui.all.css" type="text/css" media="screen" />
  6. <!-- jQuery Library -->
  7. <script src="../lib/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
  8. <!-- These are the only needed files to include -->
  9. <script src="../src/defaults.js" type="text/javascript" charset="utf-8"></script>
  10. <script src="../src/core.js" type="text/javascript" charset="utf-8"></script>
  11. </head>
  12. <body>
  13. <style type="text/css" media="screen">
  14. body {
  15. padding: 10px;
  16. font-size: 14px;
  17. font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
  18. }
  19. </style>
  20. <div id="optiongroup">
  21. <input type="checkbox" name="check" value="" id="check" />
  22. </div>
  23. <br />
  24. <div id="datepicker"></div>
  25. <script type="text/javascript" charset="utf-8">
  26. window.onload = function() {
  27. if (window.widget) {
  28. widget.setNavigationEnabled(false);
  29. }
  30. Nokia.showSplash('<span>Loading</span>');
  31. Nokia.use('*', function() {
  32. var check = new Nokia.CheckBox({
  33. element: '#check',
  34. label: 'Testing checkbox'
  35. });
  36. var optionGroup = new Nokia.OptionGroup({
  37. element: '#optiongroup',
  38. title: 'Option Group'
  39. });
  40. optionGroup.addItem(check);
  41. var datepicker = new Nokia.DatePicker({
  42. element: '#datepicker'
  43. });
  44. Nokia.hideSplash();
  45. });
  46. };
  47. </script>
  48. </body>
  49. </html>