index.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>Nano Bind Sample</title>
  7. <link href="index.css" rel="stylesheet" type="text/css" />
  8. </head>
  9. <body>
  10. <div class='oneVar'>
  11. <div class='leftColumn'>
  12. <input type="text" id="text1">
  13. </div>
  14. <div class='rightColumn'>
  15. <h3 class='key'></h3>
  16. <textarea class='data'>
  17. </textarea>
  18. <button class='update'>Update</button>
  19. </div>
  20. </div>
  21. <!-- <div class='oneVar'>
  22. <div class='leftColumn'>
  23. <p id='p1'></p>
  24. <p><input name="dzen" type="radio" value="nedzen"> Не дзен</p>
  25. <p><input name="dzen" type="radio" value="dzen"> Дзен</p>
  26. <p><input name="dzen" type="radio" value="pdzen" checked> Полный дзен</p>
  27. </div>
  28. <div class='rightColumn'>
  29. <h3 class='key'></h3>
  30. <textarea class='data'>
  31. </textarea>
  32. </div>
  33. </div> -->
  34. <div class='oneVar'>
  35. <div class='leftColumn'>
  36. <textarea id="textarea"></textarea>
  37. </div>
  38. <div class='rightColumn'>
  39. <h3 class='key'></h3>
  40. <textarea class='data'>
  41. </textarea>
  42. <button class='update'>Update</button>
  43. </div>
  44. </div>
  45. <div class='oneVar'>
  46. <div class='leftColumn'>
  47. <div id='menu'>
  48. <a href='#' style='color: red; margin-right: 15px;'></a>
  49. <a href='#' style='color: green; margin-right: 15px;'></a>
  50. </div>
  51. <!-- <ul id='menu'>
  52. <li></li>
  53. </ul> -->
  54. </div>
  55. <div class='rightColumn'>
  56. <h3 class='key'></h3>
  57. <textarea class='data'>
  58. </textarea>
  59. <button class='update'>Update</button>
  60. </div>
  61. </div>
  62. <div class='oneVar'>
  63. <div class='leftColumn'>
  64. <select id="select">
  65. <option value="">--</option>
  66. <!--<option value="M" style="background-color: gray;">Male</option>-->
  67. <!--<option value="F">Female</option>-->
  68. <!--<option value="X">Xenomorph</option> -->
  69. </select>
  70. </div>
  71. <div class='rightColumn'>
  72. <h3 class='key'></h3>
  73. <textarea class='data'>
  74. </textarea>
  75. <button class='update'>Update</button>
  76. </div>
  77. </div>
  78. <div class='oneVar'>
  79. <div class='leftColumn'>
  80. <input type='checkbox' id='check1'>
  81. </div>
  82. <div class='rightColumn'>
  83. <h3 class='key'></h3>
  84. <textarea class='data'>
  85. </textarea>
  86. <button class='update'>Update</button>
  87. </div>
  88. </div>
  89. <div class='oneVar'>
  90. <div class='leftColumn'>
  91. <input id='someInput' />
  92. </div>
  93. <div class='rightColumn'>
  94. <h3 class='key'></h3>
  95. <textarea class='data'>
  96. </textarea>
  97. <button class='update'>Update</button>
  98. </div>
  99. </div>
  100. <div class='oneVar'>
  101. <div class='leftColumn'>
  102. <table>
  103. <tbody id="numberTable">
  104. <tr>
  105. <td><input>table template line 1</td>
  106. <td style='background-color: blue;'>table template line 1</td>
  107. </tr>
  108. <tr style='background-color: gray;'>
  109. <td>table template line 2</td>
  110. <td style='background-color: red;'>table template line 2</td>
  111. </tr>
  112. </tbody>
  113. </table>
  114. </div>
  115. <div class='rightColumn'>
  116. <h3 class='key'></h3>
  117. <textarea class='data'>
  118. </textarea>
  119. <button class='update'>Update</button>
  120. </div>
  121. </div>
  122. <div class='oneVar'>
  123. <div class='leftColumn'>
  124. <table>
  125. <thead>
  126. <th> age</th>
  127. <th> married</th>
  128. <th> surname</th>
  129. <th> name</th>
  130. <th> note</th>
  131. </thead>
  132. <tbody id="hashTable">
  133. <tr>
  134. <td class='age'></td>
  135. <td><input type='checkbox' class='married'></td>
  136. <td class='surname'></td>
  137. <td class='name'></td>
  138. <td><textarea class='note'></textarea></td>
  139. <td><button class='btnDel'>x</button></td>
  140. </tr>
  141. </tbody>
  142. </table>
  143. <button id='addPerson'> add person </button>
  144. </div>
  145. <div class='rightColumn'>
  146. <h3 class='key'></h3>
  147. <textarea class='data'>
  148. </textarea>
  149. <button class='update'>Update</button>
  150. </div>
  151. </div>
  152. <!-- <div class='oneVar'>
  153. <table>
  154. <tbody id="persons">
  155. <tr>
  156. <td><input type='number' style='max-width:50px;'></td>
  157. </tr>
  158. </tbody>
  159. </table>
  160. </div> -->
  161. <div class='oneVar'>
  162. <div class='leftColumn' id="checks">
  163. <label><input type='checkbox' class='check'><span class='description'></span><br/></label>
  164. </div>
  165. <div class='rightColumn'>
  166. <h3 class='key'></h3>
  167. <textarea class='data'>
  168. </textarea>
  169. <button class='update'>Update</button>
  170. </div>
  171. </div>
  172. <div class='oneVar'>
  173. <div id="radios" class='leftColumn'>
  174. <label><input type='radio' class='radio'><span class='description'></span><br/></label>
  175. </div>
  176. <div class='rightColumn'>
  177. <h3 class='key'></h3>
  178. <textarea class='data'>
  179. </textarea>
  180. <button class='update'>Update</button>
  181. </div>
  182. </div>
  183. <div class='oneVar'>
  184. <div class='leftColumn'>
  185. <table>
  186. <tbody id="ediTable">
  187. <tr>
  188. <td><!--<input type='number' style='max-width:50px;'>--></td>
  189. </tr>
  190. </tbody>
  191. </table>
  192. </div>
  193. <div class='rightColumn'>
  194. <h3 class='key'></h3>
  195. <textarea class='data'>
  196. </textarea>
  197. <button class='update'>Update</button>
  198. </div>
  199. </div>
  200. <!--
  201. <strong>Use $s variable for accessing data in DOM</strong>
  202. <pre id='state' style='background-color: lightgray;'>
  203. 2 seconds timeout
  204. </pre>
  205. -->
  206. <script src="nb.js"></script>
  207. <script src="index.js"></script>
  208. </body>
  209. </html>