Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <meta charset="utf-8" />
  6. <link href="kendo/styles/kendo.mobile.all.min.css" rel="stylesheet" />
  7. <link href="styles/main.css" rel="stylesheet" />
  8.  
  9. <script src="cordova.js"></script>
  10. <script src="kendo/js/jquery.min.js"></script>
  11. <script src="kendo/js/kendo.mobile.min.js"></script>
  12.  
  13. <script src="scripts/app.js"></script>
  14. <!--<script src="scripts/Helper.js"></script>-->
  15. <script src="scripts/bpageVM05.js"></script>
  16. </head>
  17. <body>
  18. <div data-role="layout" data-id="main">
  19. <div data-role="header">
  20. <div data-role="navbar">
  21. <span data-role="view-title"></span>
  22. </div>
  23. </div>
  24.  
  25. <div data-role="footer">
  26. <div data-role="tabstrip">
  27. <a href="views/home.html" data-icon="home">Home</a>
  28. <a data-bind="attr: { href: url }" data-icon="reply">Back</a>
  29. <!--<a href="#" data-icon="reply" onclick="history.go(-1);return false;">Back</a>-->
  30. </div>
  31. </div>
  32. </div>
  33. </body>
  34. </html>
  35.  
  36. (function () {
  37. /*kendo.bind($('body'), mainVM);
  38. LoadParameters(mainVM);
  39.  
  40. // initialize data
  41. initializeinputs();*/
  42.  
  43. // store a reference to the application object that will be created
  44. // later on so that we can use it if need be
  45. var app;
  46.  
  47. // HTML files: create an object to store the models for each view
  48. window.APP =
  49. {
  50. models:
  51. {
  52. // Menu -------------------------------------
  53. home: {
  54. title: 'Home',
  55. url: 'views/home.html'
  56. },
  57. menu: {
  58. title: 'Main Menu',
  59. url: 'views/home.html'
  60. },
  61. cards: {
  62. title: 'Cards',
  63. url: 'views/menu.html'
  64. },
  65. email: {
  66. title: 'Email Settings',
  67. url: 'views/menu.html'
  68. },
  69. rates: {
  70. title: 'Card Rates',
  71. url: 'views/menu.html'
  72. },
  73. station: {
  74. title: 'Station Schedule',
  75. url: 'views/menu.html'
  76. },
  77. parameters: {
  78. title: 'PLC Parameters',
  79. url: 'views/menu.html'
  80. },
  81.  
  82. // Reports ----------------------------------
  83. reports: {
  84. title: 'Reports',
  85. url: 'views/home.html'
  86. },
  87. reports_activity: {
  88. title: 'Activity Report',
  89. url: 'views/reports.html'
  90. },
  91. reports_payments: {
  92. title: 'Payments Report',
  93. url: 'views/reports.html'
  94. },
  95. reports_cards: {
  96. title: 'Cards Report',
  97. url: 'views/reports.html'
  98. },
  99. reports_printer_1: {
  100. title: 'Volume Dispensed Log',
  101. url: 'views/reports.html'
  102. },
  103. reports_printer_2: {
  104. title: 'Credit Charges Log',
  105. url: 'views/reports.html'
  106. },
  107. reports_printer_3: {
  108. title: 'Accountable Volume Log',
  109. url: 'views/reports.html'
  110. },
  111. reports_printer_4: {
  112. title: 'Card Numbers Log',
  113. url: 'views/reports.html'
  114. }
  115. }
  116. }
  117.  
  118. /*contacts: {
  119. title: 'Contacts',
  120. ds: new kendo.data.DataSource({
  121. data: [{ id: 1, name: 'Bob' }, { id: 2, name: 'Mary' }, { id: 3, name: 'John' }]
  122. }),*/
  123.  
  124. // this function is called by Cordova when the application is loaded by the device
  125. document.addEventListener('deviceready', function () {
  126.  
  127. // hide the splash screen as soon as the app is ready. otherwise
  128. // Cordova will wait 5 very long seconds to do it for you.
  129. navigator.splashscreen.hide();
  130.  
  131. app = new kendo.mobile.Application(document.body, {
  132.  
  133. // you can change the default transition (slide, zoom or fade)
  134. transition: 'slide',
  135.  
  136. // comment out the following line to get a UI which matches the look
  137. // and feel of the operating system
  138. skin: 'flat',
  139.  
  140. // the application needs to know which view to load first
  141. initial: 'views/home.html'
  142. });
  143.  
  144. }, false);
  145. }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement