From 3524ef0c26f8760615c01217045c72f9bb20dde9 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Sat, 7 Jun 2008 17:35:27 +0000 Subject: removed extra level ui folder --- ui/GPL-LICENSE.txt | 278 -- ui/MIT-LICENSE.txt | 20 - ui/demos/functional/datepicker/debug.html | 21 - .../functional/datepicker/demo/img/active-bg.gif | Bin 89 -> 0 bytes ui/demos/functional/datepicker/demo/img/ar.gif | Bin 863 -> 0 bytes ui/demos/functional/datepicker/demo/img/au.gif | Bin 941 -> 0 bytes ui/demos/functional/datepicker/demo/img/br.gif | Bin 925 -> 0 bytes .../functional/datepicker/demo/img/calendar.gif | Bin 269 -> 0 bytes .../functional/datepicker/demo/img/calendar2.gif | Bin 1035 -> 0 bytes ui/demos/functional/datepicker/demo/img/cn.gif | Bin 856 -> 0 bytes .../functional/datepicker/demo/img/dark-bg.gif | Bin 85 -> 0 bytes .../functional/datepicker/demo/img/hover-bg.gif | Bin 89 -> 0 bytes ui/demos/functional/datepicker/demo/img/id.gif | Bin 840 -> 0 bytes ui/demos/functional/datepicker/demo/img/ie.gif | Bin 875 -> 0 bytes ui/demos/functional/datepicker/demo/img/ke.gif | Bin 948 -> 0 bytes ui/demos/functional/datepicker/demo/img/lb.gif | Bin 903 -> 0 bytes ui/demos/functional/datepicker/demo/img/next.gif | Bin 98 -> 0 bytes .../functional/datepicker/demo/img/normal-bg.gif | Bin 110 -> 0 bytes ui/demos/functional/datepicker/demo/img/nz.gif | Bin 925 -> 0 bytes ui/demos/functional/datepicker/demo/img/prev.gif | Bin 97 -> 0 bytes ui/demos/functional/datepicker/demo/img/se.gif | Bin 892 -> 0 bytes ui/demos/functional/datepicker/demo/img/tab.png | Bin 1717 -> 0 bytes ui/demos/functional/datepicker/demo/img/us.gif | Bin 896 -> 0 bytes ui/demos/functional/datepicker/demo/img/za.gif | Bin 900 -> 0 bytes .../datepicker/demo/jquery.localisation.js | 64 - .../datepicker/demo/ui.datepicker.alt.css | 158 - .../datepicker/demo/ui.datepicker.demo.css | 53 - .../datepicker/demo/ui.datepicker.demo.js | 81 - ui/demos/functional/datepicker/index.html | 887 ----- .../real-world/accordion-drawers/images/caps.gif | Bin 139 -> 0 bytes .../accordion-drawers/images/sideboxlight_bg.gif | Bin 86 -> 0 bytes .../accordion-drawers/images/slider_handlebg.png | Bin 452 -> 0 bytes ui/demos/real-world/accordion-drawers/index.html | 257 -- ui/demos/real-world/effects/demo.js | 65 - ui/demos/real-world/effects/index.html | 120 - ui/demos/real-world/effects/style.css | 36 - ui/demos/real-world/image-cropper/img/img01.jpg | Bin 84258 -> 0 bytes ui/demos/real-world/image-cropper/img/img02.jpg | Bin 112791 -> 0 bytes ui/demos/real-world/image-cropper/img/img03.jpg | Bin 59031 -> 0 bytes ui/demos/real-world/image-cropper/img/img04.jpg | Bin 54449 -> 0 bytes ui/demos/real-world/image-cropper/img/img05.jpg | Bin 92368 -> 0 bytes ui/demos/real-world/image-cropper/index.html | 231 -- ui/demos/real-world/image-cropper/real-world.css | 104 - ui/demos/real-world/layout/demo.css | 42 - ui/demos/real-world/layout/demo.js | 97 - ui/demos/real-world/layout/index.html | 94 - ui/demos/real-world/layout/loader.gif | Bin 4782 -> 0 bytes ui/demos/real-world/layout/loader_bg.gif | Bin 317 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010020.JPG | Bin 59031 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010036.JPG | Bin 54449 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010039.JPG | Bin 92368 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010044.JPG | Bin 84258 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010050.JPG | Bin 112791 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010055.JPG | Bin 25591 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010058.JPG | Bin 46234 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010059.JPG | Bin 37428 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010061.JPG | Bin 59638 -> 0 bytes ui/demos/real-world/photo-manager/img/P1010063.JPG | Bin 54692 -> 0 bytes .../photo-manager/img/thumbs/P1010020.JPG | Bin 4735 -> 0 bytes .../photo-manager/img/thumbs/P1010036.JPG | Bin 3996 -> 0 bytes .../photo-manager/img/thumbs/P1010039.JPG | Bin 6783 -> 0 bytes .../photo-manager/img/thumbs/P1010044.JPG | Bin 7084 -> 0 bytes .../photo-manager/img/thumbs/P1010050.JPG | Bin 6418 -> 0 bytes .../photo-manager/img/thumbs/P1010055.JPG | Bin 2645 -> 0 bytes .../photo-manager/img/thumbs/P1010058.JPG | Bin 3727 -> 0 bytes .../photo-manager/img/thumbs/P1010059.JPG | Bin 3287 -> 0 bytes .../photo-manager/img/thumbs/P1010061.JPG | Bin 5062 -> 0 bytes .../photo-manager/img/thumbs/P1010063.JPG | Bin 5042 -> 0 bytes ui/demos/real-world/photo-manager/index.html | 126 - ui/demos/real-world/photo-manager/js/demo.js | 130 - .../real-world/photo-manager/js/jquery.blockUI.js | 361 -- .../photo-manager/js/jquery.livequery.js | 250 -- .../real-world/photo-manager/theme/css/screen.css | 179 - .../photo-manager/theme/img/body_wrap_bg.gif | Bin 148 -> 0 bytes .../photo-manager/theme/img/header_bg.png | Bin 339 -> 0 bytes .../photo-manager/theme/img/photos_gold_32.gif | Bin 1341 -> 0 bytes .../photo-manager/theme/img/search_16.gif | Bin 541 -> 0 bytes .../photo-manager/theme/img/side_top.jpg | Bin 985 -> 0 bytes .../photo-manager/theme/img/trash_16.gif | Bin 571 -> 0 bytes .../product-slider/images/pb_airport_express.jpg | Bin 1211 -> 0 bytes .../product-slider/images/pb_airport_extreme.jpg | Bin 1109 -> 0 bytes .../product-slider/images/pb_aperture20080212.jpg | Bin 2208 -> 0 bytes .../images/pb_apple_remote_desktop_20080115.jpg | Bin 2234 -> 0 bytes .../images/pb_cinema_display20071026.jpg | Bin 4994 -> 0 bytes .../product-slider/images/pb_dot_mac_20080115.jpg | Bin 4154 -> 0 bytes .../images/pb_final_cut_express_20080115.jpg | Bin 3464 -> 0 bytes .../images/pb_final_cut_studio2_20080115.jpg | Bin 4256 -> 0 bytes .../product-slider/images/pb_ilife_20080115.jpg | Bin 4495 -> 0 bytes .../product-slider/images/pb_imac20071026.jpg | Bin 5106 -> 0 bytes .../product-slider/images/pb_iwork_20080115.jpg | Bin 3305 -> 0 bytes .../product-slider/images/pb_keyboards20070807.jpg | Bin 3165 -> 0 bytes .../images/pb_logic_express_20080115.jpg | Bin 2896 -> 0 bytes .../images/pb_logic_studio_20080115.jpg | Bin 3391 -> 0 bytes .../product-slider/images/pb_mac_mini.jpg | Bin 1094 -> 0 bytes .../product-slider/images/pb_mac_pro_20070622.jpg | Bin 3406 -> 0 bytes .../product-slider/images/pb_macbook20071026.jpg | Bin 3705 -> 0 bytes .../images/pb_macbook_pro20071026.jpg | Bin 4228 -> 0 bytes .../images/pb_macbookair_20080115.jpg | Bin 4921 -> 0 bytes .../product-slider/images/pb_macosx_20080115.jpg | Bin 2610 -> 0 bytes .../images/pb_macosx_server20071016.jpg | Bin 3307 -> 0 bytes .../product-slider/images/pb_mighty_mouse.jpg | Bin 1223 -> 0 bytes .../product-slider/images/pb_quicktime.jpg | Bin 4057 -> 0 bytes .../product-slider/images/pb_shake_20080115.jpg | Bin 3535 -> 0 bytes .../images/pb_timecapsule_20080115.jpg | Bin 1361 -> 0 bytes .../product-slider/images/pb_xsan_20080115.jpg | Bin 2092 -> 0 bytes .../real-world/product-slider/images/pb_xserve.jpg | Bin 1463 -> 0 bytes .../product-slider/images/pb_xserve_raid.jpg | Bin 2649 -> 0 bytes .../images/productbrowser_background_20070622.jpg | Bin 5449 -> 0 bytes .../images/productbrowser_scrollbar_20070622.png | Bin 3842 -> 0 bytes .../images/productbrowser_scroller_20080115.png | Bin 1503 -> 0 bytes ui/demos/real-world/product-slider/index.html | 185 - ui/demos/real-world/range-interface/index.html | 130 - ui/demos/real-world/splitpane/css/demo.css | 149 - .../real-world/splitpane/images/bg_gradient.gif | Bin 265 -> 0 bytes ui/demos/real-world/splitpane/images/icons_2.png | Bin 3494 -> 0 bytes .../splitpane/images/splitpane_handle-ew.gif | Bin 114 -> 0 bytes .../splitpane/images/splitpane_handle-sn.gif | Bin 114 -> 0 bytes ui/demos/real-world/splitpane/index.html | 96 - ui/jquery-1.2.6.js | 3549 -------------------- ui/source/effects.blind.js | 50 - ui/source/effects.bounce.js | 79 - ui/source/effects.clip.js | 54 - ui/source/effects.core.js | 510 --- ui/source/effects.drop.js | 51 - ui/source/effects.explode.js | 80 - ui/source/effects.fold.js | 52 - ui/source/effects.highlight.js | 49 - ui/source/effects.pulsate.js | 56 - ui/source/effects.scale.js | 180 - ui/source/effects.shake.js | 58 - ui/source/effects.slide.js | 51 - ui/source/effects.transfer.js | 59 - ui/source/i18n/ui.datepicker-am.js | 22 - ui/source/i18n/ui.datepicker-ar.js | 31 - ui/source/i18n/ui.datepicker-bg.js | 22 - ui/source/i18n/ui.datepicker-ca.js | 22 - ui/source/i18n/ui.datepicker-cs.js | 22 - ui/source/i18n/ui.datepicker-da.js | 22 - ui/source/i18n/ui.datepicker-de.js | 22 - ui/source/i18n/ui.datepicker-es.js | 22 - ui/source/i18n/ui.datepicker-fi.js | 24 - ui/source/i18n/ui.datepicker-fr.js | 22 - ui/source/i18n/ui.datepicker-he.js | 22 - ui/source/i18n/ui.datepicker-hu.js | 22 - ui/source/i18n/ui.datepicker-id.js | 22 - ui/source/i18n/ui.datepicker-is.js | 22 - ui/source/i18n/ui.datepicker-it.js | 22 - ui/source/i18n/ui.datepicker-ja.js | 22 - ui/source/i18n/ui.datepicker-ko.js | 22 - ui/source/i18n/ui.datepicker-lt.js | 25 - ui/source/i18n/ui.datepicker-lv.js | 24 - ui/source/i18n/ui.datepicker-nl.js | 21 - ui/source/i18n/ui.datepicker-no.js | 23 - ui/source/i18n/ui.datepicker-pl.js | 22 - ui/source/i18n/ui.datepicker-pt-BR.js | 22 - ui/source/i18n/ui.datepicker-ro.js | 22 - ui/source/i18n/ui.datepicker-ru.js | 22 - ui/source/i18n/ui.datepicker-sk.js | 22 - ui/source/i18n/ui.datepicker-sv.js | 22 - ui/source/i18n/ui.datepicker-th.js | 22 - ui/source/i18n/ui.datepicker-tr.js | 22 - ui/source/i18n/ui.datepicker-ua.js | 22 - ui/source/i18n/ui.datepicker-zh-CN.js | 22 - ui/source/i18n/ui.datepicker-zh-TW.js | 23 - ui/source/ui.accordion.js | 302 -- ui/source/ui.core.js | 289 -- ui/source/ui.datepicker.js | 1450 -------- ui/source/ui.dialog.js | 445 --- ui/source/ui.draggable.js | 552 --- ui/source/ui.droppable.js | 283 -- ui/source/ui.resizable.js | 729 ---- ui/source/ui.selectable.js | 266 -- ui/source/ui.slider.js | 424 --- ui/source/ui.sortable.js | 665 ---- ui/source/ui.tabs.js | 595 ---- ui/tests/accordion.html | 170 - ui/tests/accordion.js | 78 - ui/tests/all.html | 182 - ui/tests/autodrag.html | 155 - ui/tests/cursors/linux/auto.png | Bin 851 -> 0 bytes ui/tests/cursors/linux/crosshair.png | Bin 413 -> 0 bytes ui/tests/cursors/linux/default.png | Bin 851 -> 0 bytes ui/tests/cursors/linux/e-resize.png | Bin 861 -> 0 bytes ui/tests/cursors/linux/help.png | Bin 1279 -> 0 bytes ui/tests/cursors/linux/move.png | Bin 710 -> 0 bytes ui/tests/cursors/linux/n-resize.png | Bin 871 -> 0 bytes ui/tests/cursors/linux/ne-resize.png | Bin 836 -> 0 bytes ui/tests/cursors/linux/none.cur | Bin 2238 -> 0 bytes ui/tests/cursors/linux/none.png | Bin 872 -> 0 bytes ui/tests/cursors/linux/nw-resize.png | Bin 824 -> 0 bytes ui/tests/cursors/linux/pointer.png | Bin 541 -> 0 bytes ui/tests/cursors/linux/s-resize.png | Bin 871 -> 0 bytes ui/tests/cursors/linux/se-resize.png | Bin 824 -> 0 bytes ui/tests/cursors/linux/sw-resize.png | Bin 836 -> 0 bytes ui/tests/cursors/linux/text.png | Bin 486 -> 0 bytes ui/tests/cursors/linux/w-resize.png | Bin 861 -> 0 bytes ui/tests/cursors/mac/auto.png | Bin 401 -> 0 bytes ui/tests/cursors/mac/crosshair.png | Bin 341 -> 0 bytes ui/tests/cursors/mac/default.png | Bin 401 -> 0 bytes ui/tests/cursors/mac/e-resize.png | Bin 390 -> 0 bytes ui/tests/cursors/mac/help.png | Bin 689 -> 0 bytes ui/tests/cursors/mac/move.png | Bin 651 -> 0 bytes ui/tests/cursors/mac/n-resize.png | Bin 434 -> 0 bytes ui/tests/cursors/mac/ne-resize.png | Bin 440 -> 0 bytes ui/tests/cursors/mac/none.cur | Bin 2238 -> 0 bytes ui/tests/cursors/mac/none.png | Bin 872 -> 0 bytes ui/tests/cursors/mac/nw-resize.png | Bin 452 -> 0 bytes ui/tests/cursors/mac/pointer.png | Bin 675 -> 0 bytes ui/tests/cursors/mac/s-resize.png | Bin 434 -> 0 bytes ui/tests/cursors/mac/se-resize.png | Bin 452 -> 0 bytes ui/tests/cursors/mac/sw-resize.png | Bin 440 -> 0 bytes ui/tests/cursors/mac/text.png | Bin 436 -> 0 bytes ui/tests/cursors/mac/w-resize.png | Bin 390 -> 0 bytes ui/tests/cursors/win/auto.png | Bin 724 -> 0 bytes ui/tests/cursors/win/crosshair.png | Bin 304 -> 0 bytes ui/tests/cursors/win/default.png | Bin 724 -> 0 bytes ui/tests/cursors/win/e-resize.png | Bin 714 -> 0 bytes ui/tests/cursors/win/help.png | Bin 1129 -> 0 bytes ui/tests/cursors/win/move.png | Bin 1035 -> 0 bytes ui/tests/cursors/win/n-resize.png | Bin 722 -> 0 bytes ui/tests/cursors/win/ne-resize.png | Bin 985 -> 0 bytes ui/tests/cursors/win/none.cur | Bin 2238 -> 0 bytes ui/tests/cursors/win/none.png | Bin 2847 -> 0 bytes ui/tests/cursors/win/nw-resize.png | Bin 993 -> 0 bytes ui/tests/cursors/win/pointer.png | Bin 1178 -> 0 bytes ui/tests/cursors/win/s-resize.png | Bin 722 -> 0 bytes ui/tests/cursors/win/se-resize.png | Bin 993 -> 0 bytes ui/tests/cursors/win/sw-resize.png | Bin 985 -> 0 bytes ui/tests/cursors/win/text.png | Bin 258 -> 0 bytes ui/tests/cursors/win/w-resize.png | Bin 714 -> 0 bytes ui/tests/draggable.html | 41 - ui/tests/draggable.js | 494 --- ui/tests/images/click.png | Bin 1293 -> 0 bytes ui/tests/images/test.jpg | Bin 915 -> 0 bytes ui/tests/jquery.useraction.js | 347 -- ui/tests/resizable.html | 41 - ui/tests/resizable.js | 400 --- ui/tests/simulate/jquery.simulate.js | 141 - ui/tests/slider.html | 33 - ui/tests/slider.js | 110 - ui/tests/ui.testmouse.js | 142 - ui/themes/flora/flora.accordion.css | 39 - ui/themes/flora/flora.all.css | 7 - ui/themes/flora/flora.css | 2 - ui/themes/flora/flora.datepicker.css | 179 - ui/themes/flora/flora.dialog.css | 95 - ui/themes/flora/flora.resizable.css | 20 - ui/themes/flora/flora.slider.css | 11 - ui/themes/flora/flora.tabs.css | 105 - ui/themes/flora/i/accordion-left-act.png | Bin 249 -> 0 bytes ui/themes/flora/i/accordion-left-over.png | Bin 174 -> 0 bytes ui/themes/flora/i/accordion-left.png | Bin 174 -> 0 bytes ui/themes/flora/i/accordion-middle-act.png | Bin 148 -> 0 bytes ui/themes/flora/i/accordion-middle-over.png | Bin 122 -> 0 bytes ui/themes/flora/i/accordion-middle.png | Bin 122 -> 0 bytes ui/themes/flora/i/accordion-right-act.png | Bin 245 -> 0 bytes ui/themes/flora/i/accordion-right-over.png | Bin 177 -> 0 bytes ui/themes/flora/i/accordion-right.png | Bin 177 -> 0 bytes ui/themes/flora/i/dialog-e.gif | Bin 440 -> 0 bytes ui/themes/flora/i/dialog-n.gif | Bin 700 -> 0 bytes ui/themes/flora/i/dialog-ne.gif | Bin 353 -> 0 bytes ui/themes/flora/i/dialog-nw.gif | Bin 353 -> 0 bytes ui/themes/flora/i/dialog-s.gif | Bin 434 -> 0 bytes ui/themes/flora/i/dialog-se.gif | Bin 175 -> 0 bytes ui/themes/flora/i/dialog-sw.gif | Bin 175 -> 0 bytes ui/themes/flora/i/dialog-title.gif | Bin 238 -> 0 bytes ui/themes/flora/i/dialog-titlebar-close-hover.png | Bin 2927 -> 0 bytes ui/themes/flora/i/dialog-titlebar-close.png | Bin 2880 -> 0 bytes ui/themes/flora/i/dialog-w.gif | Bin 437 -> 0 bytes ui/themes/flora/i/resizable-e.gif | Bin 338 -> 0 bytes ui/themes/flora/i/resizable-n.gif | Bin 341 -> 0 bytes ui/themes/flora/i/resizable-ne.gif | Bin 124 -> 0 bytes ui/themes/flora/i/resizable-nw.gif | Bin 91 -> 0 bytes ui/themes/flora/i/resizable-s.gif | Bin 341 -> 0 bytes ui/themes/flora/i/resizable-se.gif | Bin 120 -> 0 bytes ui/themes/flora/i/resizable-sw.gif | Bin 175 -> 0 bytes ui/themes/flora/i/resizable-w.gif | Bin 339 -> 0 bytes ui/themes/flora/i/slider-bg-1.png | Bin 204 -> 0 bytes ui/themes/flora/i/slider-bg-2.png | Bin 326 -> 0 bytes ui/themes/flora/i/slider-handle.gif | Bin 176 -> 0 bytes ui/themes/flora/i/tabs.png | Bin 263 -> 0 bytes ui/themes/ui.datepicker.css | 207 -- ui/version.txt | 1 - 283 files changed, 18813 deletions(-) delete mode 100644 ui/GPL-LICENSE.txt delete mode 100644 ui/MIT-LICENSE.txt delete mode 100644 ui/demos/functional/datepicker/debug.html delete mode 100644 ui/demos/functional/datepicker/demo/img/active-bg.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/ar.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/au.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/br.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/calendar.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/calendar2.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/cn.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/dark-bg.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/hover-bg.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/id.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/ie.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/ke.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/lb.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/next.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/normal-bg.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/nz.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/prev.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/se.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/tab.png delete mode 100644 ui/demos/functional/datepicker/demo/img/us.gif delete mode 100644 ui/demos/functional/datepicker/demo/img/za.gif delete mode 100644 ui/demos/functional/datepicker/demo/jquery.localisation.js delete mode 100644 ui/demos/functional/datepicker/demo/ui.datepicker.alt.css delete mode 100644 ui/demos/functional/datepicker/demo/ui.datepicker.demo.css delete mode 100644 ui/demos/functional/datepicker/demo/ui.datepicker.demo.js delete mode 100644 ui/demos/functional/datepicker/index.html delete mode 100644 ui/demos/real-world/accordion-drawers/images/caps.gif delete mode 100644 ui/demos/real-world/accordion-drawers/images/sideboxlight_bg.gif delete mode 100644 ui/demos/real-world/accordion-drawers/images/slider_handlebg.png delete mode 100644 ui/demos/real-world/accordion-drawers/index.html delete mode 100644 ui/demos/real-world/effects/demo.js delete mode 100644 ui/demos/real-world/effects/index.html delete mode 100644 ui/demos/real-world/effects/style.css delete mode 100644 ui/demos/real-world/image-cropper/img/img01.jpg delete mode 100644 ui/demos/real-world/image-cropper/img/img02.jpg delete mode 100644 ui/demos/real-world/image-cropper/img/img03.jpg delete mode 100644 ui/demos/real-world/image-cropper/img/img04.jpg delete mode 100644 ui/demos/real-world/image-cropper/img/img05.jpg delete mode 100644 ui/demos/real-world/image-cropper/index.html delete mode 100644 ui/demos/real-world/image-cropper/real-world.css delete mode 100644 ui/demos/real-world/layout/demo.css delete mode 100644 ui/demos/real-world/layout/demo.js delete mode 100644 ui/demos/real-world/layout/index.html delete mode 100644 ui/demos/real-world/layout/loader.gif delete mode 100644 ui/demos/real-world/layout/loader_bg.gif delete mode 100644 ui/demos/real-world/photo-manager/img/P1010020.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/P1010036.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/P1010039.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/P1010044.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/P1010050.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/P1010055.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/P1010058.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/P1010059.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/P1010061.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/P1010063.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG delete mode 100644 ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG delete mode 100644 ui/demos/real-world/photo-manager/index.html delete mode 100644 ui/demos/real-world/photo-manager/js/demo.js delete mode 100644 ui/demos/real-world/photo-manager/js/jquery.blockUI.js delete mode 100644 ui/demos/real-world/photo-manager/js/jquery.livequery.js delete mode 100644 ui/demos/real-world/photo-manager/theme/css/screen.css delete mode 100644 ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif delete mode 100644 ui/demos/real-world/photo-manager/theme/img/header_bg.png delete mode 100644 ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif delete mode 100644 ui/demos/real-world/photo-manager/theme/img/search_16.gif delete mode 100644 ui/demos/real-world/photo-manager/theme/img/side_top.jpg delete mode 100644 ui/demos/real-world/photo-manager/theme/img/trash_16.gif delete mode 100644 ui/demos/real-world/product-slider/images/pb_airport_express.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_imac20071026.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_mac_mini.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_quicktime.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_xserve.jpg delete mode 100644 ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg delete mode 100644 ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg delete mode 100644 ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png delete mode 100644 ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png delete mode 100644 ui/demos/real-world/product-slider/index.html delete mode 100644 ui/demos/real-world/range-interface/index.html delete mode 100644 ui/demos/real-world/splitpane/css/demo.css delete mode 100644 ui/demos/real-world/splitpane/images/bg_gradient.gif delete mode 100644 ui/demos/real-world/splitpane/images/icons_2.png delete mode 100644 ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif delete mode 100644 ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif delete mode 100644 ui/demos/real-world/splitpane/index.html delete mode 100644 ui/jquery-1.2.6.js delete mode 100644 ui/source/effects.blind.js delete mode 100644 ui/source/effects.bounce.js delete mode 100644 ui/source/effects.clip.js delete mode 100644 ui/source/effects.core.js delete mode 100644 ui/source/effects.drop.js delete mode 100644 ui/source/effects.explode.js delete mode 100644 ui/source/effects.fold.js delete mode 100644 ui/source/effects.highlight.js delete mode 100644 ui/source/effects.pulsate.js delete mode 100644 ui/source/effects.scale.js delete mode 100644 ui/source/effects.shake.js delete mode 100644 ui/source/effects.slide.js delete mode 100644 ui/source/effects.transfer.js delete mode 100644 ui/source/i18n/ui.datepicker-am.js delete mode 100644 ui/source/i18n/ui.datepicker-ar.js delete mode 100644 ui/source/i18n/ui.datepicker-bg.js delete mode 100644 ui/source/i18n/ui.datepicker-ca.js delete mode 100644 ui/source/i18n/ui.datepicker-cs.js delete mode 100644 ui/source/i18n/ui.datepicker-da.js delete mode 100644 ui/source/i18n/ui.datepicker-de.js delete mode 100644 ui/source/i18n/ui.datepicker-es.js delete mode 100644 ui/source/i18n/ui.datepicker-fi.js delete mode 100644 ui/source/i18n/ui.datepicker-fr.js delete mode 100644 ui/source/i18n/ui.datepicker-he.js delete mode 100644 ui/source/i18n/ui.datepicker-hu.js delete mode 100644 ui/source/i18n/ui.datepicker-id.js delete mode 100644 ui/source/i18n/ui.datepicker-is.js delete mode 100644 ui/source/i18n/ui.datepicker-it.js delete mode 100644 ui/source/i18n/ui.datepicker-ja.js delete mode 100644 ui/source/i18n/ui.datepicker-ko.js delete mode 100644 ui/source/i18n/ui.datepicker-lt.js delete mode 100644 ui/source/i18n/ui.datepicker-lv.js delete mode 100644 ui/source/i18n/ui.datepicker-nl.js delete mode 100644 ui/source/i18n/ui.datepicker-no.js delete mode 100644 ui/source/i18n/ui.datepicker-pl.js delete mode 100644 ui/source/i18n/ui.datepicker-pt-BR.js delete mode 100644 ui/source/i18n/ui.datepicker-ro.js delete mode 100644 ui/source/i18n/ui.datepicker-ru.js delete mode 100644 ui/source/i18n/ui.datepicker-sk.js delete mode 100644 ui/source/i18n/ui.datepicker-sv.js delete mode 100644 ui/source/i18n/ui.datepicker-th.js delete mode 100644 ui/source/i18n/ui.datepicker-tr.js delete mode 100644 ui/source/i18n/ui.datepicker-ua.js delete mode 100644 ui/source/i18n/ui.datepicker-zh-CN.js delete mode 100644 ui/source/i18n/ui.datepicker-zh-TW.js delete mode 100644 ui/source/ui.accordion.js delete mode 100644 ui/source/ui.core.js delete mode 100644 ui/source/ui.datepicker.js delete mode 100644 ui/source/ui.dialog.js delete mode 100644 ui/source/ui.draggable.js delete mode 100644 ui/source/ui.droppable.js delete mode 100644 ui/source/ui.resizable.js delete mode 100644 ui/source/ui.selectable.js delete mode 100644 ui/source/ui.slider.js delete mode 100644 ui/source/ui.sortable.js delete mode 100644 ui/source/ui.tabs.js delete mode 100644 ui/tests/accordion.html delete mode 100644 ui/tests/accordion.js delete mode 100644 ui/tests/all.html delete mode 100644 ui/tests/autodrag.html delete mode 100644 ui/tests/cursors/linux/auto.png delete mode 100644 ui/tests/cursors/linux/crosshair.png delete mode 100644 ui/tests/cursors/linux/default.png delete mode 100644 ui/tests/cursors/linux/e-resize.png delete mode 100644 ui/tests/cursors/linux/help.png delete mode 100644 ui/tests/cursors/linux/move.png delete mode 100644 ui/tests/cursors/linux/n-resize.png delete mode 100644 ui/tests/cursors/linux/ne-resize.png delete mode 100644 ui/tests/cursors/linux/none.cur delete mode 100644 ui/tests/cursors/linux/none.png delete mode 100644 ui/tests/cursors/linux/nw-resize.png delete mode 100644 ui/tests/cursors/linux/pointer.png delete mode 100644 ui/tests/cursors/linux/s-resize.png delete mode 100644 ui/tests/cursors/linux/se-resize.png delete mode 100644 ui/tests/cursors/linux/sw-resize.png delete mode 100644 ui/tests/cursors/linux/text.png delete mode 100644 ui/tests/cursors/linux/w-resize.png delete mode 100644 ui/tests/cursors/mac/auto.png delete mode 100644 ui/tests/cursors/mac/crosshair.png delete mode 100644 ui/tests/cursors/mac/default.png delete mode 100644 ui/tests/cursors/mac/e-resize.png delete mode 100644 ui/tests/cursors/mac/help.png delete mode 100644 ui/tests/cursors/mac/move.png delete mode 100644 ui/tests/cursors/mac/n-resize.png delete mode 100644 ui/tests/cursors/mac/ne-resize.png delete mode 100644 ui/tests/cursors/mac/none.cur delete mode 100644 ui/tests/cursors/mac/none.png delete mode 100644 ui/tests/cursors/mac/nw-resize.png delete mode 100644 ui/tests/cursors/mac/pointer.png delete mode 100644 ui/tests/cursors/mac/s-resize.png delete mode 100644 ui/tests/cursors/mac/se-resize.png delete mode 100644 ui/tests/cursors/mac/sw-resize.png delete mode 100644 ui/tests/cursors/mac/text.png delete mode 100644 ui/tests/cursors/mac/w-resize.png delete mode 100644 ui/tests/cursors/win/auto.png delete mode 100644 ui/tests/cursors/win/crosshair.png delete mode 100644 ui/tests/cursors/win/default.png delete mode 100644 ui/tests/cursors/win/e-resize.png delete mode 100644 ui/tests/cursors/win/help.png delete mode 100644 ui/tests/cursors/win/move.png delete mode 100644 ui/tests/cursors/win/n-resize.png delete mode 100644 ui/tests/cursors/win/ne-resize.png delete mode 100644 ui/tests/cursors/win/none.cur delete mode 100644 ui/tests/cursors/win/none.png delete mode 100644 ui/tests/cursors/win/nw-resize.png delete mode 100644 ui/tests/cursors/win/pointer.png delete mode 100644 ui/tests/cursors/win/s-resize.png delete mode 100644 ui/tests/cursors/win/se-resize.png delete mode 100644 ui/tests/cursors/win/sw-resize.png delete mode 100644 ui/tests/cursors/win/text.png delete mode 100644 ui/tests/cursors/win/w-resize.png delete mode 100644 ui/tests/draggable.html delete mode 100644 ui/tests/draggable.js delete mode 100644 ui/tests/images/click.png delete mode 100644 ui/tests/images/test.jpg delete mode 100644 ui/tests/jquery.useraction.js delete mode 100644 ui/tests/resizable.html delete mode 100644 ui/tests/resizable.js delete mode 100644 ui/tests/simulate/jquery.simulate.js delete mode 100644 ui/tests/slider.html delete mode 100644 ui/tests/slider.js delete mode 100644 ui/tests/ui.testmouse.js delete mode 100644 ui/themes/flora/flora.accordion.css delete mode 100644 ui/themes/flora/flora.all.css delete mode 100644 ui/themes/flora/flora.css delete mode 100644 ui/themes/flora/flora.datepicker.css delete mode 100644 ui/themes/flora/flora.dialog.css delete mode 100644 ui/themes/flora/flora.resizable.css delete mode 100644 ui/themes/flora/flora.slider.css delete mode 100644 ui/themes/flora/flora.tabs.css delete mode 100644 ui/themes/flora/i/accordion-left-act.png delete mode 100644 ui/themes/flora/i/accordion-left-over.png delete mode 100644 ui/themes/flora/i/accordion-left.png delete mode 100644 ui/themes/flora/i/accordion-middle-act.png delete mode 100644 ui/themes/flora/i/accordion-middle-over.png delete mode 100644 ui/themes/flora/i/accordion-middle.png delete mode 100644 ui/themes/flora/i/accordion-right-act.png delete mode 100644 ui/themes/flora/i/accordion-right-over.png delete mode 100644 ui/themes/flora/i/accordion-right.png delete mode 100644 ui/themes/flora/i/dialog-e.gif delete mode 100644 ui/themes/flora/i/dialog-n.gif delete mode 100644 ui/themes/flora/i/dialog-ne.gif delete mode 100644 ui/themes/flora/i/dialog-nw.gif delete mode 100644 ui/themes/flora/i/dialog-s.gif delete mode 100644 ui/themes/flora/i/dialog-se.gif delete mode 100644 ui/themes/flora/i/dialog-sw.gif delete mode 100644 ui/themes/flora/i/dialog-title.gif delete mode 100644 ui/themes/flora/i/dialog-titlebar-close-hover.png delete mode 100644 ui/themes/flora/i/dialog-titlebar-close.png delete mode 100644 ui/themes/flora/i/dialog-w.gif delete mode 100644 ui/themes/flora/i/resizable-e.gif delete mode 100644 ui/themes/flora/i/resizable-n.gif delete mode 100644 ui/themes/flora/i/resizable-ne.gif delete mode 100644 ui/themes/flora/i/resizable-nw.gif delete mode 100644 ui/themes/flora/i/resizable-s.gif delete mode 100644 ui/themes/flora/i/resizable-se.gif delete mode 100644 ui/themes/flora/i/resizable-sw.gif delete mode 100644 ui/themes/flora/i/resizable-w.gif delete mode 100644 ui/themes/flora/i/slider-bg-1.png delete mode 100644 ui/themes/flora/i/slider-bg-2.png delete mode 100644 ui/themes/flora/i/slider-handle.gif delete mode 100644 ui/themes/flora/i/tabs.png delete mode 100644 ui/themes/ui.datepicker.css delete mode 100644 ui/version.txt (limited to 'ui') diff --git a/ui/GPL-LICENSE.txt b/ui/GPL-LICENSE.txt deleted file mode 100644 index 11dddd00e..000000000 --- a/ui/GPL-LICENSE.txt +++ /dev/null @@ -1,278 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. diff --git a/ui/MIT-LICENSE.txt b/ui/MIT-LICENSE.txt deleted file mode 100644 index 965a83130..000000000 --- a/ui/MIT-LICENSE.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2007 John Resig, http://jquery.com/ - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/ui/demos/functional/datepicker/debug.html b/ui/demos/functional/datepicker/debug.html deleted file mode 100644 index 91dab145b..000000000 --- a/ui/demos/functional/datepicker/debug.html +++ /dev/null @@ -1,21 +0,0 @@ - - - Only core files for easy debug - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ui/demos/functional/datepicker/demo/img/active-bg.gif b/ui/demos/functional/datepicker/demo/img/active-bg.gif deleted file mode 100644 index d608c5469..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/active-bg.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/ar.gif b/ui/demos/functional/datepicker/demo/img/ar.gif deleted file mode 100644 index f34c90f5c..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/ar.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/au.gif b/ui/demos/functional/datepicker/demo/img/au.gif deleted file mode 100644 index db005b4c7..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/au.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/br.gif b/ui/demos/functional/datepicker/demo/img/br.gif deleted file mode 100644 index 8b8bf147d..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/br.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/calendar.gif b/ui/demos/functional/datepicker/demo/img/calendar.gif deleted file mode 100644 index d0abaa7c0..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/calendar.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/calendar2.gif b/ui/demos/functional/datepicker/demo/img/calendar2.gif deleted file mode 100644 index 519a1fd4a..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/calendar2.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/cn.gif b/ui/demos/functional/datepicker/demo/img/cn.gif deleted file mode 100644 index 5482753d6..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/cn.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/dark-bg.gif b/ui/demos/functional/datepicker/demo/img/dark-bg.gif deleted file mode 100644 index 1dea48a8f..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/dark-bg.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/hover-bg.gif b/ui/demos/functional/datepicker/demo/img/hover-bg.gif deleted file mode 100644 index fbf94fc2c..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/hover-bg.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/id.gif b/ui/demos/functional/datepicker/demo/img/id.gif deleted file mode 100644 index d7f4ab8a3..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/id.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/ie.gif b/ui/demos/functional/datepicker/demo/img/ie.gif deleted file mode 100644 index 827c498d2..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/ie.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/ke.gif b/ui/demos/functional/datepicker/demo/img/ke.gif deleted file mode 100644 index e352177c7..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/ke.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/lb.gif b/ui/demos/functional/datepicker/demo/img/lb.gif deleted file mode 100644 index f204918fe..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/lb.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/next.gif b/ui/demos/functional/datepicker/demo/img/next.gif deleted file mode 100644 index be0959b1b..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/next.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/normal-bg.gif b/ui/demos/functional/datepicker/demo/img/normal-bg.gif deleted file mode 100644 index bdb506869..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/normal-bg.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/nz.gif b/ui/demos/functional/datepicker/demo/img/nz.gif deleted file mode 100644 index 86b89cb27..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/nz.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/prev.gif b/ui/demos/functional/datepicker/demo/img/prev.gif deleted file mode 100644 index 95d840f47..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/prev.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/se.gif b/ui/demos/functional/datepicker/demo/img/se.gif deleted file mode 100644 index 7301c598e..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/se.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/tab.png b/ui/demos/functional/datepicker/demo/img/tab.png deleted file mode 100644 index 01c8ab417..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/tab.png and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/us.gif b/ui/demos/functional/datepicker/demo/img/us.gif deleted file mode 100644 index 39c472e26..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/us.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/img/za.gif b/ui/demos/functional/datepicker/demo/img/za.gif deleted file mode 100644 index 197cbd888..000000000 Binary files a/ui/demos/functional/datepicker/demo/img/za.gif and /dev/null differ diff --git a/ui/demos/functional/datepicker/demo/jquery.localisation.js b/ui/demos/functional/datepicker/demo/jquery.localisation.js deleted file mode 100644 index b11e37835..000000000 --- a/ui/demos/functional/datepicker/demo/jquery.localisation.js +++ /dev/null @@ -1,64 +0,0 @@ -/* http://keith-wood.name/localisation.html - Localisation assistance for jQuery v1.0.2. - Written by Keith Wood (kbwood@iprimus.com.au) June 2007. - Under the Creative Commons Licence http://creativecommons.org/licenses/by/3.0/ - Share or Remix it but please Attribute the author. */ - -(function($) { // Hide scope, no $ conflict - -/* Load applicable localisation package(s) for one or more jQuery packages. - Assumes that the localisations are named -.js - and loads them in order from least to most specific. - For example, $.localise('jquery-calendar'); - with the browser set to 'en-US' would attempt to load - jquery-calendar-en.js and jquery-calendar-en-US.js. - Also accepts an array of package names to process. - Optionally specify whether or not to include the base file, - the desired language, and/or the timeout period, e.g. - $.localise(['jquery-calendar', 'jquery-timeentry'], - {loadBase: true; language: 'en-AU', timeout: 300}); */ -$.localise = function(pkg, settings) { - var saveSettings = {async: $.ajaxSettings.async, timeout: $.ajaxSettings.timeout}; - $.ajaxSetup({async: false, timeout: (settings && settings.timeout ? settings.timeout : 500)}); - var localiseOne = function(pkg, lang) { - if (settings && settings.loadBase) { - $.getScript(pkg + '.js'); - } - if (lang.length >= 2) { - $.getScript(pkg + '-' + lang.substring(0, 2) + '.js'); - } - if (lang.length >= 5) { - $.getScript(pkg + '-' + lang.substring(0, 5) + '.js'); - } - }; - var lang = normaliseLang(settings && settings.language ? settings.language : $.defaultLanguage); - if (isArray(pkg)) { - for (i = 0; i < pkg.length; i++) { - localiseOne(pkg[i], lang); - } - } - else { - localiseOne(pkg, lang); - } - $.ajaxSetup(saveSettings); -}; - -/* Retrieve the default language set for the browser. */ -$.defaultLanguage = normaliseLang(navigator.language ? navigator.language /* Mozilla */ : - navigator.userLanguage /* IE */); - -/* Ensure language code is in the format aa-AA. */ -function normaliseLang(lang) { - lang = lang.replace(/_/, '-').toLowerCase(); - if (lang.length > 3) { - lang = lang.substring(0, 3) + lang.substring(3).toUpperCase(); - } - return lang; -} - -/* Determine whether an object is an array. */ -function isArray(a) { - return (a.constructor && a.constructor.toString().match(/\Array\(\)/)); -} - -})(jQuery); diff --git a/ui/demos/functional/datepicker/demo/ui.datepicker.alt.css b/ui/demos/functional/datepicker/demo/ui.datepicker.alt.css deleted file mode 100644 index d07a6e7bf..000000000 --- a/ui/demos/functional/datepicker/demo/ui.datepicker.alt.css +++ /dev/null @@ -1,158 +0,0 @@ -/* Alternate UI date picker styles */ -#ui-datepicker-div, .ui-datepicker-inline { - font-family: Arial, Helvetica, sans-serif; - font-size: 14px; - padding: 0; - margin: 0; - background: #d8d8d8 url(../img/dark-bg.gif) repeat; - color: #008; - width: 220px; -} -#ui-datepicker-div { - display: none; - border: 1px solid #008; - z-index: 9999; /*must have*/ -} -.ui-datepicker-inline { - float: left; - display: block; - border: 0; -} -.ui-datepicker-dialog { - padding: 5px !important; - border: 4px ridge #88c !important; -} -button.ui-datepicker-trigger { - width: 25px; -} -img.ui-datepicker-trigger { - margin: 2px; - vertical-align: middle; -} -.ui-datepicker-prompt { - float: left; - padding: 2px; - xbackground: #d8d8d8 url(../img/dark-bg.gif) repeat; - background: transparent; - color: #008; -} -* html .ui-datepicker-prompt { - width: 185px; -} -.ui-datepicker-control, .ui-datepicker-links, .ui-datepicker-header, .ui-datepicker { - clear: both; - float: left; - width: 100%; -} -.ui-datepicker-control, .ui-datepicker-links { - font-weight: bold; - font-size: 80%; - letter-spacing: 1px; -} - -.ui-datepicker-links label { /* disabled links */ - padding: 2px 5px; - color: #88c; -} -.ui-datepicker-clear, .ui-datepicker-prev { - float: left; - width: 34%; -} -.ui-datepicker-current { - float: left; - width: 30%; - text-align: center; -} -.ui-datepicker-close, .ui-datepicker-next { - float: right; - width: 34%; - text-align: right; -} -.ui-datepicker-header { - padding: 1px 0 3px; - - text-align: center; - font-weight: bold; - height: 1.3em; -} -.ui-datepicker-header select { - background: #d8d8d8 url(../img/dark-bg.gif) repeat; - color: #008; - border: 0px; - font-weight: bold; -} -.ui-datepicker { - background: #f8f8f8 url(../img/normal-bg.gif) repeat; - color: #008; - text-align: center; - font-size: 100%; -} -.ui-datepicker a { - display: block; - width: 100%; -} -.ui-datepicker-titleRow { - background: #d8d8d8 url(../img/dark-bg.gif) repeat; -} -.ui-datepicker-weekEndCell { - background: #d8d8d8 url(../img/dark-bg.gif) repeat; -} -.ui-datepicker-daysCellOver { - background: #3c75c4 url(../img/active-bg.gif) repeat; -} -.ui-datepicker-unselectable { - color: #88c; -} -.ui-datepicker-today { - font-weight: bold; -} -.ui-datepicker-currentDay { - background: #3c75c4 url(../img/active-bg.gif) repeat; -} - -/* ________ CALENDAR LINKS _______ - -** Reset link properties and then override them with !important */ -#ui-datepicker-div a, .ui-datepicker-inline a { - cursor: pointer; - margin: 0; - padding: 0; - background: none; - color: #000; -} -.ui-datepicker-control a, .ui-datepicker-links a { - padding: 2px 5px !important; -} -.ui-datepicker-control a:hover { - background: #9dbae1 url(../img/hover-bg.gif) repeat !important; -} -.ui-datepicker-links a:hover, .ui-datepicker-titleRow a:hover { - background: #9dbae1 url(../img/hover-bg.gif) repeat !important; -} - -/* ___________ MULTIPLE MONTHS _________*/ - -.ui-datepicker-multi .datepicker { - border: 1px solid #008; -} -.ui-datepicker-oneMonth { - float: left; - width: 220px; -} -.ui-datepicker-newRow { - clear: left; -} - -/* ___________ IE6 IFRAME FIX ________ */ - -.ui-datepicker-cover { - display: none; /*sorry for IE5*/ - display/**/: block; /*sorry for IE5*/ - position: absolute; /*must have*/ - z-index: -1; /*must have*/ - filter: mask(); /*must have*/ - top: -4px; /*must have*/ - left: -4px; /*must have*/ - width: 200px; /*must have*/ - height: 200px; /*must have*/ -} \ No newline at end of file diff --git a/ui/demos/functional/datepicker/demo/ui.datepicker.demo.css b/ui/demos/functional/datepicker/demo/ui.datepicker.demo.css deleted file mode 100644 index 2920d857f..000000000 --- a/ui/demos/functional/datepicker/demo/ui.datepicker.demo.css +++ /dev/null @@ -1,53 +0,0 @@ -#tab_menu1 { margin:0.5em 0 0 0; padding:0; font-size:1em; } -.tab_group1 { clear:left; padding-top:0; display:none; } -.demoLabel { float: left; width: 18em; } -.ar_day { color: white !important; background: #eee url(img/ar.gif) no-repeat center !important; } -.au_day { color: blue !important; background: #eee url(img/au.gif) no-repeat center !important; } -.br_day { color: green !important; background: #eee url(img/br.gif) no-repeat center !important; } -.cn_day { color: red !important; background: #eee url(img/cn.gif) no-repeat center !important; } -.id_day { color: white !important; background: #eee url(img/id.gif) no-repeat center !important; } -.ie_day { color: white !important; background: #eee url(img/ie.gif) no-repeat center !important; } -.ke_day { color: red !important; background: #eee url(img/ke.gif) no-repeat center !important; } -.lb_day { color: white !important; background: #eee url(img/lb.gif) no-repeat center !important; } -.nz_day { color: blue !important; background: #eee url(img/nz.gif) no-repeat center !important; } -.se_day { color: blue !important; background: #eee url(img/se.gif) no-repeat center !important; } -.us_day { color: white !important; background: #eee url(img/us.gif) no-repeat center !important; } -.za_day { color: green !important; background: #eee url(img/za.gif) no-repeat center !important; } -code { font-size: 13px; font-family: Verdana, Arial, Helvetica, sans-serif; } -pre { clear: both; padding-left: 2em; background: #eee; } -#embedButton { width: 7em; } -#embedButton + img { position: relative; left: -21px; top: -1px; } -.tabs { - list-style: none; -} -.tabs li { - float: left; -} -.tabs li a { - display:block; - padding: 0.4em .75em; - margin: 0; - border-left: 1px solid #fff; - border-right: 1px solid #ddd; - cursor: pointer; - cursor: hand; - text-decoration: none; - color: #eee; - border-top: 1px solid #F9F9F9; - background: #78A5CE; -} -.tabs li a:hover, .tabs li a.over { - border-top: 1px solid #000; - background: #333; -} -.tab_group1 h3 { - font-weight: bold; - margin-top:15px; - border-bottom: 1px solid #ddd; -} -.nextFeature { - margin-top: 15px; -} -ol li { - margin-top: 1em; -} \ No newline at end of file diff --git a/ui/demos/functional/datepicker/demo/ui.datepicker.demo.js b/ui/demos/functional/datepicker/demo/ui.datepicker.demo.js deleted file mode 100644 index 3d7d9b640..000000000 --- a/ui/demos/functional/datepicker/demo/ui.datepicker.demo.js +++ /dev/null @@ -1,81 +0,0 @@ -// Initialise the date picker demonstrations -$(document).ready(function () { - // initialize tab interface - tabs.init(); - // reset defaults to English - $.datepicker.setDefaults($.datepicker.regional['']); - // replace script tags with HTML code - $(".demojs").each(function () { - $(this).before( '
' +
-			$(this).html().replace(/
" ); - eval( $(this).html() ); - }); - // Localization - if ($.browser.safari) - $('.languageSelect,.l10nDatepicker,#frFullFormat').attr({ disabled: 'disabled' }); - else - $('.languageSelect').change(localise); - // Stylesheets - $('#altStyle').datepicker({buttonImage: 'demo/img/calendar2.gif', - prevText: ' Prev', - nextText: 'Next '}); - $('#button3').click(function() { - $(this).datepicker('dialog', $('#altDialog').val(), - setAltDateFromDialog, {prompt: 'Choose a date', speed: '', - prevText: ' Prev', - nextText: 'Next '}); - }); -}); - -// Load and apply a localisation package for the date picker -function localise() { - var input = $('input', this.parentNode.parentNode); - var date = $(input).datepicker('getDate'); - var language = $(this).val(); - $.localise('../../../source/i18n/ui.datepicker', {language: language}); - $(input).datepicker('change', $.datepicker.regional[language]); - $.datepicker.setDefaults($.datepicker.regional['']); // Reset for general usage - if (date) { - $(input).datepicker('setDate', date); - input.val($.datepicker.formatDate( - $.datepicker.regional[language].dateFormat, date)); - } -} - -// Demonstrate a callback from inline configuration -function showDay(input) { - var date = $(input).datepicker('getDate'); - $('#inlineDay').html(date ? $.datepicker.formatDate('DD', date) : 'blank'); -} - -// Display a date selected in a "dialog" -function setAltDateFromDialog(date) { - $('#altDialog').val(date); -} - -// Custom Tabs written by Marc Grabanski -var tabs = -{ - init : function () - { - // Setup tabs - $("div[@class^=tab_group]").hide(); - $("div[@class^=tab_group]:first").show().id; - $("ul[@id^=tab_menu] a:eq(0)").addClass('over'); - - // Slide visible up and clicked one down - $("ul[@id^=tab_menu] a").each(function(i){ - $(this).click(function () { - $("ul[@id^=tab_menu] a.over").removeClass('over'); - $(this).addClass('over'); - $("div[@class^=tab_group]:visible").hide(); - $( $(this).attr("href") ).fadeIn(); - tabs.stylesheet = $(this).attr("href") == "#styles" ? 'alt' : 'default'; - $('link').each(function() { - this.disabled = (this.title != '' && this.title != tabs.stylesheet); - }); - return false; - }); - }); - } -} diff --git a/ui/demos/functional/datepicker/index.html b/ui/demos/functional/datepicker/index.html deleted file mode 100644 index 4b28d7e3a..000000000 --- a/ui/demos/functional/datepicker/index.html +++ /dev/null @@ -1,887 +0,0 @@ - - - - - jQuery UI Datepicker - - - - - - - - - - -
-
- -
-
-

Defaults

-

A date picker can easily be added to an input field with default settings.

-

Default date picker: -

- -

IE select issue: -

-

The defaults are:

-
    -
  • Date picker appears on focus
  • -
  • Text is in English
  • -
  • Date format is mm/dd/yyyy
  • -
  • Clear/Close controls show at the top
  • -
  • Month and year are selectable directly
  • -
  • 10 years before and after the selected year are shown
  • -
  • Show a single month
  • -
  • Select a single date
  • -
  • Week starts on Sunday
  • -
  • Day names are clickable to change the first day of the week
  • -
  • Days in other months are not displayed
  • -
  • No date restrictions
  • -
  • Clicking elsewhere closes the date picker
  • -
-

Processed fields are marked with a class of hasDatepicker - and are not re-processed if targetted a second time.

-

You can override the default settings that apply to all date picker instances.

- -
-
-

Invocation

-

The date picker can be invoked in a variety of ways, as shown below. - Also shown is the use of an image only trigger, - and how the controls and buttons appear when disabled.

-

Datepicker appears on focus: - -

- -

Appears via text button: - -

- -

Appears both ways: - -

- -

You can embed the trigger image within the input area via CSS.

-

Embedded button: -

- -

Enable and disable datepicker with 'enable' and 'disable' commands.

- -

The date picker can also be triggered externally for a particular input.

-

External trigger: -

- -

Or even opened as a "dialog". If the blockUI plugin is available, - it is used to create a modal dialog.

-

Date picker dialog: - -

- -
-
-

Keystrokes

-

The date picker also responds to keystrokes entered in the input field.

-

Keyboard driven: -

-

The relevant keystrokes are:

-
    -
  • page up/downprevious/next month
  • -
  • ctrl+page up/downprevious/next year
  • -
  • ctrl+homecurrent month or open when closed
  • -
  • ctrl+left/rightprevious/next day
  • -
  • ctrl+up/downprevious/next week
  • -
  • enteraccept the selected date
  • -
  • ctrl+endclose and erase the date
  • -
  • escapeclose the date picker without selection
  • -
-
-
-

Restricting

-

You can restrict the functionality of the date picker in various ways. - The first example sets the first day of the week to Monday and prevents it from being - changed, as well as preventing the month and year from being selected directly.

-

Restricted functionality: -

- -

You can also limit the range of dates selectable within the date picker. - Here it's between 26-Jan-05 and 26-Jan-07.

-

Limited dates: -

- -

Or set a range relative to today by specifying a number - rather than an exact date, in this case in the coming year.

-

Limited dates (relative): -

- -

The relative dates can also be specified as a number and a period - - 'd' for days, 'w' for weeks, 'm' for months, or 'y' for years.

-

Limited dates (extended): -

- -

Note that the range of selectable months and years changes appropriately. Also, - note that the Today link is no longer available as today is not in the range. - By default, the Prev and Next links are disabled if they are not - applicable. You can override this to remove them instead, with the - hideIfNoPrevNext setting.

-
-
-

Date Formats

-

You can set a variety of date formats for the date picker, - with the default being 'mm/dd/yy'.

-

Medium format: -

- -

Long format: -

- -

Full format: -

- -

Display dates without the century. The century is then determined based on the - shortYearCutoff setting, which defaults to 10 years in the future ('+10'). - Year values less than or equal to this cutoff are interpreted as being in the current - century, while those greater than the cutoff are taken to be in the previous century.

-

No century: -

- -

ISO date format: -

- -

French full format: -

- -

The formatting codes are:

-
    -
  • dday of month (no leading zero)
  • -
  • ddday of month (two digit)
  • -
  • Dday name short
  • -
  • DDday name long
  • -
  • mmonth of year (no leading zero)
  • -
  • mmmonth of year (two digit)
  • -
  • Mmonth name short
  • -
  • MMmonth name long
  • -
  • yyear (two digit)
  • -
  • yyyear (four digit)
  • -
  • '...'literal text
  • -
  • ''single quote
  • -
-
-
-

Customize

-

You can customize the selectability and/or appearance of individual days - by setting a callback function that accepts a date and returns an array - with the first entry being true/false for selectability and the second - entry being a CSS class to apply (or '' for none). One appropriate - function is built-in that prevents the selection of days on weekends.

-

No weekends: -

- -

Or you can provide your own function. The one below highlights and - prevents selection of a set of national days.

-

National days: -

- -

With CSS like the following:

-
.au_day { color: blue !important; background: #eee url(au.gif) no-repeat center !important; }
-
-
-

Localisation

-

You can localise the date picker for other languages and regional differences. - The date picker defaults to English with a date format of MM/DD/YYYY, - but you can easily translate the text into another language and date format.

-

- : -

-

The presentation is slightly different for right-to-left languages.

-

- : -

-

You need to load the appropriate language package, which - adds a language set ($.datepicker.regional[langCode]) and - automatically sets this language as the default for all date pickers.

-
<script type="text/javascript" src="ui.datepicker-fr.js"></script>
-

Thereafter, if desired, you can restore the original language settings.

-
$.datepicker.setDefaults($.datepicker.regional['']);
-

And then configure the language per date picker instance.

- -

Localisation packages:

-

Localisation packages can be found below under Settings and Documentation.

-
-
-

Date Range

-

Use a custom field settings function to create a date range control: - two date fields, each restricting the other. The function takes an - input field as an argument and returns a settings object (anonymous).

-

Date range: - to -

- -

Select a date range on one date picker, first click is the start date and second click is the end date. - The last example show six months in two rows of three months - with Previous and Next moving three months at a time.

-

Date range: -

- - -

Two months with range select: -

- -

Six months with range select: -

- -
-
-

Miscellaneous 1

-

Set the date shown when first opening the date picker. The default is today.

-

Open at 01-Jan-2007: -

- -

Open at 7 days from today: -

- -

Or specify a period from today - 'd' for days, - 'w' for weeks, 'm' for months, or 'y' for years. -

Open at 2 weeks from today: -

- -

Show the weeks of the year. Defaults to the ISO 8601 definition (weeks start - on Mondays and the first week of the year contains January 4). Change the - week calculation by setting calculateWeek to a function that - takes a date as a parameter and returns the number of the week.

-

Show week of the year: -

- -

Additional settings let you move the Clear/Close controls - to the bottom, hide the Clear control to make the date mandatory, - display the days in other months (non-selectable), - and show a status bar (with a custom display for today). - Callback functions are also added to operate when a date - is selected and when the datepicker is closed. - If no onSelect callback is specified, the - onchange event of the input field is triggered.

-

Additional settings: -

- -
-
-

Miscellaneous 2

-

Hide the datepicker on demand (press alt-h here) or - remove the datepicker altogether if you've finished with it.

-

Remove popup datepicker: -   -

-

Remove inline datepicker: -

- -

(Advanced Technique)
Connect the date picker to linked drop-downs. You still need an input field, - but it is hidden following the drop-downs.

-

Linked drop-downs: - - - -

- -
-
-

Changing Settings

-

If necessary, the datepicker settings for an input (or set of inputs) - can be changed on the fly. As an example, here we change the - animation and speed at which the datepicker appears.

-

Display animation and speed: - - -

-

Change datepicker: -

-

When the option in the select changes, the following function is called:

- -

Date pickers can also be configured inline. - Add attributes to the input control with the namespace "date:" - corresponding to the date picker properties. - The attribute values are evaluated as JavaScript.

-

Inline configuration 1: - - blank

-

Inline configuration 2: -

- -
-
-

Inline

-

The date picker can be used inline rather than as a popup. - Use inline mode by attaching the datepicker to a span or div element.

- -
- -

Show a number of months at once and set the range directly.

-

Inline range with two months:

-
- -
-

- Selected range is:   - -

- -

(Advanced Technique)
- Set initial value of inline date range to one week before and after today's date. - Set the text field to current selected date.

-

- -

- -
-
-

Stylesheets

-

The date picker can be formatted through the use of a stylesheet. - The default stylesheet is used in the rest of this demo - with an alternate one used here.

-

Alternate style: -

-

In a dialog: - -

-

The basic HTML structure of the date picker is shown below:

-
<div id="datepicker_div" class="datepicker_multi">
-  <div class="datepicker_control">
-    <div class="datepicker_clear"><a>Clear</a></div>
-    <div class="datepicker_close"><a>Close</a></div>
-  </div>
-  <div class="datepicker_links">
-    <div class="datepicker_prev"><a>&lt;Prev</a></div>
-    <div class="datepicker_current"><a>Today</a></div>
-    <div class="datepicker_next"><a>Next&gt;</a></div>
-  </div>
-  <div class="datepicker_oneMonth datepicker_newRow">
-    <div class="datepicker_header">
-      <select class="datepicker_newMonth"></select>
-      <select class="datepicker_newYear"></select>
-    </div>
-    <table class="datepicker" cellpadding="0" cellspacing="0">
-      <thead>
-        <tr class="datepicker_titleRow">
-          <td><a>Su</a></td><td><a>Mo</a></td>...
-        </tr>
-      </thead>
-      <tbody>
-        <tr class="datepicker_daysRow">
-          <td class="datepicker_daysCell datepicker_weekEndCell
-            datepicker_otherMonth datepicker_unselectable">31</td>
-          <td class="datepicker_daysCell"><a>1</a></td>
-          <td class="datepicker_daysCell datepicker_daysCellOver"><a>2</a></td>
-          <td class="datepicker_daysCell datepicker_daysCellOver datepicker_currentDay"><a>3</a></td>
-          <td class="datepicker_daysCell datepicker_today"><a>4</a></td>
-          ...
-        </tr>
-        ...
-      </tbody>
-    </table>
-  </div>
-  <div class="datepicker_oneMonth">
-    ...
-  </div>
-  <div style="clear: both;"></div>
-</div>
-
-
-

Compatibility

-

v3.3 to v3.4

-

The jQuery UI interfaces changed again, so here's another compatibility module.

-

Users of v3.3 of the datepicker should use the following - header code to work with their existing implementation:

-
<link rel="stylesheet" type="text/css" href="ui.datepicker.css"/>
-<script type="text/javascript" src="ui.datepicker.js"></script>
-<script type="text/javascript" src="ui.datepicker.compatibility-3.3.js"></script>
-

Download the ui.datepicker.compatibility-3.3.js module.

-

To migrate fully, the following steps need to be taken:

-
    -
  • Replace references to the $(selector).attachDatepicker(...) - function with $(selector).datepicker(...).
  • -
  • Replace references to the $(selector).removeDatepicker() - function with $(selector).datepicker('destroy').
  • -
  • Replace references to the $(selector).datepicker.changDatepicker(...) - function with $(selector).datepicker('change', ...).
  • -
  • Replace references to the $(selector).datepicker.enableDatepicker() - function with $(selector).datepicker('enable').
  • -
  • Replace references to the $(selector).disableDatepicker() - function with $(selector).datepicker('disable').
  • -
  • Replace references to the $(selector).isDisabledDatepicker() - function with $(selector).datepicker('isDisabled').
  • -
  • Replace references to the $(selector).showDatepicker() - function with $(selector).datepicker('show').
  • -
  • Replace references to the $.datepicker.hideDatepicker() - function with $(selector).datepicker('hide').
  • -
  • Replace references to the $(selector).getDatepickerDate() - function with $(selector).datepicker('getDate').
  • -
  • Replace references to the $(selector).setDatepickerDate(...) - function with $(selector).datepicker('setDate', ...).
  • -
-

For example, this old style code:

-
$('inputs').attachDatepicker(...);
-$('inputs').changeDatepicker(...);
-

becomes:

-
$('inputs').datepicker(...);
-$('inputs').datepicker('change', ...);
- -

v3.2 to v3.4

-

To align the datepicker more closely with other jQuery UI components, - further changes were made in v3.3, resulting in another compatibility module.

-

Users of v3.2 of the datepicker should use the following - header code to work with their existing implementation:

-
<link rel="stylesheet" type="text/css" href="ui.datepicker.css"/>
-<script type="text/javascript" src="ui.datepicker.js"></script>
-<script type="text/javascript" src="ui.datepicker.compatibility-3.2.js"></script>
-

Download the ui.datepicker.compatibility-3.2.js module.

-

To migrate fully, the following steps need to be taken:

-
    -
  • Replace references to the $.datepicker.reconfigureFor(selector, ...) - function with $(selector).datepicker('change', ...).
  • -
  • Replace references to the $.datepicker.enableFor(selector) - function with $(selector).datepicker('enable').
  • -
  • Replace references to the $.datepicker.disableFor(selector) - function with $(selector).datepicker('disable').
  • -
  • Replace references to the $.datepicker.isDisabled(selector) - function with $(selector).datepicker('isDisabled').
  • -
  • Replace references to the $.datepicker.showFor(selector) - function with $(selector).datepicker('show').
  • -
  • Replace references to the $.datepicker.getDateFor(selector) - function with $(selector).datepicker('getDate').
  • -
  • Replace references to the $.datepicker.setDateFor(selector, ...) - function with $(selector).datepicker('setDate', ...).
  • -
-

For example, this old style code:

-
$.datepicker.reconfigureFor('inputs', {...});
-

becomes:

-
$('inputs').datepicker('change', {...});
- -

v2.x to v3.3

-

The date picker has been refactored to better fit - within the jQuery UI project. - This has involved renaming the main function and some properties, - resulting in current uses of the plugin no longer functioning correctly. - To assist in the transition to the new format a compatibility - plugin is also provided, allowing current code to continue - to operate with minimal changes.

-

Existing users of v2 of the calendar should use the following - header code to work with their existing implementation:

-
<link rel="stylesheet" type="text/css" href="ui.datepicker.css"/>
-<script type="text/javascript" src="ui.datepicker.js"></script>
-<script type="text/javascript" src="jquery-calendar-compatibility.js"></script>
-

Download the jquery-calendar-compatibility.js module.

-

To migrate fully, the following steps need to be taken:

-
    -
  • Replace references to the jquery-calendar* - files with ui.datepicker*.
  • -
  • Replace references to the popUpCal - object with $.datepicker.
  • -
  • Replace references to the calendar - function with datepicker.
  • -
  • Replace references to the autoPopUp - setting with showOn.
  • -
  • Replace references to the fieldSettings - setting with beforeShow.
  • -
  • Replace references to the customDate - setting with beforeShowDay.
  • -
  • Replace references to inline attributes with the cal: - namespace with date:.
  • -
  • Replace references to the hideCalendar - function with hideDatepicker.
  • -
  • Replace references to the dialogCalendar - function with dialogDatepicker.
  • -
  • Replace references to the $.datepicker.reconfigureFor(selector, ...) - function with $(selector).datepicker('change', ...).
  • -
  • Replace references to the $.datepicker.enableFor(selector) - function with $(selector).datepicker('enable').
  • -
  • Replace references to the $.datepicker.disableFor(selector) - function with $(selector).datepicker('disable').
  • -
  • Replace references to the $.datepicker.showFor(selector) - function with $(selector).datepicker('show').
  • -
  • Replace references to the $.datepicker.getDateFor(selector) - function with $(selector).datepicker('getDate').
  • -
  • Replace references to the $.datepicker.setDateFor(selector, ...) - function with $(selector).datepicker('setDate', ...).
  • -
  • Replace references to the calendar* - CSS styles with datepicker*.
  • -
-

For example, this old style code:

-
$('inputs').calendar({autoPopUp: 'both', fieldSettings: setDateRange,
-	customDate: popUpCal.noWeekends});
-	
-<input type="text" id="inlineConfig" cal:defaultDate="+7"/>
-

becomes:

-
$('inputs').datepicker({showOn: 'both', beforeShow: setDateRange,
-	beforeShowDay: $.datepicker.noWeekends});
-	
-<input type="text" id="inlineConfig" date:defaultDate="+7"/>
-
-

Localization Packages

- - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ui/demos/real-world/accordion-drawers/images/caps.gif b/ui/demos/real-world/accordion-drawers/images/caps.gif deleted file mode 100644 index 24184e742..000000000 Binary files a/ui/demos/real-world/accordion-drawers/images/caps.gif and /dev/null differ diff --git a/ui/demos/real-world/accordion-drawers/images/sideboxlight_bg.gif b/ui/demos/real-world/accordion-drawers/images/sideboxlight_bg.gif deleted file mode 100644 index 2d52b8054..000000000 Binary files a/ui/demos/real-world/accordion-drawers/images/sideboxlight_bg.gif and /dev/null differ diff --git a/ui/demos/real-world/accordion-drawers/images/slider_handlebg.png b/ui/demos/real-world/accordion-drawers/images/slider_handlebg.png deleted file mode 100644 index 1077c4d6e..000000000 Binary files a/ui/demos/real-world/accordion-drawers/images/slider_handlebg.png and /dev/null differ diff --git a/ui/demos/real-world/accordion-drawers/index.html b/ui/demos/real-world/accordion-drawers/index.html deleted file mode 100644 index 80c4df95d..000000000 --- a/ui/demos/real-world/accordion-drawers/index.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - Slide Demo - Fixed Drawer - - - - - - - - - - - -
-

Fixed drawer slide out demo (using accordion plugin)

-

This example demonstrates the Apple downloads slider/accordion effect using the jQuery Accordion plugin.

-

Mouse over the headings to reveal the list of available links.

- -

- Read the article this demonstration relates to -

-
- - - diff --git a/ui/demos/real-world/effects/demo.js b/ui/demos/real-world/effects/demo.js deleted file mode 100644 index b52b23726..000000000 --- a/ui/demos/real-world/effects/demo.js +++ /dev/null @@ -1,65 +0,0 @@ -$(document).ready(function() { - - $("div.effect") - .hover(function() { - $(this).addClass("hover"); - }, function() { - $(this).removeClass("hover"); - }) - ; - - - var effect = function(el, n, o) { - - $.extend(o, { - easing: "easeOutQuint" - }); - - $(el).bind("click", function() { - - $(this).addClass("current").hide(n, o, 1000, function() { - var self = this; - window.setTimeout(function() { - $(self).show(n, o, 1000, function() { $(this).removeClass("current"); }); - },500); - }); - }); - - }; - - - effect("#blindHorizontally", "blind", { direction: "horizontal" }); - effect("#blindVertically", "blind", { direction: "vertical" }); - - effect("#bounce3times", "bounce", { times: 3 }); - - effect("#clipHorizontally", "clip", { direction: "horizontal" }); - effect("#clipVertically", "clip", { direction: "vertical" }); - - effect("#dropDown", "drop", { direction: "down" }); - effect("#dropUp", "drop", { direction: "up" }); - effect("#dropLeft", "drop", { direction: "left" }); - effect("#dropRight", "drop", { direction: "right" }); - - effect("#explode9", "explode", { }); - effect("#explode36", "explode", { pieces: 36 }); - - effect("#fold", "fold", { size: 50 }); - - effect("#highlight", "highlight", { }); - - effect("#pulsate", "pulsate", { times: 2 }); - - effect("#puff", "puff", { times: 2 }); - effect("#scale", "scale", { }); - - $("#shake").bind("click", function() { $(this).addClass("current").effect("shake", {}, 100, function() { $(this).removeClass("current"); }); }); - - effect("#slideDown", "slide", { direction: "down" }); - effect("#slideUp", "slide", { direction: "up" }); - effect("#slideLeft", "slide", { direction: "left" }); - effect("#slideRight", "slide", { direction: "right" }); - - $("#transfer").bind("click", function() { $(this).addClass("current").effect("transfer", { to: "div:eq(0)" }, 1000, function() { $(this).removeClass("current"); }); }); - -}); \ No newline at end of file diff --git a/ui/demos/real-world/effects/index.html b/ui/demos/real-world/effects/index.html deleted file mode 100644 index 15ebbece2..000000000 --- a/ui/demos/real-world/effects/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - Effects Test Suite - - - - - - - - - - - - - - - - - - - - - - - - -
-

Blind horizontally

-
- -
-

Blind vertically

-
- -
-

Bounce 3 times

-
- -
-

Clip horizontally

-
- -
-

Clip vertically

-
- - - -
-

Drop up

-
- -
-

Drop left

-
- -
-

Drop right

-
- -
-

Explode in 9 pieces

-
- -
-

Explode in 36 pieces

-
- -
-

Fold

-
- -
-

Highlight

-
- -
-

Pulsate 2 times

-
- -
-

Puff

-
- -
-

Scale

-
- -
-

Shake

-
- -
-

Slide down

-
- -
-

Slide up

-
- -
-

Slide left

-
- -
-

Slide right

-
- -
-

Transfer to first element

-
- - - \ No newline at end of file diff --git a/ui/demos/real-world/effects/style.css b/ui/demos/real-world/effects/style.css deleted file mode 100644 index f7ae220ef..000000000 --- a/ui/demos/real-world/effects/style.css +++ /dev/null @@ -1,36 +0,0 @@ -body,html { - margin: 0; - padding: 0; - font-size: 12px; - font-family: Arial; - background: #000; -} - -div.effect { - width: 120px; - height: 100px; - background: #333; - border: 5px outset #aaa; - float: left; - margin-top: 20px; - margin-left: 20px; - cursor: pointer; - cursor: hand; -} - -div.current { - border: 5px outset #FF0000; - background: #660000; -} - -div.effect p { - color: #eee; - margin: 0px; - padding: 10px; -} - -.ui-effects-transfer { - border: 1px dotted #fff; - background: #666; - opacity: 0.5; -} \ No newline at end of file diff --git a/ui/demos/real-world/image-cropper/img/img01.jpg b/ui/demos/real-world/image-cropper/img/img01.jpg deleted file mode 100644 index 4d5f88445..000000000 Binary files a/ui/demos/real-world/image-cropper/img/img01.jpg and /dev/null differ diff --git a/ui/demos/real-world/image-cropper/img/img02.jpg b/ui/demos/real-world/image-cropper/img/img02.jpg deleted file mode 100644 index 5745265f0..000000000 Binary files a/ui/demos/real-world/image-cropper/img/img02.jpg and /dev/null differ diff --git a/ui/demos/real-world/image-cropper/img/img03.jpg b/ui/demos/real-world/image-cropper/img/img03.jpg deleted file mode 100644 index 7e6928f63..000000000 Binary files a/ui/demos/real-world/image-cropper/img/img03.jpg and /dev/null differ diff --git a/ui/demos/real-world/image-cropper/img/img04.jpg b/ui/demos/real-world/image-cropper/img/img04.jpg deleted file mode 100644 index 8216a2382..000000000 Binary files a/ui/demos/real-world/image-cropper/img/img04.jpg and /dev/null differ diff --git a/ui/demos/real-world/image-cropper/img/img05.jpg b/ui/demos/real-world/image-cropper/img/img05.jpg deleted file mode 100644 index 35de5bd8c..000000000 Binary files a/ui/demos/real-world/image-cropper/img/img05.jpg and /dev/null differ diff --git a/ui/demos/real-world/image-cropper/index.html b/ui/demos/real-world/image-cropper/index.html deleted file mode 100644 index afa85ae3c..000000000 --- a/ui/demos/real-world/image-cropper/index.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - -Image Cropper: jQuery Real-world Demo - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
-
-
- Properties: -
    -
  • width: 0px
  • -
  • height: 0px
  • -
  • top: 0px
  • -
  • left: 0px
  • -
-
-
- - diff --git a/ui/demos/real-world/image-cropper/real-world.css b/ui/demos/real-world/image-cropper/real-world.css deleted file mode 100644 index 683033351..000000000 --- a/ui/demos/real-world/image-cropper/real-world.css +++ /dev/null @@ -1,104 +0,0 @@ -/*************************************/ -/* Blueprint: reset.css */ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, font, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { - margin: 0; - padding: 0; - border: 0; - outline: 0; - font-size: 100%; - font-family: inherit; - vertical-align: baseline; -} - -/* Remember to define focus styles! */ -:focus { - outline: 0; -} -body { - line-height: 1; - color: black; - background: white; -} -ol, ul { - list-style: none; -} - -/* Tables still need 'cellspacing="0"' in the markup. */ -table { - border-collapse: separate; - border-spacing: 0; -} -caption, th, td { - text-align: left; - font-weight: normal; -} - -/* Remove possible quote marks (") from ,
. */ -blockquote:before, blockquote:after, -q:before, q:after { - content: ""; -} -blockquote, q { - quotes: "" ""; -} - -.clear { - clear:both; -} - -/*************************************/ -/* Layout */ -body, html { - height: 100%; - font-family:sans-serif; - font-size:13px; - margin:0px; - padding:0px; -} -body, html { - height: 100%; - font-family:sans-serif; - font-size:13px; - -} -#main { - height:auto; - background: #E8EEF7; - border-left:1px solid #ccc; - border-bottom:1px solid #ccc; - margin:0 0 0 200px; -} - #header { - height:30px; - padding:10px; - font-size:2em; - font-weight:bold; - text-align: center; - border-bottom:1px solid #ccc; - background: #E8EEF7; - } - #main #content { - padding:10px; - background: #FFF; - } - #main #break { - padding:10px; - border-top:1px solid #ccc; - } -#sidebar { - float:left; - width:200px; - height:100%; - border-right:1px solid #ccc; -} - #sidebar div { - padding:10px; - } diff --git a/ui/demos/real-world/layout/demo.css b/ui/demos/real-world/layout/demo.css deleted file mode 100644 index a7b108623..000000000 --- a/ui/demos/real-world/layout/demo.css +++ /dev/null @@ -1,42 +0,0 @@ -body { background-color:#666; color:#FFF; font:11px/1.5 Arial, sans-serif; margin:0; overflow:hidden; padding:30px 0 0 30px; } -h1 { font-size:18px; margin:0 0 20px; } -a { color:#FFF; } - -.clear { clear:both; font-size:1px; line-height:1px; } - -#overlay { background:#666; height:100%; left:0; position:absolute; top:0; width:100%; z-index:2000; } -#overlay #preloader { background:url(loader_bg.gif) no-repeat; height:50px; left:50%; line-height:50px; margin:-25px 0 0 -25px; position:absolute; text-align:center; top:50%; width:50px; } -#overlay #preloader img { margin:11px 0 0 0; vertical-align:middle; } - -.ui-sortable { background-color:#FFF; border:1px solid #555; color:#222; margin:0 15px 15px 0; padding:0 10px 10px; width:175px; } -.ui-sortable h2 { background-color:#555; border-top:3px solid #666; color:#FFF; font-size:11px; margin:0 -10px 10px; line-height:2; padding:0 10px; } - -dl.sort { color:#222; margin:10px 0; } -#uidemo dl.first { margin-top:0; } -#uidemo dl.last { margin-bottom:0; } - -dl.sort dt { background-color:#666; color:#FFF; cursor:move; height:2em; line-height:2; padding:0 6px; position:relative; } -dl.sort dd { background-color:#FFF; margin:0; padding:3px 6px; } - -.ui-sortable-helper { width:175px; } -.placeholder { border:1px dashed #AAA; } - -span.options { cursor:default; font-size:1px; line-height:1px; position:absolute; } -span.options a { background-color:#FFF; cursor:pointer; display:block; float:left; text-indent:-9000px; } - -.ui-sortable h2 span.options { right:10px; top:8px; width:30px; } -.ui-sortable h2 span.options a { height:12px; width:30px; } - -dl.sort dt span.options { right:5px; top:5px; width:27px; } -dl.sort dt span.options a { height:12px; width:12px; } -dl.sort dt span.options a.up { margin-right:3px; } -dl.sort dt span.options a.disabled { background-color:#555; cursor:default; } - -#container { float:left; } -#header { width:638px; } -#content { float:left; width:400px; } -#sidebar { float:left; width:200px; } -#footer { width:638px; } -#trashcan { float:left; } - -#trashcan p { margin:0; } \ No newline at end of file diff --git a/ui/demos/real-world/layout/demo.js b/ui/demos/real-world/layout/demo.js deleted file mode 100644 index 695863f25..000000000 --- a/ui/demos/real-world/layout/demo.js +++ /dev/null @@ -1,97 +0,0 @@ -(function($){ - var updateUpDown = function(sortable){ - $('dl:not(.ui-sortable-helper)', sortable) - .removeClass('first').removeClass('last') - .find('.up, .down').removeClass('disabled').end() - .filter(':first').addClass('first').find('.up').addClass('disabled').end().end() - .filter(':last').addClass('last').find('.down').addClass('disabled').end().end(); - }; - - var moveUpDown = function(){ - var link = $(this), - dl = link.parents('dl'), - prev = dl.prev('dl'), - next = dl.next('dl'); - - if(link.is('.up') && prev.length > 0) - dl.insertBefore(prev); - - if(link.is('.down') && next.length > 0) - dl.insertAfter(next); - - updateUpDown(dl.parent()); - }; - - var addItem = function(){ - var sortable = $(this).parents('.ui-sortable'); - var options = 'updown'; - var tpl = '
{name}' + options + '
{desc}
'; - var html = tpl.replace(/{name}/g, 'Dynamic name :D').replace(/{desc}/g, 'Description'); - - sortable.append(html).sortable('refresh').find('a.up, a.down').bind('click', moveUpDown); - updateUpDown(sortable); - }; - - var emptyTrashCan = function(item){ - item.remove(); - }; - - var sortableChange = function(e, ui){ - if(ui.sender){ - var w = ui.element.width(); - ui.placeholder.width(w); - ui.helper.css("width",ui.element.children().width()); - } - }; - - var sortableUpdate = function(e, ui){ - if(ui.element[0].id == 'trashcan'){ - emptyTrashCan(ui.item); - } else { - updateUpDown(ui.element[0]); - if(ui.sender) - updateUpDown(ui.sender[0]); - } - }; - - $(document).ready(function(){ - var els = ['#header', '#content', '#sidebar', '#footer', '#trashcan']; - var $els = $(els.toString()); - - $('h2', $els.slice(0,-1)).append('add'); - $('dt', $els).append('updown'); - - $('a.add').bind('click', addItem); - $('a.up, a.down').bind('click', moveUpDown); - - $els.each(function(){ - updateUpDown(this); - }); - - $els.sortable({ - items: '> dl', - handle: 'dt', - cursor: 'move', - //cursorAt: { top: 2, left: 2 }, - //opacity: 0.8, - //helper: 'clone', - appendTo: 'body', - //placeholder: 'clone', - //placeholder: 'placeholder', - connectWith: els, - start: function(e,ui) { - ui.helper.css("width", ui.item.width()); - }, - change: sortableChange, - update: sortableUpdate - }); - }); - - $(window).bind('load',function(){ - setTimeout(function(){ - $('#overlay').fadeOut(function(){ - $('body').css('overflow', 'auto'); - }); - }, 750); - }); -})(jQuery); \ No newline at end of file diff --git a/ui/demos/real-world/layout/index.html b/ui/demos/real-world/layout/index.html deleted file mode 100644 index 83f9d0378..000000000 --- a/ui/demos/real-world/layout/index.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - UI Sortable: Layout Demo - - - - - - - - - - - - - - - - - - -

UI Sortable: Layout demo

- -
- - -
-

Content

-
-
Blog
-
Main blog post
-
-
- - - -
- - -
- -
-

Trash can

-

Drag modules here to delete them.

-
- -
-
-
-
- - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ui/demos/real-world/layout/loader.gif b/ui/demos/real-world/layout/loader.gif deleted file mode 100644 index 7e717cdf9..000000000 Binary files a/ui/demos/real-world/layout/loader.gif and /dev/null differ diff --git a/ui/demos/real-world/layout/loader_bg.gif b/ui/demos/real-world/layout/loader_bg.gif deleted file mode 100644 index 9c0488402..000000000 Binary files a/ui/demos/real-world/layout/loader_bg.gif and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010020.JPG b/ui/demos/real-world/photo-manager/img/P1010020.JPG deleted file mode 100644 index 7e6928f63..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010020.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010036.JPG b/ui/demos/real-world/photo-manager/img/P1010036.JPG deleted file mode 100644 index 8216a2382..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010036.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010039.JPG b/ui/demos/real-world/photo-manager/img/P1010039.JPG deleted file mode 100644 index 35de5bd8c..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010039.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010044.JPG b/ui/demos/real-world/photo-manager/img/P1010044.JPG deleted file mode 100644 index 4d5f88445..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010044.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010050.JPG b/ui/demos/real-world/photo-manager/img/P1010050.JPG deleted file mode 100644 index 5745265f0..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010050.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010055.JPG b/ui/demos/real-world/photo-manager/img/P1010055.JPG deleted file mode 100644 index 246121ba4..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010055.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010058.JPG b/ui/demos/real-world/photo-manager/img/P1010058.JPG deleted file mode 100644 index d107b38ce..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010058.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010059.JPG b/ui/demos/real-world/photo-manager/img/P1010059.JPG deleted file mode 100644 index c7fcdbdd1..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010059.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010061.JPG b/ui/demos/real-world/photo-manager/img/P1010061.JPG deleted file mode 100644 index 1812fbfdf..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010061.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/P1010063.JPG b/ui/demos/real-world/photo-manager/img/P1010063.JPG deleted file mode 100644 index 05b0d133c..000000000 Binary files a/ui/demos/real-world/photo-manager/img/P1010063.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG deleted file mode 100644 index cba634588..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG deleted file mode 100644 index 1d062b364..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG deleted file mode 100644 index 2d0b6c726..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG deleted file mode 100644 index 9d0cccf86..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG deleted file mode 100644 index 89a36b78b..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG deleted file mode 100644 index 889b4e67d..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG deleted file mode 100644 index 6a83a628b..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG deleted file mode 100644 index 6aac87261..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG deleted file mode 100644 index bfe698e86..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG b/ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG deleted file mode 100644 index 88c22e021..000000000 Binary files a/ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/index.html b/ui/demos/real-world/photo-manager/index.html deleted file mode 100644 index ecc9a5500..000000000 --- a/ui/demos/real-world/photo-manager/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - jQuery UI Draggables and Droppables playground - - - - - - - - - - - - - - - - - - - -

Manage Your Photos

-
-
-

Drag photos to the Trash or waste them in the Shredder:

- -
- -
- - - diff --git a/ui/demos/real-world/photo-manager/js/demo.js b/ui/demos/real-world/photo-manager/js/demo.js deleted file mode 100644 index fac91ca1c..000000000 --- a/ui/demos/real-world/photo-manager/js/demo.js +++ /dev/null @@ -1,130 +0,0 @@ -/* - * The very first increment of Droppables&Draggables demo. The code is going to - * be more concise (remove unnecessary code repetitions etc.). And imho the - * photo management is a good candidate for demonstration of more jQuery UI - * components (sortables, selectables...). More to come... - * - */ - -$(window).bind('load', function() { - // make images in the gallery draggable - $('ul.gallery img').addClass('img_content').draggable({ - helper: 'clone' - }); - - // make the trash box droppable, accepting images from the content section only - $('#trash div').droppable({ - accept: '.img_content', - activeClass: 'active', - drop: function(ev, ui) { - var $that = $(this); - ui.draggable.parent().fadeOut('slow', function() { - ui.draggable - .hide() - .appendTo($that) - .fadeIn('slow') - .animate({ - width: '72px', - height: '54px' - }) - .removeClass('img_content') - .addClass('img_trash'); - $(this).remove(); - }); - } - }); - - // make the shredder box droppable, accepting images from both content and trash sections - $('#shred div').droppable({ - accept: '.img_content, .img_trash', - activeClass: 'active', - drop: function(ev, ui) { - var $that = $(this); - // images from the content - if (ui.draggable.hasClass('img_content')) { - ui.draggable.parent().fadeOut('slow', function() { - ui.draggable - .appendTo($that) - .animate({ - width: '0', - height: '0' - }, 'slow', function(){ - $(this).remove(); - }); - $(this).remove(); - }); - } - // images from the trash - else if (ui.draggable.hasClass('img_trash')) { - ui.draggable - .appendTo($that) - .animate({ - width: '0', - height: '0' - }, 'slow', function(){ - $(this).remove(); - }); - } - } - }); - - // make the gallery droppable as well, accepting images from the trash only - $('ul.gallery').droppable({ - accept: '.img_trash', - activeClass: 'active', - drop: function(ev, ui) { - var $that = $(this); - ui.draggable.fadeOut('slow', function() { - var $item = createGalleryItem(this).appendTo($that); - $(this) - .removeClass('img_trash') - .addClass('img_content') - .css({ width: '144px', height: '108px' }) - .show(); - $item.fadeIn('slow'); - }); - } - }); - - // handle the trash icon behavior - $('a.tb_trash').livequery('click', function() { - var $this = $(this); - var $img = $this.parent().siblings('img'); - var $item = $this.parents('li'); - - $item.fadeOut('slow', function() { - $img - .hide() - .appendTo('#trash div') - .fadeIn('slow') - .animate({ - width: '72px', - height: '54px' - }) - .removeClass('img_content') - .addClass('img_trash'); - $(this).remove(); - }); - - return false; - }); - - // handle the magnify button - $('a.tb_supersize').livequery('click', function() { - $('') - .attr('src', $(this).attr('href')) - .appendTo('#body_wrap') - .displayBox(); - return false; - }); -}); - -function createGalleryItem(img) { - var title = img.getAttribute('alt'); - var href = img.getAttribute('src').replace(/thumbs\//, ''); - - var $item = $('
  • '+title+'

  • ').hide(); - $item.prepend($(img)); - - return $item; -} diff --git a/ui/demos/real-world/photo-manager/js/jquery.blockUI.js b/ui/demos/real-world/photo-manager/js/jquery.blockUI.js deleted file mode 100644 index b24c2dd05..000000000 --- a/ui/demos/real-world/photo-manager/js/jquery.blockUI.js +++ /dev/null @@ -1,361 +0,0 @@ -/* - * jQuery blockUI plugin - * Version 1.33 (09/14/2007) - * @requires jQuery v1.1.1 - * - * $Id: jquery.blockUI.js 3291 2007-09-14 23:56:25Z malsup $ - * - * Examples at: http://malsup.com/jquery/block/ - * Copyright (c) 2007 M. Alsup - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - */ - (function($) { -/** - * blockUI provides a mechanism for blocking user interaction with a page (or parts of a page). - * This can be an effective way to simulate synchronous behavior during ajax operations without - * locking the browser. It will prevent user operations for the current page while it is - * active ane will return the page to normal when it is deactivate. blockUI accepts the following - * two optional arguments: - * - * message (String|Element|jQuery): The message to be displayed while the UI is blocked. The message - * argument can be a plain text string like "Processing...", an HTML string like - * "

    Please wait...

    ", a DOM element, or a jQuery object. - * The default message is "

    Please wait...

    " - * - * css (Object): Object which contains css property/values to override the default styles of - * the message. Use this argument if you wish to override the default - * styles. The css Object should be in a format suitable for the jQuery.css - * function. For example: - * $.blockUI({ - * backgroundColor: '#ff8', - * border: '5px solid #f00, - * fontWeight: 'bold' - * }); - * - * The default blocking message used when blocking the entire page is "

    Please wait...

    " - * but this can be overridden by assigning a value to $.blockUI.defaults.pageMessage in your - * own code. For example: - * - * $.blockUI.defaults.pageMessage = "

    Bitte Wartezeit

    "; - * - * The default message styling can also be overridden. For example: - * - * $.extend($.blockUI.defaults.pageMessageCSS, { color: '#00a', backgroundColor: '#0f0' }); - * - * The default styles work well for simple messages like "Please wait", but for longer messages - * style overrides may be necessary. - * - * @example $.blockUI(); - * @desc prevent user interaction with the page (and show the default message of 'Please wait...') - * - * @example $.blockUI( { backgroundColor: '#f00', color: '#fff'} ); - * @desc prevent user interaction and override the default styles of the message to use a white on red color scheme - * - * @example $.blockUI('Processing...'); - * @desc prevent user interaction and display the message "Processing..." instead of the default message - * - * @name blockUI - * @param String|jQuery|Element message Message to display while the UI is blocked - * @param Object css Style object to control look of the message - * @cat Plugins/blockUI - */ -$.blockUI = function(msg, css, opts) { - $.blockUI.impl.install(window, msg, css, opts); -}; - -// expose version number so other plugins can interogate -$.blockUI.version = 1.33; - -/** - * unblockUI removes the UI block that was put in place by blockUI - * - * @example $.unblockUI(); - * @desc unblocks the page - * - * @name unblockUI - * @cat Plugins/blockUI - */ -$.unblockUI = function(opts) { - $.blockUI.impl.remove(window, opts); -}; - -/** - * Blocks user interaction with the selected elements. (Hat tip: Much of - * this logic comes from Brandon Aaron's bgiframe plugin. Thanks, Brandon!) - * By default, no message is displayed when blocking elements. - * - * @example $('div.special').block(); - * @desc prevent user interaction with all div elements with the 'special' class. - * - * @example $('div.special').block('Please wait'); - * @desc prevent user interaction with all div elements with the 'special' class - * and show a message over the blocked content. - * - * @name block - * @type jQuery - * @param String|jQuery|Element message Message to display while the element is blocked - * @param Object css Style object to control look of the message - * @cat Plugins/blockUI - */ -$.fn.block = function(msg, css, opts) { - return this.each(function() { - if (!this.$pos_checked) { - if ($.css(this,"position") == 'static') - this.style.position = 'relative'; - if ($.browser.msie) this.style.zoom = 1; // force 'hasLayout' in IE - this.$pos_checked = 1; - } - $.blockUI.impl.install(this, msg, css, opts); - }); -}; - -/** - * Unblocks content that was blocked by "block()" - * - * @example $('div.special').unblock(); - * @desc unblocks all div elements with the 'special' class. - * - * @name unblock - * @type jQuery - * @cat Plugins/blockUI - */ -$.fn.unblock = function(opts) { - return this.each(function() { - $.blockUI.impl.remove(this, opts); - }); -}; - -/** - * displays the first matched element in a "display box" above a page overlay. - * - * @example $('#myImage').displayBox(); - * @desc displays "myImage" element in a box - * - * @name displayBox - * @type jQuery - * @cat Plugins/blockUI - */ -$.fn.displayBox = function(css, fn, isFlash) { - var msg = this[0]; - if (!msg) return; - var $msg = $(msg); - css = css || {}; - - var w = $msg.width() || $msg.attr('width') || css.width || $.blockUI.defaults.displayBoxCSS.width; - var h = $msg.height() || $msg.attr('height') || css.height || $.blockUI.defaults.displayBoxCSS.height ; - if (w[w.length-1] == '%') { - var ww = document.documentElement.clientWidth || document.body.clientWidth; - w = parseInt(w) || 100; - w = (w * ww) / 100; - } - if (h[h.length-1] == '%') { - var hh = document.documentElement.clientHeight || document.body.clientHeight; - h = parseInt(h) || 100; - h = (h * hh) / 100; - } - - var ml = '-' + parseInt(w)/2 + 'px'; - var mt = '-' + parseInt(h)/2 + 'px'; - - // supress opacity on overlay if displaying flash content on mac/ff platform - var ua = navigator.userAgent.toLowerCase(); - var opts = { - displayMode: fn || 1, - noalpha: isFlash && /mac/.test(ua) && /firefox/.test(ua) - }; - - $.blockUI.impl.install(window, msg, { width: w, height: h, marginTop: mt, marginLeft: ml }, opts); -}; - - -// override these in your code to change the default messages and styles -$.blockUI.defaults = { - // the message displayed when blocking the entire page - pageMessage: '

    Please wait...

    ', - // the message displayed when blocking an element - elementMessage: '', // none - // styles for the overlay iframe - overlayCSS: { backgroundColor: '#fff', opacity: '0.5' }, - // styles for the message when blocking the entire page - pageMessageCSS: { width:'250px', margin:'-50px 0 0 -125px', top:'50%', left:'50%', textAlign:'center', color:'#000', backgroundColor:'#fff', border:'3px solid #aaa' }, - // styles for the message when blocking an element - elementMessageCSS: { width:'250px', padding:'10px', textAlign:'center', backgroundColor:'#fff'}, - // styles for the displayBox - displayBoxCSS: { width: '400px', height: '400px', top:'50%', left:'50%' }, - // allow body element to be stetched in ie6 - ie6Stretch: 1, - // supress tab nav from leaving blocking content? - allowTabToLeave: 0, - // Title attribute for overlay when using displayBox - closeMessage: 'Click to close', - // use fadeOut effect when unblocking (can be overridden on unblock call) - fadeOut: 1, - // fadeOut transition time in millis - fadeTime: 400 -}; - -// the gory details -$.blockUI.impl = { - box: null, - boxCallback: null, - pageBlock: null, - pageBlockEls: [], - op8: window.opera && window.opera.version() < 9, - ie6: $.browser.msie && /MSIE 6.0/.test(navigator.userAgent), - install: function(el, msg, css, opts) { - opts = opts || {}; - this.boxCallback = typeof opts.displayMode == 'function' ? opts.displayMode : null; - this.box = opts.displayMode ? msg : null; - var full = (el == window); - - // use logical settings for opacity support based on browser but allow overrides via opts arg - var noalpha = this.op8 || $.browser.mozilla && /Linux/.test(navigator.platform); - if (typeof opts.alphaOverride != 'undefined') - noalpha = opts.alphaOverride == 0 ? 1 : 0; - - if (full && this.pageBlock) this.remove(window, {fadeOut:0}); - // check to see if we were only passed the css object (a literal) - if (msg && typeof msg == 'object' && !msg.jquery && !msg.nodeType) { - css = msg; - msg = null; - } - msg = msg ? (msg.nodeType ? $(msg) : msg) : full ? $.blockUI.defaults.pageMessage : $.blockUI.defaults.elementMessage; - if (opts.displayMode) - var basecss = jQuery.extend({}, $.blockUI.defaults.displayBoxCSS); - else - var basecss = jQuery.extend({}, full ? $.blockUI.defaults.pageMessageCSS : $.blockUI.defaults.elementMessageCSS); - css = jQuery.extend(basecss, css || {}); - var f = ($.browser.msie) ? $('') - : $(''); - var w = $('
    '); - var m = full ? $('
    ') - : $(''); - w.css('position', full ? 'fixed' : 'absolute'); - if (msg) m.css(css); - if (!noalpha) w.css($.blockUI.defaults.overlayCSS); - if (this.op8) w.css({ width:''+el.clientWidth,height:''+el.clientHeight }); // lame - if ($.browser.msie) f.css('opacity','0.0'); - - $([f[0],w[0],m[0]]).appendTo(full ? 'body' : el); - - // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling) - var expr = $.browser.msie && (!$.boxModel || $('object,embed', full ? null : el).length > 0); - if (this.ie6 || expr) { - // stretch content area if it's short - if (full && $.blockUI.defaults.ie6Stretch && $.boxModel) - $('html,body').css('height','100%'); - - // fix ie6 problem when blocked element has a border width - if ((this.ie6 || !$.boxModel) && !full) { - var t = this.sz(el,'borderTopWidth'), l = this.sz(el,'borderLeftWidth'); - var fixT = t ? '(0 - '+t+')' : 0; - var fixL = l ? '(0 - '+l+')' : 0; - } - - // simulate fixed position - $.each([f,w,m], function(i,o) { - var s = o[0].style; - s.position = 'absolute'; - if (i < 2) { - full ? s.setExpression('height','document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"') - : s.setExpression('height','this.parentNode.offsetHeight + "px"'); - full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') - : s.setExpression('width','this.parentNode.offsetWidth + "px"'); - if (fixL) s.setExpression('left', fixL); - if (fixT) s.setExpression('top', fixT); - } - else { - if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'); - s.marginTop = 0; - } - }); - } - if (opts.displayMode) { - w.css('cursor','default').attr('title', $.blockUI.defaults.closeMessage); - m.css('cursor','default'); - $([f[0],w[0],m[0]]).removeClass('blockUI').addClass('displayBox'); - $().click($.blockUI.impl.boxHandler).bind('keypress', $.blockUI.impl.boxHandler); - } - else - this.bind(1, el); - m.append(msg).show(); - if (msg.jquery) msg.show(); - if (opts.displayMode) return; - if (full) { - this.pageBlock = m[0]; - this.pageBlockEls = $(':input:enabled:visible',this.pageBlock); - setTimeout(this.focus, 20); - } - else this.center(m[0]); - }, - remove: function(el, opts) { - var o = $.extend({}, $.blockUI.defaults, opts); - this.bind(0, el); - var full = el == window; - var els = full ? $('body').children().filter('.blockUI') : $('.blockUI', el); - if (full) this.pageBlock = this.pageBlockEls = null; - - if (o.fadeOut) { - els.fadeOut(o.fadeTime, function() { - if (this.parentNode) this.parentNode.removeChild(this); - }); - } - else els.remove(); - }, - boxRemove: function(el) { - $().unbind('click',$.blockUI.impl.boxHandler).unbind('keypress', $.blockUI.impl.boxHandler); - if (this.boxCallback) - this.boxCallback(this.box); - $('body .displayBox').hide().remove(); - }, - // event handler to suppress keyboard/mouse events when blocking - handler: function(e) { - if (e.keyCode && e.keyCode == 9) { - if ($.blockUI.impl.pageBlock && !$.blockUI.defaults.allowTabToLeave) { - var els = $.blockUI.impl.pageBlockEls; - var fwd = !e.shiftKey && e.target == els[els.length-1]; - var back = e.shiftKey && e.target == els[0]; - if (fwd || back) { - setTimeout(function(){$.blockUI.impl.focus(back)},10); - return false; - } - } - } - if ($(e.target).parents('div.blockMsg').length > 0) - return true; - return $(e.target).parents().children().filter('div.blockUI').length == 0; - }, - boxHandler: function(e) { - if ((e.keyCode && e.keyCode == 27) || (e.type == 'click' && $(e.target).parents('div.blockMsg').length == 0)) - $.blockUI.impl.boxRemove(); - return true; - }, - // bind/unbind the handler - bind: function(b, el) { - var full = el == window; - // don't bother unbinding if there is nothing to unbind - if (!b && (full && !this.pageBlock || !full && !el.$blocked)) return; - if (!full) el.$blocked = b; - var $e = $(el).find('a,:input'); - $.each(['mousedown','mouseup','keydown','keypress','click'], function(i,o) { - $e[b?'bind':'unbind'](o, $.blockUI.impl.handler); - }); - }, - focus: function(back) { - if (!$.blockUI.impl.pageBlockEls) return; - var e = $.blockUI.impl.pageBlockEls[back===true ? $.blockUI.impl.pageBlockEls.length-1 : 0]; - if (e) e.focus(); - }, - center: function(el) { - var p = el.parentNode, s = el.style; - var l = ((p.offsetWidth - el.offsetWidth)/2) - this.sz(p,'borderLeftWidth'); - var t = ((p.offsetHeight - el.offsetHeight)/2) - this.sz(p,'borderTopWidth'); - s.left = l > 0 ? (l+'px') : '0'; - s.top = t > 0 ? (t+'px') : '0'; - }, - sz: function(el, p) { return parseInt($.css(el,p))||0; } -}; - -})(jQuery); diff --git a/ui/demos/real-world/photo-manager/js/jquery.livequery.js b/ui/demos/real-world/photo-manager/js/jquery.livequery.js deleted file mode 100644 index dfed9fe75..000000000 --- a/ui/demos/real-world/photo-manager/js/jquery.livequery.js +++ /dev/null @@ -1,250 +0,0 @@ -/* Copyright (c) 2007 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net) - * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) - * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. - * - * Version: @VERSION - * Requires jQuery 1.1.3+ - * Docs: http://docs.jquery.com/Plugins/livequery - */ - -(function($) { - -$.extend($.fn, { - livequery: function(type, fn, fn2) { - var self = this, q; - - // Handle different call patterns - if ($.isFunction(type)) - fn2 = fn, fn = type, type = undefined; - - // See if Live Query already exists - $.each( $.livequery.queries, function(i, query) { - if ( self.selector == query.selector && self.context == query.context && - type == query.type && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) ) - // Found the query, exit the each loop - return (q = query) && false; - }); - - // Create new Live Query if it wasn't found - q = q || new $.livequery(this.selector, this.context, type, fn, fn2); - - // Make sure it is running - q.stopped = false; - - // Run it - $.livequery.run( q.id ); - - // Contnue the chain - return this; - }, - - expire: function(type, fn, fn2) { - var self = this; - - // Handle different call patterns - if ($.isFunction(type)) - fn2 = fn, fn = type, type = undefined; - - // Find the Live Query based on arguments and stop it - $.each( $.livequery.queries, function(i, query) { - if ( self.selector == query.selector && self.context == query.context && - (!type || type == query.type) && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) && !this.stopped ) - $.livequery.stop(query.id); - }); - - // Continue the chain - return this; - } -}); - -$.livequery = function(selector, context, type, fn, fn2) { - this.selector = selector; - this.context = context || document; - this.type = type; - this.fn = fn; - this.fn2 = fn2; - this.elements = []; - this.stopped = false; - - // The id is the index of the Live Query in $.livequery.queries - this.id = $.livequery.queries.push(this)-1; - - // Mark the functions for matching later on - fn.$lqguid = fn.$lqguid || $.livequery.guid++; - if (fn2) fn2.$lqguid = fn2.$lqguid || $.livequery.guid++; - - // Return the Live Query - return this; -}; - -$.livequery.prototype = { - stop: function() { - var query = this; - - if ( this.type ) - // Unbind all bound events - this.elements.unbind(this.type, this.fn); - else if (this.fn2) - // Call the second function for all matched elements - this.elements.each(function(i, el) { - query.fn2.apply(el); - }); - - // Clear out matched elements - this.elements = []; - - // Stop the Live Query from running until restarted - this.stopped = true; - }, - - run: function() { - // Short-circuit if stopped - if ( this.stopped ) return; - var query = this; - - var oEls = this.elements, - els = $(this.selector, this.context), - nEls = els.not(oEls); - - // Set elements to the latest set of matched elements - this.elements = els; - - if (this.type) { - // Bind events to newly matched elements - nEls.bind(this.type, this.fn); - - // Unbind events to elements no longer matched - if (oEls.length > 0) - $.each(oEls, function(i, el) { - if ( $.inArray(el, els) < 0 ) - $.event.remove(el, query.type, query.fn); - }); - } - else { - // Call the first function for newly matched elements - nEls.each(function() { - query.fn.apply(this); - }); - - // Call the second function for elements no longer matched - if ( this.fn2 && oEls.length > 0 ) - $.each(oEls, function(i, el) { - if ( $.inArray(el, els) < 0 ) - query.fn2.apply(el); - }); - } - } -}; - -$.extend($.livequery, { - guid: 0, - queries: [], - queue: [], - running: false, - timeout: null, - - checkQueue: function() { - if ( $.livequery.running && $.livequery.queue.length ) { - var length = $.livequery.queue.length; - // Run each Live Query currently in the queue - while ( length-- ) - $.livequery.queries[ $.livequery.queue.shift() ].run(); - } - }, - - pause: function() { - // Don't run anymore Live Queries until restarted - $.livequery.running = false; - }, - - play: function() { - // Restart Live Queries - $.livequery.running = true; - // Request a run of the Live Queries - $.livequery.run(); - }, - - registerPlugin: function() { - $.each( arguments, function(i,n) { - // Short-circuit if the method doesn't exist - if (!$.fn[n]) return; - - // Save a reference to the original method - var old = $.fn[n]; - - // Create a new method - $.fn[n] = function() { - // Call the original method - var r = old.apply(this, arguments); - - // Request a run of the Live Queries - $.livequery.run(); - - // Return the original methods result - return r; - } - }); - }, - - run: function(id) { - if (id != undefined) { - // Put the particular Live Query in the queue if it doesn't already exist - if ( $.inArray(id, $.livequery.queue) < 0 ) - $.livequery.queue.push( id ); - } - else - // Put each Live Query in the queue if it doesn't already exist - $.each( $.livequery.queries, function(id) { - if ( $.inArray(id, $.livequery.queue) < 0 ) - $.livequery.queue.push( id ); - }); - - // Clear timeout if it already exists - if ($.livequery.timeout) clearTimeout($.livequery.timeout); - // Create a timeout to check the queue and actually run the Live Queries - $.livequery.timeout = setTimeout($.livequery.checkQueue, 20); - }, - - stop: function(id) { - if (id != undefined) - // Stop are particular Live Query - $.livequery.queries[ id ].stop(); - else - // Stop all Live Queries - $.each( $.livequery.queries, function(id) { - $.livequery.queries[ id ].stop(); - }); - } -}); - -// Register core DOM manipulation methods -$.livequery.registerPlugin('append', 'prepend', 'after', 'before', 'wrap', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'empty', 'remove'); - -// Run Live Queries when the Document is ready -$(function() { $.livequery.play(); }); - - -// Save a reference to the original init method -var init = $.prototype.init; - -// Create a new init method that exposes two new properties: selector and context -$.prototype.init = function(a,c) { - // Call the original init and save the result - var r = init.apply(this, arguments); - - // Copy over properties if they exist already - if (a && a.selector) - r.context = a.context, r.selector = a.selector; - - // Set properties - if ( typeof a == 'string' ) - r.context = c || document, r.selector = a; - - // Return the result - return r; -}; - -// Give the init function the jQuery prototype for later instantiation (needed after Rev 4091) -$.prototype.init.prototype = $.prototype; - -})(jQuery); \ No newline at end of file diff --git a/ui/demos/real-world/photo-manager/theme/css/screen.css b/ui/demos/real-world/photo-manager/theme/css/screen.css deleted file mode 100644 index 3866beb8e..000000000 --- a/ui/demos/real-world/photo-manager/theme/css/screen.css +++ /dev/null @@ -1,179 +0,0 @@ -body { - padding: 0; - margin: 0; - line-height: 1.5em; - font-size: 75%; /* gives us 12px in most browsers */ - font-family: "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif; - background: #aefe05 url('../img/side_top.jpg') repeat-x top; /* body background from ui.jquery.com */ - color: 222; -} - -/* -================================ -=LAYOUT -================================ */ -h1 { - padding: 0 0 0 52px; - margin: 0; - font-size: 1.5em; /* 18px */ - line-height: 2em; /* 36px */ - background: url('../img/photos_gold_32.gif') no-repeat 8px 50%; /* Thanks to Iconbuffet.com */ - color: #fff; -} -#body_wrap { - width: 960px; - margin: 0 auto; - background: #fff url('../img/body_wrap_bg.gif') repeat-y; -} -#content { - float: left; - width: 632px; -} -#sidebar { - float: right; - width: 320px; -} -#footer { - clear: both; - background: #32342f; - color: #fff; -} - -/* -================================ -=SECTIONS -================================ */ -/* ----------------- -=HEADER ----------------- */ -/* ----------------- -=CONTENT ----------------- */ -#content h2 { - padding-left: 25px; -} -/* -=gallery --------- */ -.gallery { - min-height: 108px; - padding: 0; - margin: 18px 0; - list-style: none; -} -* html .gallery { - height: 108px; /* min-height for lte IE6 */ -} -.gallery.active { - background: #eee; -} -.gallery li { - float: left; - width: 160px; - padding: 0 25px; - margin: 0 0 8px; -} -.gallery img { - display: block; - padding: 7px; - border: 1px solid #ccc; - background: #fff; -} -.displayBox img { - border: 25px solid #222; -} -/* img title */ -.gallery p { - float: left; - padding: 0; - margin: 0; -} -/* img toolbar */ -.gallery div { - float: right; -} -.gallery div a { - float: left; - width: 24px; - height: 24px; - background-repeat: no-repeat; - background-position: center; - text-indent: -9999px; /* Phark revisited image replacement */ -} -.gallery div a:focus { - outline: 0; -} -.tb_supersize { - background-image: url('../img/search_16.gif'); /* Thanks to Iconbuffet.com */ -} -.tb_trash { - background-image: url('../img/trash_16.gif'); /* Thanks to Iconbuffet.com */ -} - -/* ----------------- -=SIDEBAR ----------------- */ -.box { - margin: 18px; - border: 1px solid #ccc; - background: #fff; -} -.box h2 { - padding: 0 8px; - margin: 0; - font-size: 1.5em; - line-height: 2em; - background: #525252 url('../img/header_bg.png') repeat-x bottom; - color: #fff; -} -.box div { - min-height: 128px; - border: 2px solid #fff; -} -* html #sidebar .box div { - height: 128px; /* min-height for lte IE6 */ -} -#trash div.active { - border-color: green; -} -#shred div.active { - border-color: red; -} -#trash div img { - float: left; - margin: 4px; -} - -/* ----------------- -=FOOTER ----------------- */ -#footer p { - margin: 0; - text-align: right; -} - - -/* -================================ -=FLOAT CLEARING -================================ */ -#body_wrap, ul.gallery, #trash div { - display: inline-block; -} -#body_wrap:after, ul.gallery:after, #trash div:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} -* html #body_wrap, * html ul.gallery, * html #trash div { - height: 1%; -} -#body_wrap, ul.gallery, #trash div { - display: block; -} diff --git a/ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif b/ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif deleted file mode 100644 index 7ad1d5476..000000000 Binary files a/ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/theme/img/header_bg.png b/ui/demos/real-world/photo-manager/theme/img/header_bg.png deleted file mode 100644 index a517ae7dd..000000000 Binary files a/ui/demos/real-world/photo-manager/theme/img/header_bg.png and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif b/ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif deleted file mode 100644 index e6bdfdcbc..000000000 Binary files a/ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/theme/img/search_16.gif b/ui/demos/real-world/photo-manager/theme/img/search_16.gif deleted file mode 100644 index d9ed18dfc..000000000 Binary files a/ui/demos/real-world/photo-manager/theme/img/search_16.gif and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/theme/img/side_top.jpg b/ui/demos/real-world/photo-manager/theme/img/side_top.jpg deleted file mode 100644 index ecf5a18b6..000000000 Binary files a/ui/demos/real-world/photo-manager/theme/img/side_top.jpg and /dev/null differ diff --git a/ui/demos/real-world/photo-manager/theme/img/trash_16.gif b/ui/demos/real-world/photo-manager/theme/img/trash_16.gif deleted file mode 100644 index cbe509180..000000000 Binary files a/ui/demos/real-world/photo-manager/theme/img/trash_16.gif and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_airport_express.jpg b/ui/demos/real-world/product-slider/images/pb_airport_express.jpg deleted file mode 100644 index d3ae98fa6..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_airport_express.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg b/ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg deleted file mode 100644 index b7d1e0395..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg b/ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg deleted file mode 100644 index b8bc10830..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg deleted file mode 100644 index 760035bac..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg b/ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg deleted file mode 100644 index f75703766..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg deleted file mode 100644 index d1bd8ffb6..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg deleted file mode 100644 index 085b18033..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg deleted file mode 100644 index 1f9c60a64..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg deleted file mode 100644 index 69d6961bf..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_imac20071026.jpg b/ui/demos/real-world/product-slider/images/pb_imac20071026.jpg deleted file mode 100644 index 961eaf7ec..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_imac20071026.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg deleted file mode 100644 index 929b7130e..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg b/ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg deleted file mode 100644 index 8bed6d3d8..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg deleted file mode 100644 index ff708e48b..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg deleted file mode 100644 index 916ecce93..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_mac_mini.jpg b/ui/demos/real-world/product-slider/images/pb_mac_mini.jpg deleted file mode 100644 index 4822b02e2..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_mac_mini.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg b/ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg deleted file mode 100644 index d1e6ab8d6..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg b/ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg deleted file mode 100644 index 525175a4b..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg b/ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg deleted file mode 100644 index 4e4f42cca..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg deleted file mode 100644 index 595ecaf07..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg deleted file mode 100644 index 34ace8d55..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg b/ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg deleted file mode 100644 index 53066e432..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg b/ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg deleted file mode 100644 index a0267a7f7..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_quicktime.jpg b/ui/demos/real-world/product-slider/images/pb_quicktime.jpg deleted file mode 100644 index 163059d46..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_quicktime.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg deleted file mode 100644 index 43151b508..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg deleted file mode 100644 index cdc24f583..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg b/ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg deleted file mode 100644 index 1623791e6..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_xserve.jpg b/ui/demos/real-world/product-slider/images/pb_xserve.jpg deleted file mode 100644 index f2c3f4b79..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_xserve.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg b/ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg deleted file mode 100644 index f93f3dfc9..000000000 Binary files a/ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg b/ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg deleted file mode 100644 index 0eb8f8e16..000000000 Binary files a/ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png b/ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png deleted file mode 100644 index 997ac189c..000000000 Binary files a/ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png and /dev/null differ diff --git a/ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png b/ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png deleted file mode 100644 index 6c9d0f9bb..000000000 Binary files a/ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png and /dev/null differ diff --git a/ui/demos/real-world/product-slider/index.html b/ui/demos/real-world/product-slider/index.html deleted file mode 100644 index 07cae0de7..000000000 --- a/ui/demos/real-world/product-slider/index.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - Slider Gallery - - - - - - - - - -
    -

    Slider Gallery

    -

    This shows a demonstration of a slider widget from the jQuery UI library used to create the same effect used on Apple's web site.

    -

    Read the article, and see the screencast this demonstration relates to

    - -
    -
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • - -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • - -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • - -
    • -
    • -
    • -
    -
    -
    - Wi-Fi - Macs - Applications - Servers -
    -
    -
    - - - - - - diff --git a/ui/demos/real-world/range-interface/index.html b/ui/demos/real-world/range-interface/index.html deleted file mode 100644 index bb8554fa3..000000000 --- a/ui/demos/real-world/range-interface/index.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - -Slider Test Page - - - - - - - - - - - - - - - - - - - - - -
    -

    Slider Interface Example

    -
    -
    -
    -
    - 0 - 100 -
    -
    - -
    - -
    -
    0
    -
    10
    -
    20
    -
    30
    -
    40
    -
    50
    -
    60
    -
    70
    -
    80
    -
    90
    -
    100
    -
    -
    - - - diff --git a/ui/demos/real-world/splitpane/css/demo.css b/ui/demos/real-world/splitpane/css/demo.css deleted file mode 100644 index d30c33149..000000000 --- a/ui/demos/real-world/splitpane/css/demo.css +++ /dev/null @@ -1,149 +0,0 @@ -/* -------------------------------------------------------------- - - jQuery UI: Demo Viewer - --------------------------------------------------------------- */ - - -/*************************************/ -/* Blueprint: reset.css */ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, font, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -dl, dt, dd, ol, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { - margin: 0; - padding: 0; - border: 0; - outline: 0; - font-weight: inherit; - font-style: inherit; - font-size: 100%; - font-family: inherit; - vertical-align: baseline; -} - -label { - margin-right: 5px; -} - -/* Remember to define focus styles! */ -:focus { - outline: 0; -} -body { - line-height: 1; - color: black; - background: white; - font-family: Arial,Sans-serif; font-size: 0.9em; - background-color: white; - overflow: hidden; -} -ol, ul { - list-style: none; -} - -/* Tables still need 'cellspacing="0"' in the markup. */ -table { - border-collapse: separate; - border-spacing: 0; -} -caption, th, td { - text-align: left; - font-weight: normal; -} - -/* Remove possible quote marks (") from ,
    . */ -blockquote:before, blockquote:after, -q:before, q:after { - content: ""; -} -blockquote, q { - quotes: "" ""; -} - -/*************************************/ -/* Viewer: Layout */ - -#wrapper { - background: #e1e7f2 url(../images/bg_gradient.gif) repeat-x; - } - #header { - padding: 10px; - background: #67A7E3; color: #fff; - position: relative; - } - #container { - height: 500px; - } - #container td { - overflow: hidden; - } - #container td div { - overflow: hidden; - padding: 0 15px 0 10px; - background: #fff; - height:475px; - font-size: 90%; - } - #container .ui-split-side-box { - width: 200px; - } - #container .ui-split-side { - overflow: hidden; - } - #container .ui-split-side ul { - margin: 0; padding: 0; padding-top: 3px; - } - #container .ui-split-side li { - margin: 0; padding: 0; border: 0; outline: 0; - list-style: none; - } - #container .ui-split-side li a { - height: 15px; - display:block; - padding: 3px 3px 3px 12px; - border-bottom: 1px solid #E8EEF7; - color: #000; - font-size: 90%; - text-decoration: none; - } - #container .ui-split-side li a:hover { - background: #E8EEF7; - border-color: #C3D9FF; - } - #container .ui-split-main-box { - - } - - #container .ui-resizable-e { - width: 10px; height: 475px; - background:#e1e7f2 url(../images/splitpane_handle-ew.gif) no-repeat scroll 75% 50% !important; - cursor:col-resize !important; - border-left: #bbb 1px solid; - padding: 3px; - } - #container .ui-resizable-n { - height: 10px; - background:#e1e7f2 url(../images/splitpane_handle-sn.gif) no-repeat scroll 50% 55% !important; - border-top: #bbb 1px solid; - padding: 3px; - } - - - - .ui-toolbar-item-hide-icon { - padding-left: 16px; height: 16px; - background-image: url(../images/icons_2.png); - background-repeat: no-repeat; margin: 0 2px; - display: inline-block; - } - - .ui-toolbar-item-hide-icon { background-position: -64px 50%; } - - .proxy { border: 1px dashed #000; }; - diff --git a/ui/demos/real-world/splitpane/images/bg_gradient.gif b/ui/demos/real-world/splitpane/images/bg_gradient.gif deleted file mode 100644 index d3f535e73..000000000 Binary files a/ui/demos/real-world/splitpane/images/bg_gradient.gif and /dev/null differ diff --git a/ui/demos/real-world/splitpane/images/icons_2.png b/ui/demos/real-world/splitpane/images/icons_2.png deleted file mode 100644 index a05f52c7a..000000000 Binary files a/ui/demos/real-world/splitpane/images/icons_2.png and /dev/null differ diff --git a/ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif b/ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif deleted file mode 100644 index 262763665..000000000 Binary files a/ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif and /dev/null differ diff --git a/ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif b/ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif deleted file mode 100644 index bd60c408b..000000000 Binary files a/ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif and /dev/null differ diff --git a/ui/demos/real-world/splitpane/index.html b/ui/demos/real-world/splitpane/index.html deleted file mode 100644 index 2800b206f..000000000 --- a/ui/demos/real-world/splitpane/index.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - jQuery UI: SplitPane - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - -
    - - -
    - Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien. -

    - Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus. - -
    -
    -
    - Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien. -

    - Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus. -
    -
    -
    - Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien. -

    - Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus. -
    -
    -
    - - - diff --git a/ui/jquery-1.2.6.js b/ui/jquery-1.2.6.js deleted file mode 100644 index 88e661eec..000000000 --- a/ui/jquery-1.2.6.js +++ /dev/null @@ -1,3549 +0,0 @@ -(function(){ -/* - * jQuery 1.2.6 - New Wave Javascript - * - * Copyright (c) 2008 John Resig (jquery.com) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $ - * $Rev: 5685 $ - */ - -// Map over jQuery in case of overwrite -var _jQuery = window.jQuery, -// Map over the $ in case of overwrite - _$ = window.$; - -var jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); -}; - -// A simple way to check for HTML strings or ID strings -// (both of which we optimize for) -var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/, - -// Is it a simple selector - isSimple = /^.[^:#\[\.]*$/, - -// Will speed up references to undefined, and allows munging its name. - undefined; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - return this; - } - // Handle HTML strings - if ( typeof selector == "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Make sure an element was located - if ( elem ){ - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - return jQuery( elem ); - } - selector = []; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector ); - - return this.setArray(jQuery.makeArray(selector)); - }, - - // The current version of jQuery being used - jquery: "1.2.6", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // The number of elements contained in the matched element set - length: 0, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num == undefined ? - - // Return a 'clean' array - jQuery.makeArray( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - var ret = -1; - - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( name.constructor == String ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 ) - value = undefined; - return this.attr( key, value, "curCSS" ); - }, - - text: function( text ) { - if ( typeof text != "object" && text != null ) - return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); - - var ret = ""; - - jQuery.each( text || this, function(){ - jQuery.each( this.childNodes, function(){ - if ( this.nodeType != 8 ) - ret += this.nodeType != 1 ? - this.nodeValue : - jQuery.fn.text( [ this ] ); - }); - }); - - return ret; - }, - - wrapAll: function( html ) { - if ( this[0] ) - // The elements to wrap the target around - jQuery( html, this[0].ownerDocument ) - .clone() - .insertBefore( this[0] ) - .map(function(){ - var elem = this; - - while ( elem.firstChild ) - elem = elem.firstChild; - - return elem; - }) - .append(this); - - return this; - }, - - wrapInner: function( html ) { - return this.each(function(){ - jQuery( this ).contents().wrapAll( html ); - }); - }, - - wrap: function( html ) { - return this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, false, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, true, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - find: function( selector ) { - var elems = jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - }); - - return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ? - jQuery.unique( elems ) : - elems ); - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var clone = this.cloneNode(true), - container = document.createElement("div"); - container.appendChild(clone); - return jQuery.clean([container.innerHTML])[0]; - } else - return this.cloneNode(true); - }); - - // Need to set the expando to null on the cloned set if it exists - // removeData doesn't work here, IE removes it from the original as well - // this is primarily for IE but the data expando shouldn't be copied over in any browser - var clone = ret.find("*").andSelf().each(function(){ - if ( this[ expando ] != undefined ) - this[ expando ] = null; - }); - - // Copy the events from the original to the clone - if ( events === true ) - this.find("*").andSelf().each(function(i){ - if (this.nodeType == 3) - return; - var events = jQuery.data( this, "events" ); - - for ( var type in events ) - for ( var handler in events[ type ] ) - jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data ); - }); - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, this ) ); - }, - - not: function( selector ) { - if ( selector.constructor == String ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ) ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector == 'string' ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return this.is( "." + selector ); - }, - - val: function( value ) { - if ( value == undefined ) { - - if ( this.length ) { - var elem = this[0]; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value; - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - - // Everything else, we just grab the value - } else - return (this[0].value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if( value.constructor == Number ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( value.constructor == Array && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value == undefined ? - (this[0] ? - this[0].innerHTML : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ) ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - data: function( key, value ){ - var parts = key.split("."); - parts[1] = parts[1] ? "." + parts[1] : ""; - - if ( value === undefined ) { - var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); - - if ( data === undefined && this.length ) - data = jQuery.data( this[0], key ); - - return data === undefined && parts[1] ? - this.data( parts[0] ) : - data; - } else - return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){ - jQuery.data( this, key, value ); - }); - }, - - removeData: function( key ){ - return this.each(function(){ - jQuery.removeData( this, key ); - }); - }, - - domManip: function( args, table, reverse, callback ) { - var clone = this.length > 1, elems; - - return this.each(function(){ - if ( !elems ) { - elems = jQuery.clean( args, this.ownerDocument ); - - if ( reverse ) - elems.reverse(); - } - - var obj = this; - - if ( table && jQuery.nodeName( this, "table" ) && jQuery.nodeName( elems[0], "tr" ) ) - obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") ); - - var scripts = jQuery( [] ); - - jQuery.each(elems, function(){ - var elem = clone ? - jQuery( this ).clone( true )[0] : - this; - - // execute all scripts after the elements have been injected - if ( jQuery.nodeName( elem, "script" ) ) - scripts = scripts.add( elem ); - else { - // Remove any inner scripts for later evaluation - if ( elem.nodeType == 1 ) - scripts = scripts.add( jQuery( "script", elem ).remove() ); - - // Inject the elements into the document - callback.call( obj, elem ); - } - }); - - scripts.each( evalScript ); - }); - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( target.constructor == Boolean ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target != "object" && typeof target != "function" ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy == "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -var expando = "jQuery" + now(), uuid = 0, windowData = {}, - // exclude the following css properties to add px - exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning this function. - isFunction: function( fn ) { - return !!fn && typeof fn != "string" && !fn.nodeName && - fn.constructor != Array && /^[\s[]?function/.test( fn + "" ); - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.documentElement && !elem.body || - elem.tagName && elem.ownerDocument && !elem.ownerDocument.body; - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - data = jQuery.trim( data ); - - if ( data ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.browser.msie ) - script.text = data; - else - script.appendChild( document.createTextNode( data ) ); - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - cache: {}, - - data: function( elem, name, data ) { - elem = elem == window ? - windowData : - elem; - - var id = elem[ expando ]; - - // Compute a unique ID for the element - if ( !id ) - id = elem[ expando ] = ++uuid; - - // Only generate the data cache if we're - // trying to access or manipulate it - if ( name && !jQuery.cache[ id ] ) - jQuery.cache[ id ] = {}; - - // Prevent overriding the named cache with undefined values - if ( data !== undefined ) - jQuery.cache[ id ][ name ] = data; - - // Return the named cache data, or the ID for the element - return name ? - jQuery.cache[ id ][ name ] : - id; - }, - - removeData: function( elem, name ) { - elem = elem == window ? - windowData : - elem; - - var id = elem[ expando ]; - - // If we want to remove a specific section of the element's data - if ( name ) { - if ( jQuery.cache[ id ] ) { - // Remove the section of cache data - delete jQuery.cache[ id ][ name ]; - - // If we've removed all the data, remove the element's cache - name = ""; - - for ( name in jQuery.cache[ id ] ) - break; - - if ( !name ) - jQuery.removeData( elem ); - } - - // Otherwise, we want to remove all of the element's data - } else { - // Clean up the element expando - try { - delete elem[ expando ]; - } catch(e){ - // IE has trouble directly removing the expando - // but it's ok with using removeAttribute - if ( elem.removeAttribute ) - elem.removeAttribute( expando ); - } - - // Completely remove the data cache - delete jQuery.cache[ id ]; - } - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length == undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length == undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames != undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - var padding = 0, border = 0; - jQuery.each( which, function() { - padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - val -= Math.round(padding + border); - } - - if ( jQuery(elem).is(":visible") ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, val); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // A helper method for determining if an element's values are broken - function color( elem ) { - if ( !jQuery.browser.safari ) - return false; - - // defaultView is cached - var ret = defaultView.getComputedStyle( elem, null ); - return !ret || ret.getPropertyValue("color") == ""; - } - - // We need to handle opacity special in IE - if ( name == "opacity" && jQuery.browser.msie ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - // Opera sometimes will give the wrong display answer, this fixes it, see #2037 - if ( jQuery.browser.opera && name == "display" ) { - var save = style.outline; - style.outline = "0 solid black"; - style.outline = save; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle && !color( elem ) ) - ret = computedStyle.getPropertyValue( name ); - - // If the element isn't reporting its values properly in Safari - // then some display: none elements are involved - else { - var swap = [], stack = [], a = elem, i = 0; - - // Locate all of the parent display: none elements - for ( ; a && color(a); a = a.parentNode ) - stack.unshift(a); - - // Go through and make them visible, but in reverse - // (It would be better if we knew the exact display type that they had) - for ( ; i < stack.length; i++ ) - if ( color( stack[ i ] ) ) { - swap[ i ] = stack[ i ].style.display; - stack[ i ].style.display = "block"; - } - - // Since we flip the display style, we have to handle that - // one special, otherwise get the value - ret = name == "display" && swap[ stack.length - 1 ] != null ? - "none" : - ( computedStyle && computedStyle.getPropertyValue( name ) ) || ""; - - // Finally, revert the display styles back - for ( i = 0; i < swap.length; i++ ) - if ( swap[ i ] != null ) - stack[ i ].style.display = swap[ i ]; - } - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context ) { - var ret = []; - context = context || document; - // !context.createElement fails in IE with an error but returns typeof 'object' - if (typeof context.createElement == 'undefined') - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - jQuery.each(elems, function(i, elem){ - if ( !elem ) - return; - - if ( elem.constructor == Number ) - elem += ''; - - // Convert html string into DOM nodes - if ( typeof elem == "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div"); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
    " ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - - - - - - -

    jQuery UI Accordion Test Suite

    - -

    - -
      - -
      - -
      - Standard, container is a div, header is h3 and content p - -
      - There is one obvious advantage: -
      -

      - You've seen it coming!
      - Buy now and get nothing for free!
      - Well, at least no free beer. Perhaps a bear, if you can afford it. -

      -
      - Now that you've got... -
      -

      - your bear, you have to admit it!
      - No, we aren't selling bears. -

      -

      - We could talk about renting one. -

      -
      - Rent one bear, ... -
      -

      - get two for three beer. -

      -

      - And now, for something completely different. -

      -
      -
      - -
      - -
      - Navigation - Unordered List with anchors and nested lists. -

      The first item is cloned to allow the user to select it. The - active element is choosen based on location.hash: Open Drums and click - the first item ('Drums'), then reload the page.

      - - - -
      - -
      - With options, container is a definition list, header dt, content dd - -
      -
      Red
      -
      - Fancy stuff about red thingies. -
      -
      Green
      -
      - Green! Green! Green! -
      -
      Blue
      -
      - Cool kids are blue. -
      -
      - -
      - -
      - Divitus structure, div container, div header (class title), div - content, no active on startup and can be completely closed - -
      -
      -
      Tennis
      -
      - One ball, two players. Lots of fun. -
      -
      -
      -
      Soccer
      -
      - One ball, 22 players. Lots of fun. -
      -
      -
      -
      Baseball
      -
      - Well, one ball, some guys running around, some guys hitting others with a stick.
      - Sounds like fun, doesn't it? -
      -
      - Well, apart from the running part. -
      -
      -
      - -
      - -
      - - - Activate via selector, eg. ':first' or 'a:first': -
      - -
      Log of the 2nd accordion
      -
      - - \ No newline at end of file diff --git a/ui/tests/accordion.js b/ui/tests/accordion.js deleted file mode 100644 index c0e3edfc5..000000000 --- a/ui/tests/accordion.js +++ /dev/null @@ -1,78 +0,0 @@ -module("accordion"); - -jQuery.ui.accordion.defaults.animated = false; - -function state(accordion) { - var args = $.makeArray(arguments).slice(1); - $.each(args, function(i, n) { - equals(n, accordion.find("div").eq(i).is(":visible")); - }); -} - -test("basics", function() { - state($('#list1').accordion(), 1, 0, 0); -}); - -test("autoheight", function() { - $('#navigation').accordion({ header: '.head', autoHeight: false }); - equals( 90, $('#navigation ul:first').height() ); - equals( 126, $('#navigation ul:eq(1)').height() ); - equals( 54, $('#navigation ul:last').height() ); - $('#navigation').accordion("destroy").accordion({ header: '.head', autoHeight: true }); - equals( 126, $('#navigation ul:first').height() ); - equals( 126, $('#navigation ul:eq(1)').height() ); - equals( 126, $('#navigation ul:last').height() ); -}); - -test("activate, numeric", function() { - var ac = $('#list1').accordion({ active: 1 }); - state(ac, 0, 1, 0); - ac.accordion("activate", 2); - state(ac, 0, 0, 1); - ac.accordion("activate", 0); - state(ac, 1, 0, 0); - ac.accordion("activate", 1); - state(ac, 0, 1, 0); - ac.accordion("activate", 2); - state(ac, 0, 0, 1); - ac.accordion("activate", -1); - state(ac, 0, 0, 1); -}); - -test("activate, boolean and numeric, alwaysOpen:false", function() { - var ac = $('#list1').accordion({alwaysOpen: false}).accordion("activate", 2); - state(ac, 0, 0, 1); - ok("x", "----"); - ac.accordion("activate", 0); - state(ac, 1, 0, 0); - ok("x", "----"); - ac.accordion("activate", -1); - state(ac, 0, 0, 0); -}); - -test("activate, boolean, alwaysOpen:true", function() { - var ac = $('#list1').accordion().accordion("activate", 2); - state(ac, 0, 0, 1); - ac.accordion("activate", -1); - state(ac, 0, 0, 1); -}); - -test("activate, string expression", function() { - var ac = $('#list1').accordion({ active: ":last" }); - state(ac, 0, 0, 1); - ac.accordion("activate", ":first"); - state(ac, 1, 0, 0); - ac.accordion("activate", ":eq(1)"); - state(ac, 0, 1, 0); - ac.accordion("activate", ":last"); - state(ac, 0, 0, 1); -}); - -test("activate, jQuery or DOM element", function() { - var ac = $('#list1').accordion({ active: $("#list1 a:last") }); - state(ac, 0, 0, 1); - ac.accordion("activate", $("#list1 a:first")); - state(ac, 1, 0, 0); - ac.accordion("activate", $("#list1 a")[1]); - state(ac, 0, 1, 0); -}); \ No newline at end of file diff --git a/ui/tests/all.html b/ui/tests/all.html deleted file mode 100644 index 82000437d..000000000 --- a/ui/tests/all.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - jQuery UI All Tests - - - - - - - - - - - - - - - -

      jQuery UI All Tests

      - -

      - -

      Run individual testsuites or doubleclick a test below

      - - -
        - -
        - -
        -
        -
        -
        - -
        - Standard, container is a div, header is h3 and content p - -
        - There is one obvious advantage: -
        -

        - You've seen it coming!
        - Buy now and get nothing for free!
        - Well, at least no free beer. Perhaps a bear, if you can afford it. -

        -
        - Now that you've got... -
        -

        - your bear, you have to admit it!
        - No, we aren't selling bears. -

        -

        - We could talk about renting one. -

        -
        - Rent one bear, ... -
        -

        - get two for three beer. -

        -

        - And now, for something completely different. -

        -
        -
        - -
        - -
        - Navigation - Unordered List with anchors and nested lists. -

        The first item is cloned to allow the user to select it. The - active element is choosen based on location.hash: Open Drums and click - the first item ('Drums'), then reload the page.

        - - - -
        - -
        - With options, container is a definition list, header dt, content dd - -
        -
        Red
        -
        - Fancy stuff about red thingies. -
        -
        Green
        -
        - Green! Green! Green! -
        -
        Blue
        -
        - Cool kids are blue. -
        -
        - -
        - -
        - Divitus structure, div container, div header (class title), div - content, no active on startup and can be completely closed - -
        -
        -
        Tennis
        -
        - One ball, two players. Lots of fun. -
        -
        -
        -
        Soccer
        -
        - One ball, 22 players. Lots of fun. -
        -
        -
        -
        Baseball
        -
        - Well, one ball, some guys running around, some guys hitting others with a stick.
        - Sounds like fun, doesn't it? -
        -
        - Well, apart from the running part. -
        -
        -
        - -
        - -
        - - - Activate via selector, eg. ':first' or 'a:first': -
        - -
        Log of the 2nd accordion
        -
        - - \ No newline at end of file diff --git a/ui/tests/autodrag.html b/ui/tests/autodrag.html deleted file mode 100644 index acc17fb4c..000000000 --- a/ui/tests/autodrag.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - jQuery UI - Automated Tests - - - - - - - - - - - - - - - -
        - -

        jQuery UI - Automated Tests

        - -
        - Status: Ready -
        - -
        - Test: -
        - -
        - -
        - -
        - -
        - - - diff --git a/ui/tests/cursors/linux/auto.png b/ui/tests/cursors/linux/auto.png deleted file mode 100644 index 03ac2f281..000000000 Binary files a/ui/tests/cursors/linux/auto.png and /dev/null differ diff --git a/ui/tests/cursors/linux/crosshair.png b/ui/tests/cursors/linux/crosshair.png deleted file mode 100644 index 30904f933..000000000 Binary files a/ui/tests/cursors/linux/crosshair.png and /dev/null differ diff --git a/ui/tests/cursors/linux/default.png b/ui/tests/cursors/linux/default.png deleted file mode 100644 index 03ac2f281..000000000 Binary files a/ui/tests/cursors/linux/default.png and /dev/null differ diff --git a/ui/tests/cursors/linux/e-resize.png b/ui/tests/cursors/linux/e-resize.png deleted file mode 100644 index b4c40ff17..000000000 Binary files a/ui/tests/cursors/linux/e-resize.png and /dev/null differ diff --git a/ui/tests/cursors/linux/help.png b/ui/tests/cursors/linux/help.png deleted file mode 100644 index a6b5836d6..000000000 Binary files a/ui/tests/cursors/linux/help.png and /dev/null differ diff --git a/ui/tests/cursors/linux/move.png b/ui/tests/cursors/linux/move.png deleted file mode 100644 index 39ae04520..000000000 Binary files a/ui/tests/cursors/linux/move.png and /dev/null differ diff --git a/ui/tests/cursors/linux/n-resize.png b/ui/tests/cursors/linux/n-resize.png deleted file mode 100644 index afef5b438..000000000 Binary files a/ui/tests/cursors/linux/n-resize.png and /dev/null differ diff --git a/ui/tests/cursors/linux/ne-resize.png b/ui/tests/cursors/linux/ne-resize.png deleted file mode 100644 index 8c5e970e1..000000000 Binary files a/ui/tests/cursors/linux/ne-resize.png and /dev/null differ diff --git a/ui/tests/cursors/linux/none.cur b/ui/tests/cursors/linux/none.cur deleted file mode 100644 index 4f7970a9f..000000000 Binary files a/ui/tests/cursors/linux/none.cur and /dev/null differ diff --git a/ui/tests/cursors/linux/none.png b/ui/tests/cursors/linux/none.png deleted file mode 100644 index 3b34811c5..000000000 Binary files a/ui/tests/cursors/linux/none.png and /dev/null differ diff --git a/ui/tests/cursors/linux/nw-resize.png b/ui/tests/cursors/linux/nw-resize.png deleted file mode 100644 index 7c17be53e..000000000 Binary files a/ui/tests/cursors/linux/nw-resize.png and /dev/null differ diff --git a/ui/tests/cursors/linux/pointer.png b/ui/tests/cursors/linux/pointer.png deleted file mode 100644 index b39fcef8f..000000000 Binary files a/ui/tests/cursors/linux/pointer.png and /dev/null differ diff --git a/ui/tests/cursors/linux/s-resize.png b/ui/tests/cursors/linux/s-resize.png deleted file mode 100644 index afef5b438..000000000 Binary files a/ui/tests/cursors/linux/s-resize.png and /dev/null differ diff --git a/ui/tests/cursors/linux/se-resize.png b/ui/tests/cursors/linux/se-resize.png deleted file mode 100644 index 7c17be53e..000000000 Binary files a/ui/tests/cursors/linux/se-resize.png and /dev/null differ diff --git a/ui/tests/cursors/linux/sw-resize.png b/ui/tests/cursors/linux/sw-resize.png deleted file mode 100644 index 8c5e970e1..000000000 Binary files a/ui/tests/cursors/linux/sw-resize.png and /dev/null differ diff --git a/ui/tests/cursors/linux/text.png b/ui/tests/cursors/linux/text.png deleted file mode 100644 index 85a54fcb7..000000000 Binary files a/ui/tests/cursors/linux/text.png and /dev/null differ diff --git a/ui/tests/cursors/linux/w-resize.png b/ui/tests/cursors/linux/w-resize.png deleted file mode 100644 index b4c40ff17..000000000 Binary files a/ui/tests/cursors/linux/w-resize.png and /dev/null differ diff --git a/ui/tests/cursors/mac/auto.png b/ui/tests/cursors/mac/auto.png deleted file mode 100644 index 65b21e435..000000000 Binary files a/ui/tests/cursors/mac/auto.png and /dev/null differ diff --git a/ui/tests/cursors/mac/crosshair.png b/ui/tests/cursors/mac/crosshair.png deleted file mode 100644 index b4f165b6a..000000000 Binary files a/ui/tests/cursors/mac/crosshair.png and /dev/null differ diff --git a/ui/tests/cursors/mac/default.png b/ui/tests/cursors/mac/default.png deleted file mode 100644 index 65b21e435..000000000 Binary files a/ui/tests/cursors/mac/default.png and /dev/null differ diff --git a/ui/tests/cursors/mac/e-resize.png b/ui/tests/cursors/mac/e-resize.png deleted file mode 100644 index 583ce1862..000000000 Binary files a/ui/tests/cursors/mac/e-resize.png and /dev/null differ diff --git a/ui/tests/cursors/mac/help.png b/ui/tests/cursors/mac/help.png deleted file mode 100644 index 5e8ee5870..000000000 Binary files a/ui/tests/cursors/mac/help.png and /dev/null differ diff --git a/ui/tests/cursors/mac/move.png b/ui/tests/cursors/mac/move.png deleted file mode 100644 index cf7608539..000000000 Binary files a/ui/tests/cursors/mac/move.png and /dev/null differ diff --git a/ui/tests/cursors/mac/n-resize.png b/ui/tests/cursors/mac/n-resize.png deleted file mode 100644 index 1242980a4..000000000 Binary files a/ui/tests/cursors/mac/n-resize.png and /dev/null differ diff --git a/ui/tests/cursors/mac/ne-resize.png b/ui/tests/cursors/mac/ne-resize.png deleted file mode 100644 index da3f6d05f..000000000 Binary files a/ui/tests/cursors/mac/ne-resize.png and /dev/null differ diff --git a/ui/tests/cursors/mac/none.cur b/ui/tests/cursors/mac/none.cur deleted file mode 100644 index 4f7970a9f..000000000 Binary files a/ui/tests/cursors/mac/none.cur and /dev/null differ diff --git a/ui/tests/cursors/mac/none.png b/ui/tests/cursors/mac/none.png deleted file mode 100644 index 3b34811c5..000000000 Binary files a/ui/tests/cursors/mac/none.png and /dev/null differ diff --git a/ui/tests/cursors/mac/nw-resize.png b/ui/tests/cursors/mac/nw-resize.png deleted file mode 100644 index b6c5e3956..000000000 Binary files a/ui/tests/cursors/mac/nw-resize.png and /dev/null differ diff --git a/ui/tests/cursors/mac/pointer.png b/ui/tests/cursors/mac/pointer.png deleted file mode 100644 index 45fbd2b77..000000000 Binary files a/ui/tests/cursors/mac/pointer.png and /dev/null differ diff --git a/ui/tests/cursors/mac/s-resize.png b/ui/tests/cursors/mac/s-resize.png deleted file mode 100644 index 1242980a4..000000000 Binary files a/ui/tests/cursors/mac/s-resize.png and /dev/null differ diff --git a/ui/tests/cursors/mac/se-resize.png b/ui/tests/cursors/mac/se-resize.png deleted file mode 100644 index b6c5e3956..000000000 Binary files a/ui/tests/cursors/mac/se-resize.png and /dev/null differ diff --git a/ui/tests/cursors/mac/sw-resize.png b/ui/tests/cursors/mac/sw-resize.png deleted file mode 100644 index da3f6d05f..000000000 Binary files a/ui/tests/cursors/mac/sw-resize.png and /dev/null differ diff --git a/ui/tests/cursors/mac/text.png b/ui/tests/cursors/mac/text.png deleted file mode 100644 index 2257903e9..000000000 Binary files a/ui/tests/cursors/mac/text.png and /dev/null differ diff --git a/ui/tests/cursors/mac/w-resize.png b/ui/tests/cursors/mac/w-resize.png deleted file mode 100644 index 583ce1862..000000000 Binary files a/ui/tests/cursors/mac/w-resize.png and /dev/null differ diff --git a/ui/tests/cursors/win/auto.png b/ui/tests/cursors/win/auto.png deleted file mode 100644 index b2c5c858c..000000000 Binary files a/ui/tests/cursors/win/auto.png and /dev/null differ diff --git a/ui/tests/cursors/win/crosshair.png b/ui/tests/cursors/win/crosshair.png deleted file mode 100644 index 02c99b7fd..000000000 Binary files a/ui/tests/cursors/win/crosshair.png and /dev/null differ diff --git a/ui/tests/cursors/win/default.png b/ui/tests/cursors/win/default.png deleted file mode 100644 index b2c5c858c..000000000 Binary files a/ui/tests/cursors/win/default.png and /dev/null differ diff --git a/ui/tests/cursors/win/e-resize.png b/ui/tests/cursors/win/e-resize.png deleted file mode 100644 index 056eb699f..000000000 Binary files a/ui/tests/cursors/win/e-resize.png and /dev/null differ diff --git a/ui/tests/cursors/win/help.png b/ui/tests/cursors/win/help.png deleted file mode 100644 index b8034bb7b..000000000 Binary files a/ui/tests/cursors/win/help.png and /dev/null differ diff --git a/ui/tests/cursors/win/move.png b/ui/tests/cursors/win/move.png deleted file mode 100644 index 627e79937..000000000 Binary files a/ui/tests/cursors/win/move.png and /dev/null differ diff --git a/ui/tests/cursors/win/n-resize.png b/ui/tests/cursors/win/n-resize.png deleted file mode 100644 index d06244cbb..000000000 Binary files a/ui/tests/cursors/win/n-resize.png and /dev/null differ diff --git a/ui/tests/cursors/win/ne-resize.png b/ui/tests/cursors/win/ne-resize.png deleted file mode 100644 index 79f6c3ae3..000000000 Binary files a/ui/tests/cursors/win/ne-resize.png and /dev/null differ diff --git a/ui/tests/cursors/win/none.cur b/ui/tests/cursors/win/none.cur deleted file mode 100644 index 4f7970a9f..000000000 Binary files a/ui/tests/cursors/win/none.cur and /dev/null differ diff --git a/ui/tests/cursors/win/none.png b/ui/tests/cursors/win/none.png deleted file mode 100644 index 1764445c9..000000000 Binary files a/ui/tests/cursors/win/none.png and /dev/null differ diff --git a/ui/tests/cursors/win/nw-resize.png b/ui/tests/cursors/win/nw-resize.png deleted file mode 100644 index af48a12d2..000000000 Binary files a/ui/tests/cursors/win/nw-resize.png and /dev/null differ diff --git a/ui/tests/cursors/win/pointer.png b/ui/tests/cursors/win/pointer.png deleted file mode 100644 index 7d07182a9..000000000 Binary files a/ui/tests/cursors/win/pointer.png and /dev/null differ diff --git a/ui/tests/cursors/win/s-resize.png b/ui/tests/cursors/win/s-resize.png deleted file mode 100644 index d06244cbb..000000000 Binary files a/ui/tests/cursors/win/s-resize.png and /dev/null differ diff --git a/ui/tests/cursors/win/se-resize.png b/ui/tests/cursors/win/se-resize.png deleted file mode 100644 index af48a12d2..000000000 Binary files a/ui/tests/cursors/win/se-resize.png and /dev/null differ diff --git a/ui/tests/cursors/win/sw-resize.png b/ui/tests/cursors/win/sw-resize.png deleted file mode 100644 index 79f6c3ae3..000000000 Binary files a/ui/tests/cursors/win/sw-resize.png and /dev/null differ diff --git a/ui/tests/cursors/win/text.png b/ui/tests/cursors/win/text.png deleted file mode 100644 index ce8dc22ee..000000000 Binary files a/ui/tests/cursors/win/text.png and /dev/null differ diff --git a/ui/tests/cursors/win/w-resize.png b/ui/tests/cursors/win/w-resize.png deleted file mode 100644 index 056eb699f..000000000 Binary files a/ui/tests/cursors/win/w-resize.png and /dev/null differ diff --git a/ui/tests/draggable.html b/ui/tests/draggable.html deleted file mode 100644 index a70fb0df7..000000000 --- a/ui/tests/draggable.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - -Draggable Test Page - - - - - - - - - - - - - - - -

        Draggable Test Suite

        - -

        - -
        -
        Static
        -
        Absolute
        -
        - -
          - - - diff --git a/ui/tests/draggable.js b/ui/tests/draggable.js deleted file mode 100644 index 299017b90..000000000 --- a/ui/tests/draggable.js +++ /dev/null @@ -1,494 +0,0 @@ -/* - * draggable unit tests - */ - -// -// Draggable Test Helper Functions -// -var el, offsetBefore, offsetAfter, dragged; - -var drag = function(handle, dx, dy) { - var element = el.data("draggable").element; - offsetBefore = el.offset(); - $(handle).simulate("drag", { - dx: dx || 0, - dy: dy || 0 - }); - dragged = { dx: dx, dy: dy }; - offsetAfter = el.offset(); -} - -var moved = function (dx, dy, msg) { - msg = msg ? msg + "." : ""; - var actual = { left: offsetAfter.left, top: offsetAfter.top }; - var expected = { left: offsetBefore.left + dx, top: offsetAfter.top }; - compare2(actual, expected, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] ' + msg); -} - -function shouldmove(why) { - drag(el, 50, 50); - moved(50, 50, why); -} - -function shouldnotmove(why) { - drag(el, 50, 50); - moved(0, 0, why); -} - -var border = function(el, side) { return parseInt(el.css('border-' + side + '-width')); } - -var margin = function(el, side) { return parseInt(el.css('margin-' + side)); } - -// Draggable Tests -module("Draggable"); - -test("init", function() { - expect(6); - - el = $("#draggable1").draggable(); - ok(true, '.draggable() called on element'); - - $([]).draggable(); - ok(true, '.draggable() called on empty collection'); - - $("
          ").draggable(); - ok(true, '.draggable() called on disconnected DOMElement'); - - $("
          ").draggable().draggable("foo"); - ok(true, 'arbitrary method called after init'); - - $("
          ").draggable().data("foo.draggable"); - ok(true, 'arbitrary option getter after init'); - - $("
          ").draggable().data("foo.draggable", "bar"); - ok(true, 'arbitrary option setter after init'); -}); - -test("destroy", function() { - expect(6); - - $("#draggable1").draggable().draggable("destroy"); - ok(true, '.draggable("destroy") called on element'); - - $([]).draggable().draggable("destroy"); - ok(true, '.draggable("destroy") called on empty collection'); - - $("
          ").draggable().draggable("destroy"); - ok(true, '.draggable("destroy") called on disconnected DOMElement'); - - $("
          ").draggable().draggable("destroy").draggable("foo"); - ok(true, 'arbitrary method called after destroy'); - - $("
          ").draggable().draggable("destroy").data("foo.draggable"); - ok(true, 'arbitrary option getter after destroy'); - - $("
          ").draggable().draggable("destroy").data("foo.draggable", "bar"); - ok(true, 'arbitrary option setter after destroy'); -}); - -test("enable", function() { - expect(6); - el = $("#draggable2").draggable({ disabled: true }); - shouldnotmove('.draggable({ disabled: true })'); - el.draggable("enable"); - shouldmove('.draggable("enable")'); - equals(el.data("disabled.draggable"), false, "disabled.draggable getter"); - - el.draggable("destroy"); - el.draggable({ disabled: true }); - shouldnotmove('.draggable({ disabled: true })'); - el.data("disabled.draggable", false); - equals(el.data("disabled.draggable"), false, "disabled.draggable setter"); - shouldmove('.data("disabled.draggable", false)'); -}); - -test("disable", function() { - expect(6); - el = $("#draggable2").draggable({ disabled: false }); - shouldmove('.draggable({ disabled: false })'); - el.draggable("disable"); - shouldnotmove('.draggable("disable")'); - equals(el.data("disabled.draggable"), true, "disabled.draggable getter"); - - el.draggable("destroy"); - - el.draggable({ disabled: false }); - shouldmove('.draggable({ disabled: false })'); - el.data("disabled.draggable", true); - equals(el.data("disabled.draggable"), true, "disabled.draggable setter"); - shouldnotmove('.data("disabled.draggable", true)'); -}); - -test("element types", function() { - var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form' - + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr' - + ',acronym,code,samp,kbd,var,img,object,hr' - + ',input,button,label,select,iframe').split(','); - - $.each(typeNames, function(i) { - var typeName = typeNames[i]; - el = $(document.createElement(typeName)).appendTo('body'); - (typeName == 'table' && el.append("content")); - el.draggable({ cancel: '' }); - drag(el, 50, 50); - moved(50, 50, "<" + typeName + ">"); - el.draggable("destroy"); - el.remove(); - }); -}); - -test("defaults", function() { - el = $("#draggable1").draggable(); - equals(el.data("appendTo.draggable"), "parent", "appendTo"); - equals(el.data("axis.draggable"), false, "axis"); - equals(el.data("cancel.draggable"), ":input,button", "cancel"); - equals(el.data("delay.draggable"), 0, "delay"); - equals(el.data("disabled.draggable"), false, "disabled"); - equals(el.data("distance.draggable"), 0, "distance"); - equals(el.data("helper.draggable"), "original", "helper"); -}); - -test("No options, relative", function() { - el = $("#draggable1").draggable(); - drag(el, 50, 50); - moved(50, 50); -}); - -test("No options, absolute", function() { - el = $("#draggable2").draggable(); - drag(el, 50, 50); - moved(50, 50); -}); - -module("Draggable Options"); - -test("{ axis: false }, default", function() { - el = $("#draggable2").draggable({ axis: false }); - drag(el, 50, 50); - moved(50, 50); -}); - -test("{ axis: 'x' }", function() { - el = $("#draggable2").draggable({ axis: "x" }); - drag(el, 50, 50); - moved(50, 0); -}); - -test("{ axis: 'y' }", function() { - el = $("#draggable2").draggable({ axis: "y" }); - drag(el, 50, 50); - moved(0, 50); -}); - -test("{ axis: ? }, unexpected", function() { - var unexpected = { - "true": true, - "{}": {}, - "[]": [], - "null": null, - "undefined": undefined, - "function() {}": function() {} - }; - $.each(unexpected, function(key, val) { - el = $("#draggable2").draggable({ axis: val }); - drag(el, 50, 50); - moved(50, 50, "axis: " + key); - el.draggable("destroy"); - }) -}); - -test("{ cancel: 'span' }", function() { - el = $("#draggable2").draggable(); - drag("#draggable2 span", 50, 50); - moved(50, 50); - - el.draggable("destroy"); - - el = $("#draggable2").draggable({ cancel: 'span' }); - drag("#draggable2 span", 50, 50); - moved(0, 0); -}); - -test("{ cancel: ? }, unexpected", function() { - var unexpected = { - "true": true, - "false": false, - "{}": {}, - "[]": [], - "null": null, - "undefined": undefined, - "function() {return '';}": function() {return '';}, - "function() {return true;}": function() {return true;}, - "function() {return false;}": function() {return false;} - }; - $.each(unexpected, function(key, val) { - el = $("#draggable2").draggable({ cancel: val }); - drag(el, 50, 50); - var expected = [50, 50]; - switch(key) { - case "true": - expected = [0, 0] - break; - } - moved(expected[0], expected[1], "cancel: " + key); - el.draggable("destroy"); - }) -}); - -test("{ containment: 'parent' }, relative", function() { - el = $("#draggable1").draggable({ containment: 'parent' }); - var p = el.parent(), po = p.offset(); - drag(el, -100, -100); - var expected = { - left: po.left + border(p, 'left') + margin(el, 'left'), - top: po.top + border(p, 'top') + margin(el, 'top') - } - compare2(offsetAfter, expected, 'compare offset to parent'); -}); - -test("{ containment: 'parent' }, absolute", function() { - el = $("#draggable2").draggable({ containment: 'parent' }); - var p = el.parent(), po = p.offset(); - drag(el, -100, -100); - var expected = { - left: po.left + border(p, 'left') + margin(el, 'left'), - top: po.top + border(p, 'top') + margin(el, 'top') - } - compare2(offsetAfter, expected, 'compare offset to parent'); -}); - -test("{ cursor: 'move' }", function() { - - function getCursor() { return $("body").css("cursor"); } - - expect(2); - - var expected = "move", actual, before, after; - - el = $("#draggable2").draggable({ - cursor: expected, - start: function(e, ui) { - actual = getCursor(); - } - }); - - before = getCursor(); - drag("#draggable2", -1, -1); - after = getCursor(); - - equals(actual, expected, "start callback: cursor '" + expected + "'"); - equals(after, before, "after drag: cursor restored"); - -}); - -test("{ cursorAt: { left: -5, top: -5 } }", function() { - - expect(4); - - var dx = -3, dy = -3; - var ox = 5, oy = 5; - var cax = -5, cay = -5; - - var actual = null; - $("#draggable2").draggable({ - cursorAt: { left: cax, top: cay }, - drag: function(e, ui) { - actual = ui.absolutePosition; - } - }); - var el = $("#draggable2").data("draggable").element; - - var before = el.offset(); - var pos = { clientX: before.left + ox, clientY: before.top + oy }; - $("#draggable2").simulate("mousedown", pos); - pos = { clientX: pos.clientX + dx, clientY: pos.clientY + dy }; - $(document).simulate("mousemove", pos); - $(document).simulate("mousemove", pos); - $("#draggable2").simulate("mouseup", pos); - var expected = { - left: before.left + ox - cax + dx, - top: before.top + oy - cay + dy - }; - - equals(actual.left, expected.left, "Absolute: -1px left"); - equals(actual.top, expected.top, "Absolute: -1px top"); - - var actual = null; - $("#draggable1").draggable({ - cursorAt: { left: cax, top: cay }, - drag: function(e, ui) { - actual = ui.absolutePosition; - } - }); - var el = $("#draggable2").data("draggable").element; - - var before = el.offset(); - var pos = { clientX: before.left + ox, clientY: before.top + oy }; - $("#draggable2").simulate("mousedown", pos); - pos = { clientX: pos.clientX + dx, clientY: pos.clientY + dy }; - $(document).simulate("mousemove", pos); - $(document).simulate("mousemove", pos); - $("#draggable2").simulate("mouseup", pos); - var expected = { - left: before.left + ox - cax + dx, - top: before.top + oy - cay + dy - }; - - equals(actual.left, expected.left, "Relative: -1px left"); - equals(actual.top, expected.top, "Relative: -1px top"); - -}); - -test("{ distance: 10 }", function() { - - el = $("#draggable2").draggable({ distance: 10 }); - drag(el, -9, -9); - moved(0, 0, 'distance not met'); - - drag(el, -10, -10); - moved(-10, -10, 'distance met'); - - drag(el, 9, 9); - moved(0, 0, 'distance not met'); - -}); - -test("{ grid: [50, 50] }, relative", function() { - el = $("#draggable1").draggable({ grid: [50, 50] }); - drag(el, 24, 24); - moved(0, 0); - drag(el, 26, 25); - moved(50, 50); -}); - -test("{ grid: [50, 50] }, absolute", function() { - el = $("#draggable2").draggable({ grid: [50, 50] }); - drag(el, 24, 24); - moved(0, 0); - drag(el, 26, 25); - moved(50, 50); -}); - -test("{ handle: 'span' }", function() { - el = $("#draggable2").draggable({ handle: 'span' }); - - drag("#draggable2 span", 50, 50); - moved(50, 50, "drag span"); - - drag("#draggable2", 50, 50); - moved(0, 0, "drag element"); -}); - -test("{ helper: 'clone' }, relative", function() { - el = $("#draggable1").draggable({ helper: "clone" }); - drag(el, 50, 50); - moved(0, 0); -}); - -test("{ helper: 'clone' }, absolute", function() { - el = $("#draggable2").draggable({ helper: "clone" }); - drag(el, 50, 50); - moved(0, 0); -}); - -test("{ opacity: 0.5 }", function() { - - expect(1); - - var opacity = null; - el = $("#draggable2").draggable({ - opacity: 0.5, - start: function(e, ui) { - opacity = $(this).css("opacity"); - } - }); - - drag("#draggable2", -1, -1); - - equals(opacity, 0.5, "start callback: opacity is"); - -}); - -test("{ zIndex: 10 }", function() { - - expect(1); - - var expected = 10, actual; - - var zIndex = null; - el = $("#draggable2").draggable({ - zIndex: expected, - start: function(e, ui) { - actual = $(this).css("zIndex"); - } - }); - - drag("#draggable2", -1, -1); - - equals(actual, expected, "start callback: zIndex is"); - -}); - -module("Draggable Callbacks"); - -test("callbacks occurance count", function() { - - expect(3); - - var start = 0, stop = 0, dragc = 0; - el = $("#draggable2").draggable({ - start: function() { start++; }, - drag: function() { dragc++; }, - stop: function() { stop++; } - }); - - drag(el, 10, 10); - - equals(start, 1, "start callback should happen exactly once"); - equals(dragc, 2 + 1, "drag callback should happen exactly once per mousemove + 1"); - equals(stop, 1, "stop callback should happen exactly once"); - -}); - -module("Tickets"); - -test("#2965 cursorAt with margin", function() { - - expect(2); - - var ox = 0, oy = 0; - - var actual, expected; - $("#draggable2").draggable({ - cursorAt: { left: ox, top: oy }, - drag: function(e, ui) { - actual = ui.absolutePosition; - } - }); - var el = $("#draggable2").data("draggable").element; - - $("#draggable2").css('margin', '0px !important'); - - var before = el.offset(); - var pos = { clientX: before.left + ox, clientY: before.top + oy }; - $("#draggable2").simulate("mousedown", pos); - $(document).simulate("mousemove", pos); - $(document).simulate("mousemove", pos); - $("#draggable2").simulate("mouseup", pos); - var expected = actual; - actual = undefined; - - var marg = 13; - - $("#draggable2").css('margin', marg + 'px !important'); - var before = el.offset(); - var pos = { clientX: before.left + ox - marg, clientY: before.top + oy - marg }; - $("#draggable2").simulate("mousedown", pos); - $(document).simulate("mousemove", pos); - $(document).simulate("mousemove", pos); - $("#draggable2").simulate("mouseup", pos); - - equals(actual.left, expected.left, "10px margin. left"); - equals(actual.top, expected.top, "10px margin. top"); - -}); diff --git a/ui/tests/images/click.png b/ui/tests/images/click.png deleted file mode 100644 index 2b32f8d84..000000000 Binary files a/ui/tests/images/click.png and /dev/null differ diff --git a/ui/tests/images/test.jpg b/ui/tests/images/test.jpg deleted file mode 100644 index 7d8ec0996..000000000 Binary files a/ui/tests/images/test.jpg and /dev/null differ diff --git a/ui/tests/jquery.useraction.js b/ui/tests/jquery.useraction.js deleted file mode 100644 index 82ec0cd22..000000000 --- a/ui/tests/jquery.useraction.js +++ /dev/null @@ -1,347 +0,0 @@ -/* Copyright (c) 2007 Eduardo Lundgren (eduardolundgren@gmail.com) - * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) - * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. - * - * Version: 0.1a - * Date: May, 2008 - * Requires jQuery 1.2.x+ - * Docs: http://docs.jquery.com/Plugins/userAction - * Greetings: Richard Worth - */ - -;(function($) { - -$.fn.extend({ - userAction: function(type) { - var args = arguments, opts = {}, a1 = args[1], a2 = args[2]; - - // transfer center offset - if (a1 && a1.length) { - opts.center = [a1[0], a1[1]]; - } - // set x and y - else if (typeof a1 == StringPool.NUMBER) { - opts.x = a1; opts.y = a2; - } - // extend options - else { - $.extend(opts, a1); - } - - return this.each(function() { - new $.userAction(this, type, opts); - }); - } -}); - -$.userAction = function(el, type, options) { - this.type = type; - this.options = $.extend({}, $.userAction.defaults, options || {}); - this.target = $(this.options.target || el)[0]; - - var self = this, o = this.options, c = o.center, center = { x: 0, y: 0 }; - - if (!o.x && !o.y) { - center = this.findCenter( - c && c.length ? c : [0, 0] - ) - } - - // if x and y not set, get the center of the element - o.x = o.x || center.x; o.y = o.y || center.y; - - var EVENT_DEFAULT = { - target: this.target, - view: window, - bubbles: o.bubbles || true, - cancelable: o.cancelable || false, - ctrlKey: o.ctrlKey || false, - altKey: o.altKey || false, - shiftKey: o.shiftKey || false, - metaKey: o.metaKey || false - }; - - // Simulating drag and drop event - if (/^drag$/i.test(type)) { - var self = this, t = this.target, queue = $.data(t, StringPool.DATA_QUEUE), - data = [options.dx || options.x, options.dy || options.y, this]; - - var fire = function() { - self.drag(options.dx || options.x, options.dy || options.y); - }; - - if (/^sync$/i.test(o.speed)) { - fire(); return; - } - - if (!queue) { - $.data(t, StringPool.DATA_QUEUE, [data]); fire(); return; - } - // queuing drags... - if (queue && queue.length) { - queue.push(data); - } - // if drag, stop here. - return; - } - - var isMouse = /^mouse(over|out|down|up|move)|(dbl)?click$/i.test(type), - isKeyboard = /^textevent|key(up|down|press)$/i.test(type), - - EVT = isMouse ? - $.extend({}, EVENT_DEFAULT, { - clientX: o.x, clientY: o.y, - screenX: o.screenX || 0, screenY: o.screenY || 0, - relatedTarget: $(o.relatedTarget)[0] || null, detail: 0, - button: o.button || ($.browser.msie ? 1 : 0), isTrusted: false - }) : - $.extend({}, EVENT_DEFAULT, { - keyCode: o.keyCode || 0, charCode: o.charCode || 0 - }); - - // avoid e.type == undefined before dispatchment - EVT.type = type; - - if (o.before) o.before.apply(this.target, [$.event.fix(EVT), o.x, o.y, this]); - - // check event type for mouse events - if (isMouse) { - // simulating mouse event - EVT = this.mouseEvent(EVT) - } - - // check event type for key events - if (isKeyboard) { - // simulating keuboard event - EVT = this.keyboardEvent(EVT); - } - - if (o.after) o.after.apply(this.target, [$.event.fix(EVT), o.x, o.y, this]); -}; - -$.extend($.userAction.prototype, { - - down: function(target) { - $(target).userAction(StringPool.MOUSEOVER).userAction(StringPool.MOUSEDOWN) - .userAction(StringPool.MOUSEMOVE); - }, - - up: function(target) { - $(target).userAction(StringPool.MOUSEUP).userAction(StringPool.MOUSEOUT); - }, - - move: function(target, x, y, after) { - $(target).userAction(StringPool.MOUSEMOVE, { x: x, y: y, after: after }); - }, - - drag: function(dx, dy) { - // drag helper function, thanks Richard Worth's testmouse api. - var self = this, o = this.options, center = this.findCenter(), - target = $(this.target), lastx = center.x, lasty = center.y, - fake = $(StringPool.FAKE_CURSOR_EXP), - speed = o.speed || StringPool.SLOW, - easing = o.easing || StringPool.SWING; - - var complete = function() { - // fire complete or after cb - if (o.after||o.complete) (o.after||o.complete).apply(self.target, [o, self]); - }; - - // drag synchronously - if (/^sync$/i.test(o.speed)) { - self.down(target); - - var mdx = Math.abs(dx)||0, mdy = Math.abs(dy)||0, range = Math.max(mdx, mdy), - sx = dx/mdx||1, sy = dy/mdy||1; - - for (var dt = 1; dt <= range; dt++) { - var x = center.x + sx*(dt <= mdx ? dt : 0), y = center.y + sy*(dt <= mdy ? dt : 0); - this.move(target, x, y, o.drag); - } - self.up(target); - complete(); - return; - } - - // drag asynchronously - animated - fake = fake.size() ? fake : - $(StringPool.FAKE_CURSOR_DIV) - .css({ position: StringPool.ABSOLUTE }).appendTo(document.body); - - fake - .animate({ left: center.x, top: center.y }, speed, easing, function(){ - self.down(target); - }) - .animate({ left: center.x + (dx||0), top: center.y + (dy||0) }, { - speed: speed, - easing: easing, - step: function(i, anim) { - lastx = anim.prop == StringPool.LEFT ? i : lastx; - lasty = anim.prop == StringPool.TOP ? i : lasty; - self.move(target, lastx, lasty, o.drag); - }, - complete: function() { - - self.up(target); - - // remove fake cursor - $(this).remove(); - - complete(); - - // trigger drag queue - var queue = $.data(self.target, StringPool.DATA_QUEUE); - if (queue) queue.shift(); - - if (queue && queue[0]) { - // trigger drag on correct instance - queue[0][2].drag(queue[0][0], queue[0][1]); - } - else - $.removeData(self.target, StringPool.DATA_QUEUE); - } - }); - }, - - mouseEvent: function(EVT) { - var evt, type = this.type, o = this.options; - - //check for DOM-compliant browsers - if ($.isFunction(document.createEvent)) { - evt = document.createEvent(StringPool.MOUSE_EVENTS); - - //Safari 2.x doesn't implement initMouseEvent() - if ($.isFunction(evt.initMouseEvent)) { - evt.initMouseEvent(type, - EVT.bubbles, EVT.cancelable, EVT.view, EVT.detail, - EVT.screenX, EVT.screenY, EVT.clientX, EVT.clientY, - EVT.ctrlKey, EVT.altKey, EVT.shiftKey, EVT.metaKey, - EVT.button, EVT.relatedTarget); - } else { - // Safari - evt = document.createEvent(StringPool.UI_EVENTS); - customEvent.initEvent(type, EVT.bubbles, EVT.cancelable); - $.extend(evt, EVT); - } - - // check to see if relatedTarget has been assigned - if (EVT.relatedTarget && !evt.relatedTarget){ - if (type == StringPool.MOUSEOUT) { - evt.toElement = EVT.relatedTarget; - } else if (type == StringPool.MOUSEOVER) { - evt.fromElement = EVT.relatedTarget; - } - } - // fire the event - this.target.dispatchEvent(evt); - - } else if (document.createEventObject) { - evt = document.createEventObject(); - - // assign available properties - $.extend(evt, EVT) - - // IE won't allow assignment to toElement or fromElement - evt.relatedTarget = EVT.relatedTarget; - - // fix for 2 pixels bug from mousecords - evt.pageX = o.x; evt.pageY = o.y; - - // fire the event - this.target.fireEvent(StringPool.ON + type, evt); - } - - return evt; - }, - - keyboardEvent: function(EVT) { - var evt, type = this.type, o = this.options; - - // check for DOM-compliant browsers first - if ($.isFunction(document.createEvent)) { - - try { - // try to create key event - evt = document.createEvent(StringPool.KEY_EVENTS); - - evt.initKeyEvent(type, - EVT.bubbles, EVT.cancelable, EVT.view, EVT.ctrlKey, - EVT.altKey, EVT.shiftKey, EVT.metaKey, EVT.keyCode, EVT.charCode); - - } catch (err) { - // we need another try-catch for Safari 2.x - try { - // generic event for opera and webkit nightlies, will fail in Safari 2.x - evt = document.createEvent(StringPool.EVENTS); - } catch (ierr){ - // Safari 2.x - create a UIEvent - evt = document.createEvent(StringPool.UI_EVENTS); - } finally { - evt.initEvent(type, EVT.bubbles, EVT.cancelable); - - // initializing - $.each(EVT, function(k, v) { - // using try-catch for avoiding Opera NO_MODIFICATION_ALLOWED_ERR - try { evt[k] = v; } catch(e) { } - }); - } - } - - // fire the event - this.target.dispatchEvent(evt); - - } else if (document.createEventObject) { - // create an IE event object - evt = document.createEventObject(); - - // assign available properties - $.extend(evt, EVT); - - // IE doesn't support charCode explicitly - evt.keyCode = (EVT.charCode > 0) ? EVT.charCode : EVT.keyCode; - - // fire the event - this.target.fireEvent(StringPool.ON + type, evt); - } - - return evt; - }, - - findCenter: function(offset) { - var el = $(this.target), o = el.offset(); - return { - x: o.left + (((offset||[0, 0])[0]) || 0) + el.outerWidth() / 2, - y: o.top + (((offset||[0, 0])[1]) || 0) + el.outerHeight() / 2 - }; - } -}); - -$.extend($.userAction, { - defaults: { - center: true - } -}); - -var StringPool = { - ON: 'on', - NUMBER: 'number', - MOUSEOVER: 'mouseover', - MOUSEOUT: 'mouseout', - MOUSEDOWN: 'mousedown', - MOUSEUP: 'mouseup', - MOUSEMOVE: 'mousemove', - MOUSE_EVENTS: 'MouseEvents', - UI_EVENTS: 'UIEvents', - KEY_EVENTS: 'KeyEvents', - EVENTS: 'Events', - FAKE_CURSOR_EXP: 'div.ui-fake-cursor', - FAKE_CURSOR_DIV: '
          ', - ABSOLUTE: 'absolute', - DATA_QUEUE: 'ua-drag-queue', - TOP: 'top', - LEFT: 'left', - SLOW: 'slow', - SWING: 'swing' -}; - -})(jQuery); \ No newline at end of file diff --git a/ui/tests/resizable.html b/ui/tests/resizable.html deleted file mode 100644 index 685ec88c9..000000000 --- a/ui/tests/resizable.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - -Resizable Test Page - - - - - - - - - - - - - - - - -

          jQuery Test Suite

          - -

          - -
          -
          I'm a resizable.
          - -
          - -
            -
            - - diff --git a/ui/tests/resizable.js b/ui/tests/resizable.js deleted file mode 100644 index 48582e016..000000000 --- a/ui/tests/resizable.js +++ /dev/null @@ -1,400 +0,0 @@ -/* - * resizable tests - */ - -var drag = function(el, dx, dy, complete) { - - // speed = sync -> Drag syncrhonously. - // speed = fast|slow -> Drag asyncrhonously - animated. - - return $(el).simulate("drag", { - dx: dx||0, dy: dy||0, speed: 'sync', complete: complete - }); -}; - -module("Simple Resize"); - -test("ui-resizable-e resize x", function() { - - var handle = '.ui-resizable-e', target = $('#resizable1').resizable({ handles: 'all' }); - - expect(2); - - drag(handle, 50); - - equals( target.width(), 150, "compare width"); - - drag(handle, -50); - - equals( target.width(), 100, "compare width" ); - -}); - -test("ui-resizable-w resize x", function() { - - var handle = '.ui-resizable-w', target = $('#resizable1').resizable({ handles: 'all' }); - - expect(2); - - drag(handle, -50); - - equals( target.width(), 150, "compare width" ); - - drag(handle, 50); - - equals( target.width(), 100, "compare width" ); - -}); - -test("ui-resizable-n resize y", function() { - - var handle = '.ui-resizable-n', target = $('#resizable1').resizable({ handles: 'all' }); - - expect(2); - - drag(handle, 0, -50); - - equals( target.height(), 150, "compare height" ); - - drag(handle, 0, 50); - - equals( target.height(), 100, "compare height" ); - -}); - -test("ui-resizable-s resize y", function() { - - var handle = '.ui-resizable-s', target = $('#resizable1').resizable({ handles: 'all' }); - - expect(2); - - drag(handle, 0, 50); - - equals( target.height(), 150, "compare height" ); - - drag(handle, 0, -50); - - equals( target.height(), 100, "compare height" ); - -}); - -test("ui-resizable-se resize xy", function() { - - var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ handles: 'all' }); - - expect(4); - - drag(handle, 50, 50); - - equals( target.width(), 150, "compare width" ); - equals( target.height(), 150, "compare height" ); - - drag(handle, -50, -50); - - equals( target.width(), 100, "compare width" ); - equals( target.height(), 100, "compare height" ); - -}); - -test("ui-resizable-sw resize xy", function() { - - var handle = '.ui-resizable-sw', target = $('#resizable1').resizable({ handles: 'all' }); - - expect(4); - - drag(handle, -50, -50); - - equals( target.width(), 150, "compare width" ); - equals( target.height(), 50, "compare height" ); - - drag(handle, 50, 50); - - equals( target.width(), 100, "compare width" ); - equals( target.height(), 100, "compare height" ); - -}); - -test("ui-resizable-ne resize xy", function() { - - var handle = '.ui-resizable-ne', target = $('#resizable1').css({ overflow: 'hidden' }).resizable({ handles: 'all' }); - - expect(4); - - drag(handle, -50, -50); - - equals( target.width(), 50, "compare width" ); - equals( target.height(), 150, "compare height" ); - - drag(handle, 50, 50); - - equals( target.width(), 100, "compare width" ); - equals( target.height(), 100, "compare height" ); - -}); - -test("ui-resizable-nw resize xy", function() { - - var handle = '.ui-resizable-nw', target = $('#resizable1').resizable({ handles: 'all' }); - - expect(4); - - drag(handle, -50, -50); - - equals( target.width(), 150, "compare width" ); - equals( target.height(), 150, "compare height" ); - - drag(handle, 50, 50); - - equals( target.width(), 100, "compare width" ); - equals( target.height(), 100, "compare height" ); - -}); - -/** - * Conditional Resize - * min/max Height/Width - */ - -module("Dimensions limit"); - -test("ui-resizable-se { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() { - - var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }); - - expect(4); - - drag(handle, -50, -50); - - equals( target.width(), 60, "compare minWidth" ); - equals( target.height(), 60, "compare minHeight" ); - - drag(handle, 70, 70); - - equals( target.width(), 100, "compare maxWidth" ); - equals( target.height(), 100, "compare maxHeight" ); - -}); - -test("ui-resizable-sw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() { - - var handle = '.ui-resizable-sw', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }); - - expect(4); - - drag(handle, 50, -50); - - equals( target.width(), 60, "compare minWidth" ); - equals( target.height(), 60, "compare minHeight" ); - - drag(handle, -70, 70); - - equals( target.width(), 100, "compare maxWidth" ); - equals( target.height(), 100, "compare maxHeight" ); - -}); - -test("ui-resizable-ne { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() { - - var handle = '.ui-resizable-ne', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }); - - expect(4); - - drag(handle, -50, 50); - - equals( target.width(), 60, "compare minWidth" ); - equals( target.height(), 60, "compare minHeight" ); - - drag(handle, 70, -70); - - equals( target.width(), 100, "compare maxWidth" ); - equals( target.height(), 100, "compare maxHeight" ); - -}); - -test("ui-resizable-nw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() { - - var handle = '.ui-resizable-nw', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }); - - expect(4); - - drag(handle, 70, 70); - - equals( target.width(), 60, "compare minWidth" ); - equals( target.height(), 60, "compare minHeight" ); - - drag(handle, -70, -70); - - equals( target.width(), 100, "compare maxWidth" ); - equals( target.height(), 100, "compare maxHeight" ); - -}); - -/** - * Respecting ratio resize with dimensions limit - */ - -module("Respecting ratio resize with dimensions limits"); - -test("ui-resizable-e { aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }", function() { - - var handle = '.ui-resizable-e', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); - - expect(4); - - drag(handle, 80); - - equals( target.width(), 130, "compare maxWidth"); - equals( target.height(), 130, "compare maxHeight"); - - drag(handle, -130); - - equals( target.width(), 70, "compare minWidth"); - equals( target.height(), 70, "compare minHeight"); - -}); - -test("ui-resizable-w { aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }", function() { - - var handle = '.ui-resizable-w', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); - - expect(4); - - drag(handle, -80); - - equals( target.width(), 130, "compare maxWidth"); - equals( target.height(), 130, "compare maxHeight"); - - drag(handle, 130); - - equals( target.width(), 70, "compare minWidth"); - equals( target.height(), 70, "compare minHeight"); - -}); - -test("ui-resizable-n { aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }", function() { - - var handle = '.ui-resizable-n', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); - - expect(4); - - drag(handle, 0, -80); - - equals( target.width(), 130, "compare maxWidth"); - equals( target.height(), 130, "compare maxHeight"); - - drag(handle, 0, 80); - - equals( target.width(), 70, "compare minWidth"); - equals( target.height(), 70, "compare minHeight"); - -}); - -test("ui-resizable-s { aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }", function() { - - var handle = '.ui-resizable-s', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); - - expect(4); - - drag(handle, 0, 80); - - equals( target.width(), 130, "compare maxWidth"); - equals( target.height(), 130, "compare maxHeight"); - - drag(handle, 0, -80); - - equals( target.width(), 70, "compare minWidth"); - equals( target.height(), 70, "compare minHeight"); - -}); - -test("ui-resizable-se { aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }", function() { - - var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); - - expect(4); - - drag(handle, 80, 80); - - equals( target.width(), 130, "compare maxWidth"); - equals( target.height(), 130, "compare maxHeight"); - - drag(handle, -80, -80); - - equals( target.width(), 70, "compare minWidth"); - equals( target.height(), 70, "compare minHeight"); - -}); - -test("ui-resizable-sw { aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }", function() { - - var handle = '.ui-resizable-sw', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); - - expect(4); - - drag(handle, -80, 80); - - equals( target.width(), 130, "compare maxWidth"); - equals( target.height(), 130, "compare maxHeight"); - - drag(handle, 80, -80); - - equals( target.width(), 70, "compare minWidth"); - equals( target.height(), 70, "compare minHeight"); - -}); - -test("ui-resizable-ne { aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }", function() { - - var handle = '.ui-resizable-ne', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); - - expect(4); - - drag(handle, 80, -80); - - equals( target.width(), 130, "compare maxWidth"); - equals( target.height(), 130, "compare maxHeight"); - - drag(handle, -80, 80); - - equals( target.width(), 70, "compare minWidth"); - equals( target.height(), 70, "compare minHeight"); - -}); - -module("Options"); - -test("ui-resizable-se { handles: 'all', grid: [0, 20] }", function() { - - var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ handles: 'all', grid: [0, 20] }); - - expect(4); - - drag(handle, 3, 9); - - equals( target.width(), 103, "compare width"); - equals( target.height(), 100, "compare height"); - - drag(handle, 15, 11); - - equals( target.width(), 118, "compare width"); - equals( target.height(), 120, "compare height"); - -}); - -test("ui-resizable-se { handles: 'all', grid: [0, 20] } wrapped", function() { - - var handle = '.ui-resizable-se', target = $('#resizable2').resizable({ handles: 'all', grid: [0, 20] }); - - expect(4); - - drag(handle, 3, 9); - - equals( target.width(), 103, "compare width"); - equals( target.height(), 100, "compare height"); - - drag(handle, 15, 11); - - equals( target.width(), 118, "compare width"); - equals( target.height(), 120, "compare height"); - -}); diff --git a/ui/tests/simulate/jquery.simulate.js b/ui/tests/simulate/jquery.simulate.js deleted file mode 100644 index f5168bf3b..000000000 --- a/ui/tests/simulate/jquery.simulate.js +++ /dev/null @@ -1,141 +0,0 @@ -/* - * jquery.simulate - simulate browser mouse and keyboard events - * - * Copyright (c) 2007 Eduardo Lundgren (eduardolundgren@gmail.com) - * and Richard D. Worth (rdworth@gmail.com) - * - * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) - * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. - * - */ - -;(function($) { - -$.fn.extend({ - simulate: function(type, options) { - return this.each(function() { - var opt = $.extend({}, $.simulate.defaults, options || {}); - new $.simulate(this, type, opt); - }); - } -}); - -$.simulate = function(el, type, options) { - this.target = el; - this.options = options; - - if (/^drag$/.test(type)) { - this[type].apply(this, [this.target, options]); - } else { - this.simulateEvent(el, type, options); - } -} - -$.extend($.simulate.prototype, { - simulateEvent: function(el, type, options) { - var evt = this.createEvent(type, options); - this.dispatchEvent(el, type, evt, options); - return evt; - }, - createEvent: function(type, options) { - if (/^mouse(over|out|down|up|move)|(dbl)?click$/.test(type)) { - return this.mouseEvent(type, options); - } else if (/^key(up|down|press)$/.test(type)) { - return this.keyboardEvent(type, options); - } - }, - mouseEvent: function(type, options) { - var evt; - var e = $.extend({ - bubbles: true, cancelable: (type != "mousemove"), view: window, detail: 0, - screenX: 0, screenY: 0, clientX: 0, clientY: 0, - ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, - button: 0, relatedTarget: undefined - }, options); - - var relatedTarget = $(e.relatedTarget)[0]; - - if ($.isFunction(document.createEvent)) { - evt = document.createEvent("MouseEvents"); - evt.initMouseEvent(type, e.bubbles, e.cancelable, e.view, e.detail, - e.screenX, e.screenY, e.clientX, e.clientY, - e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, - e.button, e.relatedTarget || document.body.parentNode); - } else if (document.createEventObject) { - evt = document.createEventObject(); - $.extend(evt, e); - evt.button = { 0:1, 1:4, 2:2 }[evt.button] || evt.button; - } - return evt; - }, - keyboardEvent: function(type, options) { - var evt; - - var e = $.extend({ bubbles: true, cancelable: true, view: window, - ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, - keyCode: 0, charCode: 0 - }, options); - - if ($.isFunction(document.createEvent)) { - try { - evt = document.createEvent("KeyEvents"); - evt.initKeyEvent(type, e.bubbles, e.cancelable, e.view, - e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, - e.keyCode, e.charCode); - } catch(err) { - evt = document.createEvent("Events"); - evt.initEvent(type, e.bubbles, e.cancelable); - $.extend(evt, { view: e.view, - ctrlKey: e.ctrlKey, altKey: e.altKey, shiftKey: e.shiftKey, metaKey: e.metaKey, - keyCode: e.keyCode, charCode: e.charCode - }); - } - } else if (document.createEventObject) { - evt = document.createEventObject(); - $.extend(evt, e); - } - if ($.browser.msie || $.browser.opera) { - evt.keyCode = (e.charCode > 0) ? e.charCode : e.keyCode; - evt.charCode = undefined; - } - return evt; - }, - - dispatchEvent: function(el, type, evt) { - if (el.dispatchEvent) { - el.dispatchEvent(evt); - } else if (el.fireEvent) { - el.fireEvent('on' + type, evt); - } - return evt; - }, - - drag: function(el) { - var self = this, center = this.findCenter(this.target), - options = this.options, x = Math.floor(center.x), y = Math.floor(center.y), - dx = options.dx || 0, dy = options.dy || 0, target = this.target; - var coord = { clientX: x, clientY: y }; - this.simulateEvent(target, "mouseover"); - this.simulateEvent(target, "mousedown", coord); - coord = { clientX: x + dx, clientY: y + dy }; - this.simulateEvent(document, "mousemove", coord); - this.simulateEvent(document, "mousemove", coord); - this.simulateEvent(target, "mouseup", coord); - this.simulateEvent(target, "mouseout"); - }, - findCenter: function(el) { - var el = $(this.target), o = el.offset(); - return { - x: o.left + el.outerWidth() / 2, - y: o.top + el.outerHeight() / 2 - }; - } -}); - -$.extend($.simulate, { - defaults: { - speed: 'sync' - } -}); - -})(jQuery); diff --git a/ui/tests/slider.html b/ui/tests/slider.html deleted file mode 100644 index 090cfd2bf..000000000 --- a/ui/tests/slider.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - -Slider Test Page - - - - - - - - - - - - -

            jQuery Test Suite

            - -

            - -
            -
            -
            -
            -
            -
            - -
              - - - diff --git a/ui/tests/slider.js b/ui/tests/slider.js deleted file mode 100644 index 7b6d095a5..000000000 --- a/ui/tests/slider.js +++ /dev/null @@ -1,110 +0,0 @@ - -var keyCodes = { - leftArrow: 37, - upArrow: 38, - rightArrow: 39, - downArrow: 40 -}; - -$.each(keyCodes, function(key, val) { - $.fn[key] = function() { - return this.simulate("keydown", { keyCode: val }); - } -}); - -function assertChange(stepping, start, result, action) { - return function() { - expect(1); - var slider = $("#slider3").slider({ - stepping: stepping, - startValue: start, - min: 0, - max: 1000, - change: function(e, ui) { - equals(ui.value, result, "changed to " + ui.value); - } - }); - action.apply(slider); - } -} - -module("slider: single handle") - -test("change one step via keydown", assertChange(1, undefined, 1, function() { - this.find("a").rightArrow(); -})) -test("change - 10 steps via keydown", assertChange(10, 20, 10, function() { - this.find("a").leftArrow(); -})) -test("change +10 steps via keydown", assertChange(10, 20, 30, function() { - this.find("a").rightArrow(); -})) - -test("moveTo, absolute value", assertChange(1, 1, 10, function() { - this.slider("moveTo", 10); -})) - -test("moveTo, absolute value as string", assertChange(1, 1, 10, function() { - this.slider("moveTo", "10"); -})) - -test("moveTo, absolute value, below min", assertChange(1, 1, 0, function() { - this.slider("moveTo", -10); -})) - -test("moveTo, relative positive value", assertChange(1, 1, 11, function() { - this.slider("moveTo", "+=10"); -})) - -test("moveTo, relative positive value, above max", assertChange(1, 10, 1000, function() { - this.slider("moveTo", "+=2000"); -})) - -test("moveTo, relative negative value", assertChange(1, 20, 10, function() { - this.slider("moveTo", "-=10"); -})) - -test("options update min/max", function() { - expect(2); - var slider = $("#slider3").slider({ - stepping: 1, - startValue: 1 - }); - slider.slider("moveTo", "-=10"); - equals(slider.slider("value"), 0); - slider.data("min.slider", -10); - slider.slider("moveTo", "-=20"); - equals(slider.slider("value"), -10); -}) - -module("slider: setup and teardown"); - -test("destroy and recreate", function() { - expect(3) - var slider = $("#slider3").slider(); - slider.slider("moveTo", "+=20"); - equals(slider.slider("value"), 20); - slider.slider("destroy"); - - slider.slider("moveTo", "+=30"); - ok(true, "nothing happens after slider is destroyed"); - - slider.slider().slider("moveTo", "30"); - - equals(Math.round(slider.slider("value")), 30); -}) - -test("handle creation", function() { - var slider = $("#slider1"); - equals(slider.children().size(), 0); - slider.slider({ - handles: [ - { start: 0 }, - { start: 10 } - ] - }); - equals(slider.children().size(), 2); - var instance = $.data(slider[0], "slider") - equals(instance.handle.length, 2); - ok(instance.handle.jquery, "handle must be a jquery object") -}) \ No newline at end of file diff --git a/ui/tests/ui.testmouse.js b/ui/tests/ui.testmouse.js deleted file mode 100644 index 5c4d41204..000000000 --- a/ui/tests/ui.testmouse.js +++ /dev/null @@ -1,142 +0,0 @@ -/* - * jQuery UI testMouse - * - * Copyright (c) 2008 Richard D. Worth (rdworth.org) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * Revision: $Id: $ - */ -;(function($) { - - var mouseX = 0; - var mouseY = 0; - - $(function() { - $(document).mousemove(function(e) { - if (e.isTrusted !== false) { - mouseX = e.pageX; - mouseY = e.pageY; - } - }); - }); - - $.widget("ui.testMouse", { - trackMouse: function() {}, - init: function() { - }, - destroy: function() { - }, - center: function(offset) { - var o = this.element.offset(); - return { - x: (o.left + (offset || [0, 0])[0] || 0) + this.element.width() / 2, - y: (o.top + (offset || [0, 0])[1] || 0) + this.element.height() / 2 - }; - }, - drag: function(dx, dy) { - var self = this; - - var center = this.center(); - this.left = center.x; - this.top = center.y; - - var OS = (/(win|mac|linux)/i.exec(navigator.platform) || ['other'])[0].toLowerCase(); - - var defaultUrl = ['cursors', OS == 'other' ? 'win' : OS, 'default.png'].join('/'); - var cursorUrl = function() { - return ['cursors', OS == 'other' ? 'win' : OS, self.element.css('cursor') + '.png'].join('/'); - } - var noneUrl = ['cursors', OS == 'other' ? 'win' : OS, 'none' + ($.browser.safari ? '.png' : '.cur')].join('/'); - - var fakemouse = $(''); - var realmouse = $(''); - if ($.browser.msie && $.browser.version == 6) { - fakemouse = $('
              '); - realmouse = $('
              '); - } - var mousescreen = $('
              '); - - var updateCursor = function() { - if ($.browser.msie && $.browser.version == 6) { - fakemouse.css('filter', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + cursorUrl() + '\', sizingMethod=\'scale\''); - } else { - fakemouse.attr('src', cursorUrl()); - } - } - var resetCursor = function() { - if ($.browser.msie && $.browser.version == 6) { - fakemouse.css('filter', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + defaultUrl + '\', sizingMethod=\'scale\''); - } else { - fakemouse.attr('src', defaultUrl); - } - } - - var testStart = function() { - self.element.bind("mouseover", updateCursor).bind("mouseout", resetCursor); - fakemouse.appendTo('body').css({ position: 'absolute', left: mouseX, top: mouseY, zIndex: 5000 }); - realmouse.appendTo('body').css({ position: 'absolute', left: mouseX, top: mouseY, zIndex: 5000, opacity: 0.1 }); - mousescreen.appendTo('body').css({ width: '100%', height: '100%', position: 'absolute', top: 0, left: 0, zIndex: 5000 }) - .mousemove(function(e) { realmouse.css({ left: e.pageX, top: e.pageY }); return false; }) - .mousedown(function() { return false; }) - .mouseup(function() { return false; }); - mousescreen.css('cursor', 'url(' + noneUrl + '), crosshair'); - ($.browser.opera && mousescreen.css('cursor', 'crosshair')); - } - var testStop = function() { - self.element.unbind("mouseover", updateCursor).unbind("mouseout", resetCursor); - mousescreen.remove(); - mouseX = realmouse.css("left"); - mouseY = realmouse.css("top"); - realmouse.remove(); - fakemouse.remove(); - self.options.complete.apply(); - } - - testStart(); - - this.lastX = null; - - var before = function() { - self.element.triggerHandler('mouseover'); - self.element.simulate("mousedown", { clientX: self.left, clientY: self.top }); - self.element.simulate("mousemove", { clientX: self.left, clientY: self.top }); - } - - var during = function(xory) { - if (!self.lastX) { - self.lastX = xory; - } else { - var x = self.lastX, y = xory; - self.element.simulate("mousemove", { clientX: x, clientY: y }); - self.lastX = null; - } - } - - var after = function() { - self.element.triggerHandler('mouseout'); - self.element.simulate("mouseup", { clientX: 0, clientY: 0 }); - testStop(); - } - - fakemouse - .animate({ left: this.left, top: this.top }, this.options.speed, before) - .animate({ left: this.left + dx, top: this.top + dy }, { - speed: this.options.speed, - easing: "swing", - step: during - }) - .animate({ left: this.left + dx, top: this.top + dy }, { - speed: this.options.speed, - easing: "swing", - complete: after - }); - - } - }); - - $.ui.testMouse.defaults = { - speed: "slow" - } - -})(jQuery); diff --git a/ui/themes/flora/flora.accordion.css b/ui/themes/flora/flora.accordion.css deleted file mode 100644 index 3f23a806e..000000000 --- a/ui/themes/flora/flora.accordion.css +++ /dev/null @@ -1,39 +0,0 @@ -.ui-accordion { margin: 0; padding: 0; list-style-type: none; } -.ui-accordion li { margin: 0; margin-bottom: 2px; padding: 0; } -.ui-accordion li .ui-accordion-header { - display: block; - padding-left: 5px; - margin-right: 3px; - height: 28px; - background-image: url(i/accordion-middle.png); - color: #000; - text-decoration: none; - line-height: 28px; - position: relative; - left: 3px; -} -.ui-accordion li .ui-accordion-right { - display: block; - background-image: url(i/accordion-right.png); - position: absolute; - top: 0px; - right: -3px; - height: 28px; - width: 3px; -} -.ui-accordion li .ui-accordion-left { - display: block; - background-image: url(i/accordion-left.png); - background-repeat: no-repeat; - position: absolute; - height: 28px; - width: 3px; -} - -.ui-accordion li:hover .ui-accordion-left { background-image: url(i/accordion-left-over.png); } -.ui-accordion li:hover .ui-accordion-header { background-image: url(i/accordion-middle-over.png); } -.ui-accordion li:hover .ui-accordion-right { background-image: url(i/accordion-right-over.png); } - -.ui-accordion li.selected .ui-accordion-left { background-image: url(i/accordion-left-act.png); } -.ui-accordion li.selected .ui-accordion-header { background-image: url(i/accordion-middle-act.png); } -.ui-accordion li.selected .ui-accordion-right { background-image: url(i/accordion-right-act.png); } diff --git a/ui/themes/flora/flora.all.css b/ui/themes/flora/flora.all.css deleted file mode 100644 index 5a63cf190..000000000 --- a/ui/themes/flora/flora.all.css +++ /dev/null @@ -1,7 +0,0 @@ -@import "flora.css"; -@import "flora.accordion.css"; -@import "flora.datepicker.css"; -@import "flora.dialog.css"; -@import "flora.resizable.css"; -@import "flora.slider.css"; -@import "flora.tabs.css"; diff --git a/ui/themes/flora/flora.css b/ui/themes/flora/flora.css deleted file mode 100644 index f67bb3f8c..000000000 --- a/ui/themes/flora/flora.css +++ /dev/null @@ -1,2 +0,0 @@ -.ui-wrapper { border: 1px solid #50A029; } -.ui-wrapper input, .ui-wrapper textarea { border: 0; } \ No newline at end of file diff --git a/ui/themes/flora/flora.datepicker.css b/ui/themes/flora/flora.datepicker.css deleted file mode 100644 index 79575a55a..000000000 --- a/ui/themes/flora/flora.datepicker.css +++ /dev/null @@ -1,179 +0,0 @@ -/* Main Flora Style Sheet for jQuery UI ui-datepicker */ -#ui-datepicker-div, .ui-datepicker-inline { - font-family: Arial,Helvetica,sans-serif; - font-size: 14px; - padding: 0; - margin: 0; - background: #DDD; - width: 185px; -} -#ui-datepicker-div { - display: none; - border: 1px solid #FF9900; - z-index: 10; -} -.ui-datepicker-inline { - float: left; - display: block; - border: 0; -} -.ui-datepicker-dialog { - padding: 5px !important; - border: 4px ridge #DDD !important; -} -button.ui-datepicker-trigger { - width: 25px; -} -img.ui-datepicker-trigger { - margin: 2px; - vertical-align: middle; -} -.ui-datepicker-prompt { - float: left; - padding: 2px; - background: #DDD; - color: #000; -} -*html .ui-datepicker-prompt { - width: 185px; -} -.ui-datepicker-control, .ui-datepicker-links, .ui-datepicker-header, .ui-datepicker { - clear: both; - float: left; - width: 100%; - color: #FFF; -} -.ui-datepicker-control { - background: #FF9900; - padding: 2px 0px; -} -.ui-datepicker-links { - background: #E0F4D7; - padding: 2px 0px; -} -.ui-datepicker-control, .ui-datepicker-links { - font-weight: bold; - font-size: 80%; - letter-spacing: 1px; -} -.ui-datepicker-links label { - padding: 2px 5px; - color: #888; -} -.ui-datepicker-clear, .ui-datepicker-prev { - float: left; - width: 34%; -} -.ui-datepicker-current { - float: left; - width: 30%; - text-align: center; -} -.ui-datepicker-close, .ui-datepicker-next { - float: right; - width: 34%; - text-align: right; -} -.ui-datepicker-header { - padding: 1px 0 3px; - background: #83C948; - text-align: center; - font-weight: bold; - height: 1.3em; -} -.ui-datepicker-header select { - background: #83C948; - color: #000; - border: 0px; - font-weight: bold; -} -.ui-datepicker { - background: #CCC; - text-align: center; - font-size: 100%; -} -.ui-datepicker a { - display: block; - width: 100%; -} -.ui-datepicker .ui-datepicker-title-row { - background: #B1DB87; - color: #000; -} -.ui-datepicker .ui-datepicker-days-row { - background: #FFF; - color: #666; -} -.ui-datepicker-week-col { - background: #B1DB87; - color: #000; -} -.ui-datepicker .ui-datepicker-days-cell { - color: #000; - border: 1px solid #DDD; -} -#ui-datepicker .ui-datepicker-days-cell a { - display: block; -} -.ui-datepicker .ui-datepicker-week-end-cell { - background: #E0F4D7; -} -.ui-datepicker .ui-datepicker-days-cell-over { - background: #FFF; - border: 1px solid #777; -} -.ui-datepicker .ui-datepicker-unselectable { - color: #888; -} -.ui-datepicker-today { - background: #B1DB87 !important; -} -.ui-datepicker-current-day { - background: #83C948 !important; -} -#ui-datepicker-div a, .ui-datepicker-inline a { - cursor: pointer; - margin: 0; - padding: 0; - background: none; - color: #000; -} -.ui-datepicker-inline .ui-datepicker-links a { - padding: 0 5px !important; -} -.ui-datepicker-control a, .ui-datepicker-links a { - padding: 2px 5px !important; - color: #000 !important; -} -.ui-datepicker-title-row a { - color: #000 !important; -} -.ui-datepicker-control a:hover { - background: #FDD !important; - color: #333 !important; -} -.ui-datepicker-links a:hover, .ui-datepicker-title-row a:hover { - background: #FFF !important; - color: #333 !important; -} -.ui-datepicker-multi .ui-datepicker { - border: 1px solid #83C948; -} -.ui-datepicker-one-month { - float: left; - width: 185px; -} -.ui-datepicker-new-row { - clear: left; -} -.ui-datepicker-cover { - display: none; - display/**/: block; - position: absolute; - z-index: -1; - filter: mask(); - top: -4px; - left: -4px; - width: 193px; - height: 200px; -} diff --git a/ui/themes/flora/flora.dialog.css b/ui/themes/flora/flora.dialog.css deleted file mode 100644 index 10d1b63b6..000000000 --- a/ui/themes/flora/flora.dialog.css +++ /dev/null @@ -1,95 +0,0 @@ -/* This file skins dialog */ - -.flora .ui-dialog, -.flora.ui-dialog { - background-color: #e6f7d4; -} - -.flora .ui-dialog .ui-dialog-titlebar, -.flora.ui-dialog .ui-dialog-titlebar { - border-bottom: 1px solid #d8d2aa; - background: #ff9900 url(i/dialog-title.gif) repeat-x; - padding: 0px; - height: 28px; - _height: 29px; -} - -.flora .ui-dialog.ui-draggable .ui-dialog-titlebar, -.flora.ui-dialog.ui-draggable .ui-dialog-titlebar { - cursor: move; -} - -.flora .ui-dialog .ui-dialog-titlebar-close, -.flora.ui-dialog .ui-dialog-titlebar-close { - width: 16px; - height: 16px; - background: url(i/dialog-titlebar-close.png) no-repeat; - position:absolute; - top: 6px; - right: 7px; - cursor: default; -} - -.flora .ui-dialog .ui-dialog-titlebar-close span, -.flora.ui-dialog .ui-dialog-titlebar-close span { - display: none; -} - -.flora .ui-dialog .ui-dialog-titlebar-close-hover, -.flora.ui-dialog .ui-dialog-titlebar-close-hover { - background: url(i/dialog-titlebar-close-hover.png) no-repeat; -} - -.flora .ui-dialog .ui-dialog-title, -.flora.ui-dialog .ui-dialog-title { - margin-left: 5px; - color: white; - font-weight: bold; - position: relative; - top: 7px; - left: 4px; -} - -.flora .ui-dialog .ui-dialog-content, -.flora.ui-dialog .ui-dialog-content { - margin: 1.2em; -} - -.flora .ui-dialog .ui-dialog-buttonpane, -.flora.ui-dialog .ui-dialog-buttonpane { - position: absolute; - bottom: 8px; - right: 12px; - width: 100%; - text-align: right; -} - -.flora .ui-dialog .ui-dialog-buttonpane button, -.flora.ui-dialog .ui-dialog-buttonpane button { - margin: 6px; -} - -/* Dialog handle styles */ -.flora .ui-dialog .ui-resizable-n, -.flora.ui-dialog .ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: transparent url(i/dialog-n.gif) repeat scroll center top; } - -.flora .ui-dialog .ui-resizable-s, -.flora.ui-dialog .ui-resizable-s { cursor: s-resize; height: 8px; width: 100%; bottom: 0px; left: 0px; background: transparent url(i/dialog-s.gif) repeat scroll center top; } - -.flora .ui-dialog .ui-resizable-e, -.flora.ui-dialog .ui-resizable-e { cursor: e-resize; width: 7px; right: 0px; top: 0px; height: 100%; background: transparent url(i/dialog-e.gif) repeat scroll right center; } - -.flora .ui-dialog .ui-resizable-w, -.flora.ui-dialog .ui-resizable-w { cursor: w-resize; width: 7px; left: 0px; top: 0px; height: 100%; background: transparent url(i/dialog-w.gif) repeat scroll right center; } - -.flora .ui-dialog .ui-resizable-se, -.flora.ui-dialog .ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: transparent url(i/dialog-se.gif); } - -.flora .ui-dialog .ui-resizable-sw, -.flora.ui-dialog .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: transparent url(i/dialog-sw.gif); } - -.flora .ui-dialog .ui-resizable-nw, -.flora.ui-dialog .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 29px; left: 0px; top: 0px; background: transparent url(i/dialog-nw.gif); } - -.flora .ui-dialog .ui-resizable-ne, -.flora.ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: transparent url(i/dialog-ne.gif); } diff --git a/ui/themes/flora/flora.resizable.css b/ui/themes/flora/flora.resizable.css deleted file mode 100644 index 9c9a5433d..000000000 --- a/ui/themes/flora/flora.resizable.css +++ /dev/null @@ -1,20 +0,0 @@ -/* This file skins resizables */ - -.ui-resizable { position: relative; } - -/* Global handle styles */ -.ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; } -.ui-resizable .ui-resizable-handle { display: block; } -body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ -body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ - -.ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: transparent url(i/resizable-n.gif) repeat scroll center top; } -.ui-resizable-s { cursor: s-resize; height: 6px; width: 100%; bottom: 0px; left: 0px; background: transparent url(i/resizable-s.gif) repeat scroll center top; } - -.ui-resizable-e { cursor: e-resize; width: 6px; right: 0px; top: 0px; height: 100%; background: transparent url(i/resizable-e.gif) repeat scroll right center; } -.ui-resizable-w { cursor: w-resize; width: 6px; left: 0px; top: 0px; height: 100%; background: transparent url(i/resizable-w.gif) repeat scroll right center; } - -.ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: transparent url(i/resizable-se.gif); } -.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: transparent url(i/resizable-sw.gif); } -.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: 0px; top: 0px; background: transparent url(i/resizable-nw.gif); } -.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: 0px; top: 0px; background: transparent url(i/resizable-ne.gif); } \ No newline at end of file diff --git a/ui/themes/flora/flora.slider.css b/ui/themes/flora/flora.slider.css deleted file mode 100644 index 4e9ca8069..000000000 --- a/ui/themes/flora/flora.slider.css +++ /dev/null @@ -1,11 +0,0 @@ -/* This file skins sliders */ - -.ui-slider { width: 200px; height: 23px; position: relative; background-repeat: no-repeat; background-position: center center; } -.ui-slider-handle { position: absolute; z-index: 1; height: 23px; width: 12px; top: 0px; left: 0px; background-image: url(i/slider-handle.gif); } -.ui-slider-handle-active { border: 1px dotted black; } -.ui-slider-disabled .ui-slider-handle { opacity: 0.5; filter: alpha(opacity=50); } -.ui-slider-range { position: absolute; background: #50A029; opacity: 0.3; filter: alpha(opacity=30); width: 100%; height: 100%; } - -/* Default slider backgrounds */ -.ui-slider, .ui-slider-1 { background-image: url(i/slider-bg-1.png); } -.ui-slider-2 { background-image: url(i/slider-bg-2.png); } diff --git a/ui/themes/flora/flora.tabs.css b/ui/themes/flora/flora.tabs.css deleted file mode 100644 index c79a17e63..000000000 --- a/ui/themes/flora/flora.tabs.css +++ /dev/null @@ -1,105 +0,0 @@ -@import "flora.css"; - -/* Caution! Ensure accessibility in print and other media types... */ -@media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */ - .ui-tabs-hide { - display: none; - } -} - -/* Hide useless elements in print layouts... */ -@media print { - .ui-tabs-nav { - display: none; - } -} - -/* Skin */ -.ui-tabs-nav, .ui-tabs-panel { - font-family: "Trebuchet MS", Trebuchet, Verdana, Helvetica, Arial, sans-serif; - font-size: 12px; -} -.ui-tabs-nav { - list-style: none; - margin: 0; - padding: 0 0 0 3px; -} -.ui-tabs-nav:after { /* clearing without presentational markup, IE gets extra treatment */ - display: block; - clear: both; - content: " "; -} -.ui-tabs-nav li { - float: left; - margin: 0 0 0 2px; - font-weight: bold; -} -.ui-tabs-nav a, .ui-tabs-nav a span { - float: left; /* fixes dir=ltr problem and other quirks IE */ - padding: 0 12px; - background: url(i/tabs.png) no-repeat; -} -.ui-tabs-nav a { - margin: 5px 0 0; /* position: relative makes opacity fail for disabled tab in IE */ - padding-left: 0; - background-position: 100% 0; - text-decoration: none; - white-space: nowrap; /* @ IE 6 */ - outline: 0; /* @ Firefox, prevent dotted border after click */ -} -.ui-tabs-nav a:link, .ui-tabs-nav a:visited { - color: #fff; -} -.ui-tabs-nav .ui-tabs-selected a { - position: relative; - top: 1px; - z-index: 2; - margin-top: 0; - background-position: 100% -23px; -} -.ui-tabs-nav a span { - padding-top: 1px; - padding-right: 0; - height: 20px; - background-position: 0 0; - line-height: 20px; -} -.ui-tabs-nav .ui-tabs-selected a span { - padding-top: 0; - height: 27px; - background-position: 0 -23px; - line-height: 27px; -} -.ui-tabs-nav .ui-tabs-selected a:link, .ui-tabs-nav .ui-tabs-selected a:visited, -.ui-tabs-nav .ui-tabs-disabled a:link, .ui-tabs-nav .ui-tabs-disabled a:visited { /* @ Opera, use pseudo classes otherwise it confuses cursor... */ - cursor: text; -} -.ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active, -.ui-tabs-nav .ui-tabs-unselect a:hover, .ui-tabs-nav .ui-tabs-unselect a:focus, .ui-tabs-nav .ui-tabs-unselect a:active { /* @ Opera, we need to be explicit again here now... */ - cursor: pointer; -} -.ui-tabs-disabled { - opacity: .4; - filter: alpha(opacity=40); -} -.ui-tabs-nav .ui-tabs-disabled a:link, .ui-tabs-nav .ui-tabs-disabled a:visited { - color: #000; -} -.ui-tabs-panel { - border: 1px solid #519e2d; - padding: 10px; - background: #fff; /* declare background color for container to avoid distorted fonts in IE while fading */ -} -/*.ui-tabs-loading em { - padding: 0 0 0 20px; - background: url(loading.gif) no-repeat 0 50%; -}*/ - -/* Additional IE specific bug fixes... */ -* html .ui-tabs-nav { /* auto clear @ IE 6 & IE 7 Quirks Mode */ - display: inline-block; -} -*:first-child+html .ui-tabs-nav { /* auto clear @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */ - display: inline-block; -} - diff --git a/ui/themes/flora/i/accordion-left-act.png b/ui/themes/flora/i/accordion-left-act.png deleted file mode 100644 index bf6ee995b..000000000 Binary files a/ui/themes/flora/i/accordion-left-act.png and /dev/null differ diff --git a/ui/themes/flora/i/accordion-left-over.png b/ui/themes/flora/i/accordion-left-over.png deleted file mode 100644 index 66378e0e6..000000000 Binary files a/ui/themes/flora/i/accordion-left-over.png and /dev/null differ diff --git a/ui/themes/flora/i/accordion-left.png b/ui/themes/flora/i/accordion-left.png deleted file mode 100644 index 13344fc9f..000000000 Binary files a/ui/themes/flora/i/accordion-left.png and /dev/null differ diff --git a/ui/themes/flora/i/accordion-middle-act.png b/ui/themes/flora/i/accordion-middle-act.png deleted file mode 100644 index cecf4f150..000000000 Binary files a/ui/themes/flora/i/accordion-middle-act.png and /dev/null differ diff --git a/ui/themes/flora/i/accordion-middle-over.png b/ui/themes/flora/i/accordion-middle-over.png deleted file mode 100644 index 251ad11f9..000000000 Binary files a/ui/themes/flora/i/accordion-middle-over.png and /dev/null differ diff --git a/ui/themes/flora/i/accordion-middle.png b/ui/themes/flora/i/accordion-middle.png deleted file mode 100644 index 5238fd414..000000000 Binary files a/ui/themes/flora/i/accordion-middle.png and /dev/null differ diff --git a/ui/themes/flora/i/accordion-right-act.png b/ui/themes/flora/i/accordion-right-act.png deleted file mode 100644 index 1fa479280..000000000 Binary files a/ui/themes/flora/i/accordion-right-act.png and /dev/null differ diff --git a/ui/themes/flora/i/accordion-right-over.png b/ui/themes/flora/i/accordion-right-over.png deleted file mode 100644 index d676dad80..000000000 Binary files a/ui/themes/flora/i/accordion-right-over.png and /dev/null differ diff --git a/ui/themes/flora/i/accordion-right.png b/ui/themes/flora/i/accordion-right.png deleted file mode 100644 index 543991a2b..000000000 Binary files a/ui/themes/flora/i/accordion-right.png and /dev/null differ diff --git a/ui/themes/flora/i/dialog-e.gif b/ui/themes/flora/i/dialog-e.gif deleted file mode 100644 index 3b8b52189..000000000 Binary files a/ui/themes/flora/i/dialog-e.gif and /dev/null differ diff --git a/ui/themes/flora/i/dialog-n.gif b/ui/themes/flora/i/dialog-n.gif deleted file mode 100644 index 70887b89b..000000000 Binary files a/ui/themes/flora/i/dialog-n.gif and /dev/null differ diff --git a/ui/themes/flora/i/dialog-ne.gif b/ui/themes/flora/i/dialog-ne.gif deleted file mode 100644 index ab9c38e57..000000000 Binary files a/ui/themes/flora/i/dialog-ne.gif and /dev/null differ diff --git a/ui/themes/flora/i/dialog-nw.gif b/ui/themes/flora/i/dialog-nw.gif deleted file mode 100644 index e93407333..000000000 Binary files a/ui/themes/flora/i/dialog-nw.gif and /dev/null differ diff --git a/ui/themes/flora/i/dialog-s.gif b/ui/themes/flora/i/dialog-s.gif deleted file mode 100644 index d5f6b99b0..000000000 Binary files a/ui/themes/flora/i/dialog-s.gif and /dev/null differ diff --git a/ui/themes/flora/i/dialog-se.gif b/ui/themes/flora/i/dialog-se.gif deleted file mode 100644 index 186a8640a..000000000 Binary files a/ui/themes/flora/i/dialog-se.gif and /dev/null differ diff --git a/ui/themes/flora/i/dialog-sw.gif b/ui/themes/flora/i/dialog-sw.gif deleted file mode 100644 index 025dfda84..000000000 Binary files a/ui/themes/flora/i/dialog-sw.gif and /dev/null differ diff --git a/ui/themes/flora/i/dialog-title.gif b/ui/themes/flora/i/dialog-title.gif deleted file mode 100644 index 156c59b99..000000000 Binary files a/ui/themes/flora/i/dialog-title.gif and /dev/null differ diff --git a/ui/themes/flora/i/dialog-titlebar-close-hover.png b/ui/themes/flora/i/dialog-titlebar-close-hover.png deleted file mode 100644 index 67c1303e9..000000000 Binary files a/ui/themes/flora/i/dialog-titlebar-close-hover.png and /dev/null differ diff --git a/ui/themes/flora/i/dialog-titlebar-close.png b/ui/themes/flora/i/dialog-titlebar-close.png deleted file mode 100644 index cec974c89..000000000 Binary files a/ui/themes/flora/i/dialog-titlebar-close.png and /dev/null differ diff --git a/ui/themes/flora/i/dialog-w.gif b/ui/themes/flora/i/dialog-w.gif deleted file mode 100644 index 931ff4abe..000000000 Binary files a/ui/themes/flora/i/dialog-w.gif and /dev/null differ diff --git a/ui/themes/flora/i/resizable-e.gif b/ui/themes/flora/i/resizable-e.gif deleted file mode 100644 index 7acf24836..000000000 Binary files a/ui/themes/flora/i/resizable-e.gif and /dev/null differ diff --git a/ui/themes/flora/i/resizable-n.gif b/ui/themes/flora/i/resizable-n.gif deleted file mode 100644 index 59110f677..000000000 Binary files a/ui/themes/flora/i/resizable-n.gif and /dev/null differ diff --git a/ui/themes/flora/i/resizable-ne.gif b/ui/themes/flora/i/resizable-ne.gif deleted file mode 100644 index 515a3f88d..000000000 Binary files a/ui/themes/flora/i/resizable-ne.gif and /dev/null differ diff --git a/ui/themes/flora/i/resizable-nw.gif b/ui/themes/flora/i/resizable-nw.gif deleted file mode 100644 index 665f31890..000000000 Binary files a/ui/themes/flora/i/resizable-nw.gif and /dev/null differ diff --git a/ui/themes/flora/i/resizable-s.gif b/ui/themes/flora/i/resizable-s.gif deleted file mode 100644 index da2fb3512..000000000 Binary files a/ui/themes/flora/i/resizable-s.gif and /dev/null differ diff --git a/ui/themes/flora/i/resizable-se.gif b/ui/themes/flora/i/resizable-se.gif deleted file mode 100644 index 6c258ef2a..000000000 Binary files a/ui/themes/flora/i/resizable-se.gif and /dev/null differ diff --git a/ui/themes/flora/i/resizable-sw.gif b/ui/themes/flora/i/resizable-sw.gif deleted file mode 100644 index 2fd8de4dc..000000000 Binary files a/ui/themes/flora/i/resizable-sw.gif and /dev/null differ diff --git a/ui/themes/flora/i/resizable-w.gif b/ui/themes/flora/i/resizable-w.gif deleted file mode 100644 index 34b875b95..000000000 Binary files a/ui/themes/flora/i/resizable-w.gif and /dev/null differ diff --git a/ui/themes/flora/i/slider-bg-1.png b/ui/themes/flora/i/slider-bg-1.png deleted file mode 100644 index b7d806ed6..000000000 Binary files a/ui/themes/flora/i/slider-bg-1.png and /dev/null differ diff --git a/ui/themes/flora/i/slider-bg-2.png b/ui/themes/flora/i/slider-bg-2.png deleted file mode 100644 index 8b24cf091..000000000 Binary files a/ui/themes/flora/i/slider-bg-2.png and /dev/null differ diff --git a/ui/themes/flora/i/slider-handle.gif b/ui/themes/flora/i/slider-handle.gif deleted file mode 100644 index 9b89f2664..000000000 Binary files a/ui/themes/flora/i/slider-handle.gif and /dev/null differ diff --git a/ui/themes/flora/i/tabs.png b/ui/themes/flora/i/tabs.png deleted file mode 100644 index 8018e41c8..000000000 Binary files a/ui/themes/flora/i/tabs.png and /dev/null differ diff --git a/ui/themes/ui.datepicker.css b/ui/themes/ui.datepicker.css deleted file mode 100644 index 408bd1e11..000000000 --- a/ui/themes/ui.datepicker.css +++ /dev/null @@ -1,207 +0,0 @@ -/* Main Style Sheet for jQuery UI date picker */ -#ui-datepicker-div, .ui-datepicker-inline { - font-family: Arial, Helvetica, sans-serif; - font-size: 14px; - padding: 0; - margin: 0; - background: #ddd; - width: 185px; -} -#ui-datepicker-div { - display: none; - border: 1px solid #777; - z-index: 9999; /*must have*/ -} -.ui-datepicker-inline { - float: left; - display: block; - border: 0; -} -.ui-datepicker-rtl { - direction: rtl; -} -.ui-datepicker-dialog { - padding: 5px !important; - border: 4px ridge #ddd !important; -} -button.ui-datepicker-trigger { - width: 25px; -} -img.ui-datepicker-trigger { - margin: 2px; - vertical-align: middle; -} -.ui-datepicker-prompt { - float: left; - padding: 2px; - background: #ddd; - color: #000; -} -* html .ui-datepicker-prompt { - width: 185px; -} -.ui-datepicker-control, .ui-datepicker-links, .ui-datepicker-header, .ui-datepicker { - clear: both; - float: left; - width: 100%; - color: #fff; -} -.ui-datepicker-control { - background: #400; - padding: 2px 0px; -} -.ui-datepicker-links { - background: #000; - padding: 2px 0px; -} -.ui-datepicker-control, .ui-datepicker-links { - font-weight: bold; - font-size: 80%; -} -.ui-datepicker-links label { /* disabled links */ - padding: 2px 5px; - color: #888; -} -.ui-datepicker-clear, .ui-datepicker-prev { - float: left; - width: 34%; -} -.ui-datepicker-rtl .ui-datepicker-clear, .ui-datepicker-rtl .ui-datepicker-prev { - float: right; - text-align: right; -} -.ui-datepicker-current { - float: left; - width: 30%; - text-align: center; -} -.ui-datepicker-close, .ui-datepicker-next { - float: right; - width: 34%; - text-align: right; -} -.ui-datepicker-rtl .ui-datepicker-close, .ui-datepicker-rtl .ui-datepicker-next { - float: left; - text-align: left; -} -.ui-datepicker-header { - padding: 1px 0 3px; - background: #333; - text-align: center; - font-weight: bold; - height: 1.3em; -} -.ui-datepicker-header select { - background: #333; - color: #fff; - border: 0px; - font-weight: bold; -} -.ui-datepicker { - background: #ccc; - text-align: center; - font-size: 100%; -} -.ui-datepicker a { - display: block; - width: 100%; -} -.ui-datepicker-title-row { - background: #777; -} -.ui-datepicker-days-row { - background: #eee; - color: #666; -} -.ui-datepicker-week-col { - background: #777; - color: #fff; -} -.ui-datepicker-days-cell { - color: #000; - border: 1px solid #ddd; -} -.ui-datepicker-days-cell a{ - display: block; -} -.ui-datepicker-week-end-cell { - background: #ddd; -} -.ui-datepicker-title-row .ui-datepicker-week-end-cell { - background: #777; -} -.ui-datepicker-days-cell-over { - background: #fff; - border: 1px solid #777; -} -.ui-datepicker-unselectable { - color: #888; -} -.ui-datepicker-today { - background: #fcc !important; -} -.ui-datepicker-current-day { - background: #999 !important; -} -.ui-datepicker-status { - background: #ddd; - width: 100%; - font-size: 80%; - text-align: center; -} - -/* ________ Datepicker Links _______ - -** Reset link properties and then override them with !important */ -#ui-datepicker-div a, .ui-datepicker-inline a { - cursor: pointer; - margin: 0; - padding: 0; - background: none; - color: #000; -} -.ui-datepicker-inline .ui-datepicker-links a { - padding: 0 5px !important; -} -.ui-datepicker-control a, .ui-datepicker-links a { - padding: 2px 5px !important; - color: #eee !important; -} -.ui-datepicker-title-row a { - color: #eee !important; -} -.ui-datepicker-control a:hover { - background: #fdd !important; - color: #333 !important; -} -.ui-datepicker-links a:hover, .ui-datepicker-title-row a:hover { - background: #ddd !important; - color: #333 !important; -} - -/* ___________ MULTIPLE MONTHS _________*/ - -.ui-datepicker-multi .ui-datepicker { - border: 1px solid #777; -} -.ui-datepicker-one-month { - float: left; - width: 185px; -} -.ui-datepicker-new-row { - clear: left; -} - -/* ___________ IE6 IFRAME FIX ________ */ - -.ui-datepicker-cover { - display: none; /*sorry for IE5*/ - display/**/: block; /*sorry for IE5*/ - position: absolute; /*must have*/ - z-index: -1; /*must have*/ - filter: mask(); /*must have*/ - top: -4px; /*must have*/ - left: -4px; /*must have*/ - width: 200px; /*must have*/ - height: 200px; /*must have*/ -} \ No newline at end of file diff --git a/ui/version.txt b/ui/version.txt deleted file mode 100644 index d881885ea..000000000 --- a/ui/version.txt +++ /dev/null @@ -1 +0,0 @@ -1.5rc1 \ No newline at end of file -- cgit v1.2.3