old_sql 1.16.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. data/README.md +24 -13
  2. data/app/controllers/old_sql/report_controller.rb +3 -17
  3. data/app/views/layouts/old_sql/chart.html.erb +11 -0
  4. data/app/views/old_sql/report/chart.html.erb +8 -25
  5. data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
  6. data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
  7. data/lib/old_sql/report_design/chart.rb +2 -2
  8. data/lib/old_sql/report_design/chart_item.rb +4 -4
  9. data/lib/old_sql/report_design/chart_parser.rb +2 -2
  10. data/public/javascripts/old_sql/chart.js +33 -0
  11. metadata +5 -265
  12. data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
  13. data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
  14. data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
  15. data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
  16. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
  17. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
  18. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
  19. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
  20. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
  21. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
  22. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
  23. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
  24. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
  25. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
  26. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
  27. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
  28. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
  29. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
  30. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
  31. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
  32. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
  33. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
  34. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
  35. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
  36. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
  37. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
  38. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
  39. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
  40. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
  41. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
  42. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
  43. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
  44. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
  45. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
  46. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
  47. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
  48. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
  49. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
  50. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
  51. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
  52. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
  53. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
  54. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
  55. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
  56. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
  57. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
  58. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
  59. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
  60. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
  61. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
  62. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
  63. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
  64. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +0 -54
  65. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
  66. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
  67. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
  68. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
  69. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
  70. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
  71. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
  72. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
  73. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
  74. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
  75. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
  76. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
  77. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
  78. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
  79. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
  80. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
  81. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
  82. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
  83. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
  84. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
  85. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
  86. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
  87. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +0 -150
  88. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
  89. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
  90. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
  91. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
  92. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
  93. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
  94. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
  95. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
  96. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
  97. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
  98. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
  99. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
  100. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
  101. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
  102. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
  103. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
  104. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
  105. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
  106. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
  107. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
  108. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
  109. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
  110. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
  111. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
  112. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
  113. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
  114. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
  115. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
  116. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
  117. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
  118. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
  119. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
  120. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
  121. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
  122. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
  123. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
  124. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
  125. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
  126. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
  127. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
  128. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
  129. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
  130. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
  131. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
  132. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
  133. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
  134. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +0 -130
  135. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
  136. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
  137. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
  138. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
  139. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
  140. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
  141. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
  142. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
  143. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
  144. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
  145. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
  146. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
  147. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
  148. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
  149. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
  150. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
  151. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
  152. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
  153. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
  154. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
  155. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
  156. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
  157. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
  158. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
  159. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
  160. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
  161. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
  162. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
  163. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
  164. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
  165. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
  166. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
  167. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
  168. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
  169. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
  170. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
  171. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
  172. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
  173. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
  174. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
  175. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
  176. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
  177. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
  178. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
  179. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
  180. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
  181. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
  182. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
  183. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
  184. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
  185. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
  186. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
  187. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
  188. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
  189. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
  190. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
  191. data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
  192. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
  193. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
  194. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
  195. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
  196. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
  197. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
  198. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
  199. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
  200. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
  201. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
  202. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
  203. data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
  204. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
  205. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
  206. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
  207. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
  208. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
  209. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
  210. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
  211. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
  212. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
  213. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
  214. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
  215. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
  216. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
  217. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
  218. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
  219. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
  220. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
  221. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
  222. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
  223. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
  224. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
  225. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
  226. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
  227. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
  228. data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
  229. data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
  230. data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
  231. data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
  232. data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +0 -62
  233. data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
  234. data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
  235. data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
  236. data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
  237. data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
  238. data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
  239. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
  240. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +0 -58
  241. data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
  242. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
  243. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
  244. data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
  245. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
  246. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
  247. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
  248. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
  249. data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
  250. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
  251. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
  252. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
  253. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
  254. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
  255. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
  256. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +0 -38
  257. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
  258. data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
  259. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
  260. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
  261. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
  262. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
  263. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
  264. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
  265. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
  266. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
  267. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
  268. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
  269. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
  270. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
  271. data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
  272. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
  273. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
