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,373 @@
1
+ /*
2
+
3
+ Interpreter: JavaScript Interactive Interpreter
4
+
5
+ */
6
+ InterpreterManager = function () {
7
+ bindMethods(this);
8
+ };
9
+
10
+ InterpreterManager.prototype.initialize = function () {
11
+ connect("interpreter_text", "onkeyup", this.keyUp);
12
+ connect("interpreter_textarea", "onkeydown", this.areaKeyDown);
13
+ connect("interpreter_form", "onsubmit", this.submit);
14
+ getElement("interpreter_text").focus();
15
+
16
+ this.banner();
17
+ this.lines = [];
18
+ this.history = [];
19
+ this.currentHistory = "";
20
+ this.historyPos = -1;
21
+ this.blockingOn = null;
22
+ if (typeof(this.doEval) == "undefined") {
23
+ // detect broken eval, warn at some point if a namespace ever gets used
24
+ this.doEval = function () {
25
+ return eval(arguments[0]);
26
+ }
27
+ }
28
+ window.help = this.help;
29
+ this.help.NAME = 'type help(func) for help on a MochiKit function';
30
+ };
31
+
32
+ InterpreterManager.prototype.banner = function () {
33
+ var _ua = window.navigator.userAgent;
34
+ var ua = _ua.replace(/^Mozilla\/.*?\(.*?\)\s*/, "");
35
+ if (ua == "") {
36
+ // MSIE
37
+ ua = _ua.replace(/^Mozilla\/4\.0 \(compatible; MS(IE .*?);.*$/, "$1");
38
+ }
39
+ appendChildNodes("interpreter_output",
40
+ SPAN({"class": "banner"},
41
+ "MochiKit v" + MochiKit.Base.VERSION + " [" + ua + "]",
42
+ BR(),
43
+ "Type your expression in the input box below and press return, or see the notes below for more information.",
44
+ BR()
45
+ ),
46
+ BR()
47
+ );
48
+ };
49
+
50
+ InterpreterManager.prototype.submit = function (event) {
51
+ if (this.blockingOn) {
52
+ try {
53
+ this.blockingOn.cancel();
54
+ } catch (e) {
55
+ this.showError(e);
56
+ }
57
+ this.blockingOn = null;
58
+ }
59
+ this.doSubmit();
60
+ this.doScroll();
61
+ event.stop();
62
+ };
63
+
64
+ InterpreterManager.prototype.help = function (fn) {
65
+ if (fn && fn.NAME) {
66
+ fn = fn.NAME;
67
+ }
68
+ if (typeof(fn) != "string" || fn.length == 0) {
69
+ writeln("help(func) on any MochiKit function for help");
70
+ return;
71
+ }
72
+ var comps = fn.split('.');
73
+ var base = comps.splice(0, 2);
74
+ var shortfn = comps.join('.');
75
+ var url = '../../doc/html/' + base.join('/') + '.html';
76
+ var d = doXHR(url, {mimeType: 'text/xml'});
77
+ d.addCallback(function (req) {
78
+ var els = getElementsByTagAndClassName(
79
+ 'a', 'mochidef', req.responseXML);
80
+ var match = '#fn-' + shortfn.toLowerCase();
81
+ for (var i = 0; i < els.length; i++) {
82
+ var elem = els[i];
83
+ var href = elem.href;
84
+ var idx = href.indexOf('#');
85
+ if (idx != -1 && href.substring(idx) == match) {
86
+ writeln(A({href: url + match, target: '_blank'},
87
+ scrapeText(elem)));
88
+ return;
89
+ }
90
+ }
91
+ writeln('documentation for ' + fn + ' not found');
92
+ });
93
+ blockOn(d);
94
+ };
95
+
96
+
97
+ InterpreterManager.prototype.doScroll = function () {
98
+ var p = getElement("interpreter_output").lastChild;
99
+ if (typeof(p) == "undefined" || p == null) {
100
+ return;
101
+ }
102
+ var area = getElement("interpreter_area");
103
+ if (area.offsetHeight > area.scrollHeight) {
104
+ area.scrollTop = 0;
105
+ } else {
106
+ area.scrollTop = area.scrollHeight;
107
+ }
108
+ };
109
+
110
+ InterpreterManager.prototype.moveHistory = function (dir) {
111
+ // totally bogus value
112
+ if (dir == 0 || this.history.length == 0) {
113
+ return;
114
+ }
115
+ var elem = getElement("interpreter_text");
116
+ if (this.historyPos == -1) {
117
+ this.currentHistory = elem.value;
118
+ if (dir > 0) {
119
+ return;
120
+ }
121
+ this.historyPos = this.history.length - 1;
122
+ elem.value = this.history[this.historyPos];
123
+ return;
124
+ }
125
+ if (this.historyPos == 0 && dir < 0) {
126
+ return;
127
+ }
128
+ if (this.historyPos == this.history.length - 1 && dir > 0) {
129
+ this.historyPos = -1;
130
+ elem.value = this.currentHistory;
131
+ return;
132
+ }
133
+ this.historyPos += dir;
134
+ elem.value = this.history[this.historyPos];
135
+ }
136
+
137
+ InterpreterManager.prototype.runMultipleLines = function (text) {
138
+ var lines = rstrip(text).replace("\r\n", "\n").split(/\n/);
139
+ appendChildNodes("interpreter_output",
140
+ SPAN({"class": "code"}, ">>> ", izip(lines, imap(BR, cycle([null]))))
141
+ );
142
+ this.runCode(text);
143
+ }
144
+
145
+ InterpreterManager.prototype.areaKeyDown = function (e) {
146
+ var mod = e.modifier();
147
+ var hasMod = mod.alt || mod.ctrl || mod.meta;
148
+ if (e.key().string == 'KEY_ENTER' && hasMod) {
149
+ var elem = getElement("interpreter_textarea");
150
+ var text = elem.value;
151
+ elem.value = "";
152
+ this.runMultipleLines(text);
153
+ e.stop();
154
+ }
155
+ };
156
+
157
+ InterpreterManager.prototype.keyUp = function (e) {
158
+ var key = e.key();
159
+ // if any meta key is pressed, don't handle the signal
160
+ if (e.modifier().any) {
161
+ return;
162
+ }
163
+ switch (key.string) {
164
+ case 'KEY_ARROW_UP': this.moveHistory(-1); break;
165
+ case 'KEY_ARROW_DOWN': this.moveHistory(1); break;
166
+ default: return;
167
+ }
168
+ e.stop();
169
+ };
170
+
171
+ InterpreterManager.prototype.blockOn = function (d) {
172
+ var node = SPAN({"class": "banner"}, "blocking on " + repr(d) + "...");
173
+ this.blockingOn = d;
174
+ appendChildNodes("interpreter_output", node);
175
+ this.doScroll();
176
+ d.addBoth(function (res) {
177
+ swapDOM(node);
178
+ this.blockingOn = null;
179
+ if (res instanceof CancelledError) {
180
+ window.writeln(SPAN({"class": "error"}, repr(d) + " cancelled!"));
181
+ return undefined;
182
+ }
183
+ return res;
184
+ });
185
+ d.addCallbacks(this.showResult, this.showError);
186
+ };
187
+
188
+ InterpreterManager.prototype.showError = function (e) {
189
+ if (typeof(e) != "object") {
190
+ e = new Error(e);
191
+ }
192
+ appendChildNodes("interpreter_output",
193
+ SPAN({"class": "error"}, "Error:"),
194
+ TABLE({"class": "error"},
195
+ THEAD({"class": "invisible"}, TD({"colspan": 2})),
196
+ TFOOT({"class": "invisible"}, TD({"colspan": 2})),
197
+ TBODY(null,
198
+ map(function (kv) {
199
+ var v = kv[1];
200
+ if (typeof(v) == "function") {
201
+ return;
202
+ }
203
+ if (typeof(v) == "object") {
204
+ v = repr(v);
205
+ }
206
+ return TR(null,
207
+ TD({"class": "error"}, kv[0]),
208
+ TD({"class": "data"}, v)
209
+ );
210
+ }, sorted(items(e)))
211
+ )
212
+ )
213
+ );
214
+ window.last_exc = e;
215
+ this.doScroll();
216
+ };
217
+
218
+ EvalFunctions = {
219
+ evalWith: function () {
220
+ with (arguments[1] || window) { return eval(arguments[0]); };
221
+ },
222
+ evalCall: function () {
223
+ return eval.call(arguments[1] || window, arguments[0]);
224
+ },
225
+ choose: function () {
226
+ var ns = {__test__: this};
227
+ var e;
228
+ try {
229
+ if (this.evalWith("return __test__", ns) === this) {
230
+ return this.evalWith;
231
+ }
232
+ } catch (e) {
233
+ // pass
234
+ }
235
+ try {
236
+ if (this.evalCall("return __test__", ns) === this) {
237
+ return this.evalCall;
238
+ }
239
+ } catch (e) {
240
+ // pass
241
+ }
242
+ return undefined;
243
+ }
244
+ };
245
+
246
+ InterpreterManager.prototype.doEval = EvalFunctions.choose();
247
+
248
+ InterpreterManager.prototype.doSubmit = function () {
249
+ var elem = getElement("interpreter_text");
250
+ var code = elem.value;
251
+ elem.value = "";
252
+ var isContinuation = false;
253
+ if (code.length >= 2 && code.lastIndexOf("//") == code.length - 2) {
254
+ isContinuation = true;
255
+ code = code.substr(0, code.length - 2);
256
+ }
257
+ appendChildNodes("interpreter_output",
258
+ SPAN({"class": "code"}, ">>> ", code),
259
+ BR()
260
+ );
261
+ this.lines.push(code);
262
+ this.history.push(code);
263
+ this.historyPos = -1;
264
+ this.currentHistory = "";
265
+ if (isContinuation) {
266
+ return;
267
+ }
268
+ var allCode = this.lines.join("\n");
269
+ this.lines = [];
270
+ this.runCode(allCode);
271
+ return;
272
+ };
273
+
274
+ InterpreterManager.prototype.runCode = function (allCode) {
275
+ var res;
276
+ try {
277
+ res = this.doEval(allCode);
278
+ } catch (e) {
279
+ // mozilla shows some keys more than once!
280
+ this.showError(e);
281
+ return;
282
+ }
283
+ this.showResult(res);
284
+ };
285
+
286
+ InterpreterManager.prototype.showResult = function (res) {
287
+ if (typeof(res) != "undefined") {
288
+ window._ = res;
289
+ }
290
+ if (typeof(res) != "undefined") {
291
+ appendChildNodes("interpreter_output",
292
+ SPAN({"class": "data"}, repr(res)),
293
+ BR()
294
+ );
295
+ this.doScroll();
296
+ }
297
+ };
298
+
299
+ window.writeln = function () {
300
+ appendChildNodes("interpreter_output",
301
+ SPAN({"class": "data"}, arguments),
302
+ BR()
303
+ );
304
+ interpreterManager.doScroll();
305
+ };
306
+
307
+ window.clear = function () {
308
+ replaceChildNodes("interpreter_output");
309
+ getElement("interpreter_area").scrollTop = 0;
310
+ };
311
+
312
+ window.blockOn = function (d) {
313
+ if (!(d instanceof Deferred)) {
314
+ throw new TypeError(repr(d) + " is not a Deferred!");
315
+ }
316
+ interpreterManager.blockOn(d);
317
+ };
318
+
319
+ window.dir = function (o) {
320
+ // Python muscle memory!
321
+ return sorted(keys(o));
322
+ };
323
+
324
+ window.inspect = function (o) {
325
+ window._ = o;
326
+ if ((typeof(o) != "function" && typeof(o) != "object") || o == null) {
327
+ window.writeln(repr(o));
328
+ return;
329
+ }
330
+ var pairs = items(o);
331
+ if (pairs.length == 0) {
332
+ window.writeln(repr(o));
333
+ return;
334
+ }
335
+ window.writeln(TABLE({"border": "1"},
336
+ THEAD({"class": "invisible"}, TR(null, TD(), TD())),
337
+ TFOOT({"class": "invisible"}, TR(null, TD(), TD())),
338
+ TBODY(null,
339
+ map(
340
+ function (kv) {
341
+ var click = function () {
342
+ try {
343
+ window.inspect(kv[1]);
344
+ } catch (e) {
345
+ interpreterManager.showError(e);
346
+ }
347
+ return false;
348
+ }
349
+ return TR(null,
350
+ TD(null, A({href: "#", onclick: click}, kv[0])),
351
+ TD(null, repr(kv[1]))
352
+ );
353
+ },
354
+ pairs
355
+ )
356
+ )
357
+ ));
358
+ };
359
+
360
+ interpreterManager = new InterpreterManager();
361
+ addLoadEvent(interpreterManager.initialize);
362
+
363
+ // rewrite the view-source links
364
+ addLoadEvent(function () {
365
+ var elems = getElementsByTagAndClassName("A", "view-source");
366
+ var page = "interpreter/";
367
+ for (var i = 0; i < elems.length; i++) {
368
+ var elem = elems[i];
369
+ var href = elem.href.split(/\//).pop();
370
+ elem.target = "_blank";
371
+ elem.href = "../view-source/view-source.html#" + page + href;
372
+ }
373
+ });
@@ -0,0 +1,78 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <title>Signal Example</title>
6
+ <link href="key_events.css" rel="stylesheet" type="text/css" />
7
+ <script type="text/javascript" src="../../lib/MochiKit/MochiKit.js"></script>
8
+ <script type="text/javascript" src="key_events.js"></script>
9
+ </head>
10
+ <body>
11
+
12
+ <h1>
13
+ Key Events with MochiKit
14
+ </h1>
15
+ <p>
16
+ This is an example of one might implement a key listener with
17
+ MochiKit&#8217;s Signal.
18
+ </p>
19
+ <p>
20
+ For a detailed description of what happens under the hood, check out
21
+ <a href="key_events.js" class="view-source">key_events.js</a>.
22
+ </p>
23
+
24
+ <p>
25
+ View Source: [
26
+ <a href="index.html" class="view-source">index.html</a> |
27
+ <a href="key_events.js" class="view-source">key_events.js</a> |
28
+ <a href="key_events.css" class="view-source">key_events.css</a>
29
+ ]
30
+ </p>
31
+
32
+ <p>Check this box to test <a href="http://mochikit.com/doc/html/lib/MochiKit/Signal.html#fn-preventdefault">
33
+ preventDefault()</a> in your browser:
34
+ <input type="checkbox" id="stopBox" /></p>
35
+
36
+ <p id="specialMessage">This text is replaced with a message when you press Escape or F1.</p>
37
+
38
+ <table>
39
+ <tr>
40
+ <th>Event</th>
41
+ <th>Key Code</th>
42
+ <th>Key String</th>
43
+ </tr>
44
+ <tr>
45
+ <td>onkeydown</td>
46
+ <td id="onkeydown_code">-</td>
47
+ <td id="onkeydown_string">-</td>
48
+ </tr>
49
+ <tr>
50
+ <td>onkeyup</td>
51
+ <td id="onkeyup_code">-</td>
52
+ <td id="onkeyup_string">-</td>
53
+ </tr>
54
+ <tr>
55
+ <td>onkeypress</td>
56
+ <td id="onkeypress_code">-</td>
57
+ <td id="onkeypress_string">-</td>
58
+ </tr>
59
+ </table>
60
+
61
+ <h3>Modifiers</h3>
62
+ <table>
63
+ <tr>
64
+ <th>Shift</th>
65
+ <th>Ctrl</th>
66
+ <th>Alt (Option)</th>
67
+ <th>Meta (Command)</th>
68
+ </tr>
69
+ <tr>
70
+ <td id="shift">-</td>
71
+ <td id="ctrl">-</td>
72
+ <td id="alt">-</td>
73
+ <td id="meta">-</td>
74
+ </tr>
75
+ </table>
76
+
77
+ </body>
78
+ </html>
@@ -0,0 +1,5 @@
1
+ h1 {
2
+ font-size: 2em;
3
+ color: #4B4545;
4
+ text-align: center;
5
+ }
@@ -0,0 +1,85 @@
1
+ /*
2
+
3
+ Key Events: A Really Simple Key Handler
4
+
5
+ */
6
+
7
+ KeyEvents = {
8
+ handled: false,
9
+ handleF1: function() {
10
+ replaceChildNodes('specialMessage', 'You invoked the special F1 handler!');
11
+ },
12
+ handleEscape: function() {
13
+ replaceChildNodes('specialMessage', 'You invoked the special Escape handler!');
14
+ },
15
+ updateModifiers: function(e) {
16
+ var modifiers = e.modifier();
17
+ replaceChildNodes('shift', modifiers.shift);
18
+ replaceChildNodes('ctrl', modifiers.ctrl);
19
+ replaceChildNodes('alt', modifiers.alt);
20
+ replaceChildNodes('meta', modifiers.meta);
21
+ }
22
+ };
23
+
24
+ KeyEvents.specialKeyMap = {
25
+ 'KEY_F1': KeyEvents.handleF1,
26
+ 'KEY_ESCAPE': KeyEvents.handleEscape
27
+ };
28
+
29
+ connect(document, 'onkeydown',
30
+ function(e) {
31
+ if (getElement('stopBox').checked == true) {
32
+ e.preventDefault();
33
+ }
34
+
35
+ // We're storing a handled flag to work around a Safari bug:
36
+ // http://bugs.webkit.org/show_bug.cgi?id=3387
37
+ if (!KeyEvents.handled) {
38
+ var key = e.key();
39
+ var fn = KeyEvents.specialKeyMap[key.string];
40
+ if (fn) {
41
+ fn();
42
+ }
43
+ replaceChildNodes('onkeydown_code', key.code);
44
+ replaceChildNodes('onkeydown_string', key.string);
45
+ KeyEvents.updateModifiers(e);
46
+ }
47
+ KeyEvents.handled = true;
48
+ });
49
+
50
+ connect(document, 'onkeyup',
51
+ function(e) {
52
+ if (getElement('stopBox').checked == true) {
53
+ e.preventDefault();
54
+ }
55
+
56
+ KeyEvents.handled = false;
57
+ var key = e.key();
58
+ replaceChildNodes('onkeyup_code', key.code);
59
+ replaceChildNodes('onkeyup_string', key.string);
60
+ KeyEvents.updateModifiers(e);
61
+ });
62
+
63
+ connect(document, 'onkeypress',
64
+ function(e) {
65
+ if (getElement('stopBox').checked == true) {
66
+ e.preventDefault();
67
+ }
68
+
69
+ var key = e.key();
70
+ replaceChildNodes('onkeypress_code', key.code);
71
+ replaceChildNodes('onkeypress_string', key.string);
72
+ KeyEvents.updateModifiers(e);
73
+ });
74
+
75
+ connect(window, 'onload',
76
+ function() {
77
+ var elems = getElementsByTagAndClassName("A", "view-source");
78
+ var page = "key_events/";
79
+ for (var i = 0; i < elems.length; i++) {
80
+ var elem = elems[i];
81
+ var href = elem.href.split(/\//).pop();
82
+ elem.target = "_blank";
83
+ elem.href = "../view-source/view-source.html#" + page + href;
84
+ }
85
+ });
@@ -0,0 +1,46 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <title>Demo of MochiKit.LoggingPane</title>
5
+ <link href="logging_pane.css" rel="stylesheet" type="text/css" />
6
+ <script type="text/javascript" src="../../lib/MochiKit/MochiKit.js"></script>
7
+ <script type="text/javascript" src="logging_pane.js"></script>
8
+ </head>
9
+ <body>
10
+ <h1>MochiKit.LoggingPane</h1>
11
+ <div>
12
+ <p>
13
+ Demonstrates <a href="http://mochikit.com/">MochiKit</a>'s
14
+ <a href="../../doc/html/lib/MochiKit/Logging.html">MochiKit.Logging</a>
15
+ and <a href="../../doc/html/lib/MochiKit/LoggingPane.html">MochiKit.LoggingPane</a>.
16
+ </p>
17
+ <p>
18
+ Click one of the Logging Panes to pop up a view, and then
19
+ start clicking on Logging Actions to see it in action!
20
+ </p>
21
+ </div>
22
+ <div>
23
+ Logging Panes:
24
+ <ul>
25
+ <li><a href="javascript:logger.debuggingBookmarklet();">Debugging Bookmarklet</a> - Pop-up with LoggingPane</li>
26
+ <li><a href="javascript:void(createLoggingPane(true));">Inline LoggingPane</a></li>
27
+ </ul>
28
+ </div>
29
+ <div>
30
+ Logging Actions:
31
+ <ul>
32
+ <li><a href="javascript:logDebug('a DEBUG level message');">logDebug(...)</a></li>
33
+ <li><a href="javascript:log('an INFO level message');">log(...)</a></li>
34
+ <li><a href="javascript:logWarning('a WARNING level message');">logWarning(...)</a></li>
35
+ <li><a href="javascript:logError('an ERROR level message');">logError(...)</a></li>
36
+ <li><a href="javascript:logFatal('a FATAL level message');">logFatal(...)</a></li>
37
+ </ul>
38
+ <div>
39
+ View Source:
40
+ <ul>
41
+ <li><a href="logging_pane.js" class="view-source">logging_pane.js</a></li>
42
+ <li><a href="index.html" class="view-source">index.html</a></li>
43
+ </ul>
44
+ </div>
45
+ </body>
46
+ </html>
@@ -0,0 +1,78 @@
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
+ input.textbox, textarea { border: 1px solid #CCCCCC; font-size: .95em; padding: 2px 4px; margin-top: .3em; }
69
+ input.textbox:focus, textarea:focus { background-color: #FFFEE3; }
70
+
71
+ .highlight { font-weight: bold; };
72
+ form { margin: 0; padding: 0; }
73
+
74
+ fieldset { border: none; margin: 0; padding: 0; }
75
+ fieldset label { font-weight: bold; color: #4B4545; }
76
+ fieldset .field { margin-bottom: 1em; }
77
+
78
+ label.error { color: red; }
@@ -0,0 +1,11 @@
1
+ // rewrite the view-source links
2
+ addLoadEvent(function () {
3
+ var elems = getElementsByTagAndClassName("A", "view-source");
4
+ var page = "logging_pane/";
5
+ for (var i = 0; i < elems.length; i++) {
6
+ var elem = elems[i];
7
+ var href = elem.href.split(/\//).pop();
8
+ elem.target = "_blank";
9
+ elem.href = "../view-source/view-source.html#" + page + href;
10
+ }
11
+ });