/assets/www/Horaz_todo_list.html

https://github.com/jjoe64/horaz-todo-list-android · HTML · 84 lines · 73 code · 7 blank · 4 comment · 0 complexity · 20189d99d54a6082bab7c97ed9a11099 MD5 · raw file

  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>TODO List</title>
  5. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="jquery/jquery.mobile-1.0b3.min.css" />
  8. <link rel="stylesheet" href="jquery/jquery.mobile.toast.min.css" />
  9. <link type="text/css" rel="stylesheet" href="Horaz_todo_list.css">
  10. <link rel="stylesheet" href="jquery/jquery.mobile.android-theme.css" />
  11. <script type="text/javascript" src="horaz_todo_list/horaz_todo_list.nocache.js"></script>
  12. <script type="text/javascript" src="jquery/jquery-1.6.2.min.js"></script>
  13. <script type="text/javascript" src="jquery/jquery.mobile-1.0b3.min.js"></script>
  14. <script type="text/javascript" src="jquery/jquery.mobile.toast.min.js"></script>
  15. <script type="text/javascript" src="jquery/jquery.mobile.android-theme.js"></script>
  16. <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
  17. </head>
  18. <body>
  19. <!-- template -->
  20. <div id="list_todo_template" style="display:none">
  21. <a href="#dialog_item">
  22. <h2>{#title#}</h2>
  23. <p>{#notes#}</p>
  24. </a>
  25. </div>
  26. <!-- todo index page -->
  27. <div data-role="page" id="page_index">
  28. <div data-role="header" data-theme="b" data-position="fixed">
  29. <h1>TODO List</h1>
  30. <a href="#page_item" data-role="button" data-icon="plus" class="ui-btn-right" data-theme="b" id="btn_new">New Item</a>
  31. </div>
  32. <div data-role="content">
  33. <ul id="list_todo" data-role="listview" data-inset="true" data-template="list_todo_template">
  34. </ul>
  35. </div>
  36. <div data-role="footer" data-position="fixed">
  37. <h4>powered by Horaz</h4>
  38. </div>
  39. </div>
  40. <!-- new/edit item page -->
  41. <div data-role="page" id="page_item">
  42. <div data-role="header" data-theme="b" data-add-back-btn="true" data-position="fixed">
  43. <a onclick="history.back()" data-icon="back" class="hide-on-android">Cancel</a>
  44. <h1>Edit TODO Item</h1>
  45. <a id="btn_save" href="#page_index" data-role="button" data-icon="check" class="ui-btn-right" data-theme="c">Save</a>
  46. </div>
  47. <div data-role="content">
  48. <form id="form_item">
  49. <div data-role="fieldcontain">
  50. <label for="title">Title</label>
  51. <input type="text" id="title" name="title" />
  52. </div>
  53. <div data-role="fieldcontain">
  54. <label for="notes">Notes</label>
  55. <textarea id="notes" name="notes"></textarea>
  56. </div>
  57. </form>
  58. </div>
  59. <div data-role="footer" data-position="fixed">
  60. <h4>powered by Horaz</h4>
  61. </div>
  62. </div>
  63. <!-- item selected dialog -->
  64. <div data-role="dialog" id="dialog_item">
  65. <div data-role="header" data-theme="d">
  66. <h1>Options</h1>
  67. </div>
  68. <div data-role="content">
  69. <p>What to do with <span id="label_item"></span>?</p>
  70. <a href="#page_item" data-role="button" data-theme="c" id="btn_edit">Edit</a>
  71. <a href="#" data-role="button" data-rel="back" data-theme="c" id="btn_done">Mark as Done</a>
  72. <a href="#" data-role="button" data-rel="back" data-theme="c" id="btn_delete">Delete</a>
  73. <a href="#" data-role="button" data-rel="back">Cancel</a>
  74. </div>
  75. </div>
  76. </body>
  77. </html>