old_sql 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (263) hide show
  1. data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +362 -0
  2. data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +69 -0
  3. data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +179 -0
  4. data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +17 -0
  5. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +814 -0
  6. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +1703 -0
  7. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +755 -0
  8. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +1197 -0
  9. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +168 -0
  10. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +187 -0
  11. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +300 -0
  12. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +524 -0
  13. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +420 -0
  14. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +142 -0
  15. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +38 -0
  16. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +240 -0
  17. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +508 -0
  18. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +244 -0
  19. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +385 -0
  20. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +384 -0
  21. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +1161 -0
  22. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +447 -0
  23. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +113 -0
  24. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +767 -0
  25. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +1445 -0
  26. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +651 -0
  27. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +1143 -0
  28. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +145 -0
  29. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +197 -0
  30. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +258 -0
  31. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +454 -0
  32. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +348 -0
  33. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +128 -0
  34. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +26 -0
  35. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +203 -0
  36. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +498 -0
  37. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +186 -0
  38. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +353 -0
  39. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +362 -0
  40. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +895 -0
  41. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +83 -0
  42. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +69 -0
  43. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +401 -0
  44. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +10 -0
  45. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +40 -0
  46. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +96 -0
  47. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +4 -0
  48. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +95 -0
  49. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +31 -0
  50. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +23 -0
  51. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
  52. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
  53. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +54 -0
  54. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +150 -0
  55. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +42 -0
  56. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +90 -0
  57. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +29 -0
  58. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +38 -0
  59. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +189 -0
  60. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +28 -0
  61. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +73 -0
  62. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +38 -0
  63. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +36 -0
  64. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +65 -0
  65. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +31 -0
  66. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +18 -0
  67. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +61 -0
  68. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +38 -0
  69. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +67 -0
  70. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +67 -0
  71. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +30 -0
  72. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +483 -0
  73. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +62 -0
  74. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +71 -0
  75. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
  76. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +150 -0
  77. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +88 -0
  78. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +54 -0
  79. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +373 -0
  80. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +78 -0
  81. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +5 -0
  82. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +85 -0
  83. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +46 -0
  84. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +78 -0
  85. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +11 -0
  86. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +74 -0
  87. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +73 -0
  88. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +125 -0
  89. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +88 -0
  90. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +17 -0
  91. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +59 -0
  92. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +28 -0
  93. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +3 -0
  94. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +19 -0
  95. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +45 -0
  96. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +119 -0
  97. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +40 -0
  98. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +43 -0
  99. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +91 -0
  100. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +54 -0
  101. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +93 -0
  102. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +64 -0
  103. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +71 -0
  104. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +66 -0
  105. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +203 -0
  106. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +177 -0
  107. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +339 -0
  108. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +30 -0
  109. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +31 -0
  110. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +22 -0
  111. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +23 -0
  112. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +71 -0
  113. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +40 -0
  114. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +29 -0
  115. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +61 -0
  116. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +622 -0
  117. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +1 -0
  118. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +19 -0
  119. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +70 -0
  120. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
  121. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
  122. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
  123. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +130 -0
  124. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +48 -0
  125. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +682 -0
  126. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +1489 -0
  127. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +863 -0
  128. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +1256 -0
  129. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +222 -0
  130. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +793 -0
  131. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +304 -0
  132. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +844 -0
  133. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +315 -0
  134. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +353 -0
  135. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +188 -0
  136. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +115 -0
  137. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +236 -0
  138. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +415 -0
  139. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +897 -0
  140. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +589 -0
  141. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +594 -0
  142. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +162 -0
  143. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +2026 -0
  144. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +18 -0
  145. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +7829 -0
  146. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +6 -0
  147. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +251 -0
  148. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +40 -0
  149. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +381 -0
  150. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +159 -0
  151. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +28 -0
  152. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +6 -0
  153. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +25 -0
  154. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +16 -0
  155. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +577 -0
  156. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +137 -0
  157. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +52 -0
  158. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +30 -0
  159. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +89 -0
  160. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +186 -0
  161. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +88 -0
  162. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +408 -0
  163. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +1 -0
  164. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +34 -0
  165. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +84 -0
  166. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +48 -0
  167. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +363 -0
  168. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +39 -0
  169. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +54 -0
  170. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +39 -0
  171. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +38 -0
  172. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +32 -0
  173. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +40 -0
  174. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +18 -0
  175. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +295 -0
  176. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +43 -0
  177. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +223 -0
  178. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +197 -0
  179. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +481 -0
  180. data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +28 -0
  181. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +406 -0
  182. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +683 -0
  183. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +161 -0
  184. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +756 -0
  185. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +151 -0
  186. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +2177 -0
  187. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +705 -0
  188. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +348 -0
  189. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +247 -0
  190. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +9 -0
  191. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +723 -0
  192. data/public/javascripts/old_sql/plotkit-0.9.1/README +1 -0
  193. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +2 -0
  194. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +2 -0
  195. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +302 -0
  196. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +139 -0
  197. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +172 -0
  198. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +81 -0
  199. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +155 -0
  200. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +50 -0
  201. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +428 -0
  202. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +330 -0
  203. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +368 -0
  204. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +256 -0
  205. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +436 -0
  206. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +299 -0
  207. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +159 -0
  208. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +64 -0
  209. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +131 -0
  210. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +34 -0
  211. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +131 -0
  212. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +34 -0
  213. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +334 -0
  214. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +151 -0
  215. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +304 -0
  216. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +144 -0
  217. data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
  218. data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
  219. data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
  220. data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
  221. data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +62 -0
  222. data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +37 -0
  223. data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
  224. data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
  225. data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
  226. data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
  227. data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
  228. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
  229. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +58 -0
  230. data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +31 -0
  231. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +25 -0
  232. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +143 -0
  233. data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +56 -0
  234. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +58 -0
  235. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +133 -0
  236. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +57 -0
  237. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +136 -0
  238. data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +161 -0
  239. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
  240. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
  241. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
  242. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
  243. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
  244. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
  245. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +38 -0
  246. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +43 -0
  247. data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +28 -0
  248. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +29 -0
  249. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +53 -0
  250. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +29 -0
  251. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +61 -0
  252. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +57 -0
  253. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +6 -0
  254. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +29 -0
  255. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +141 -0
  256. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +26 -0
  257. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +147 -0
  258. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +24 -0
  259. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +89 -0
  260. data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +66 -0
  261. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +20 -0
  262. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +31 -0
  263. metadata +264 -2
