index.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. <select id="select">
  48. <option value="">--</option>
  49. <!--<option value="M" style="background-color: gray;">Male</option>-->
  50. <!--<option value="F">Female</option>-->
  51. <!--<option value="X">Xenomorph</option> -->
  52. </select>
  53. </div>
  54. <div class='rightColumn'>
  55. <h3 class='key'></h3>
  56. <textarea class='data'>
  57. </textarea>
  58. <button class='update'>Update</button>
  59. </div>
  60. </div>
  61. <div class='oneVar'>
  62. <div class='leftColumn'>
  63. <input type='checkbox' id='check1'>
  64. </div>
  65. <div class='rightColumn'>
  66. <h3 class='key'></h3>
  67. <textarea class='data'>
  68. </textarea>
  69. <button class='update'>Update</button>
  70. </div>
  71. </div>
  72. <div class='oneVar'>
  73. <div class='leftColumn'>
  74. <table>
  75. <tbody id="numberTable">
  76. <tr>
  77. <td><input>table template line 1</td>
  78. <td style='background-color: blue;'>table template line 1</td>
  79. </tr>
  80. <tr style='background-color: gray;'>
  81. <td>table template line 2</td>
  82. <td style='background-color: red;'>table template line 2</td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. </div>
  87. <div class='rightColumn'>
  88. <h3 class='key'></h3>
  89. <textarea class='data'>
  90. </textarea>
  91. <button class='update'>Update</button>
  92. </div>
  93. </div>
  94. <div class='oneVar'>
  95. <div class='leftColumn'>
  96. <table>
  97. <thead>
  98. <th> age</th>
  99. <th> married</th>
  100. <th> surname</th>
  101. <th> name</th>
  102. <th> note</th>
  103. </thead>
  104. <tbody id="hashTable">
  105. <tr>
  106. <td class='age'></td>
  107. <td><input type='checkbox' class='married'></td>
  108. <td class='surname'></td>
  109. <td class='name'></td>
  110. <td><textarea class='note'></textarea></td>
  111. <td><button class='btn'>+</button></td>
  112. </tr>
  113. </tbody>
  114. </table>
  115. </div>
  116. <div class='rightColumn'>
  117. <h3 class='key'></h3>
  118. <textarea class='data'>
  119. </textarea>
  120. <button class='update'>Update</button>
  121. </div>
  122. </div>
  123. <!-- <div class='oneVar'>
  124. <table>
  125. <tbody id="persons">
  126. <tr>
  127. <td><input type='number' style='max-width:50px;'></td>
  128. </tr>
  129. </tbody>
  130. </table>
  131. </div> -->
  132. <div class='oneVar'>
  133. <div class='leftColumn' id="checks">
  134. <label><input type='checkbox' class='check'><span class='description'></span><br/></label>
  135. </div>
  136. <div class='rightColumn'>
  137. <h3 class='key'></h3>
  138. <textarea class='data'>
  139. </textarea>
  140. <button class='update'>Update</button>
  141. </div>
  142. </div>
  143. <div class='oneVar'>
  144. <div id="radios" class='leftColumn'>
  145. <label><input type='radio' class='radio'><span class='description'></span><br/></label>
  146. </div>
  147. <div class='rightColumn'>
  148. <h3 class='key'></h3>
  149. <textarea class='data'>
  150. </textarea>
  151. <button class='update'>Update</button>
  152. </div>
  153. </div>
  154. <div class='oneVar'>
  155. <div class='leftColumn'>
  156. <table>
  157. <tbody id="ediTable">
  158. <tr>
  159. <td><!--<input type='number' style='max-width:50px;'>--></td>
  160. </tr>
  161. </tbody>
  162. </table>
  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. <!--
  172. <strong>Use $s variable for accessing data in DOM</strong>
  173. <pre id='state' style='background-color: lightgray;'>
  174. 2 seconds timeout
  175. </pre>
  176. -->
  177. <script src="nb.js"></script>
  178. <script src="index.js"></script>
  179. </body>
  180. </html>