index.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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='btn'>+</button></td>
  140. </tr>
  141. </tbody>
  142. </table>
  143. </div>
  144. <div class='rightColumn'>
  145. <h3 class='key'></h3>
  146. <textarea class='data'>
  147. </textarea>
  148. <button class='update'>Update</button>
  149. </div>
  150. </div>
  151. <!-- <div class='oneVar'>
  152. <table>
  153. <tbody id="persons">
  154. <tr>
  155. <td><input type='number' style='max-width:50px;'></td>
  156. </tr>
  157. </tbody>
  158. </table>
  159. </div> -->
  160. <div class='oneVar'>
  161. <div class='leftColumn' id="checks">
  162. <label><input type='checkbox' class='check'><span class='description'></span><br/></label>
  163. </div>
  164. <div class='rightColumn'>
  165. <h3 class='key'></h3>
  166. <textarea class='data'>
  167. </textarea>
  168. <button class='update'>Update</button>
  169. </div>
  170. </div>
  171. <div class='oneVar'>
  172. <div id="radios" class='leftColumn'>
  173. <label><input type='radio' class='radio'><span class='description'></span><br/></label>
  174. </div>
  175. <div class='rightColumn'>
  176. <h3 class='key'></h3>
  177. <textarea class='data'>
  178. </textarea>
  179. <button class='update'>Update</button>
  180. </div>
  181. </div>
  182. <div class='oneVar'>
  183. <div class='leftColumn'>
  184. <table>
  185. <tbody id="ediTable">
  186. <tr>
  187. <td><!--<input type='number' style='max-width:50px;'>--></td>
  188. </tr>
  189. </tbody>
  190. </table>
  191. </div>
  192. <div class='rightColumn'>
  193. <h3 class='key'></h3>
  194. <textarea class='data'>
  195. </textarea>
  196. <button class='update'>Update</button>
  197. </div>
  198. </div>
  199. <!--
  200. <strong>Use $s variable for accessing data in DOM</strong>
  201. <pre id='state' style='background-color: lightgray;'>
  202. 2 seconds timeout
  203. </pre>
  204. -->
  205. <script src="nb.js"></script>
  206. <script src="index.js"></script>
  207. </body>
  208. </html>