PageRenderTime 47ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/third_party/google-closure-library/closure/goog/demos/index_nav.html

https://github.com/chromium/chromium
HTML | 256 lines | 240 code | 10 blank | 6 comment | 0 complexity | 75521f0bc6cc740a85457926da6661a1 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, Apache-2.0, BSD-3-Clause
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright The Closure Library Authors. All Rights Reserved.
  5. Use of this source code is governed by the Apache License, Version 2.0.
  6. See the COPYING file for details.
  7. -->
  8. <head>
  9. <title>Closure Demos</title>
  10. <script src="../base.js"></script>
  11. <script>
  12. goog.require('goog.ui.tree.TreeControl');
  13. goog.require('goog.dom');
  14. goog.require('goog.html.SafeHtml');
  15. </script>
  16. <script>
  17. var treeData = [
  18. {name: 'Advanced Tooltip', url: 'advancedtooltip.html'},
  19. {name: 'Autocomplete', childNodes: [
  20. {name: 'Basic', url: 'autocomplete-basic.html'},
  21. {name: 'Remote', url: 'autocompleteremote.html'},
  22. {name: 'Rich Remote', url: 'autocompleterichremote.html'}
  23. ]},
  24. {name: 'Bidi Input', url: 'bidiinput.html'},
  25. {name: 'Bubble', url: 'bubble.html'},
  26. {name: 'Char Counter', url: 'charcounter.html'},
  27. {name: 'Color Pickers and Palettes', childNodes: [
  28. {name: 'Color Contrast', url: 'color-contrast.html'},
  29. {name: 'HSV Palette', url: 'hsvpalette.html'},
  30. {name: 'HSVA Palette', url: 'hsvapalette.html'},
  31. {name: 'Simple Color Grid', url: 'colorpicker.html'},
  32. {name: 'Popup Color Picker', url: 'popupcolorpicker.html'},
  33. {name: 'Palette Examples', url: 'palette.html'}
  34. ]},
  35. {name: 'Common UI Controls', childNodes: [
  36. {name: 'Buttons', childNodes: [
  37. {name: 'CSS 3', url: 'css3button.html'},
  38. {name: 'Imageless', url: 'imagelessbutton.html'},
  39. {name: 'Simple', url: 'button.html'}
  40. ]},
  41. {name: 'Checkbox', url: 'checkbox.html'},
  42. {name: 'Combobox', url: 'combobox.html'},
  43. {name: 'Container', url: 'container.html'},
  44. {name: 'Control', url: 'control.html'},
  45. {name: 'Dimension Picker', childNodes: [
  46. {name: 'LTR', url: 'dimensionpicker.html'},
  47. {name: 'RTL', url: 'dimensionpicker_rtl.html'}
  48. ]},
  49. {name: 'Menu', childNodes: [
  50. {name: 'Menu Bar', url: 'menubar.html'},
  51. {name: 'Filtered Menu', url: 'filteredmenu.html'},
  52. {name: 'Popup Menu', url: 'popupmenu.html'},
  53. {name: 'Simple Menu', url: 'menu.html'},
  54. {name: 'Submenus', url: 'submenus.html'},
  55. {name: 'Submenus Flyweight', url: 'submenus2.html'}
  56. ]},
  57. {name: 'Menu Buttons', childNodes: [
  58. {name: 'Color', url: 'colormenubutton.html'},
  59. {name: 'CSS 3', url: 'css3menubutton.html'},
  60. {name: 'Imageless', url: 'imagelessmenubutton.html'},
  61. {name: 'Selection', url: 'selectionmenubutton.html'},
  62. {name: 'Simple', url: 'menubutton.html'}
  63. ]},
  64. {name: 'Select', url: 'select.html'},
  65. {name: 'Tab Bar and Tabs', url: 'tabbar.html'},
  66. {name: 'Tab Pane', url: 'tabpane.html'},
  67. {name: 'Toolbar', url: 'toolbar.html'}
  68. ]},
  69. {name: 'Date Pickers', childNodes: [
  70. {name: 'Date Picker', url: 'datepicker.html'},
  71. {name: 'Input Date Picker', url: 'inputdatepicker.html'},
  72. {name: 'Popup Date Picker', url: 'popupdatepicker.html'}
  73. ]},
  74. {name: 'Debug', url: 'debug.html'},
  75. {name: 'Dependency Graph', url: 'depsgraph.html'},
  76. {name: 'Dialog', url: 'dialog.html'},
  77. {name: 'Dom Selection', url: 'dom_selection.html'},
  78. {name: 'Drag', url: 'drag.html'},
  79. {name: 'Drag & Drop', childNodes: [
  80. {name: 'Drag & Drop', url: 'dragdrop.html'},
  81. {name: 'Drag & Drop Detector', url: 'dragdropdetector.html'},
  82. {name: 'Drag List Group', url: 'draglistgroup.html'},
  83. {name: 'Dragger', url: 'dragger.html'},
  84. {name: 'File Drop Handler', url: 'filedrophandler.html'}
  85. ]},
  86. {name: 'Editor', childNodes: [
  87. {name: 'Field - Basic', url: 'editor/field_basic.html'},
  88. {name: 'Full Editor', url: 'editor/editor.html'},
  89. {name: 'Hello World Plugin', url: 'editor/helloworld.html'},
  90. {name: 'Seamless Field', url: 'editor/seamlessfield.html'}
  91. ]},
  92. {name: 'Effects', childNodes: [
  93. {name: 'Animation', url: 'effects.html'},
  94. {name: 'Animation Queue', url: 'animationqueue.html'},
  95. {name: 'CSS Sprite Animation', url: 'cssspriteanimation.html'},
  96. {name: 'CSS3 targeted transition', url: 'fx/css3/transition.html'}
  97. ]},
  98. {name: 'Emoji Picker', url: 'popupemojipicker.html'},
  99. {name: 'Events', childNodes: [
  100. {name: 'Event Propagation', url: 'event-propagation.html'},
  101. {name: 'Event Target', url: 'eventtarget.html'},
  102. {name: 'Events', url: 'events.html'},
  103. {name: 'Focus Handler', url: 'focushandler.html'},
  104. {name: 'Input Handler', url: 'inputhandler.html'},
  105. {name: 'Key Handler', url: 'keyhandler.html'},
  106. {name: 'Keyboard Shortcuts', url: 'keyboardshortcuts.html'},
  107. {name: 'Mouse Wheel Handler', url: 'mousewheelhandler.html'},
  108. {name: 'Online Handler', url: 'onlinehandler.html'},
  109. {name: 'Paste Handler', url: 'pastehandler.html'},
  110. {name: 'Stop Event Propagation', url: 'stopevent.html'}
  111. ]},
  112. {name: 'Gauge', url: 'gauge.html'},
  113. {name: 'Graphics', childNodes: [
  114. {name: 'Basic Elements', url: 'graphics/basicelements.html'},
  115. {name: 'Events', url: 'graphics/events.html'},
  116. {name: 'Modify Elements', url: 'graphics/modifyelements.html'},
  117. {name: 'Tiger', url: 'graphics/tiger.html'}
  118. ]},
  119. {name: 'History', childNodes: [
  120. {name: 'Demo 1', url: 'history1.html'},
  121. {name: 'Demo 2', url: 'history2.html'},
  122. {name: 'HTML 5', url: 'html5history.html'},
  123. {name: 'Iframe Based', url: 'history3.html'}
  124. ]},
  125. {name: 'Hover Card', url: 'hovercard.html'},
  126. {name: 'Inline Block', childNodes: [
  127. {name: 'Quirks mode', url: 'inline_block_quirks.html'},
  128. {name: 'Standards mode', url: 'inline_block_standards.html'}
  129. ]},
  130. {name: 'JSON Pretty Printer', url: 'jsonprettyprinter.html'},
  131. {name: 'Label Input', url: 'labelinput.html'},
  132. {name: 'Pixel Density Monitor', url: 'pixeldensitymonitor.html'},
  133. {name: 'Plain Text Spell Checker', url: 'plaintextspellchecker.html'},
  134. {name: 'Popup', url: 'popup.html'},
  135. {name: 'Progress Bar', url: 'progressbar.html'},
  136. {name: 'Prompt', url: 'prompt.html'},
  137. {name: 'QuadTree', url: 'quadtree.html'},
  138. {name: 'Ratings', url: 'ratings.html'},
  139. {name: 'Rich Text Spell Checker', url: 'richtextspellchecker.html'},
  140. {name: 'Rounded Panel', url: 'roundedpanel.html'},
  141. {name: 'Sample Component', url: 'samplecomponent.html'},
  142. {name: 'Scroll Floater', url: 'scrollfloater.html'},
  143. {name: 'Server Chart', url: 'serverchart.html'},
  144. {name: 'Sliders', childNodes: [
  145. {name: 'Slider', url: 'slider.html'},
  146. {name: 'Two Thumb Slider', url: 'twothumbslider.html'}
  147. ]},
  148. {name: 'Split Pane', url: 'splitpane.html'},
  149. {name: 'Table Sorting', url: 'tablesorter.html'},
  150. {name: 'Textarea', url: 'textarea.html'},
  151. {name: 'Timer', url: 'timers.html'},
  152. {name: 'Tooltips', childNodes: [
  153. {name: 'Simple Tooltip', url: 'tooltip.html'},
  154. {name: 'Advanced Tooltip', url: 'advancedtooltip.html'}
  155. ]},
  156. {name: 'Tracer', url: 'tracer.html'},
  157. {name: 'Trees', childNodes: [
  158. {name: 'Drilldown Row', url: 'drilldownrow.html'},
  159. {name: 'Tree', url: 'tree/demo.html'}
  160. ]},
  161. {name: 'TweakUi', url: 'tweakui.html'},
  162. {name: 'User Agent', url: 'useragent.html'},
  163. {name: 'Viewport Size Monitor', url: 'viewportsizemonitor.html'},
  164. {name: 'XPC', url: 'xpc/'},
  165. {name: 'Zippy', url: 'zippy.html'}
  166. ];
  167. function initTree() {
  168. goog.ui.tree.TreeControl.defaultConfig.cleardotPath =
  169. '../images/tree/cleardot.gif';
  170. var tree = new goog.ui.tree.TreeControl('All Demos');
  171. tree.setIsUserCollapsible(false);
  172. buildNode(tree, treeData);
  173. tree.render(goog.dom.getElement('demo-list'));
  174. }
  175. function buildNode(parent, nodeArray) {
  176. for (var i = 0, node; node = nodeArray[i]; i++) {
  177. if (node.name) {
  178. var childNode = parent.getTree().createNode();
  179. parent.add(childNode);
  180. if (node.url) {
  181. childNode.setSafeHtml(goog.html.SafeHtml.create('a', {
  182. 'href': node.url,
  183. 'title': node.name,
  184. 'target': 'demo'
  185. }, node.name));
  186. // Need to prevent BaseNode.onClick_ from calling preventDefault.
  187. childNode.onClick_ = goog.nullFunction;
  188. } else if (node.childNodes) {
  189. childNode.setText(node.name);
  190. buildNode(childNode, node.childNodes);
  191. }
  192. }
  193. }
  194. }
  195. //function showDemo(node) {
  196. // window.top.frames['demo'].location = node.getClientData();
  197. //}
  198. </script>
  199. <link rel="stylesheet" href="../css/tree.css">
  200. <style>
  201. body {
  202. font: normal 10pt Tahoma, Arial, sans-serif;
  203. color: #333;
  204. background-color: #eee;
  205. }
  206. h2 a {
  207. font: bold 18pt Tahoma, Arial, sans-serif;
  208. color: #333;
  209. text-decoration: underline;
  210. }
  211. h2 a:hover {
  212. color: #00f;
  213. text-decoration: underline;
  214. }
  215. .goog-tree-children {
  216. background-repeat: repeat-y;
  217. background-image: url("../images/tree/I.png") !important;
  218. background-position-y: 1px !important; /* IE only */
  219. font: icon;
  220. }
  221. .goog-tree-icon {
  222. background-image:url("../images/tree/tree.png");
  223. }
  224. .goog-tree-item-label {
  225. font: bold 10pt Tahoma, Arial, sans-serif;
  226. color: #333;
  227. text-decoration: none;
  228. }
  229. .goog-tree-item-label a {
  230. font: normal 10pt Tahoma, Arial, sans-serif;
  231. color: #333;
  232. text-decoration: none;
  233. }
  234. .goog-tree-item-label a:hover {
  235. color: #00f;
  236. text-decoration: underline;
  237. }
  238. </style>
  239. </head>
  240. <body>
  241. <h2><a href="index_splash.html" title="Home" target="demo">Index</a></h2>
  242. <div id="demo-list"></div>
  243. <script>initTree();</script>
  244. </body>
  245. </html>