@@ -0,0 +1,83 @@
1
+ .. title:: MochiKit Documentation Index
2
+
3
+ Distribution
4
+ ============
5
+
6
+ MochiKit - makes JavaScript suck a bit less
7
+
8
+ - :mochiref:`MochiKit.Async` - manage asynchronous tasks
9
+ - :mochiref:`MochiKit.Base` - functional programming and useful comparisons
10
+ - :mochiref:`MochiKit.DOM` - painless DOM manipulation API
11
+ - :mochiref:`MochiKit.DragAndDrop` - drag and drop
12
+ - :mochiref:`MochiKit.Color` - color abstraction with CSS3 support
13
+ - :mochiref:`MochiKit.DateTime` - "what time is it anyway?"
14
+ - :mochiref:`MochiKit.Format` - string formatting goes here
15
+ - :mochiref:`MochiKit.Iter` - itertools for JavaScript; iteration made HARD,
16
+ and then easy
17
+ - :mochiref:`MochiKit.Logging` - we're all tired of ``alert()``
18
+ - :mochiref:`MochiKit.LoggingPane` - interactive :mochiref:`MochiKit.Logging`
19
+ pane
20
+ - :mochiref:`MochiKit.Selector` - selecting elements by CSS selector syntax
21
+ - :mochiref:`MochiKit.Signal` - simple universal event handling
22
+ - :mochiref:`MochiKit.Style` - painless CSS manipulation API
23
+ - :mochiref:`MochiKit.Sortable` - sortable
24
+ - :mochiref:`MochiKit.Visual` - visual effects
25
+
26
+
27
+ Notes
28
+ =====
29
+
30
+ To turn off MochiKit's export feature (which may be necessary for
31
+ compatibility with some existing code), do this before loading
32
+ MochiKit::
33
+
34
+ <script type="text/javascript">MochiKit = {__export__: false};</script>
35
+
36
+ When export mode is off, you must use fully qualified names for
37
+ all MochiKit functions (e.g. ``MochiKit.Base.map(...)``).
38
+
39
+
40
+ Screencasts
41
+ ===========
42
+
43
+ - `MochiKit 1.1 Intro`__
44
+
45
+ .. __: http://mochikit.com/screencasts/MochiKit_Intro-1
46
+
47
+ See Also
48
+ ========
49
+
50
+ .. _`mochikit.com`: http://mochikit.com/
51
+ .. _`from __future__ import *`: http://bob.pythonmac.org/
52
+ .. _`MochiKit and Dojo`: http://trac.mochikit.com/wiki/HowToUseWithDojo
53
+ .. _`MochiKit on JSAN`: http://openjsan.org/doc/b/bo/bob/MochiKit/
54
+ .. _`MochiKit tag on del.icio.us`: http://del.icio.us/tag/mochikit
55
+ .. _`MochiKit tag on Technorati`: http://technorati.com/tag/mochikit
56
+ .. _`Google Groups: MochiKit`: http://groups.google.com/group/mochikit
57
+
58
+ - `Google Groups: MochiKit`_: The official mailing list for discussions
59
+ related to development of and with MochiKit
60
+ - `mochikit.com`_: MochiKit's home on the web
61
+ - `from __future__ import *`_: Bob Ippolito's blog
62
+ - `MochiKit and Dojo`_: information for using MochiKit with Dojo Toolkit
63
+ - `MochiKit on JSAN`_: the JSAN distribution page for MochiKit
64
+ - `MochiKit tag on del.icio.us`_: Recent bookmarks related to MochiKit
65
+ - `MochiKit tag on Technorati`_: Recent blog entries related to MochiKit
66
+
67
+
68
+ Version History
69
+ ===============
70
+
71
+ .. include:: VersionHistory.rst
72
+
73
+
74
+ Copyright
75
+ =========
76
+
77
+ Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
78
+ dual-licensed free software; you can redistribute it and/or modify it
79
+ under the terms of the `MIT License`_ or the `Academic Free License
80
+ v2.1`_.
81
+
82
+ .. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
83
+ .. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
@@ -0,0 +1,69 @@
1
+ h1 {
2
+ font-size: 2em;
3
+ color: #4B4545;
4
+ text-align: center;
5
+ }
6
+
7
+ table.datagrid {
8
+ width: 100%;
9
+ border-collapse: collapse;
10
+ }
11
+
12
+ table.datagrid thead th {
13
+ text-align: left;
14
+ background-color: #4B4545;
15
+ background-repeat: no-repeat;
16
+ background-position: right center;
17
+ color: white;
18
+ font-weight: bold;
19
+ padding: .3em .7em;
20
+ font-size: .9em;
21
+ padding-right: 5px;
22
+ background-repeat: no-repeat;
23
+ background-position: 95% right;
24
+ }
25
+
26
+ table.datagrid thead th a {
27
+ color: white;
28
+ text-decoration: none;
29
+ font-size: 1.0em;
30
+ background-repeat: no-repeat;
31
+ background-position: center right;
32
+ padding-right: 15px;
33
+ }
34
+
35
+ table.datagrid thead th.over {
36
+ background-color: #746B6B;
37
+ cursor: pointer;
38
+ }
39
+
40
+ table.datagrid tbody th {
41
+ font-weight: bold;
42
+ }
43
+
44
+ table.datagrid tbody td, table.datagrid tbody th {
45
+ text-align: left;
46
+ padding: .3em .7em;
47
+ border-bottom: 1px solid #eee;
48
+ }
49
+
50
+ table.datagrid tbody tr.alternate td, table.datagrid tbody tr.alternate th {
51
+ background-color: #f1f1f1;
52
+ }
53
+
54
+ table.datagrid tfoot td, table.datagrid tfoot th {
55
+ background-color: #FFFEE3;
56
+ color: #4B4545;
57
+ padding: .5em;
58
+ font-weight: bold;
59
+ border-top: 2px solid #4B4545;
60
+ }
61
+
62
+ table.datagrid tfoot th { text-align: left; }
63
+
64
+ table.datagrid tfoot td { }
65
+
66
+ .invisible { display: none; }
67
+
68
+ .mochi-template { display: none; }
69
+ .mochi-example { display: none; }
@@ -0,0 +1,401 @@
1
+ /*
2
+
3
+ On page load, the SortableManager:
4
+
5
+ - Rips out all of the elements with the mochi-example class.
6
+ - Finds the elements with the mochi-template class and saves them for
7
+ later parsing with "MochiTAL".
8
+ - Finds the anchor tags with the mochi:dataformat attribute and gives them
9
+ onclick behvaiors to load new data, using their href as the data source.
10
+ This makes your XML or JSON look like a normal link to a search engine
11
+ (or javascript-disabled browser).
12
+ - Clones the thead element from the table because it will be replaced on each
13
+ sort.
14
+ - Sets up a default sort key of "domain_name" and queues a load of the json
15
+ document.
16
+
17
+
18
+ On data load, the SortableManager:
19
+
20
+ - Parses the table data from the document (columns list, rows list-of-lists)
21
+ and turns them into a list of [{column:value, ...}] objects for easy sorting
22
+ and column order stability.
23
+ - Chooses the default (or previous) sort state and triggers a sort request
24
+
25
+
26
+ On sort request:
27
+
28
+ - Replaces the cloned thead element with a copy of it that has the sort
29
+ indicator (&uarr; or &darr;) for the most recently sorted column (matched up
30
+ to the first field in the th's mochi:sortcolumn attribute), and attaches
31
+ onclick, onmousedown, onmouseover, onmouseout behaviors to them. The second
32
+ field of mochi:sortcolumn attribute is used to perform a non-string sort.
33
+ - Performs the sort on the domains list. If the second field of
34
+ mochi:sortcolumn was not "str", then a custom function is used and the
35
+ results are stored away in a __sort__ key, which is then used to perform the
36
+ sort (read: shwartzian transform).
37
+ - Calls processMochiTAL on the page, which finds the mochi-template sections
38
+ and then looks for mochi:repeat and mochi:content attributes on them, using
39
+ the data object.
40
+
41
+ */
42
+
43
+ processMochiTAL = function (dom, data) {
44
+ /***
45
+
46
+ A TAL-esque template attribute language processor,
47
+ including content replacement and repeat
48
+
49
+ ***/
50
+
51
+ // nodeType == 1 is an element, we're leaving
52
+ // text nodes alone.
53
+ if (dom.nodeType != 1) {
54
+ return;
55
+ }
56
+ var attr;
57
+ // duplicate this element for each item in the
58
+ // given list, and then process the duplicated
59
+ // element again (sans mochi:repeat tag)
60
+ attr = getAttribute(dom, "mochi:repeat");
61
+ if (attr) {
62
+ dom.removeAttribute("mochi:repeat");
63
+ var parent = dom.parentNode;
64
+ attr = attr.split(" ");
65
+ var name = attr[0];
66
+ var lst = valueForKeyPath(data, attr[1]);
67
+ if (!lst) {
68
+ return;
69
+ }
70
+ for (var i = 0; i < lst.length; i++) {
71
+ data[name] = lst[i];
72
+ var newDOM = dom.cloneNode(true);
73
+ processMochiTAL(newDOM, data);
74
+ parent.insertBefore(newDOM, dom);
75
+ }
76
+ parent.removeChild(dom);
77
+ return;
78
+ }
79
+ // do content replacement if there's a mochi:content attribute
80
+ // on the element
81
+ attr = getAttribute(dom, "mochi:content");
82
+ if (attr) {
83
+ dom.removeAttribute("mochi:content");
84
+ replaceChildNodes(dom, valueForKeyPath(data, attr));
85
+ return;
86
+ }
87
+ // we make a shallow copy of the current list of child nodes
88
+ // because it *will* change if there's a mochi:repeat in there!
89
+ var nodes = list(dom.childNodes);
90
+ for (var i = 0; i < nodes.length; i++) {
91
+ processMochiTAL(nodes[i], data);
92
+ }
93
+ };
94
+
95
+ mouseOverFunc = function () {
96
+ addElementClass(this, "over");
97
+ };
98
+
99
+ mouseOutFunc = function () {
100
+ removeElementClass(this, "over");
101
+ };
102
+
103
+ ignoreEvent = function (ev) {
104
+ if (ev && ev.preventDefault) {
105
+ ev.preventDefault();
106
+ ev.stopPropagation();
107
+ } else if (typeof(event) != 'undefined') {
108
+ event.cancelBubble = false;
109
+ event.returnValue = false;
110
+ }
111
+ };
112
+
113
+ SortTransforms = {
114
+ "str": operator.identity,
115
+ "istr": function (s) { return s.toLowerCase(); },
116
+ "isoDate": isoDate
117
+ };
118
+
119
+ getAttribute = function (dom, key) {
120
+ try {
121
+ return dom.getAttribute(key);
122
+ } catch (e) {
123
+ return null;
124
+ }
125
+ };
126
+
127
+ datatableFromXMLRequest = function (req) {
128
+ /***
129
+
130
+ This effectively converts domains.xml to the
131
+ same form as domains.json
132
+
133
+ ***/
134
+ var xml = req.responseXML;
135
+ var nodes = xml.getElementsByTagName("column");
136
+ var rval = {"columns": map(scrapeText, nodes)};
137
+ var rows = [];
138
+ nodes = xml.getElementsByTagName("row")
139
+ for (var i = 0; i < nodes.length; i++) {
140
+ var cells = nodes[i].getElementsByTagName("cell");
141
+ rows.push(map(scrapeText, cells));
142
+ }
143
+ rval.rows = rows;
144
+ return rval;
145
+ };
146
+
147
+ loadFromDataAnchor = function (ev) {
148
+ ignoreEvent(ev);
149
+ var format = this.getAttribute("mochi:dataformat");
150
+ var href = this.href;
151
+ sortableManager.loadFromURL(format, href);
152
+ };
153
+
154
+ valueForKeyPath = function (data, keyPath) {
155
+ var chunks = keyPath.split(".");
156
+ while (chunks.length && data) {
157
+ data = data[chunks.shift()];
158
+ }
159
+ return data;
160
+ };
161
+
162
+
163
+ SortableManager = function () {
164
+ this.thead = null;
165
+ this.thead_proto = null;
166
+ this.tbody = null;
167
+ this.deferred = null;
168
+ this.columns = [];
169
+ this.rows = [];
170
+ this.templates = [];
171
+ this.sortState = {};
172
+ bindMethods(this);
173
+ };
174
+
175
+ SortableManager.prototype = {
176
+
177
+ "initialize": function () {
178
+ // just rip all mochi-examples out of the DOM
179
+ var examples = getElementsByTagAndClassName(null, "mochi-example");
180
+ while (examples.length) {
181
+ swapDOM(examples.pop(), null);
182
+ }
183
+ // make a template list
184
+ var templates = getElementsByTagAndClassName(null, "mochi-template");
185
+ for (var i = 0; i < templates.length; i++) {
186
+ var template = templates[i];
187
+ var proto = template.cloneNode(true);
188
+ removeElementClass(proto, "mochi-template");
189
+ this.templates.push({
190
+ "template": proto,
191
+ "node": template
192
+ });
193
+ }
194
+ // set up the data anchors to do loads
195
+ var anchors = getElementsByTagAndClassName("a", null);
196
+ for (var i = 0; i < anchors.length; i++) {
197
+ var node = anchors[i];
198
+ var format = getAttribute(node, "mochi:dataformat");
199
+ if (format) {
200
+ node.onclick = loadFromDataAnchor;
201
+ }
202
+ }
203
+
204
+ // to find sort columns
205
+ this.thead = getElementsByTagAndClassName("thead", null)[0];
206
+ this.thead_proto = this.thead.cloneNode(true);
207
+
208
+ this.sortkey = "domain_name";
209
+ this.loadFromURL("json", "domains.json");
210
+ },
211
+
212
+ "loadFromURL": function (format, url) {
213
+ log('loadFromURL', format, url);
214
+ var d;
215
+ if (this.deferred) {
216
+ this.deferred.cancel();
217
+ }
218
+ if (format == "xml") {
219
+ var d = doXHR(url, {
220
+ mimeType: 'text/xml',
221
+ headers: {Accept: 'text/xml'}
222
+ });
223
+ d.addCallback(datatableFromXMLRequest);
224
+ } else if (format == "json") {
225
+ d = loadJSONDoc(url);
226
+ } else {
227
+ throw new TypeError("format " + repr(format) + " not supported");
228
+ }
229
+ // keep track of the current deferred, so that we can cancel it
230
+ this.deferred = d;
231
+ var self = this;
232
+ // on success or error, remove the current deferred because it has
233
+ // completed, and pass through the result or error
234
+ d.addBoth(function (res) {
235
+ self.deferred = null;
236
+ log('loadFromURL success');
237
+ return res;
238
+ });
239
+ // on success, tag the result with the format used so we can display
240
+ // it
241
+ d.addCallback(function (res) {
242
+ res.format = format;
243
+ return res;
244
+ });
245
+ // call this.initWithData(data) once it's ready
246
+ d.addCallback(this.initWithData);
247
+ // if anything goes wrong, except for a simple cancellation,
248
+ // then log the error and show the logger
249
+ d.addErrback(function (err) {
250
+ if (err instanceof CancelledError) {
251
+ return;
252
+ }
253
+ logError(err);
254
+ logger.debuggingBookmarklet();
255
+ });
256
+ return d;
257
+ },
258
+
259
+ "initWithData": function (data) {
260
+ /***
261
+
262
+ Initialize the SortableManager with a table object
263
+
264
+ ***/
265
+
266
+ // reformat to [{column:value, ...}, ...] style as the domains key
267
+ var domains = [];
268
+ var rows = data.rows;
269
+ var cols = data.columns;
270
+ for (var i = 0; i < rows.length; i++) {
271
+ var row = rows[i];
272
+ var domain = {};
273
+ for (var j = 0; j < cols.length; j++) {
274
+ domain[cols[j]] = row[j];
275
+ }
276
+ domains.push(domain);
277
+ }
278
+ data.domains = domains;
279
+ this.data = data;
280
+ // perform a sort and display based upon the previous sort state,
281
+ // defaulting to an ascending sort if this is the first sort
282
+ var order = this.sortState[this.sortkey];
283
+ if (typeof(order) == 'undefined') {
284
+ order = true;
285
+ }
286
+ this.drawSortedRows(this.sortkey, order, false);
287
+
288
+ },
289
+
290
+ "onSortClick": function (name) {
291
+ /***
292
+
293
+ Return a sort function for click events
294
+
295
+ ***/
296
+ // save ourselves from doing a bind
297
+ var self = this;
298
+ // on click, flip the last sort order of that column and sort
299
+ return function () {
300
+ log('onSortClick', name);
301
+ var order = self.sortState[name];
302
+ if (typeof(order) == 'undefined') {
303
+ // if it's never been sorted by this column, sort ascending
304
+ order = true;
305
+ } else if (self.sortkey == name) {
306
+ // if this column was sorted most recently, flip the sort order
307
+ order = !((typeof(order) == 'undefined') ? false : order);
308
+ }
309
+ self.drawSortedRows(name, order, true);
310
+ };
311
+ },
312
+
313
+ "drawSortedRows": function (key, forward, clicked) {
314
+ /***
315
+
316
+ Draw the new sorted table body, and modify the column headers
317
+ if appropriate
318
+
319
+ ***/
320
+ log('drawSortedRows', key, forward);
321
+
322
+ // save it so we can flip next time
323
+ this.sortState[key] = forward;
324
+ this.sortkey = key;
325
+ var sortstyle;
326
+
327
+ // setup the sort columns
328
+ var thead = this.thead_proto.cloneNode(true);
329
+ var cols = thead.getElementsByTagName("th");
330
+ for (var i = 0; i < cols.length; i++) {
331
+ var col = cols[i];
332
+ var sortinfo = getAttribute(col, "mochi:sortcolumn").split(" ");
333
+ var sortkey = sortinfo[0];
334
+ col.onclick = this.onSortClick(sortkey);
335
+ col.onmousedown = ignoreEvent;
336
+ col.onmouseover = mouseOverFunc;
337
+ col.onmouseout = mouseOutFunc;
338
+ // if this is the sorted column
339
+ if (sortkey == key) {
340
+ sortstyle = sortinfo[1];
341
+ // \u2193 is down arrow, \u2191 is up arrow
342
+ // forward sorts mean the rows get bigger going down
343
+ var arrow = (forward ? "\u2193" : "\u2191");
344
+ // add the character to the column header
345
+ col.appendChild(SPAN(null, arrow));
346
+ if (clicked) {
347
+ col.onmouseover();
348
+ }
349
+ }
350
+ }
351
+ this.thead = swapDOM(this.thead, thead);
352
+
353
+ // apply a sort transform to a temporary column named __sort__,
354
+ // and do the sort based on that column
355
+ if (!sortstyle) {
356
+ sortstyle = "str";
357
+ }
358
+ var sortfunc = SortTransforms[sortstyle];
359
+ if (!sortfunc) {
360
+ throw new TypeError("unsupported sort style " + repr(sortstyle));
361
+ }
362
+ var domains = this.data.domains;
363
+ for (var i = 0; i < domains.length; i++) {
364
+ var domain = domains[i];
365
+ domain.__sort__ = sortfunc(domain[key]);
366
+ }
367
+
368
+ // perform the sort based on the state given (forward or reverse)
369
+ var cmp = (forward ? keyComparator : reverseKeyComparator);
370
+ domains.sort(cmp("__sort__"));
371
+
372
+ // process every template with the given data
373
+ // and put the processed templates in the DOM
374
+ for (var i = 0; i < this.templates.length; i++) {
375
+ log('template', i, template);
376
+ var template = this.templates[i];
377
+ var dom = template.template.cloneNode(true);
378
+ processMochiTAL(dom, this.data);
379
+ template.node = swapDOM(template.node, dom);
380
+ }
381
+
382
+
383
+ }
384
+
385
+ };
386
+
387
+ // create the global SortableManager and initialize it on page load
388
+ sortableManager = new SortableManager();
389
+ addLoadEvent(sortableManager.initialize);
390
+
391
+ // rewrite the view-source links
392
+ addLoadEvent(function () {
393
+ var elems = getElementsByTagAndClassName("A", "view-source");
394
+ var page = "ajax_tables/";
395
+ for (var i = 0; i < elems.length; i++) {
396
+ var elem = elems[i];
397
+ var href = elem.href.split(/\//).pop();
398
+ elem.target = "_blank";
399
+ elem.href = "../view-source/view-source.html#" + page + href;
400
+ }
401
+ });
@@ -0,0 +1,10 @@
1
+ {
2
+ "columns": [ "domain_name", "create_date", "expiry_date", "organization_name"],
3
+ "rows": [
4
+ ["json.org", "2000-05-08", "2006-05-08", "Douglas Crockford"],
5
+ ["mochibot.com", "2005-02-10", "2007-02-10", "Jameson Hsu"],
6
+ ["pythonmac.org", "2003-09-24", "2006-09-24", "Bob Ippolito"],
7
+ ["undefined.org", "2000-01-10", "2006-01-10", "Robert J Ippolito"],
8
+ ["python.org", "1995-03-27", "2007-03-28", "Python Software Foundation"]
9
+ ]
10
+ }
@@ -0,0 +1,40 @@
1
+ <datatable>
2
+ <columns>
3
+ <column>domain_name</column>
4
+ <column>create_date</column>
5
+ <column>expiry_date</column>
6
+ <column>organization_name</column>
7
+ </columns>
8
+ <rows>
9
+ <row>
10
+ <cell>xml.com</cell>
11
+ <cell>1996-09-30</cell>
12
+ <cell>2012-09-29</cell>
13
+ <cell>Tim Bray</cell>
14
+ </row>
15
+ <row>
16
+ <cell>mochibot.com</cell>
17
+ <cell>2005-02-10</cell>
18
+ <cell>2007-02-10</cell>
19
+ <cell>Jameson Hsu</cell>
20
+ </row>
21
+ <row>
22
+ <cell>pythonmac.org</cell>
23
+ <cell>2003-09-24</cell>
24
+ <cell>2006-09-24</cell>
25
+ <cell>Bob Ippolito</cell>
26
+ </row>
27
+ <row>
28
+ <cell>undefined.org</cell>
29
+ <cell>2000-01-10</cell>
30
+ <cell>2006-01-10</cell>
31
+ <cell>Robert J Ippolito</cell>
32
+ </row>
33
+ <row>
34
+ <cell>python.org</cell>
35
+ <cell>1995-03-27</cell>
36
+ <cell>2007-03-28</cell>
37
+ <cell>Python Software Foundation</cell>
38
+ </row>
39
+ </rows>
40
+ </datatable>