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.
- data/README.md +24 -13
- data/app/controllers/old_sql/report_controller.rb +3 -17
- data/app/views/layouts/old_sql/chart.html.erb +11 -0
- data/app/views/old_sql/report/chart.html.erb +8 -25
- data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
- data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
- data/lib/old_sql/report_design/chart.rb +2 -2
- data/lib/old_sql/report_design/chart_item.rb +4 -4
- data/lib/old_sql/report_design/chart_parser.rb +2 -2
- data/public/javascripts/old_sql/chart.js +33 -0
- metadata +5 -265
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +0 -150
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +0 -130
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
- data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +0 -62
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +0 -58
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +0 -38
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
@@ -1,125 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
MochiRegExp: JavaScript Regular Expression Explorer
|
4
|
-
|
5
|
-
*/
|
6
|
-
RegExpManager = function () {
|
7
|
-
this.timer = null;
|
8
|
-
bindMethods(this);
|
9
|
-
};
|
10
|
-
|
11
|
-
RegExpManager.prototype.initialize = function () {
|
12
|
-
/*
|
13
|
-
Fill in the event handlers and sample text, and do the initial update
|
14
|
-
The reason we do the sample text here is so that "clear" really does
|
15
|
-
clear the fields.
|
16
|
-
*/
|
17
|
-
setNodeAttribute("inp_text", "value", "matched with your pattern");
|
18
|
-
connect("inp_text", "onkeyup", this, "updateSoon");
|
19
|
-
connect("inp_text", "onchange", this, "update");
|
20
|
-
|
21
|
-
setNodeAttribute("inp_regexp", "value", "/(pattern)/");
|
22
|
-
connect("inp_regexp", "onkeyup", this, "updateSoon");
|
23
|
-
connect("inp_regexp", "onchange", this, "update");
|
24
|
-
|
25
|
-
connect("regexp_form", "onsubmit", this, "submit");
|
26
|
-
|
27
|
-
this.update();
|
28
|
-
};
|
29
|
-
|
30
|
-
RegExpManager.prototype.updateSoon = function () {
|
31
|
-
/*
|
32
|
-
If the user stops typing for half a second, do one update.
|
33
|
-
*/
|
34
|
-
this.cancelTimer();
|
35
|
-
this.timer = callLater(0.5, this.update);
|
36
|
-
};
|
37
|
-
|
38
|
-
RegExpManager.prototype.cancelTimer = function () {
|
39
|
-
/*
|
40
|
-
Cancel the timer that waits for the user to idle for half a second.
|
41
|
-
*/
|
42
|
-
if (this.timer) {
|
43
|
-
this.timer.cancel();
|
44
|
-
}
|
45
|
-
this.timer = null;
|
46
|
-
};
|
47
|
-
|
48
|
-
RegExpManager.prototype.update = function () {
|
49
|
-
/*
|
50
|
-
Cancel the update timer and actually do an update of the
|
51
|
-
RegExp
|
52
|
-
*/
|
53
|
-
this.cancelTimer();
|
54
|
-
var re;
|
55
|
-
try {
|
56
|
-
// Evaluate the regexp
|
57
|
-
re = eval("(" + getElement("inp_regexp").value + ")");
|
58
|
-
} catch (e) {
|
59
|
-
// If invalid, color it red and stop
|
60
|
-
addElementClass("lab_regexp", "error");
|
61
|
-
return;
|
62
|
-
}
|
63
|
-
// Make sure that it's not red
|
64
|
-
removeElementClass("lab_regexp", "error");
|
65
|
-
|
66
|
-
// replace the contents of the tbody
|
67
|
-
var match = getElement("inp_text").value.match(re);
|
68
|
-
replaceChildNodes("result_body", this.getRows(match));
|
69
|
-
};
|
70
|
-
|
71
|
-
RegExpManager.prototype.getRows = function (match) {
|
72
|
-
/*
|
73
|
-
Return rows for the tbody given a match object
|
74
|
-
*/
|
75
|
-
if (!match) {
|
76
|
-
// No match, bail with a no match row
|
77
|
-
return TR(null, TD({"colspan": "3"}, "No match!"));
|
78
|
-
}
|
79
|
-
var isAlternate = true;
|
80
|
-
var res = [];
|
81
|
-
for (var k in match) {
|
82
|
-
isAlternate = !isAlternate;
|
83
|
-
var trAttribs = isAlternate ? {"class": "alternate"} : null;
|
84
|
-
var v = match[k];
|
85
|
-
var result = v;
|
86
|
-
// Highlight the result for the input property as three spans:
|
87
|
-
// [beforeMatch, duringMatch, afterMatch]
|
88
|
-
if (k == "input") {
|
89
|
-
var end = match.index + match[0].length;
|
90
|
-
result = [
|
91
|
-
SPAN(null, v.substr(0, match.index)),
|
92
|
-
SPAN({"class": "highlight"}, v.substring(match.index, end)),
|
93
|
-
SPAN(null, v.substr(end))
|
94
|
-
];
|
95
|
-
}
|
96
|
-
res.push(
|
97
|
-
TR((isAlternate ? {"class": "alternate"} : null),
|
98
|
-
TD(null, k),
|
99
|
-
TD(null, result),
|
100
|
-
TD(null, repr(v))
|
101
|
-
)
|
102
|
-
);
|
103
|
-
}
|
104
|
-
return res;
|
105
|
-
};
|
106
|
-
|
107
|
-
RegExpManager.prototype.submit = function () {
|
108
|
-
this.update();
|
109
|
-
return false;
|
110
|
-
};
|
111
|
-
|
112
|
-
regExpManager = new RegExpManager();
|
113
|
-
addLoadEvent(regExpManager.initialize);
|
114
|
-
|
115
|
-
// rewrite the view-source links
|
116
|
-
addLoadEvent(function () {
|
117
|
-
var elems = getElementsByTagAndClassName("A", "view-source");
|
118
|
-
var page = "mochiregexp/";
|
119
|
-
for (var i = 0; i < elems.length; i++) {
|
120
|
-
var elem = elems[i];
|
121
|
-
var href = elem.href.split(/\//).pop();
|
122
|
-
elem.target = "_blank";
|
123
|
-
elem.href = "../view-source/view-source.html#" + page + href;
|
124
|
-
}
|
125
|
-
});
|
@@ -1,88 +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>Mouse Events with MochiKit</title>
|
6
|
-
<link href="mouse_events.css" rel="stylesheet" type="text/css" />
|
7
|
-
<script type="text/javascript" src="../../lib/MochiKit/MochiKit.js"></script>
|
8
|
-
<script type="text/javascript" src="mouse_events.js"></script>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
<h1>
|
12
|
-
Mouse Events with MochiKit
|
13
|
-
</h1>
|
14
|
-
<p>
|
15
|
-
For a detailed description of what happens under the hood, check out
|
16
|
-
<a href="mouse_events.js" class="view-source">mouse_events.js</a>.
|
17
|
-
</p>
|
18
|
-
|
19
|
-
<p>
|
20
|
-
View Source: [
|
21
|
-
<a href="index.html" class="view-source">index.html</a> |
|
22
|
-
<a href="mouse_events.js" class="view-source">mouse_events.js</a> |
|
23
|
-
<a href="mouse_events.css" class="view-source">mouse_events.css</a>
|
24
|
-
]
|
25
|
-
</p>
|
26
|
-
|
27
|
-
<div id="show-mouse-event" class="scroll-box">
|
28
|
-
Hover, Click, or Scroll In Me:<br/><br/>
|
29
|
-
<span id="show-mouse-event-repr"></span>
|
30
|
-
</div>
|
31
|
-
|
32
|
-
<div id="scroll-page" class="scroll-box" style="height: 100px; overflow: scroll;">
|
33
|
-
Scroll Me and then the page scrolls! <br />
|
34
|
-
Scroll Me and then the page scrolls! <br />
|
35
|
-
Scroll Me and then the page scrolls! <br />
|
36
|
-
Scroll Me and then the page scrolls! <br />
|
37
|
-
Scroll Me and then the page scrolls! <br />
|
38
|
-
Scroll Me and then the page scrolls! <br />
|
39
|
-
Scroll Me and then the page scrolls! <br />
|
40
|
-
Scroll Me and then the page scrolls! <br />
|
41
|
-
Scroll Me and then the page scrolls! <br />
|
42
|
-
Scroll Me and then the page scrolls! <br />
|
43
|
-
Scroll Me and then the page scrolls! <br />
|
44
|
-
Scroll Me and then the page scrolls! <br />
|
45
|
-
Scroll Me and then the page scrolls! <br />
|
46
|
-
Scroll Me and then the page scrolls! <br />
|
47
|
-
Scroll Me and then the page scrolls! <br />
|
48
|
-
Scroll Me and then the page scrolls! <br />
|
49
|
-
Scroll Me and then the page scrolls! <br />
|
50
|
-
Scroll Me and then the page scrolls! <br />
|
51
|
-
Scroll Me and then the page scrolls! <br />
|
52
|
-
Scroll Me and then the page scrolls! <br />
|
53
|
-
</div>
|
54
|
-
|
55
|
-
<div id="no-scroll-page" class="scroll-box" style="height: 100px; overflow: scroll;">
|
56
|
-
Scroll Me and then the page does not scroll! <br />
|
57
|
-
Scroll Me and then the page does not scroll! <br />
|
58
|
-
Scroll Me and then the page does not scroll! <br />
|
59
|
-
Scroll Me and then the page does not scroll! <br />
|
60
|
-
Scroll Me and then the page does not scroll! <br />
|
61
|
-
Scroll Me and then the page does not scroll! <br />
|
62
|
-
Scroll Me and then the page does not scroll! <br />
|
63
|
-
Scroll Me and then the page does not scroll! <br />
|
64
|
-
Scroll Me and then the page does not scroll! <br />
|
65
|
-
Scroll Me and then the page does not scroll! <br />
|
66
|
-
Scroll Me and then the page does not scroll! <br />
|
67
|
-
Scroll Me and then the page does not scroll! <br />
|
68
|
-
Scroll Me and then the page does not scroll! <br />
|
69
|
-
Scroll Me and then the page does not scroll! <br />
|
70
|
-
Scroll Me and then the page does not scroll! <br />
|
71
|
-
Scroll Me and then the page does not scroll! <br />
|
72
|
-
Scroll Me and then the page does not scroll! <br />
|
73
|
-
Scroll Me and then the page does not scroll! <br />
|
74
|
-
Scroll Me and then the page does not scroll! <br />
|
75
|
-
Scroll Me and then the page does not scroll! <br />
|
76
|
-
</div>
|
77
|
-
|
78
|
-
<div class="padding">Ignore me I just make the page big enough to require scrollbars.</div>
|
79
|
-
<div class="padding">Ignore me I just make the page big enough to require scrollbars.</div>
|
80
|
-
<div class="padding">Ignore me I just make the page big enough to require scrollbars.</div>
|
81
|
-
<div class="padding">Ignore me I just make the page big enough to require scrollbars.</div>
|
82
|
-
<div class="padding">Ignore me I just make the page big enough to require scrollbars.</div>
|
83
|
-
<div class="padding">Ignore me I just make the page big enough to require scrollbars.</div>
|
84
|
-
<div class="padding">Ignore me I just make the page big enough to require scrollbars.</div>
|
85
|
-
<div class="padding">Ignore me I just make the page big enough to require scrollbars.</div>
|
86
|
-
<div class="padding">Ignore me I just make the page big enough to require scrollbars.</div>
|
87
|
-
</body>
|
88
|
-
</html>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
h1 {
|
2
|
-
font-size: 2em;
|
3
|
-
color: #4B4545;
|
4
|
-
text-align: center;
|
5
|
-
}
|
6
|
-
|
7
|
-
div.scroll-box {
|
8
|
-
border : 2px solid blue;
|
9
|
-
padding : 4ex 4em;
|
10
|
-
margin : 4ex 4em;
|
11
|
-
}
|
12
|
-
|
13
|
-
div.padding {
|
14
|
-
padding : 4ex 4em;
|
15
|
-
margin : 4ex 4em;
|
16
|
-
border : 1px solid silver;
|
17
|
-
}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
Mouse Events: Simple Mouse Scrolling Handlers
|
4
|
-
|
5
|
-
*/
|
6
|
-
|
7
|
-
function showMouseEvent(evt) {
|
8
|
-
getElement("show-mouse-event-repr").innerHTML = repr(evt);
|
9
|
-
evt.stop();
|
10
|
-
};
|
11
|
-
|
12
|
-
function stopPageFromScrolling( event ) {
|
13
|
-
var src = event.src();
|
14
|
-
var scrollTop = src.scrollTop;
|
15
|
-
|
16
|
-
// While trying to stop scrolling events for IE, found that it
|
17
|
-
// jumped around a bit. The following fudgetFactor is NOT the way
|
18
|
-
// to handle this but was the best I could do with the limited time
|
19
|
-
// I had.
|
20
|
-
var fudgeFactor = /MSIE/.test(navigator.userAgent) ? 25 : 0;
|
21
|
-
|
22
|
-
// scrolling up
|
23
|
-
if (event.mouse().wheel.y < 0) {
|
24
|
-
// Following test should probably be "if (scrollTop == 0)" which
|
25
|
-
// works in FF but not IE.
|
26
|
-
if (scrollTop <= fudgeFactor) {
|
27
|
-
event.stop();
|
28
|
-
}
|
29
|
-
}
|
30
|
-
//..scrolling down
|
31
|
-
else {
|
32
|
-
// Following test should be "if (scrollTop == src.scrollHeight - src.clientHeight)",
|
33
|
-
// see comment above.
|
34
|
-
if (src.scrollHeight <= (scrollTop + src.clientHeight + fudgeFactor)) {
|
35
|
-
event.stop();
|
36
|
-
}
|
37
|
-
}
|
38
|
-
};
|
39
|
-
|
40
|
-
function connectEvents(){
|
41
|
-
connect("show-mouse-event", "onmousemove", showMouseEvent);
|
42
|
-
connect("show-mouse-event", "onmousedown", showMouseEvent);
|
43
|
-
connect("show-mouse-event", "onmouseup", showMouseEvent);
|
44
|
-
connect("show-mouse-event", "onmousewheel", showMouseEvent);
|
45
|
-
connect("no-scroll-page", "onmousewheel", stopPageFromScrolling);
|
46
|
-
};
|
47
|
-
|
48
|
-
connect(window, 'onload',
|
49
|
-
function() {
|
50
|
-
connectEvents();
|
51
|
-
var elems = getElementsByTagAndClassName("A", "view-source");
|
52
|
-
var page = "mouse_events/";
|
53
|
-
for (var i = 0; i < elems.length; i++) {
|
54
|
-
var elem = elems[i];
|
55
|
-
var href = elem.href.split(/\//).pop();
|
56
|
-
elem.target = "_blank";
|
57
|
-
elem.href = "../view-source/view-source.html#" + page + href;
|
58
|
-
}
|
59
|
-
});
|
@@ -1,28 +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>Demo of MochiKit Visual Elements</title>
|
5
|
-
<link href="rounded_corners.css" rel="stylesheet" type="text/css" />
|
6
|
-
<script type="text/javascript" src="../../lib/MochiKit/MochiKit.js"></script>
|
7
|
-
<script type="text/javascript" src="rounded_corners.js"></script>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<h1>MochiKit.Visual <span id="visual_version"></span></h1>
|
11
|
-
<h2>Rounded Corners</h2>
|
12
|
-
<p>
|
13
|
-
This example demonstrates the rounded corners functionality of
|
14
|
-
<a href="http://mochikit.com">MochiKit</a>'s
|
15
|
-
<a href="../../doc/html/lib/MochiKit/Visual.html">MochiKit.Visual</a>.
|
16
|
-
</p>
|
17
|
-
<p>
|
18
|
-
The heading at the top of this page should have all four corners
|
19
|
-
rounded. The heading for this section should just have the bottom
|
20
|
-
corners rounded.
|
21
|
-
</p>
|
22
|
-
View Source:
|
23
|
-
<ul>
|
24
|
-
<li><a href="rounded_corners.js" class="view-source">rounded_corners.js</a></li>
|
25
|
-
<li><a href="index.html" class="view-source">index.html</a></li>
|
26
|
-
</ul>
|
27
|
-
</body>
|
28
|
-
</html>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
var roundedCornersOnLoad = function () {
|
2
|
-
swapDOM("visual_version", SPAN(null, MochiKit.Visual.VERSION));
|
3
|
-
roundClass("h1", null);
|
4
|
-
roundClass("h2", null, {corners: "bottom"});
|
5
|
-
};
|
6
|
-
addLoadEvent(roundedCornersOnLoad);
|
7
|
-
|
8
|
-
// rewrite the view-source links
|
9
|
-
addLoadEvent(function () {
|
10
|
-
var elems = getElementsByTagAndClassName("A", "view-source");
|
11
|
-
var page = "rounded_corners/";
|
12
|
-
for (var i = 0; i < elems.length; i++) {
|
13
|
-
var elem = elems[i];
|
14
|
-
var href = elem.href.split(/\//).pop();
|
15
|
-
elem.target = "_blank";
|
16
|
-
elem.href = "../view-source/view-source.html#" + page + href;
|
17
|
-
}
|
18
|
-
});
|
19
|
-
|
@@ -1,45 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<title>script.aculo.us Drag and drop functional test file</title>
|
6
|
-
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
7
|
-
<script type="text/javascript" src="../../lib/MochiKit/MochiKit.js"></script>
|
8
|
-
<script type="text/javascript" src="../../lib/MochiKit/Position.js"></script>
|
9
|
-
<script type="text/javascript" src="../../lib/MochiKit/Visual.js"></script>
|
10
|
-
<script type="text/javascript" src="../../lib/MochiKit/DragAndDrop.js"></script>
|
11
|
-
<style type="text/css" media="screen">
|
12
|
-
#thelist li { background: green; margin:5px; padding: 30px; }
|
13
|
-
#thelist2 li { background: #ffb; margin:2px; padding: 2px; }
|
14
|
-
</style>
|
15
|
-
</head>
|
16
|
-
<body>
|
17
|
-
<h1>script.aculo.us Drag and drop functional test file</h1>
|
18
|
-
|
19
|
-
<h2>Draggables/Droppables</h2>
|
20
|
-
|
21
|
-
<div id="revertbox1" class="box1" style="z-index:1000;width:150px;height:150px;background:#bbf;">
|
22
|
-
<span id="handle1">drag here</span><br/>
|
23
|
-
<input type="checkbox" id="shouldrevert1"/> Revert?
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<div id="revertbox2" class="box" style="z-index:1000;width:150px;height:150px;background:#bbf;">
|
27
|
-
<span id="handle2">drag here</span><br/>
|
28
|
-
<input type="checkbox" id="shouldrevert2"/> Revert?
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<div id="droptarget1" style="width:200px;height:200px;background-color:#eee;">accepts first box</div>
|
32
|
-
<div id="droptarget2" style="width:200px;height:200px;background-color:#eee;">accepts second box</div>
|
33
|
-
|
34
|
-
<script type="text/javascript" language="javascript" charset="utf-8">
|
35
|
-
// <![CDATA[
|
36
|
-
new MochiKit.DragAndDrop.Draggable('revertbox1',{handle:'handle1',revert:function(element){return ($('shouldrevert1').checked)}});
|
37
|
-
new MochiKit.DragAndDrop.Draggable('revertbox2',{handle:'handle2',revert:function(element){return ($('shouldrevert2').checked)}});
|
38
|
-
new MochiKit.DragAndDrop.Droppable('droptarget1',{accept:['box1','otherstuff'],ondrop:function(){alert('drop!')}});
|
39
|
-
new MochiKit.DragAndDrop.Droppable('droptarget2',{accept:['box'],ondrop:function(){alert('drop!')}});
|
40
|
-
// ]]>
|
41
|
-
</script>
|
42
|
-
|
43
|
-
|
44
|
-
</body>
|
45
|
-
</html>
|
@@ -1,119 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<title>script.aculo.us Drag and drop functional test file</title>
|
6
|
-
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
7
|
-
<script type="text/javascript" src="../../lib/MochiKit/MochiKit.js"></script>
|
8
|
-
<script type="text/javascript" src="../../lib/MochiKit/Position.js"></script>
|
9
|
-
<script type="text/javascript" src="../../lib/MochiKit/Visual.js"></script>
|
10
|
-
<script type="text/javascript" src="../../lib/MochiKit/DragAndDrop.js"></script>
|
11
|
-
<script type="text/javascript" src="../../lib/MochiKit/Sortable.js"></script>
|
12
|
-
<style type="text/css" media="screen">
|
13
|
-
#thelist li { background: green; margin:5px; padding: 30px; }
|
14
|
-
#thelist2 li { background: #ffb; margin:2px; padding: 2px; }
|
15
|
-
#revertbox2 { position:absolute;top:40px;left:50px;z-index:1000;width:150px;height:150px;background:#bbf; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<h1>script.aculo.us Drag and drop functional test file</h1>
|
20
|
-
|
21
|
-
<h2>Draggables/Droppables</h2>
|
22
|
-
|
23
|
-
<div id="revertbox1" class="box1" style="z-index:1000;width:150px;height:150px;background:#bbf;">
|
24
|
-
<span class="handle1">drag here</span><br/>
|
25
|
-
<input type="checkbox" id="shouldrevert1"/> Revert?
|
26
|
-
</div>
|
27
|
-
|
28
|
-
<div id="revertbox2" class="box">
|
29
|
-
<span id="handle2">drag here</span><br/>
|
30
|
-
<input type="checkbox" id="shouldrevert2"/> Revert?
|
31
|
-
</div>
|
32
|
-
|
33
|
-
<div id="xxxx">testtest</div>
|
34
|
-
|
35
|
-
<script type="text/javascript" language="javascript" charset="utf-8">
|
36
|
-
// <![CDATA[
|
37
|
-
new MochiKit.DragAndDrop.Draggable('revertbox1',{zindex:-5,handle:'handle1',revert:function(element){return ($('shouldrevert1').checked)}});
|
38
|
-
new MochiKit.DragAndDrop.Draggable('revertbox2',{handle:'handle2',revert:function(element){return ($('shouldrevert2').checked)}});
|
39
|
-
new MochiKit.DragAndDrop.Droppable('xxxx',{accept:['box1','box2'],onDrop:function(){alert('drop!')}});
|
40
|
-
// ]]>
|
41
|
-
</script>
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
<ul id="thelist" style="padding: 10px; position: absolute; top:20px; left:200px;z-index:1000;">
|
47
|
-
<li id="thelist_4">Hey there! I'm absolutely positioned</li>
|
48
|
-
<li id="thelist_1">one<br/><form id="form1"><input type="checkbox" onclick="this.checked = !this.checked" value="x" name="x" id="xyz"/><input type="text" id="xxx"></input></form></li>
|
49
|
-
<li id="thelist_2">two<br/><form id="form2"><input type="text" id="xyx"></input></form></li>
|
50
|
-
<li id="thelist_3">three<br/><form id="form3"><input type="text" id="xu3"></input></form></li>
|
51
|
-
</ul>
|
52
|
-
|
53
|
-
<ul id="thelist2" style="padding: 2px; background:red;">
|
54
|
-
<li>Relatively here!</li>
|
55
|
-
<li><input onclick="this.checked = !this.checked" name="x" id="x" type="checkbox"/>one</li>
|
56
|
-
<li>one</li>
|
57
|
-
<li>one</li>
|
58
|
-
<li>one</li>
|
59
|
-
<li>one</li>
|
60
|
-
<li>one</li>
|
61
|
-
<li>one</li>
|
62
|
-
<li>one</li>
|
63
|
-
<li>one</li>
|
64
|
-
<li>one</li>
|
65
|
-
<li>one</li>
|
66
|
-
<li>one</li>
|
67
|
-
<li>one</li>
|
68
|
-
<li>one</li>
|
69
|
-
<li>one</li>
|
70
|
-
<li>one</li>
|
71
|
-
<li>one</li>
|
72
|
-
<li>one</li>
|
73
|
-
<li>one</li>
|
74
|
-
<li>one</li>
|
75
|
-
<li>one</li>
|
76
|
-
<li>one</li>
|
77
|
-
<li>one</li>
|
78
|
-
<li>one</li>
|
79
|
-
<li>one</li>
|
80
|
-
<li>one</li>
|
81
|
-
<li>one</li>
|
82
|
-
<li>one</li>
|
83
|
-
<li>one</li>
|
84
|
-
<li>one</li>
|
85
|
-
<li>one</li>
|
86
|
-
<li>one</li>
|
87
|
-
<li>one</li>
|
88
|
-
<li>one</li>
|
89
|
-
<li>one</li>
|
90
|
-
<li>one</li>
|
91
|
-
<li>one</li>
|
92
|
-
<li>one</li>
|
93
|
-
<li>one</li>
|
94
|
-
<li>one</li>
|
95
|
-
<li>one</li>
|
96
|
-
<li>one</li>
|
97
|
-
<li>one</li>
|
98
|
-
<li>one</li>
|
99
|
-
<li>one</li>
|
100
|
-
<li>one</li>
|
101
|
-
<li>one</li>
|
102
|
-
<li>one</li>
|
103
|
-
<li>one</li>
|
104
|
-
<li>one</li>
|
105
|
-
</ul>
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
<script type="text/javascript" language="javascript" charset="utf-8">
|
110
|
-
// <![CDATA[
|
111
|
-
// Sortable.create('thelist', {overlap: 'horizontal', constraint: false});
|
112
|
-
MochiKit.Sortable.Sortable.create('thelist');
|
113
|
-
MochiKit.Sortable.Sortable.create('thelist2');
|
114
|
-
|
115
|
-
// ]]>
|
116
|
-
</script>
|
117
|
-
|
118
|
-
</body>
|
119
|
-
</html>
|