@@ -1,62 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5
- <title>Slide effects test</title>
6
- <style type="text/css">
7
- #menu {
8
- width: 300px;
9
- border: 1px #000 solid;
10
- }
11
- .menu_header {
12
- background-color: #00CC99;
13
- color: #FFFFFF;
14
- }
15
- .menu_block {
16
- background-color: #006699;
17
- color: #FFFFFF;
18
- overflow:hidden;
19
- }
20
- .menu_block div {
21
- }
22
- .close_block {
23
- position: relative;
24
- width: 100%;
25
- bottom: 0px;
26
- text-align: center;
27
- display: block;
28
- }
29
- </style>
30
- <script src="../../lib/MochiKit/MochiKit.js" type="text/javascript"></script>
31
- <script src="../../lib/MochiKit/Position.js" type="text/javascript"></script>
32
- <script src="../../lib/MochiKit/Visual.js" type="text/javascript"></script>
33
- </head>
34
- <body>
35
- <div id="menu">
36
- <div class="menu_header" id="menu_header1"><a onClick="MochiKit.Visual.slideDown('menu_block1'); return false;">HEADER 1</a></div>
37
- <div class="menu_block_container" id="menu_block_container1">
38
- <div class="menu_block" id="menu_block1"><div>
39
- text<br/>
40
- text<br/>
41
- text<br/>
42
- text<br/>
43
- text<br/>
44
- text<br/>
45
- text<br/>
46
- <a class="close_block" onClick="MochiKit.Visual.slideUp('menu_block1'); return false;">close</a></div></div>
47
- </div>
48
- <div class="menu_header" id="menu_header2"><a onClick="MochiKit.Visual.slideDown('menu_block2'); return false;">HEADER 2</a></div>
49
- <div class="menu_block_container" id="menu_block_container2">
50
- <div class="menu_block" id="menu_block2"><div>
51
- text<br/>
52
- text<br/>
53
- text<br/>
54
- text<br/>
55
- text<br/>
56
- text<br/>
57
- text<br/>
58
- <a class="close_block" onClick="MochiKit.Visual.slideUp('menu_block2'); return false;">close</a></div></div>
59
- </div>
60
- </div>
61
- </body>
62
- </html>
@@ -1,71 +0,0 @@
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>Full Effects Test Suite</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <link rel="stylesheet" href="../../include/css/documentation.css" type="text/css" />
8
- <script src="../../lib/MochiKit/MochiKit.js" type="text/javascript"></script>
9
- <style type="text/css">
10
- #demo {
11
- }
12
-
13
- #demo li {
14
- color: #8ba726;
15
- font-size: 1.2em;
16
- }
17
-
18
- #democontainer {
19
- margin: 30px 5px 0px 5px;
20
- }
21
-
22
- #demoall {
23
- position: absolute;
24
- top: 250px;
25
- left: 400px;
26
- font-size: 20px;
27
- background: #f3f3f3;
28
- color: #1C1D1F;
29
- text-align: center;
30
- border: 1px solid #ccc;
31
- width: 150px;
32
- height: 150px;
33
- }
34
- </style>
35
- </head>
36
-
37
- <body>
38
- <div class="document">
39
- <div class="section">
40
- <h1>Full Effects Test Suite</h1>
41
- <ul id="demo">
42
- <li onclick="setStyle('demoall', {'display': 'block'});fade('demoall')">fade</li>
43
- <li onclick="setStyle('demoall', {'display': 'none'});appear('demoall')">appear</li>
44
- <li onclick="setStyle('demoall', {'display': 'block'});puff('demoall')">puff</li>
45
- <li onclick="blindDown('demoall')">blindDown</li>
46
- <li onclick="setStyle('demoall', {'display': 'block'});blindUp('demoall')">blindUp</li>
47
- <li onclick="switchOff('demoall')">switchOff</li>
48
- <li onclick="slideDown('demoall')">slideDown</li>
49
- <li onclick="slideUp('demoall')">slideUp</li>
50
- <li onclick="setStyle('demoall', {'display': 'block'});dropOut('demoall', {'distance': 500})">dropOut</li>
51
- <li onclick="setStyle('demoall', {'display': 'block'});shake('demoall')">shake</li>
52
- <li onclick="setStyle('demoall', {'display': 'block'});pulsate('demoall')">pulsate</li>
53
- <li onclick="setStyle('demoall', {'display': 'block'});squish('demoall')">squish</li>
54
- <li onclick="setStyle('demoall', {'display': 'block'});fold('demoall')">fold</li>
55
- <li onclick="grow('demoall')">grow</li>
56
- <li onclick="setStyle('demoall', {'display': 'block'});shrink('demoall')">shrink</li>
57
- <li onclick="setStyle('demoall', {'display': 'block'});Highlight('demoall', {startcolor: '#ffff33'})">Highlight</li>
58
- <li onclick="setStyle('demoall', {'display': 'block'});Morph('demoall', {'style': {'font-size': '3px'}, 'queue': 'start'});Morph('demoall', {'style': {'font-size': '20px'}, 'queue': 'end'});">Morph font</li>
59
- <li onclick="setStyle('demoall', {'display': 'block'});Morph('demoall', {'style': {'background-color': 'red'}, 'queue': 'start'});Morph('demoall', {'style': {'background-color': '#f3f3f3'}, 'queue': 'end'});">Morph color</li>
60
- <li onclick="toggle('demoall', 'blind')">toggle (blind)</li>
61
- <li onclick="toggle('demoall', 'slide')">toggle (slide)</li>
62
- <li onclick="toggle('demoall', 'appear')">toggle (appear)</li>
63
- <li onclick="toggle('demoall', 'size')">toggle (size)</li>
64
- </ul>
65
- <div id="demoall">
66
- <div id="democontainer">Click on one of the left to see the effect</div>
67
- </div>
68
- </div>
69
- </div>
70
- </body>
71
- </html>
@@ -1,150 +0,0 @@
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>Test Effects</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <link href="effects_combi.css" rel="stylesheet" type="text/css" />
8
- <script src="../../lib/MochiKit/MochiKit.js" type="text/javascript"></script>
9
- <script src="../../lib/MochiKit/Position.js" type="text/javascript"></script>
10
- <script src="../../lib/MochiKit/Visual.js" type="text/javascript"></script>
11
- <script type="text/javascript">
12
- function showEffect() {
13
- f = document.forms[0];
14
- v = f['effect'].value;
15
- if (v.substring(0, 1) == '+') {
16
- v = "MochiKit.Visual.toggle('demo-all','" + v.substring(1) + "'";
17
- } else {
18
- v = "MochiKit.Visual." + v + "('demo-all'";
19
- }
20
- if (f['slow'].checked) {
21
- v += ',{duration:4}';
22
- }
23
- v += ')';
24
- var v = eval(v);
25
- }
26
- function resetBox() {
27
- e = MochiKit.DOM.getElement('demo-all');
28
- MochiKit.Visual.appear(e);
29
- MochiKit.Style.setStyle(e, {});
30
- }
31
- </script>
32
-
33
- </head>
34
-
35
- <body>
36
- <h3>Here are demos of all combination effects:</h3>
37
- <div class="demo">
38
- <div class="example" id="demo-effect-appear" onclick="MochiKit.Visual.appear('demo-effect-fade')">
39
- <span>Click for Visual.appear demo</span>
40
- </div>
41
- <div class="example" id="demo-effect-fade" onclick="MochiKit.Visual.fade(this)">
42
- <span>Click for Visual.fade demo</span>
43
- </div>
44
- <div class="example" id="demo-effect-puff" onclick="MochiKit.Visual.puff(this)">
45
- <span>Click for Visual.puff demo</span>
46
- </div>
47
- <div class="example" id="demo-effect-blinddown" onclick="MochiKit.Visual.blindDown(this)">
48
- <span>Click for Visual.blindDown demo</span>
49
- </div>
50
- <div class="example" id="demo-effect-blindup" onclick="MochiKit.Visual.blindUp(this)">
51
- <span>Click for Visual.blindUp demo</span>
52
- </div>
53
- <div class="example" id="demo-effect-switchoff" onclick="MochiKit.Visual.switchOff(this)">
54
- <span>Click for Visual.switchOff demo</span>
55
- </div>
56
- <div class="example" id="demo-effect-slidedown" onclick="MochiKit.Visual.slideDown(this)">
57
- <span>Click for Visual.slideDown demo</span>
58
- </div>
59
- <div class="example" id="demo-effect-slideup" onclick="MochiKit.Visual.slideUp(this)">
60
- <span>Click for Visual.slideUp demo</span>
61
- </div>
62
- <div class="example" id="demo-effect-dropout" onclick="MochiKit.Visual.dropOut(this)">
63
- <span>Click for Visual.dropOut demo</span>
64
- </div>
65
- <div class="example" id="demo-effect-shake" onclick="MochiKit.Visual.shake(this)">
66
- <span>Click for Visual.shake demo</span>
67
- </div>
68
- <div class="example" id="demo-effect-pulsate" onclick="MochiKit.Visual.pulsate(this)">
69
- <span>Click for Visual.pulsate demo</span>
70
- </div>
71
- <div class="example" id="demo-effect-squish" onclick="MochiKit.Visual.squish(this)">
72
- <span>Click for Visual.squish demo</span>
73
- </div>
74
- <div class="example" id="demo-effect-fold" onclick="MochiKit.Visual.fold(this)">
75
- <span>Click for Visual.fold demo</span>
76
- </div>
77
- <div class="example" id="demo-effect-grow" onclick="MochiKit.Visual.grow(this)">
78
- <span>Click for Visual.grow demo</span>
79
- </div>
80
- <div class="example" id="demo-effect-shrink" onclick="MochiKit.Visual.shrink(this)">
81
- <span>Click for Visual.shrink demo</span>
82
- </div>
83
- <div class="example" id="demo-effect-highlight" onclick="new MochiKit.Visual.Highlight(this)">
84
- <span>Click for Visual.Highlight demo</span>
85
- </div>
86
- </div>
87
-
88
- <h3>Here are all demos on one single element:</h3>
89
- <div id="demo-all" class="example" onclick="showEffect()">
90
- <span>Click to see the selected effect</span>
91
- </div>
92
- <form action="" style="margin-left:140px;height:150px;">
93
- <fieldset style="border:none;">
94
- <select name="effect" size="1">
95
- <optgroup label="Single effects">
96
- <option value="appear">appear</option>
97
- <option value="fade">fade</option>
98
- <option value="puff">puff</option>
99
- <option value="blindDown">blindDown</option>
100
- <option value="blindUp">blindUp</option>
101
- <option value="slideDown">slideDown</option>
102
- <option value="slideUp">slideUp</option>
103
- <option value="switchOff">switchOff</option>
104
- <option value="dropOut">dropOut</option>
105
- <option value="shake">shake</option>
106
- <option value="pulsate">pulsate</option>
107
- <option value="squish">squish</option>
108
- <option value="fold">fold</option>
109
- <option value="grow">grow</option>
110
- <option value="shrink">shrink</option>
111
- <option value="Highlight">Highlight</option>
112
- </optgroup>
113
- <optgroup label="Toggle effects">
114
- <option value="+appear">appear</option>
115
- <option value="+blind">blind</option>
116
- <option value="+slide">slide</option>
117
- <option value="+size">size</option>
118
- </optgroup>
119
- </select>
120
- &nbsp;
121
- <input type="checkbox" name="slow"/> in slow-motion
122
- </fieldset>
123
- <fieldset style="border:none;">
124
- <input type="button" name="show" value="Click to show effect" onclick="showEffect()"/>
125
- <input type="button" name="show" value="Click to reset box" onclick="resetBox()"/>
126
- </fieldset>
127
- </form>
128
-
129
- <div class="demo">
130
- <h3>Links to other samples:</h3>
131
- <ul style="float:left;margin-top:0;">
132
- <li><a href="effects_bigslide.html">Big slide effects</a></li>
133
- <li><a href="effects_slide.html">Slide effects</a></li>
134
- <li><a href="effects_blind.html">Blind effects</a></li>
135
- <li><a href="effects_blindslide.html">Blind/Slide effects</a></li>
136
- <li><a href="effects_fadeappear.html">Fade/Appear effects</a></li>
137
- </ul>
138
- <ul style="float:left;margin-top:0">
139
- <li><a href="effects_onload.html">Onload effects</a></li>
140
- <li><a href="effects_scroll.html">Scroll effects</a></li>
141
- <li><a href="effects_grow_shrink.html">Grow/Shrink effects</a></li>
142
- <li><a href="effects_queue.html">Queue effects</a></li>
143
- <li><a href="effects_queue_limit.html">Queue limit effects</a></li>
144
- </ul>
145
- </div>
146
-
147
- <div class="demo"/>
148
-
149
- </body>
150
- </html>
@@ -1,88 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html>
3
- <head>
4
- <title>Interpreter - JavaScript Interactive Interpreter</title>
5
- <link href="interpreter.css" rel="stylesheet" type="text/css" />
6
- <script type="text/javascript" src="../../lib/MochiKit/MochiKit.js"></script>
7
- <script type="text/javascript" src="interpreter.js"></script>
8
- </head>
9
- <body>
10
- <h1>
11
- Interpreter - JavaScript Interactive Interpreter
12
- </h1>
13
- <div>
14
- <p>
15
- This demo is a JavaScript interpreter. Type some code into
16
- the text input and press enter to see the results. It uses
17
- <a href="http://mochikit.com">MochiKit</a>'s
18
- <a href="../../doc/html/lib/MochiKit/DOM.html">MochiKit.DOM</a>
19
- to manipulate the display. It also supports waiting for
20
- <a href="../../doc/html/lib/MochiKit/Async.html">MochiKit.Async</a>
21
- Deferreds via <tt>blockOn(aDeferred)</tt>.
22
- </p>
23
- </div>
24
-
25
- <div>
26
- View Source: [
27
- <a href="index.html" class="view-source">index.html</a> |
28
- <a href="interpreter.js" class="view-source">interpreter.js</a>
29
- ]
30
- </div>
31
- <form id="interpreter_form" autocomplete="off">
32
- <div id="interpreter_area">
33
- <div id="interpreter_output"></div>
34
- </div>
35
- <div id="oneline">
36
- <input id="interpreter_text" name="input_text" type="text" class="textbox" size="100" />
37
- </div>
38
- <div id="multiline">
39
- <textarea id="interpreter_textarea" name="input_textarea" type="text" class="textbox" cols="97" rows="10"></textarea>
40
- <br />
41
- </div>
42
- </form>
43
- <div>
44
- Notes:
45
- <ul>
46
- <li>
47
- To show the signature of a MochiKit function and link
48
- to its documentation, type help(fn) on any MochiKit
49
- function.
50
- </li>
51
- <li>
52
- To write multi-line code snippets, use the lower text area
53
- and press ctrl-enter or cmd-enter to submit.
54
- </li>
55
- <li>
56
- <tt>function name() {}</tt> syntax might not end up in
57
- window scope, so use <tt>name = function () {}</tt>
58
- syntax instead
59
- </li>
60
- <li>
61
- If you want to stuff something into the output window
62
- other than the <tt>repr(...)</tt> of the expression
63
- result, use the <tt>writeln(...)</tt> function.
64
- It accepts anything that MochiKit.DOM does, so you can
65
- even put styled stuff in there!
66
- </li>
67
- <li>
68
- Use <tt>clear()</tt> to clear the interpreter window.
69
- </li>
70
- <li>
71
- You can use <tt>blockOn(aDeferred)</tt> to wait on a
72
- Deferred. This expression must be used by itself, so
73
- the value must be obtained from <tt>_</tt> or
74
- <tt>last_exc</tt>. Typing any expression will
75
- cancel the Deferred.
76
- </li>
77
- <li>
78
- Up and down arrow keys work as a rudimentary history
79
- </li>
80
- <li>
81
- <tt>_</tt> is the value of the last expression
82
- that was not <tt>undefined</tt>, <tt>last_exc</tt> is
83
- the value of the last unhandled exception.
84
- </li>
85
- </ul>
86
- </div>
87
- </body>
88
- </html>
@@ -1,54 +0,0 @@
1
- h1 {
2
- font-size: 2em;
3
- color: #4B4545;
4
- text-align: center;
5
- }
6
-
7
- textarea.textbox {
8
- font-family: Monaco, "lucida console", Courier;
9
- border: 1px solid #CCCCCC;
10
- font-size: .60em;
11
- padding: 2px 4px;
12
- margin-top: .3em;
13
- }
14
-
15
- input.textbox {
16
- font-family: Monaco, "lucida console", Courier;
17
- border: 1px solid #CCCCCC;
18
- font-size: .60em;
19
- padding: 2px 4px;
20
- margin-top: .3em;
21
- }
22
-
23
- #interpreter_area {
24
- display: block;
25
- border: 1px solid #CCCCCC;
26
- padding: 2px 4px;
27
- margin-top: .3em;
28
- width: 600px;
29
- height: 300px;
30
- overflow: auto;
31
- }
32
-
33
- #interpreter_output {
34
- display: inline;
35
- font-family: Monaco, "lucida console", Courier;
36
- font-size: .60em;
37
- }
38
-
39
- #interpreter_output span {
40
- white-space: -moz-pre-wrap; /* Mozilla */
41
- white-space: -o-pre-wrap; /* Opera 7 */
42
- white-space: pre-wrap; /* CSS 2.1 */
43
- white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
44
- word-wrap: break-word; /* IE */
45
- wrap-option: emergency; /* CSS 3 */
46
- }
47
-
48
- input.textbox:focus { background-color: #FFFEE3; }
49
-
50
- .code { color: blue; }
51
- .data { color: black; }
52
- .error { color: red; }
53
- .banner { color: green; }
54
- .invisible { display: none; }
@@ -1,373 +0,0 @@
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
- });