index.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <!DOCTYPE html>
  2. <!--
  3. File Name: index.html
  4. Author Name: In-young Choung
  5. Date: April 15, 2017
  6. Description: This html serves content locally to interact with users
  7. and sends users' input values to Javascript.
  8. >
  9. <html lang="en">
  10. <head>
  11. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  12. <meta charset="utf-8">
  13. <title>Calculate Grocery</title>
  14. <meta name="generator" content="Bootply" />
  15. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  16. {# <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">#}
  17. <!--[if lt IE 9]>
  18. <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
  19. <![endif]-->
  20. <link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
  21. <link href="{{ url_for('static', filename='css/styles.css') }}" rel="stylesheet">
  22. <link href="{{ url_for('static', filename='css/inyoung.css') }}" rel="stylesheet">
  23. </head>
  24. <body>
  25. <div class="container-full">
  26. <div class="row">
  27. <div class="col-lg-12 text-center v-center">
  28. <h1>Grocery Calculation</h1>
  29. <p class="lead">Smart-save your grocery expense.</p>
  30. <br>
  31. <br>
  32. <br>
  33. <form class="col-lg-12" action="{{url_for('index')}}" method="POST">
  34. <div class="input-group" style="width:340px;text-align:center;margin:0 auto;, ">
  35. {# <input class="form-control input-lg" title="Don't worry. We hate spam, and will not share your email with anyone." placeholder="Enter your email address" type="email" name="email">
  36. <input class="form-control input-lg" title="Use the password you use for everything. Trust us." placeholder="Enter your password" type="password" name="password">
  37. <span class="input-group-btn"><button class="btn btn-lg btn-primary" type="submit">GO</button></span>#}
  38. </div>
  39. </form>
  40. </div>
  41. </div>
  42. {# action="action_page.php"#}
  43. <br><br>
  44. <form id = "calcform" style = "margin-left: 20%">
  45. <table id="comparison-table" style="width: auto;">
  46. <tr>
  47. <td>
  48. Item Type:
  49. </td>
  50. <td class="colspan-4" colspan="4">
  51. <input type="text" name="itemtype" placeholder="Bacon" >
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>
  56. Brand Name:
  57. </td>
  58. <td class="colspan-2" colspan="2">
  59. <input type="text" name="brandname1" placeholder="Maple Leaf" value="">
  60. </td>
  61. <td class="colspan-2" colspan="2">
  62. <input type="text" name="brandname2" placeholder="Shanaor" value="">
  63. </td>
  64. </tr>
  65. <tr>
  66. <td>
  67. Price:
  68. </td>
  69. <td class="colspan-2" colspan="2">
  70. <input type="text" name="price1" value="">
  71. </td>
  72. <td class="colspan-2" colspan="2">
  73. <input type="text" name="price2" value="">
  74. </td>
  75. </tr>
  76. <tr>
  77. <td>
  78. Weight:
  79. </td>
  80. <td>
  81. <input type="text" name="weight1" value="">
  82. </td>
  83. <td>
  84. <select>
  85. <option>lb</option>
  86. <option>kg</option>
  87. <option>g</option>
  88. </select>
  89. </td>
  90. <td>
  91. <input type="text" name="weight2" value = "">
  92. </td>
  93. <td>
  94. <select>
  95. <option>lb</option>
  96. <option>kg</option>
  97. <option>g</option>
  98. </select>
  99. </td>
  100. </tr>
  101. <tr>
  102. <td>
  103. Discounts:
  104. </td>
  105. <td>
  106. <input type="text" name="discount1" value="">
  107. </td>
  108. <td>
  109. <select>
  110. <option>percentage</option>
  111. <option>dollar</option>
  112. </select>
  113. </td>
  114. <td>
  115. <input type="text" name="discount2" value="">
  116. </td>
  117. <td>
  118. <select>
  119. <option>percentage</option>
  120. <option>dollar</option>
  121. </select>
  122. </td>
  123. </tr>
  124. </table>
  125. <br><br>
  126. <button type="button"
  127. onclick="calc_handle(this.form[0].value, this.form[1].value,
  128. this.form[2].value, this.form[3].value,
  129. this.form[4].value, this.form[5].value,
  130. this.form[6].value, this.form[7].value,
  131. this.form[8].value, this.form[9].value,
  132. this.form[10].value, this.form[11].value,
  133. this.form[12].value)"
  134. value="calculate_btn">Calculate</button>
  135. <br><br>
  136. </form>
  137. <!-- /row -->
  138. <div class="row">
  139. <div class="col-lg-12 text-center v-center" style="font-size:39pt;">
  140. {# <a href="#"><i class="icon-google-plus"></i></a>#}
  141. <a href="#"><i class="icon-facebook"></i></a>
  142. <a href="#"><i class="icon-twitter"></i></a>
  143. <a href="#"><i class="icon-github"></i></a>
  144. {# <a href="#"><i class="icon-pinterest"></i></a>#}
  145. </div>
  146. </div>
  147. <br>
  148. <br>
  149. <br>
  150. <br>
  151. <br>
  152. </div>
  153. <!-- /container full -->
  154. <div class="container">
  155. <hr>
  156. <div class="row">
  157. <div class="col-md-4">
  158. <div class="panel panel-default">
  159. <div class="panel-heading">
  160. <h3>Hello.</h3>
  161. </div>
  162. <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae, gravida a libero. Aenean sit amet felis dolor, in sagittis nisi. Sed ac orci quis tortor imperdiet venenatis. Duis elementum auctor accumsan. Aliquam in felis sit amet augue.
  163. </div>
  164. </div>
  165. </div>
  166. <div class="col-md-4">
  167. <div class="panel panel-default">
  168. <div class="panel-heading">
  169. <h3>Hello.</h3>
  170. </div>
  171. <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae, gravida a libero. Aenean sit amet felis dolor, in sagittis nisi. Sed ac orci quis tortor imperdiet venenatis. Duis elementum auctor accumsan. Aliquam in felis sit amet augue.
  172. </div>
  173. </div>
  174. </div>
  175. <div class="col-md-4">
  176. <div class="panel panel-default">
  177. <div class="panel-heading">
  178. <h3>Hello.</h3>
  179. </div>
  180. <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra varius quam sit amet vulputate. Quisque mauris augue, molestie tincidunt condimentum vitae, gravida a libero. Aenean sit amet felis dolor, in sagittis nisi. Sed ac orci quis tortor imperdiet venenatis. Duis elementum auctor accumsan. Aliquam in felis sit amet augue.
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="row">
  186. <div class="col-lg-12">
  187. <br>
  188. <br>
  189. <p class="pull-right"><a href="http://www.bootply.com">Template from Bootply</a> &nbsp; ©Copyright 2014 ACME<sup>TM</sup> Brand.</p>
  190. <br>
  191. <br>
  192. </div>
  193. </div>
  194. </div>
  195. <!-- script references -->
  196. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
  197. <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
  198. <script src="{{ url_for('static', filename='js/scripts.js') }}"></script>
  199. </body>
  200. </html>