index.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
  5. <title>jQuery treeview</title>
  6. <link rel="stylesheet" href="../jquery.treeview.css" />
  7. <link rel="stylesheet" href="screen.css" />
  8. <script src="../lib/jquery.js" type="text/javascript"></script>
  9. <script src="../lib/jquery.cookie.js" type="text/javascript"></script>
  10. <script src="../jquery.treeview.js" type="text/javascript"></script>
  11. <script type="text/javascript" src="demo.js"></script>
  12. </head>
  13. <body>
  14. <h1 id="banner"><a href="http://bassistance.de/jquery-plugins/jquery-plugin-treeview/">jQuery Treeview Plugin</a> Demo</h1>
  15. <div id="main">
  16. <a href="demo.js">Pagecode</a>
  17. <h3>Other demos</h3>
  18. <ul>
  19. <li><a href="large.html">Large Tree Demo</a></li>
  20. <li><a href="prerendered.html">Prerendered Large Tree Demo</a></li>
  21. <li><a href="async.html">Async Tree Demo</a></li>
  22. <li><a href="edit.html">Editable Tree Demo</a></li>
  23. <li><a href="simple.html">Simple Tree Demo, famfamfam theme (no lines)</a></li>
  24. </ul>
  25. <h4>Sample 1 - default</h4>
  26. <ul id="browser" class="filetree">
  27. <li><span class="folder">Folder 1</span>
  28. <ul>
  29. <li><span class="file">Item 1.1</span></li>
  30. </ul>
  31. </li>
  32. <li><span class="folder">Folder 2</span>
  33. <ul>
  34. <li><span class="folder">Subfolder 2.1</span>
  35. <ul id="folder21">
  36. <li><span class="file">File 2.1.1</span></li>
  37. <li><span class="file">File 2.1.2</span></li>
  38. </ul>
  39. </li>
  40. <li><span class="file">File 2.2</span></li>
  41. </ul>
  42. </li>
  43. <li class="closed"><span class="folder">Folder 3 (closed at start)</span>
  44. <ul>
  45. <li><span class="file">File 3.1</span></li>
  46. </ul>
  47. </li>
  48. <li><span class="file">File 4</span></li>
  49. </ul>
  50. <h4>Sample 2 - Navigation</h4>
  51. <ul id="navigation">
  52. <li><a href="?1">Item 1</a>
  53. <ul>
  54. <li><a href="?1.0">Item 1.0</a>
  55. <ul>
  56. <li><a href="?1.0.0">Item 1.0.0</a></li>
  57. </ul>
  58. </li>
  59. <li><a href="?1.1">Item 1.1</a></li>
  60. <li><a href="?1.2">Item 1.2</a>
  61. <ul>
  62. <li><a href="?1.2.0">Item 1.2.0</a>
  63. <ul>
  64. <li><a href="?1.2.0.0">Item 1.2.0.0</a></li>
  65. <li><a href="?1.2.0.1">Item 1.2.0.1</a></li>
  66. <li><a href="?1.2.0.2">Item 1.2.0.2</a></li>
  67. </ul>
  68. </li>
  69. <li><a href="?1.2.1">Item 1.2.1</a>
  70. <ul>
  71. <li><a href="?1.2.1.0">Item 1.2.1.0</a></li>
  72. </ul>
  73. </li>
  74. <li><a href="?1.2.2">Item 1.2.2</a>
  75. <ul>
  76. <li><a href="?1.2.2.0">Item 1.2.2.0</a></li>
  77. <li><a href="?1.2.2.1">Item 1.2.2.1</a></li>
  78. <li><a href="?1.2.2.2">Item 1.2.2.2</a></li>
  79. </ul>
  80. </li>
  81. </ul>
  82. </li>
  83. </ul>
  84. </li>
  85. <li><a href="?2">Item 2</a>
  86. <ul>
  87. <li><span>Item 2.0</span>
  88. <ul>
  89. <li><a href="?2.0.0">Item 2.0.0</a>
  90. <ul>
  91. <li><a href="?2.0.0.0">Item 2.0.0.0</a></li>
  92. <li><a href="?2.0.0.1">Item 2.0.0.1</a></li>
  93. </ul>
  94. </li>
  95. </ul>
  96. </li>
  97. <li><a href="?2.1">Item 2.1</a>
  98. <ul>
  99. <li><a href="?2.1.0">Item 2.1.0</a>
  100. <ul>
  101. <li><a href="?2.1.0.0">Item 2.1.0.0</a></li>
  102. </ul>
  103. </li>
  104. <li><a href="?2.1.1">Item 2.1.1</a>
  105. <ul>
  106. <li><a href="?2.1.1.0abc">Item 2.1.1.0</a></li>
  107. <li><a href="?2.1.1.1">Item 2.1.1.1</a></li>
  108. <li><a href="?2.1.1.2">Item 2.1.1.2</a></li>
  109. </ul>
  110. </li>
  111. <li><a href="?2.1.2">Item 2.1.2</a>
  112. <ul>
  113. <li><a href="?2.1.2.0">Item 2.1.2.0</a></li>
  114. <li><a href="?2.1.2.1">Item 2.1.2.1</a></li>
  115. <li><a href="?2.1.2.2">Item 2.1.2.2</a></li>
  116. </ul>
  117. </li>
  118. </ul>
  119. </li>
  120. </ul>
  121. </li>
  122. <li><a href="?3">Item 3</a>
  123. <ul>
  124. <li class="open"><a href="?3.0">Item 3.0</a>
  125. <ul>
  126. <li><a href="?3.0.0">Item 3.0.0</a></li>
  127. <li><a href="?3.0.1">Item 3.0.1</a>
  128. <ul>
  129. <li><a href="?3.0.1.0">Item 3.0.1.0</a></li>
  130. <li><a href="?3.0.1.1">Item 3.0.1.1</a></li>
  131. </ul>
  132. </li>
  133. <li><a href="?3.0.2">Item 3.0.2</a>
  134. <ul>
  135. <li><a href="?3.0.2.0">Item 3.0.2.0</a></li>
  136. <li><a href="?3.0.2.1">Item 3.0.2.1</a></li>
  137. <li><a href="?3.0.2.2">Item 3.0.2.2</a></li>
  138. </ul>
  139. </li>
  140. </ul>
  141. </li>
  142. </ul>
  143. </li>
  144. </ul>
  145. <h4>Sample 3 - fast animations, all branches collapsed at first, red theme, cookie-based persistance</h4>
  146. <ul id="red" class="treeview-red">
  147. <li><span>Item 1</span>
  148. <ul>
  149. <li><span>Item 1.0</span>
  150. <ul>
  151. <li><span>Item 1.0.0</span></li>
  152. </ul>
  153. </li>
  154. <li><span>Item 1.1</span></li>
  155. <li><span>Item 1.2</span>
  156. <ul>
  157. <li><span>Item 1.2.0</span>
  158. <ul>
  159. <li><span>Item 1.2.0.0</span></li>
  160. <li><span>Item 1.2.0.1</span></li>
  161. <li><span>Item 1.2.0.2</span></li>
  162. </ul>
  163. </li>
  164. <li><span>Item 1.2.1</span>
  165. <ul>
  166. <li><span>Item 1.2.1.0</span></li>
  167. </ul>
  168. </li>
  169. <li><span>Item 1.2.2</span>
  170. <ul>
  171. <li><span>Item 1.2.2.0</span></li>
  172. <li><span>Item 1.2.2.1</span></li>
  173. <li><span>Item 1.2.2.2</span></li>
  174. </ul>
  175. </li>
  176. </ul>
  177. </li>
  178. </ul>
  179. </li>
  180. <li><span>Item 2</span>
  181. <ul>
  182. <li><span>Item 2.0</span>
  183. <ul>
  184. <li><span>Item 2.0.0</span>
  185. <ul>
  186. <li><span>Item 2.0.0.0</span></li>
  187. <li><span>Item 2.0.0.1</span></li>
  188. </ul>
  189. </li>
  190. </ul>
  191. </li>
  192. <li><span>Item 2.1</span>
  193. <ul>
  194. <li><span>Item 2.1.0</span>
  195. <ul>
  196. <li><span>Item 2.1.0.0</span></li>
  197. </ul>
  198. </li>
  199. <li><span>Item 2.1.1</span>
  200. <ul>
  201. <li><span>Item 2.1.1.0</span></li>
  202. <li><span>Item 2.1.1.1</span></li>
  203. <li><span>Item 2.1.1.2</span></li>
  204. </ul>
  205. </li>
  206. <li><span>Item 2.1.2</span>
  207. <ul>
  208. <li><span>Item 2.1.2.0</span></li>
  209. <li><span>Item 2.1.2.1</span></li>
  210. <li><span>Item 2.1.2.2</span></li>
  211. </ul>
  212. </li>
  213. </ul>
  214. </li>
  215. </ul>
  216. </li>
  217. <li class="open"><span>Item 3</span>
  218. <ul>
  219. <li class="open"><span>Item 3.0</span>
  220. <ul>
  221. <li><span>Item 3.0.0</span></li>
  222. <li><span>Item 3.0.1</span>
  223. <ul>
  224. <li><span>Item 3.0.1.0</span></li>
  225. <li><span>Item 3.0.1.1</span></li>
  226. </ul>
  227. </li>
  228. <li><span>Item 3.0.2</span>
  229. <ul>
  230. <li><span>Item 3.0.2.0</span></li>
  231. <li><span>Item 3.0.2.1</span></li>
  232. <li><span>Item 3.0.2.2</span></li>
  233. </ul>
  234. </li>
  235. </ul>
  236. </li>
  237. </ul>
  238. </li>
  239. </ul>
  240. <h4>Sample 4 - two trees with one tree control, black and gray theme, cookie-based persistance</h4>
  241. <div id="treecontrol">
  242. <a title="Collapse the entire tree below" href="#"><img src="../images/minus.gif" /> Collapse All</a>
  243. <a title="Expand the entire tree below" href="#"><img src="../images/plus.gif" /> Expand All</a>
  244. <a title="Toggle the tree below, opening closed branches, closing open branches" href="#">Toggle All</a>
  245. </div>
  246. <ul id="black" class="treeview-black">
  247. <li>Item 1</li>
  248. <li>
  249. <span>Item 2</span>
  250. <ul>
  251. <li>
  252. <span>Item 2.1</span>
  253. <ul>
  254. <li>Item 2.1.1</li>
  255. <li>Item 2.1.2</li>
  256. </ul>
  257. </li>
  258. <li>Item 2.2</li>
  259. <li class="closed">
  260. <span>Item 2.3 (closed at start)</span>
  261. <ul>
  262. <li>Item 2.3.1</li>
  263. <li>Item 2.3.2</li>
  264. </ul>
  265. </li>
  266. </ul>
  267. </li>
  268. </ul>
  269. <ul id="gray" class="treeview-gray">
  270. <li>Item 1</li>
  271. <li>
  272. <span>Item 2</span>
  273. <ul>
  274. <li class="closed">
  275. <span>Item 2.1 (closed at start)</span>
  276. <ul>
  277. <li>Item 2.1.1</li>
  278. <li>Item 2.1.2</li>
  279. </ul>
  280. </li>
  281. <li>Item 2.2.1</li>
  282. <li>Item 2.2.2</li>
  283. <li>Item 2.2.3</li>
  284. <li>Item 2.2.4</li>
  285. <li>Item 2.2.5</li>
  286. <li>Item 2.2.6</li>
  287. <li>Item 2.2.7</li>
  288. <li>Item 2.2.8</li>
  289. <li>
  290. <span>Item 2.3</span>
  291. <ul>
  292. <li>Item 2.3.1</li>
  293. <li>Item 2.3.2</li>
  294. <li>Item 2.3.3</li>
  295. <li>Item 2.3.4</li>
  296. <li>Item 2.3.5</li>
  297. <li>Item 2.3.6</li>
  298. <li>Item 2.3.7</li>
  299. <li>Item 2.3.8</li>
  300. <li>Item 2.3.9</li>
  301. </ul>
  302. </li>
  303. <li>
  304. <span>Item 2.4</span>
  305. <ul>
  306. <li>Item 2.4.1</li>
  307. <li>Item 2.4.2</li>
  308. <li>Item 2.4.3</li>
  309. <li>Item 2.4.4</li>
  310. <li>Item 2.4.5</li>
  311. <li>Item 2.4.6</li>
  312. <li>Item 2.4.7</li>
  313. <li>Item 2.4.8</li>
  314. <li>Item 2.4.9</li>
  315. </ul>
  316. </li>
  317. </ul>
  318. </li>
  319. <li>Item 3</li>
  320. </ul>
  321. </div>
  322. </body></html>