survivalkit 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +22 -6
- data/lib/survivalkit.rb +3 -3
- data/stylesheets/survivalkit/extend/_all.sass +2 -1
- data/stylesheets/survivalkit/extend/_helpers.sass +9 -1
- data/stylesheets/survivalkit/extend/_sticky-footer.sass +18 -0
- data/stylesheets/survivalkit/functions/_all.sass +0 -1
- data/stylesheets/survivalkit/functions/_color-schemer.sass +7 -5
- data/stylesheets/survivalkit/functions/_modular-scale.sass +26 -26
- data/stylesheets/survivalkit/mixins/_all.sass +1 -1
- data/stylesheets/survivalkit/mixins/_helpers.sass +19 -2
- data/stylesheets/survivalkit/mixins/_layout.sass +1 -1
- data/stylesheets/survivalkit/mixins/_pseudo.sass +14 -0
- data/stylesheets/survivalkit/mixins/_typography.sass +13 -9
- data/stylesheets/survivalkit/mixins/_ui.sass +49 -18
- data/stylesheets/survivalkit/reset/_normalize.sass +114 -117
- data/stylesheets/survivalkit/reset/_pixel-normalize.scss +31 -0
- data/stylesheets/survivalkit/survival_kit/_survival-kit.sass +65 -8
- data/stylesheets/survivalkit/variables/_all.sass +1 -1
- data/stylesheets/survivalkit/variables/_color_names.sass +5 -0
- data/stylesheets/survivalkit/variables/_helpers.sass +6 -0
- data/templates/project/drupal/arrow-asc.png +0 -0
- data/templates/project/drupal/arrow-desc.png +0 -0
- data/templates/project/drupal/background.png +0 -0
- data/templates/project/drupal/close.png +0 -0
- data/templates/project/drupal/configure.png +0 -0
- data/templates/project/drupal/draggable.png +0 -0
- data/templates/project/drupal/druplicon.png +0 -0
- data/templates/project/drupal/feed.png +0 -0
- data/templates/project/drupal/forum-icons.png +0 -0
- data/templates/project/drupal/gear-select.png +0 -0
- data/templates/project/drupal/grippie.png +0 -0
- data/templates/project/drupal/help.png +0 -0
- data/templates/project/drupal/hook.png +0 -0
- data/templates/project/drupal/lock.png +0 -0
- data/templates/project/drupal/menu-collapsed-rtl.png +0 -0
- data/templates/project/drupal/menu-collapsed.png +0 -0
- data/templates/project/drupal/menu-expanded.png +0 -0
- data/templates/project/drupal/menu-leaf.png +0 -0
- data/templates/project/drupal/message-16-error.png +0 -0
- data/templates/project/drupal/message-16-help.png +0 -0
- data/templates/project/drupal/message-16-info.png +0 -0
- data/templates/project/drupal/message-16-ok.png +0 -0
- data/templates/project/drupal/message-16-warning.png +0 -0
- data/templates/project/drupal/message-24-error.png +0 -0
- data/templates/project/drupal/message-24-help.png +0 -0
- data/templates/project/drupal/message-24-info.png +0 -0
- data/templates/project/drupal/message-24-ok.png +0 -0
- data/templates/project/drupal/message-24-warning.png +0 -0
- data/templates/project/drupal/permissions.png +0 -0
- data/templates/project/drupal/powered-black-135x42.png +0 -0
- data/templates/project/drupal/powered-black-80x15.png +0 -0
- data/templates/project/drupal/powered-black-88x31.png +0 -0
- data/templates/project/drupal/powered-blue-135x42.png +0 -0
- data/templates/project/drupal/powered-blue-80x15.png +0 -0
- data/templates/project/drupal/powered-blue-88x31.png +0 -0
- data/templates/project/drupal/powered-gray-135x42.png +0 -0
- data/templates/project/drupal/powered-gray-80x15.png +0 -0
- data/templates/project/drupal/powered-gray-88x31.png +0 -0
- data/templates/project/drupal/progress.gif +0 -0
- data/templates/project/drupal/throbber.gif +0 -0
- data/templates/project/drupal/tree-bottom.png +0 -0
- data/templates/project/drupal/tree.png +0 -0
- data/templates/project/drupal/watchdog-error.png +0 -0
- data/templates/project/drupal/watchdog-ok.png +0 -0
- data/templates/project/drupal/watchdog-warning.png +0 -0
- data/templates/project/files/apple-touch-icon-114x114-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon-72x72-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon.png +0 -0
- data/templates/project/files/favicon.ico +0 -0
- data/templates/project/files/favicon.png +0 -0
- data/templates/project/files/html/index.html +49 -12
- data/templates/project/files/html/survivalkit/elements-common.html +55 -17
- data/templates/project/files/html/survivalkit/elements-html5.html +109 -81
- data/templates/project/files/html/survivalkit/elements-typography.html +56 -19
- data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal-css.html +1882 -0
- data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal.html +1468 -212
- data/templates/project/files/html/survivalkit/elements-ui-patterns.html +54 -16
- data/templates/project/files/html/survivalkit/index.html +53 -16
- data/templates/project/files/html/survivalkit/styletile/styletile.html +53 -15
- data/templates/project/ie.sass +1 -1
- data/templates/project/kit/kit-source.jquery.js +80 -2
- data/templates/project/libs/320-up/helper.js +146 -0
- data/templates/project/libs/320-up/imgSizer.js +61 -0
- data/templates/project/libs/plugins.js +42 -0
- data/templates/project/libs/selectivizr-min.js +5 -0
- data/templates/project/manifest.rb +81 -28
- data/templates/project/partials/01-variables/_all.sass +0 -2
- data/templates/project/partials/01-variables/_base.sass +8 -1
- data/templates/project/partials/01-variables/_colors.sass +27 -5
- data/templates/project/partials/01-variables/_grids-all.sass +3 -2
- data/{stylesheets/survivalkit/reset → templates/project/partials/02-reset}/_reset.sass +6 -2
- data/templates/project/partials/{02-extend → 03-extend}/_all.sass +0 -0
- data/templates/project/partials/{02-extend → 03-extend}/_typography.sass +0 -0
- data/templates/project/partials/{03-defaults → 04-defaults}/_all.sass +0 -0
- data/templates/project/partials/04-defaults/_common.sass +57 -0
- data/templates/project/partials/{03-defaults → 04-defaults}/_font-face.sass +0 -0
- data/templates/project/partials/{03-defaults → 04-defaults}/markup/_edits.sass +1 -1
- data/templates/project/partials/{03-defaults → 04-defaults}/markup/_grouping.sass +11 -11
- data/templates/project/partials/{03-defaults → 04-defaults}/markup/_headers.sass +0 -0
- data/templates/project/partials/{03-defaults → 04-defaults}/markup/_images.sass +4 -3
- data/templates/project/partials/{03-defaults → 04-defaults}/markup/_semantics.sass +0 -12
- data/templates/project/partials/{03-defaults → 04-defaults}/markup/_tables.sass +1 -1
- data/templates/project/partials/{03-defaults → 04-defaults}/markup/forms/_form-defaults.sass +10 -18
- data/templates/project/partials/{03-defaults → 04-defaults}/markup/forms/_formalize.sass +0 -1
- data/templates/project/partials/{04-grids → 05-grids}/_grids-blueprint.sass +0 -0
- data/templates/project/partials/{04-grids → 05-grids}/_grids-susy.sass +2 -1
- data/templates/project/partials/06-ui-patterns/_common.sass +2 -0
- data/templates/project/partials/{05-ui-patterns → 06-ui-patterns}/drupal/_ui-patterns.sass +20 -22
- data/templates/project/partials/{06-sprites → 07-sprites}/_sprites.sass +0 -0
- data/templates/project/partials/{07-layout-design → 08-layout-design}/_design.sass +0 -4
- data/templates/project/partials/{07-layout-design → 08-layout-design}/_layout.sass +0 -0
- data/templates/project/partials/{08-styletile → 09-styletile}/_tile-design.sass +0 -1
- data/templates/project/partials/{08-styletile → 09-styletile}/_tile-layout.sass +0 -1
- data/templates/project/partials/10-responsive/_mixins.sass +27 -0
- data/templates/project/partials/{09-responsive → 10-responsive}/_responsive-blueprint.sass +0 -0
- data/templates/project/partials/{09-responsive → 10-responsive}/_responsive-susy.sass +12 -6
- data/templates/project/partials/{10-media → 11-media}/_print.sass +0 -0
- data/templates/project/partials/{11-browser-adjustments → 12-browser-adjustments}/_ie.sass +0 -0
- data/templates/project/partials/{11-browser-adjustments → 12-browser-adjustments}/_modernizr.sass +0 -0
- data/templates/project/partials/{11-browser-adjustments → 12-browser-adjustments}/_selectivizr.sass +0 -0
- data/templates/project/script.js +18 -3
- data/templates/project/selectivizr.sass +1 -1
- data/templates/project/sources/BigText/README.markdown +128 -0
- data/templates/project/sources/BigText/artifacts/output.html +32 -0
- data/templates/project/sources/BigText/bigtext.js +242 -0
- data/templates/project/sources/BigText/demo/bigtextWizard.css +129 -0
- data/templates/project/sources/BigText/demo/bigtextWizard.js +373 -0
- data/templates/project/sources/BigText/demo/css/flexbox.css +105 -0
- data/templates/project/sources/BigText/demo/css/images/button_bg.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/datepicker.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/icon_sprite.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/progress_bar.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/slider_h_bg.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/slider_handles.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/slider_v_bg.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/the_gradient.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-icons_222222_256x240.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-icons_228ef1_256x240.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-icons_ffffff_256x240.png +0 -0
- data/templates/project/sources/BigText/demo/css/jquery-ui-1.8rc3.custom.css +519 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.eot +0 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.svg +223 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.ttf +0 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.woff +0 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/stylesheet.css +12 -0
- data/templates/project/sources/BigText/demo/index.html +95 -0
- data/templates/project/sources/BigText/demo/js/jquery.ba-throttle-debounce.js +252 -0
- data/templates/project/sources/BigText/demo/js/jquery.ba-throttle-debounce.min.js +9 -0
- data/templates/project/sources/BigText/demo/js/jquery.smartresize.js +41 -0
- data/templates/project/sources/BigText/demo/js/modernizr-1.6.js +892 -0
- data/templates/project/sources/BigText/demo/js/modernizr-1.6.min.js +30 -0
- data/templates/project/sources/BigText/demo/resizeDemoSmartResize.html +37 -0
- data/templates/project/sources/BigText/demo/resizeDemoThrottle.html +38 -0
- data/templates/project/sources/BigText/demo/simpleDemo.html +42 -0
- data/templates/project/sources/BigText/demo/simpleDemoDiv.html +26 -0
- data/templates/project/sources/BigText/test/bigtext.conf +6 -0
- data/templates/project/sources/BigText/test/bigtextTest.js +192 -0
- data/templates/project/sources/BigText/test/lib/JsTestDriver-1.2.2-custom.jar +0 -0
- data/templates/project/sources/BigText/test/lib/jquery-1.4.2.js +6240 -0
- data/templates/project/sources/BigText/test/lib/launch-safari.sh +4 -0
- data/templates/project/sources/BigText/test.bat +4 -0
- data/templates/project/sources/BigText/test.sh +5 -0
- data/templates/project/sources/Dynamic-Carousel/demo.html +92 -0
- data/templates/project/sources/Dynamic-Carousel/plugin.js +191 -0
- data/templates/project/sources/Dynamic-Carousel/readme.md +10 -0
- data/templates/project/sources/FitVids/README.md +49 -0
- data/templates/project/sources/FitVids/jquery.fitvids.js +77 -0
- data/templates/project/sources/FitVids/tests.html +66 -0
- data/templates/project/sources/Geared-Scrolling/README.md +31 -0
- data/templates/project/sources/Geared-Scrolling/css/specific.css +88 -0
- data/templates/project/sources/Geared-Scrolling/images/col1.png +0 -0
- data/templates/project/sources/Geared-Scrolling/images/col2.png +0 -0
- data/templates/project/sources/Geared-Scrolling/images/col3.png +0 -0
- data/templates/project/sources/Geared-Scrolling/images/header.png +0 -0
- data/templates/project/sources/Geared-Scrolling/index.html +32 -0
- data/templates/project/sources/Geared-Scrolling/js/init.js +11 -0
- data/templates/project/sources/Geared-Scrolling/js/jquery.heyday.gearedscrolling.js +283 -0
- data/templates/project/sources/Lettering.js/README.md +58 -0
- data/templates/project/sources/Lettering.js/examples/index.html +135 -0
- data/templates/project/sources/Lettering.js/examples/style.css +171 -0
- data/templates/project/sources/Lettering.js/jquery.lettering.js +66 -0
- data/templates/project/sources/PaintbrushJS/common.js +245 -0
- data/templates/project/sources/PaintbrushJS/demo/css/playground.css +334 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/165.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/bee.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/bird.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/helmets.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/jordan.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/leaves.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/lighthouse.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/louvre.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/pods.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/redbarn.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/road.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/sign.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/staples.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/stones.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/tear.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/window.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/bg.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/bg-highlight.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/bg.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/byline.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/current.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/divider.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/forkme.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/heading.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/index.html +171 -0
- data/templates/project/sources/PaintbrushJS/demo/script/common.js +245 -0
- data/templates/project/sources/PaintbrushJS/demo/script/paintbrush.js +607 -0
- data/templates/project/sources/PaintbrushJS/demo/script/playground.js +357 -0
- data/templates/project/sources/PaintbrushJS/demo/script/timing.js +23 -0
- data/templates/project/sources/PaintbrushJS/demo/usage.html +183 -0
- data/templates/project/sources/PaintbrushJS/paintbrush.js +595 -0
- data/templates/project/sources/Respond/README.md +76 -0
- data/templates/project/sources/Respond/respond.min.js +2 -0
- data/templates/project/sources/Respond/respond.src.js +286 -0
- data/templates/project/sources/Respond/test/test.css +61 -0
- data/templates/project/sources/Respond/test/test.html +20 -0
- data/templates/project/sources/Respond/test/test2.css +8 -0
- data/templates/project/sources/Respond/test/unit/index.html +28 -0
- data/templates/project/sources/Respond/test/unit/test.css +56 -0
- data/templates/project/sources/Respond/test/unit/test2.css +5 -0
- data/templates/project/sources/Respond/test/unit/tests.js +97 -0
- data/templates/project/sources/Sticky-Footer-jQuery-Plugin/README.md +27 -0
- data/templates/project/sources/Sticky-Footer-jQuery-Plugin/jquery.heyday.stickyfooter.js +154 -0
- data/templates/project/sources/deorphan/README.md +49 -0
- data/templates/project/sources/deorphan/jquery.deorphan.js +51 -0
- data/templates/project/sources/deorphan/jquery.deorphan.min.js +1 -0
- data/templates/project/sources/flexie/README.md +142 -0
- data/templates/project/sources/flexie/demo/css/box-flex.css +30 -0
- data/templates/project/sources/flexie/demo/index.html +108 -0
- data/templates/project/sources/flexie/dist/flexie.min.js +33 -0
- data/templates/project/sources/flexie/src/flexie.js +1872 -0
- data/templates/project/sources/flexie/test/css/demo.css +34 -0
- data/templates/project/sources/flexie/test/css/test.css +141 -0
- data/templates/project/sources/flexie/test/index.html +54 -0
- data/templates/project/sources/flexie/vendor/google-compiler/compiler.jar +0 -0
- data/templates/project/sources/flexie/vendor/yuicompressor/yuicompressor-2.4.2.jar +0 -0
- data/templates/project/sources/flickrbomb/css/app.css +41 -0
- data/templates/project/sources/flickrbomb/css/flickrbomb.css +38 -0
- data/templates/project/sources/flickrbomb/css/global.css +0 -0
- data/templates/project/sources/flickrbomb/demo.html +169 -0
- data/templates/project/sources/flickrbomb/images/bg-clouds.jpg +0 -0
- data/templates/project/sources/flickrbomb/images/bg-ground.jpg +0 -0
- data/templates/project/sources/flickrbomb/images/bomb.png +0 -0
- data/templates/project/sources/flickrbomb/images/bomber.jpg +0 -0
- data/templates/project/sources/flickrbomb/images/old.gif +0 -0
- data/templates/project/sources/flickrbomb/images/setupIcon.png +0 -0
- data/templates/project/sources/flickrbomb/js/app.js +28 -0
- data/templates/project/sources/flickrbomb/js/backbone-localstorage.js +94 -0
- data/templates/project/sources/flickrbomb/js/backbone.js +1011 -0
- data/templates/project/sources/flickrbomb/js/flickrbomb-demo.js +310 -0
- data/templates/project/sources/flickrbomb/js/flickrbomb.js +307 -0
- data/templates/project/sources/flickrbomb/js/underscore.js +713 -0
- data/templates/project/sources/formalize/README.txt +23 -0
- data/templates/project/sources/formalize/assets/css/_formalize.sass +274 -0
- data/templates/project/sources/formalize/assets/css/demo.css +47 -0
- data/templates/project/sources/formalize/assets/css/formalize.css +311 -0
- data/templates/project/sources/formalize/assets/css/reset.css +171 -0
- data/templates/project/sources/formalize/assets/css/text.css +81 -0
- data/templates/project/sources/formalize/assets/images/button.png +0 -0
- data/templates/project/sources/formalize/assets/images/select_arrow.gif +0 -0
- data/templates/project/sources/formalize/assets/js/dojo.formalize.js +174 -0
- data/templates/project/sources/formalize/assets/js/dojo.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/extjs.formalize.js +168 -0
- data/templates/project/sources/formalize/assets/js/extjs.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/jquery.formalize.js +158 -0
- data/templates/project/sources/formalize/assets/js/jquery.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/mootools.formalize.js +163 -0
- data/templates/project/sources/formalize/assets/js/mootools.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/prototype.formalize.js +171 -0
- data/templates/project/sources/formalize/assets/js/prototype.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/yui.formalize.js +168 -0
- data/templates/project/sources/formalize/assets/js/yui.formalize.min.js +1 -0
- data/templates/project/sources/formalize/demo.html +144 -0
- data/templates/project/sources/formalize/dojo_demo.html +213 -0
- data/templates/project/sources/formalize/dojo_disabled.html +213 -0
- data/templates/project/sources/formalize/dojo_errors.html +213 -0
- data/templates/project/sources/formalize/extjs_demo.html +213 -0
- data/templates/project/sources/formalize/extjs_disabled.html +213 -0
- data/templates/project/sources/formalize/extjs_errors.html +213 -0
- data/templates/project/sources/formalize/jquery_demo.html +213 -0
- data/templates/project/sources/formalize/jquery_disabled.html +213 -0
- data/templates/project/sources/formalize/jquery_errors.html +213 -0
- data/templates/project/sources/formalize/mootools_demo.html +213 -0
- data/templates/project/sources/formalize/mootools_disabled.html +213 -0
- data/templates/project/sources/formalize/mootools_errors.html +213 -0
- data/templates/project/sources/formalize/prototype_demo.html +213 -0
- data/templates/project/sources/formalize/prototype_disabled.html +213 -0
- data/templates/project/sources/formalize/prototype_errors.html +213 -0
- data/templates/project/sources/formalize/unstyled.html +210 -0
- data/templates/project/sources/formalize/yui_demo.html +213 -0
- data/templates/project/sources/formalize/yui_disabled.html +213 -0
- data/templates/project/sources/formalize/yui_errors.html +213 -0
- data/templates/project/sources/html5-boilerplate/404.html +38 -0
- data/templates/project/sources/html5-boilerplate/README.md +228 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon-114x114-precomposed.png +0 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon-57x57-precomposed.png +0 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon-72x72-precomposed.png +0 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon.png +0 -0
- data/templates/project/sources/html5-boilerplate/build/build.xml +821 -0
- data/templates/project/sources/html5-boilerplate/build/config/default.properties +80 -0
- data/templates/project/sources/html5-boilerplate/build/config/project.properties +56 -0
- data/templates/project/sources/html5-boilerplate/build/createproject.sh +50 -0
- data/templates/project/sources/html5-boilerplate/build/runbuildscript.bat +5 -0
- data/templates/project/sources/html5-boilerplate/build/tools/ant-contrib-1.0b3.jar +0 -0
- data/templates/project/sources/html5-boilerplate/build/tools/htmlcompressor-1.1.jar +0 -0
- data/templates/project/sources/html5-boilerplate/build/tools/jpegtran.exe +0 -0
- data/templates/project/sources/html5-boilerplate/build/tools/optipng-0.6.4-exe/LICENSE.txt +21 -0
- data/templates/project/sources/html5-boilerplate/build/tools/optipng-0.6.4-exe/optipng.exe +0 -0
- data/templates/project/sources/html5-boilerplate/build/tools/yuicompressor-2.4.5.jar +0 -0
- data/templates/project/sources/html5-boilerplate/crossdomain.xml +25 -0
- data/templates/project/sources/html5-boilerplate/css/handheld.css +8 -0
- data/templates/project/sources/html5-boilerplate/css/style.css +263 -0
- data/templates/project/sources/html5-boilerplate/demo/elements.html +531 -0
- data/templates/project/sources/html5-boilerplate/demo/hack.css +85 -0
- data/templates/project/sources/html5-boilerplate/demo/hack2.css +41 -0
- data/templates/project/sources/html5-boilerplate/demo/internet_explorer.png +0 -0
- data/templates/project/sources/html5-boilerplate/demo/test_tubes.png +0 -0
- data/templates/project/sources/html5-boilerplate/demo/tests.html +313 -0
- data/templates/project/sources/html5-boilerplate/favicon.ico +0 -0
- data/templates/project/sources/html5-boilerplate/humans.txt +43 -0
- data/templates/project/sources/html5-boilerplate/index.html +80 -0
- data/templates/project/sources/html5-boilerplate/js/libs/dd_belatedpng.js +13 -0
- data/templates/project/sources/html5-boilerplate/js/libs/jquery-1.5.2.js +8374 -0
- data/templates/project/sources/html5-boilerplate/js/libs/jquery-1.5.2.min.js +16 -0
- data/templates/project/sources/html5-boilerplate/js/libs/modernizr-1.7.min.js +2 -0
- data/templates/project/sources/html5-boilerplate/js/plugins.js +16 -0
- data/templates/project/sources/html5-boilerplate/js/script.js +26 -0
- data/templates/project/sources/html5-boilerplate/robots.txt +5 -0
- data/templates/project/sources/html5-boilerplate/test/index.html +31 -0
- data/templates/project/sources/html5-boilerplate/test/qunit/qunit.css +148 -0
- data/templates/project/sources/html5-boilerplate/test/qunit/qunit.js +1265 -0
- data/templates/project/sources/html5-boilerplate/test/tests.js +27 -0
- data/templates/project/sources/iOS-Orientationchange-Fix/README.md +17 -0
- data/templates/project/sources/iOS-Orientationchange-Fix/demo.html +43 -0
- data/templates/project/sources/iOS-Orientationchange-Fix/ios-orientationchange-fix.js +55 -0
- data/templates/project/sources/iSwipe-jQuery-Plugin/README.md +26 -0
- data/templates/project/sources/iSwipe-jQuery-Plugin/jquery.heyday.iswipe.js +126 -0
- data/templates/project/sources/infinite-scroll/ajax-loader.gif +0 -0
- data/templates/project/sources/infinite-scroll/jquery.infinitescroll.js +425 -0
- data/templates/project/sources/infinite-scroll/jquery.infinitescroll.min.js +8 -0
- data/templates/project/sources/infinite-scroll/site/assets/anivers_regular.otf +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/buttons.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/logo.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/mobius-strip2.ai +2266 -15
- data/templates/project/sources/infinite-scroll/site/assets/pattern.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/selector spots.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/sites.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/buttons.png +0 -0
- data/templates/project/sources/infinite-scroll/site/infinite-scroll-pattern.gif +0 -0
- data/templates/project/sources/infinite-scroll/site/logo.jpg +0 -0
- data/templates/project/sources/infinite-scroll/site/screens.jpg +0 -0
- data/templates/project/sources/infinite-scroll/site/selectors.jpg +0 -0
- data/templates/project/sources/infinite-scroll/test/test-loadingmsg.html +121 -0
- data/templates/project/sources/infinite-scroll/test/test.html +120 -0
- data/templates/project/sources/infinite-scroll/test/test2.html +70 -0
- data/templates/project/sources/infinite-scroll/test/test3.html +68 -0
- data/templates/project/sources/infinite-scroll/test/trigger.html +140 -0
- data/templates/project/sources/infinite-scroll/test/trigger2.html +80 -0
- data/templates/project/sources/infinite-scroll/test/trigger3.html +80 -0
- data/templates/project/sources/infinite-scroll/wp_infinite_scroll.php +454 -0
- data/templates/project/sources/jQuery-widowFix/index.html +159 -0
- data/templates/project/sources/jQuery-widowFix/js/jquery-1.4.3.min.js +166 -0
- data/templates/project/sources/jQuery-widowFix/js/jquery.widowFix-1.3.2.js +135 -0
- data/templates/project/sources/jQuery-widowFix/js/jquery.widowFix-1.3.2.min.js +10 -0
- data/templates/project/sources/jQuery-widowFix/sample.html +84 -0
- data/templates/project/sources/jquery-lightbox/LICENSE.txt +30 -0
- data/templates/project/sources/jquery-lightbox/README.markdown +8 -0
- data/templates/project/sources/jquery-lightbox/css/lightbox.css +129 -0
- data/templates/project/sources/jquery-lightbox/images/blank.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/close.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/closelabel.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/image-0.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/image-1.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/image-2.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/image-3.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/loading.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/next.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/nextlabel.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/prev.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/prevlabel.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/thumb-0.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/thumb-1.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/thumb-2.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/thumb-3.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/index.html +102 -0
- data/templates/project/sources/jquery-lightbox/jquery.lightbox.js +515 -0
- data/templates/project/sources/jquery-ui/AUTHORS.txt +30 -0
- data/templates/project/sources/jquery-ui/GPL-LICENSE.txt +278 -0
- data/templates/project/sources/jquery-ui/MIT-LICENSE.txt +25 -0
- data/templates/project/sources/jquery-ui/README.md +9 -0
- data/templates/project/sources/jquery-ui/build/build/ant-contrib-0.6.jar +0 -0
- data/templates/project/sources/jquery-ui/build/build/google-compiler-20110320.jar +0 -0
- data/templates/project/sources/jquery-ui/build/build/style.xsl +211 -0
- data/templates/project/sources/jquery-ui/build/build/yuicompressor-2.4.2.jar +0 -0
- data/templates/project/sources/jquery-ui/build/build.xml +392 -0
- data/templates/project/sources/jquery-ui/demos/accordion/collapsible.html +57 -0
- data/templates/project/sources/jquery-ui/demos/accordion/custom-icons.html +69 -0
- data/templates/project/sources/jquery-ui/demos/accordion/default.html +85 -0
- data/templates/project/sources/jquery-ui/demos/accordion/fillspace.html +77 -0
- data/templates/project/sources/jquery-ui/demos/accordion/hoverintent.html +134 -0
- data/templates/project/sources/jquery-ui/demos/accordion/index.html +25 -0
- data/templates/project/sources/jquery-ui/demos/accordion/mouseover.html +57 -0
- data/templates/project/sources/jquery-ui/demos/accordion/no-auto-height.html +58 -0
- data/templates/project/sources/jquery-ui/demos/accordion/sortable.html +83 -0
- data/templates/project/sources/jquery-ui/demos/addClass/default.html +52 -0
- data/templates/project/sources/jquery-ui/demos/addClass/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/animate/default.html +61 -0
- data/templates/project/sources/jquery-ui/demos/animate/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/categories.html +72 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/combobox.html +195 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/custom-data.html +96 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/default.html +65 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/folding.html +63 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/jquery_32x32.png +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/jqueryui_32x32.png +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/transparent_1x1.png +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/index.html +27 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/london.xml +114 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/maxheight.html +79 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/multiple-remote.html +85 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/multiple.html +100 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/remote-jsonp.html +87 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/remote-with-cache.html +60 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/remote.html +60 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/search.php +588 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/xml.html +73 -0
- data/templates/project/sources/jquery-ui/demos/button/checkbox.html +44 -0
- data/templates/project/sources/jquery-ui/demos/button/default.html +38 -0
- data/templates/project/sources/jquery-ui/demos/button/icons.html +56 -0
- data/templates/project/sources/jquery-ui/demos/button/index.html +23 -0
- data/templates/project/sources/jquery-ui/demos/button/radio.html +39 -0
- data/templates/project/sources/jquery-ui/demos/button/splitbutton.html +78 -0
- data/templates/project/sources/jquery-ui/demos/button/toolbar.html +120 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/alt-field.html +36 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/animation.html +58 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/buttonbar.html +35 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/date-formats.html +47 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/date-range.html +49 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/default.html +33 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/dropdown-month-year.html +36 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/icon-trigger.html +37 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/images/calendar.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/index.html +31 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/inline.html +33 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/localization.html +162 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/min-max.html +33 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/multiple-calendars.html +36 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/other-months.html +37 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/show-week.html +39 -0
- data/templates/project/sources/jquery-ui/demos/demos.css +334 -0
- data/templates/project/sources/jquery-ui/demos/dialog/animated.html +56 -0
- data/templates/project/sources/jquery-ui/demos/dialog/default.html +54 -0
- data/templates/project/sources/jquery-ui/demos/dialog/index.html +23 -0
- data/templates/project/sources/jquery-ui/demos/dialog/modal-confirmation.html +69 -0
- data/templates/project/sources/jquery-ui/demos/dialog/modal-form.html +167 -0
- data/templates/project/sources/jquery-ui/demos/dialog/modal-message.html +71 -0
- data/templates/project/sources/jquery-ui/demos/dialog/modal.html +60 -0
- data/templates/project/sources/jquery-ui/demos/draggable/constrain-movement.html +69 -0
- data/templates/project/sources/jquery-ui/demos/draggable/cursor-style.html +49 -0
- data/templates/project/sources/jquery-ui/demos/draggable/default.html +39 -0
- data/templates/project/sources/jquery-ui/demos/draggable/delay-start.html +45 -0
- data/templates/project/sources/jquery-ui/demos/draggable/events.html +77 -0
- data/templates/project/sources/jquery-ui/demos/draggable/handle.html +50 -0
- data/templates/project/sources/jquery-ui/demos/draggable/index.html +28 -0
- data/templates/project/sources/jquery-ui/demos/draggable/revert.html +44 -0
- data/templates/project/sources/jquery-ui/demos/draggable/scroll.html +51 -0
- data/templates/project/sources/jquery-ui/demos/draggable/snap-to.html +68 -0
- data/templates/project/sources/jquery-ui/demos/draggable/sortable.html +57 -0
- data/templates/project/sources/jquery-ui/demos/draggable/visual-feedback.html +77 -0
- data/templates/project/sources/jquery-ui/demos/droppable/accepted-elements.html +60 -0
- data/templates/project/sources/jquery-ui/demos/droppable/default.html +53 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras2.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras2_min.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras3.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras3_min.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras4.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras4_min.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras_min.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/index.html +24 -0
- data/templates/project/sources/jquery-ui/demos/droppable/photo-manager.html +184 -0
- data/templates/project/sources/jquery-ui/demos/droppable/propagation.html +80 -0
- data/templates/project/sources/jquery-ui/demos/droppable/revert.html +61 -0
- data/templates/project/sources/jquery-ui/demos/droppable/shopping-cart.html +101 -0
- data/templates/project/sources/jquery-ui/demos/droppable/visual-feedback.html +78 -0
- data/templates/project/sources/jquery-ui/demos/effect/default.html +109 -0
- data/templates/project/sources/jquery-ui/demos/effect/easing.html +108 -0
- data/templates/project/sources/jquery-ui/demos/effect/index.html +19 -0
- data/templates/project/sources/jquery-ui/demos/hide/default.html +102 -0
- data/templates/project/sources/jquery-ui/demos/hide/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/images/calendar.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/demo-config-on-tile.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/demo-config-on.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/demo-spindown-closed.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/demo-spindown-open.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/icon-docs-info.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/pbar-ani.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/index.html +329 -0
- data/templates/project/sources/jquery-ui/demos/menu/contextmenu.html +81 -0
- data/templates/project/sources/jquery-ui/demos/menu/default.html +54 -0
- data/templates/project/sources/jquery-ui/demos/menu/index.html +17 -0
- data/templates/project/sources/jquery-ui/demos/position/cycler.html +120 -0
- data/templates/project/sources/jquery-ui/demos/position/default.html +153 -0
- data/templates/project/sources/jquery-ui/demos/position/images/earth.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/position/images/flight.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/position/images/rocket.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/position/index.html +19 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/animated.html +44 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/default.html +35 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/images/pbar-ani.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/index.html +20 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/resize.html +40 -0
- data/templates/project/sources/jquery-ui/demos/removeClass/default.html +52 -0
- data/templates/project/sources/jquery-ui/demos/removeClass/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/resizable/animate.html +43 -0
- data/templates/project/sources/jquery-ui/demos/resizable/aspect-ratio.html +42 -0
- data/templates/project/sources/jquery-ui/demos/resizable/constrain-area.html +47 -0
- data/templates/project/sources/jquery-ui/demos/resizable/default.html +40 -0
- data/templates/project/sources/jquery-ui/demos/resizable/delay-start.html +52 -0
- data/templates/project/sources/jquery-ui/demos/resizable/helper.html +43 -0
- data/templates/project/sources/jquery-ui/demos/resizable/index.html +28 -0
- data/templates/project/sources/jquery-ui/demos/resizable/max-min.html +45 -0
- data/templates/project/sources/jquery-ui/demos/resizable/snap-to-grid.html +42 -0
- data/templates/project/sources/jquery-ui/demos/resizable/synchronous-resize.html +49 -0
- data/templates/project/sources/jquery-ui/demos/resizable/textarea.html +41 -0
- data/templates/project/sources/jquery-ui/demos/resizable/visual-feedback.html +43 -0
- data/templates/project/sources/jquery-ui/demos/selectable/default.html +50 -0
- data/templates/project/sources/jquery-ui/demos/selectable/display-grid.html +55 -0
- data/templates/project/sources/jquery-ui/demos/selectable/index.html +20 -0
- data/templates/project/sources/jquery-ui/demos/selectable/serialize.html +61 -0
- data/templates/project/sources/jquery-ui/demos/show/default.html +104 -0
- data/templates/project/sources/jquery-ui/demos/show/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/slider/colorpicker.html +95 -0
- data/templates/project/sources/jquery-ui/demos/slider/default.html +37 -0
- data/templates/project/sources/jquery-ui/demos/slider/hotelrooms.html +59 -0
- data/templates/project/sources/jquery-ui/demos/slider/index.html +29 -0
- data/templates/project/sources/jquery-ui/demos/slider/multiple-vertical.html +77 -0
- data/templates/project/sources/jquery-ui/demos/slider/range-vertical.html +51 -0
- data/templates/project/sources/jquery-ui/demos/slider/range.html +52 -0
- data/templates/project/sources/jquery-ui/demos/slider/rangemax.html +50 -0
- data/templates/project/sources/jquery-ui/demos/slider/rangemin.html +51 -0
- data/templates/project/sources/jquery-ui/demos/slider/side-scroll.html +140 -0
- data/templates/project/sources/jquery-ui/demos/slider/slider-vertical.html +52 -0
- data/templates/project/sources/jquery-ui/demos/slider/steps.html +51 -0
- data/templates/project/sources/jquery-ui/demos/slider/tabs.html +67 -0
- data/templates/project/sources/jquery-ui/demos/sortable/connect-lists-through-tabs.html +78 -0
- data/templates/project/sources/jquery-ui/demos/sortable/connect-lists.html +58 -0
- data/templates/project/sources/jquery-ui/demos/sortable/default.html +51 -0
- data/templates/project/sources/jquery-ui/demos/sortable/delay-start.html +67 -0
- data/templates/project/sources/jquery-ui/demos/sortable/display-grid.html +54 -0
- data/templates/project/sources/jquery-ui/demos/sortable/empty-lists.html +69 -0
- data/templates/project/sources/jquery-ui/demos/sortable/index.html +26 -0
- data/templates/project/sources/jquery-ui/demos/sortable/items.html +70 -0
- data/templates/project/sources/jquery-ui/demos/sortable/placeholder.html +56 -0
- data/templates/project/sources/jquery-ui/demos/sortable/portlets.html +96 -0
- data/templates/project/sources/jquery-ui/demos/spinner/currency.html +61 -0
- data/templates/project/sources/jquery-ui/demos/spinner/decimal.html +59 -0
- data/templates/project/sources/jquery-ui/demos/spinner/default.html +65 -0
- data/templates/project/sources/jquery-ui/demos/spinner/index.html +20 -0
- data/templates/project/sources/jquery-ui/demos/spinner/latlong.html +60 -0
- data/templates/project/sources/jquery-ui/demos/spinner/overflow.html +47 -0
- data/templates/project/sources/jquery-ui/demos/spinner/time.html +71 -0
- data/templates/project/sources/jquery-ui/demos/switchClass/default.html +47 -0
- data/templates/project/sources/jquery-ui/demos/switchClass/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax/content1.html +4 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax/content2.html +4 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax/content3-slow.php +7 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax/content4-broken.php +3 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax.html +53 -0
- data/templates/project/sources/jquery-ui/demos/tabs/bottom.html +59 -0
- data/templates/project/sources/jquery-ui/demos/tabs/collapsible.html +55 -0
- data/templates/project/sources/jquery-ui/demos/tabs/cookie.html +57 -0
- data/templates/project/sources/jquery-ui/demos/tabs/default.html +49 -0
- data/templates/project/sources/jquery-ui/demos/tabs/index.html +25 -0
- data/templates/project/sources/jquery-ui/demos/tabs/manipulation.html +124 -0
- data/templates/project/sources/jquery-ui/demos/tabs/mouseover.html +53 -0
- data/templates/project/sources/jquery-ui/demos/tabs/sortable.html +58 -0
- data/templates/project/sources/jquery-ui/demos/tabs/vertical.html +61 -0
- data/templates/project/sources/jquery-ui/demos/toggle/default.html +94 -0
- data/templates/project/sources/jquery-ui/demos/toggle/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/toggleClass/default.html +46 -0
- data/templates/project/sources/jquery-ui/demos/toggleClass/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/ajax/content1.html +1 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/ajax/content2.html +1 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/custom-animation.html +58 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/default.html +48 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/delegation-mixbag.html +73 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/forms.html +71 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/index.html +22 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/tracking.html +64 -0
- data/templates/project/sources/jquery-ui/external/jquery.bgiframe-2.1.2.js +39 -0
- data/templates/project/sources/jquery-ui/external/jquery.cookie.js +89 -0
- data/templates/project/sources/jquery-ui/external/jquery.global.de-DE.js +55 -0
- data/templates/project/sources/jquery-ui/external/jquery.global.ja-JP.js +74 -0
- data/templates/project/sources/jquery-ui/external/jquery.global.js +1341 -0
- data/templates/project/sources/jquery-ui/external/jquery.metadata.js +122 -0
- data/templates/project/sources/jquery-ui/external/jquery.mousewheel-3.0.4.js +78 -0
- data/templates/project/sources/jquery-ui/external/qunit.css +215 -0
- data/templates/project/sources/jquery-ui/external/qunit.js +1444 -0
- data/templates/project/sources/jquery-ui/jquery-1.5.1.js +8316 -0
- data/templates/project/sources/jquery-ui/tests/index.html +22 -0
- data/templates/project/sources/jquery-ui/tests/jquery.simulate.js +151 -0
- data/templates/project/sources/jquery-ui/tests/static/button/default.html +161 -0
- data/templates/project/sources/jquery-ui/tests/static/datepicker/datepicker.html +1367 -0
- data/templates/project/sources/jquery-ui/tests/static/datepicker/default.html +86 -0
- data/templates/project/sources/jquery-ui/tests/static/icons.html +246 -0
- data/templates/project/sources/jquery-ui/tests/static/menu/all-menus-icons.html +172 -0
- data/templates/project/sources/jquery-ui/tests/static/menu/default.html +39 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/default.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/default_vertical.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_horizontal.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_horizontal_range.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_horizontal_range_max.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_horizontal_range_min.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_vertical.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_vertical_range.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_vertical_range_max.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_vertical_range_min.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/static.css +1 -0
- data/templates/project/sources/jquery-ui/tests/static/static.js +9 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion.html +163 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_core.js +53 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_defaults.js +15 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_defaults_deprecated.js +21 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_deprecated.html +161 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_deprecated.js +320 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_events.js +122 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_methods.js +37 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_options.js +266 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete.html +46 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_core.js +73 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_defaults.js +19 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_events.js +206 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_methods.js +39 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_options.js +247 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/remote_object_array_labels.txt +1 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/remote_object_array_values.txt +1 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/remote_string_array.txt +1 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button.html +68 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_core.js +70 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_defaults.js +15 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_events.js +8 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_methods.js +19 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_options.js +93 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_tickets.js +45 -0
- data/templates/project/sources/jquery-ui/tests/unit/core/core.html +134 -0
- data/templates/project/sources/jquery-ui/tests/unit/core/core.js +157 -0
- data/templates/project/sources/jquery-ui/tests/unit/core/selector.js +253 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker.html +54 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_core.js +441 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_defaults.js +9 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_events.js +117 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_methods.js +118 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_options.js +924 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_tickets.js +27 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog.html +57 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_core.js +138 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_defaults.js +35 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_events.js +254 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_methods.js +127 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_options.js +444 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_tickets.js +116 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable.html +53 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_core.js +67 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_defaults.js +36 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_events.js +81 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_methods.js +99 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_options.js +753 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable.html +53 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_core.js +36 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_defaults.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_events.js +28 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_methods.js +86 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_options.js +68 -0
- data/templates/project/sources/jquery-ui/tests/unit/images/jqueryui_32x32.png +0 -0
- data/templates/project/sources/jquery-ui/tests/unit/index.html +64 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu.html +74 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_core.js +38 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_defaults.js +13 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_events.js +24 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_methods.js +15 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_options.js +10 -0
- data/templates/project/sources/jquery-ui/tests/unit/position/position.html +62 -0
- data/templates/project/sources/jquery-ui/tests/unit/position/position_core.js +438 -0
- data/templates/project/sources/jquery-ui/tests/unit/position/position_deprecated.html +60 -0
- data/templates/project/sources/jquery-ui/tests/unit/position/position_deprecated.js +32 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar.html +41 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_core.js +28 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_defaults.js +11 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_events.js +51 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_methods.js +36 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_options.js +59 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/images/test.jpg +0 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable.html +53 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_core.js +148 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_defaults.js +28 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_events.js +20 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_methods.js +64 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_options.js +190 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable.html +56 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_core.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_defaults.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_events.js +32 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_methods.js +93 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_options.js +46 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider.html +55 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_core.js +292 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_defaults.js +20 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_events.js +109 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_methods.js +102 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_options.js +146 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable.html +57 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_core.js +9 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_defaults.js +34 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_events.js +147 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_methods.js +108 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_options.js +256 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_tickets.js +83 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner.html +46 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_core.js +171 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_defaults.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_events.js +64 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_methods.js +155 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_options.js +154 -0
- data/templates/project/sources/jquery-ui/tests/unit/swarminject.js +9 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/data/test.html +1 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/spinner.gif +0 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs.html +139 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_core.js +50 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_defaults.js +13 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_defaults_deprecated.js +26 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_deprecated.html +138 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_deprecated.js +350 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_events.js +198 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_methods.js +165 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_options.js +146 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_tickets.js +99 -0
- data/templates/project/sources/jquery-ui/tests/unit/testsuite.js +101 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip.html +47 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_core.js +11 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_defaults.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_events.js +54 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_methods.js +30 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_options.js +62 -0
- data/templates/project/sources/jquery-ui/tests/unit/widget/widget.html +40 -0
- data/templates/project/sources/jquery-ui/tests/unit/widget/widget_core.js +992 -0
- data/templates/project/sources/jquery-ui/tests/visual/addClass/addClass_queue.html +50 -0
- data/templates/project/sources/jquery-ui/tests/visual/all.css +84 -0
- data/templates/project/sources/jquery-ui/tests/visual/all.html +190 -0
- data/templates/project/sources/jquery-ui/tests/visual/animate/animate_backgroundColor_hex.html +44 -0
- data/templates/project/sources/jquery-ui/tests/visual/animate/animate_backgroundColor_rgb.html +35 -0
- data/templates/project/sources/jquery-ui/tests/visual/animate/animate_color_hex.html +44 -0
- data/templates/project/sources/jquery-ui/tests/visual/animate/animate_color_rgb.html +35 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button.html +140 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_disabled_true.html +84 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_input_type_checkbox.html +25 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_option_disabled_true.html +84 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_performance.html +555 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_ticket_5254.html +55 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_ticket_5261.html +42 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_ticket_5278.html +58 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/accordion_dialog.html +202 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/accordion_tabs.html +86 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/datepicker_dialog.html +157 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/draggable_accordion.html +65 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html +109 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/sortable_accordion_sortable_tabs.html +108 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/tabs_tabs.html +73 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/tabs_tooltips.html +37 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/widgets_in_dialog.html +229 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/calendar.gif +0 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker.html +23 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_multi_inline.html +113 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_4071.html +96 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_4240.html +55 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_4443.html +38 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_5676.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/multimonth.html +23 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/viewport.html +278 -0
- data/templates/project/sources/jquery-ui/tests/visual/dialog/dialog_on_page_with_large_dom.html +2963 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable.html +24 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable.scroll.html +152 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_containment_array.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_cursorAt_object.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_handle_selector.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_iframeFix_false.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_iframeFix_selector.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_iframeFix_true.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable.css +3 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable.html +33 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_option_accept_default.html +40 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_option_accept_function.html +43 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_option_accept_selector.html +41 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_ticket_4087.html +51 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_ticket_4088.html +69 -0
- data/templates/project/sources/jquery-ui/tests/visual/effects.all.css +54 -0
- data/templates/project/sources/jquery-ui/tests/visual/effects.all.html +193 -0
- data/templates/project/sources/jquery-ui/tests/visual/effects.all.js +92 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/contextmenu.html +191 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/drilldown.html +266 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/menu.html +147 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/menubar.html +208 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/menubar.js +189 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/popup.html +159 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/popup.js +113 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/tablemenu.html +67 -0
- data/templates/project/sources/jquery-ui/tests/visual/mouse/mouse_ticket_6946.html +67 -0
- data/templates/project/sources/jquery-ui/tests/visual/position/position.html +67 -0
- data/templates/project/sources/jquery-ui/tests/visual/position/position_margin.html +43 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/images/test.png +0 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable.html +24 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_alsoResize_child.html +48 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_0.5.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_1.0.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_1.5.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxHeight_150.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxWidth_150.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_minHeight_50.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_minWidth_50.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh100.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh50.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_w50xh100.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_3053.html +37 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_4199.html +37 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_4217.html +46 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_4940.html +32 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_5335.html +52 -0
- data/templates/project/sources/jquery-ui/tests/visual/selectable/selectable.html +40 -0
- data/templates/project/sources/jquery-ui/tests/visual/selectable/selectable_ticket_4341.html +46 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider.html +24 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_horizontal.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_horizontal_range.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_horizontal_range_max.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_horizontal_range_min.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_in_container_with_scrollbars.html +43 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_method_destroy.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_method_disable.html +47 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_animate_false.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_animate_true.html +65 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_max_3.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_max_30.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_max_300.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_min_-3.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_min_-30.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_min_-300.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_orientation_horizontal.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_orientation_vertical.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_range_false.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_range_max.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_range_min.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_range_true.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_step_25.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_step_5.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_value_3.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_value_30.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_values_25_50_75.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_values_25_75.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_values_50.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_ticket_3736.html +36 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_ticket_3762.html +44 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_ticket_4385.html +42 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_ticket_4467.html +34 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_vertical.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_vertical_range.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_vertical_range_max.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_vertical_range_min.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable.html +40 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_massive_scale.html +757 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_option_revert_false.html +31 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_option_revert_true.html +31 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_ticket_4231.html +78 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_ticket_5355.html +58 -0
- data/templates/project/sources/jquery-ui/tests/visual/spinner/spinner.html +43 -0
- data/templates/project/sources/jquery-ui/tests/visual/theme.html +532 -0
- data/templates/project/sources/jquery-ui/tests/visual/tooltip/ajaxcontent.php +2 -0
- data/templates/project/sources/jquery-ui/tests/visual/tooltip/callout.html +213 -0
- data/templates/project/sources/jquery-ui/tests/visual/tooltip/tooltip.html +186 -0
- data/templates/project/sources/jquery-ui/tests/visual/visual.css +3 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_222222_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_454545_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_888888_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.accordion.css +18 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.all.css +11 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.autocomplete.css +13 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.base.css +24 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.button.css +38 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.core.css +41 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.datepicker.css +68 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.dialog.css +21 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.menu.css +44 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.progressbar.css +11 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.resizable.css +25 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.selectable.css +10 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.slider.css +24 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.spinner.css +23 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.tabs.css +17 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.theme.css +252 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.tooltip.css +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-af.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ar-DZ.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ar.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-az.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-bg.js +24 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-bs.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ca.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-cs.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-da.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-de.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-el.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-en-AU.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-en-GB.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-en-NZ.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-eo.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-es.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-et.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-eu.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fa.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fi.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fo.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fr-CH.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fr.js +25 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-gl.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-he.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-hr.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-hu.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-hy.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-id.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-is.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-it.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ja.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ko.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-kz.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-lt.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-lv.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ml.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ms.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-nl.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-no.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-pl.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-pt-BR.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-pt.js +22 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-rm.js +21 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ro.js +26 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ru.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sk.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sl.js +24 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sq.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sr-SR.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sr.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sv.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ta.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-th.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-tj.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-tr.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-uk.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-vi.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-CN.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-HK.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-TW.js +23 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.blind.js +52 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.bounce.js +102 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.clip.js +69 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.core.js +825 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.drop.js +64 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.explode.js +103 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.fade.js +34 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.fold.js +73 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.highlight.js +51 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.pulsate.js +52 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.scale.js +250 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.shake.js +64 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.slide.js +69 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.transfer.js +46 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.accordion.js +669 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.autocomplete.js +439 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.button.js +384 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.core.js +303 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.datepicker.js +1779 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.dialog.js +829 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.draggable.js +799 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.droppable.js +285 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.menu.js +402 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.mouse.js +156 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.position.js +283 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.progressbar.js +107 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.resizable.js +812 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.selectable.js +266 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.slider.js +684 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.sortable.js +1076 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.spinner.js +362 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.tabs.js +1039 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.tooltip.js +146 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.widget.js +363 -0
- data/templates/project/sources/jquery-ui/version.txt +1 -0
- data/templates/project/sources/pie/LICENSE-APACHE2.txt +13 -0
- data/templates/project/sources/pie/LICENSE-GPL2.txt +278 -0
- data/templates/project/sources/pie/build.xml +118 -0
- data/templates/project/sources/pie/demos/basic.html +321 -0
- data/templates/project/sources/pie/demos/farbtastic/CHANGELOG.html +26 -0
- data/templates/project/sources/pie/demos/farbtastic/LICENSE.txt +341 -0
- data/templates/project/sources/pie/demos/farbtastic/README.html +71 -0
- data/templates/project/sources/pie/demos/farbtastic/demo1.html +28 -0
- data/templates/project/sources/pie/demos/farbtastic/demo2.html +57 -0
- data/templates/project/sources/pie/demos/farbtastic/farbtastic.css +51 -0
- data/templates/project/sources/pie/demos/farbtastic/farbtastic.js +345 -0
- data/templates/project/sources/pie/demos/farbtastic/farbtastic.min.js +1 -0
- data/templates/project/sources/pie/demos/farbtastic/marker.png +0 -0
- data/templates/project/sources/pie/demos/farbtastic/mask.png +0 -0
- data/templates/project/sources/pie/demos/farbtastic/wheel.png +0 -0
- data/templates/project/sources/pie/demos/tabs-control.png +0 -0
- data/templates/project/sources/pie/demos/tabs.html +296 -0
- data/templates/project/sources/pie/documentation/about.html +63 -0
- data/templates/project/sources/pie/documentation/build.html +72 -0
- data/templates/project/sources/pie/documentation/getting-started.html +66 -0
- data/templates/project/sources/pie/documentation/known-issues.html +205 -0
- data/templates/project/sources/pie/documentation/pie-js.html +89 -0
- data/templates/project/sources/pie/documentation/product-comparison.html +89 -0
- data/templates/project/sources/pie/documentation/q-and-a.html +152 -0
- data/templates/project/sources/pie/documentation/supported-css3-features.html +402 -0
- data/templates/project/sources/pie/site/pie-wp-theme/404.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/archive.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/attachment/attachment-default.php +61 -0
- data/templates/project/sources/pie/site/pie-wp-theme/attachment.php +25 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/CHANGELOG.txt +72 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/README.txt +15 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/admin.php +330 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/ajax-load.php +115 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/attachment.php +126 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/carrington.php +106 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/compatibility.php +234 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/css/colorpicker.css +161 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/blank.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_background.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hex.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hsb_b.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hsb_h.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hsb_s.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_indic.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_overlay.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_rgb_b.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_rgb_g.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_rgb_r.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_select.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_submit.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_background.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hex.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hsb_b.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hsb_h.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hsb_s.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_indic.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_rgb_b.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_rgb_g.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_rgb_r.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_submit.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/select.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/select2.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/slider.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/js/colorpicker.js +490 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/LICENSE.txt +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/css/thickbox.css +157 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/img/blank.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/img/loadingAnimation.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/img/macFFBgHack.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/thickbox.js +332 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/templates.php +105 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/utility.php +821 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comment/comment-default.php +53 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comment/ping.php +33 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments/comments-default.php +66 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments/comments-loop.php +49 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments/pings-loop.php +38 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments/threaded.php +31 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/content/content-default.php +56 -0
- data/templates/project/sources/pie/site/pie-wp-theme/content/page.php +44 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/common.css +442 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.eot +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.svg +240 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.ttf +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.woff +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/error/404.php +31 -0
- data/templates/project/sources/pie/site/pie-wp-theme/error/exit.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/excerpt/excerpt-default.php +41 -0
- data/templates/project/sources/pie/site/pie-wp-theme/footer/footer-default.php +53 -0
- data/templates/project/sources/pie/site/pie-wp-theme/footer.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/forms/comment.php +94 -0
- data/templates/project/sources/pie/site/pie-wp-theme/forms/search.php +33 -0
- data/templates/project/sources/pie/site/pie-wp-theme/functions/sidebars.php +42 -0
- data/templates/project/sources/pie/site/pie-wp-theme/functions.php +28 -0
- data/templates/project/sources/pie/site/pie-wp-theme/header/header-default.php +99 -0
- data/templates/project/sources/pie/site/pie-wp-theme/header.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/img/divider.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/img/favicon.ico +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/img/icons.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/img/logo.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/index.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/CHANGELOG.html +26 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/LICENSE.txt +341 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/README.html +71 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/demo1.html +28 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/demo2.html +57 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/farbtastic.css +51 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/farbtastic.js +345 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/farbtastic.min.js +1 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/marker.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/mask.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/wheel.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/loop/archive.php +28 -0
- data/templates/project/sources/pie/site/pie-wp-theme/loop/loop-default.php +33 -0
- data/templates/project/sources/pie/site/pie-wp-theme/loop/search.php +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/misc/banner.php +21 -0
- data/templates/project/sources/pie/site/pie-wp-theme/misc/nav-posts.php +22 -0
- data/templates/project/sources/pie/site/pie-wp-theme/misc/no-results.php +23 -0
- data/templates/project/sources/pie/site/pie-wp-theme/page.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/pages/pages-default.php +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/author.php +52 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/category.php +40 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/home.php +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/posts-default.php +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/search.php +44 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/tag.php +38 -0
- data/templates/project/sources/pie/site/pie-wp-theme/screenshot.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/search.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/sidebar/sidebar-default.php +68 -0
- data/templates/project/sources/pie/site/pie-wp-theme/sidebar.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/single/single-default.php +40 -0
- data/templates/project/sources/pie/site/pie-wp-theme/single.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/style.css +73 -0
- data/templates/project/sources/pie/sources/Angle.js +36 -0
- data/templates/project/sources/pie/sources/BackgroundRenderer.js +381 -0
- data/templates/project/sources/pie/sources/BackgroundStyleInfo.js +295 -0
- data/templates/project/sources/pie/sources/BgPosition.js +104 -0
- data/templates/project/sources/pie/sources/BorderImageRenderer.js +124 -0
- data/templates/project/sources/pie/sources/BorderImageStyleInfo.js +146 -0
- data/templates/project/sources/pie/sources/BorderRadiusStyleInfo.js +68 -0
- data/templates/project/sources/pie/sources/BorderRenderer.js +328 -0
- data/templates/project/sources/pie/sources/BorderStyleInfo.js +101 -0
- data/templates/project/sources/pie/sources/BoundsInfo.js +56 -0
- data/templates/project/sources/pie/sources/BoxShadowInsetRenderer.js +31 -0
- data/templates/project/sources/pie/sources/BoxShadowOutsetRenderer.js +136 -0
- data/templates/project/sources/pie/sources/BoxShadowStyleInfo.js +67 -0
- data/templates/project/sources/pie/sources/Color.js +127 -0
- data/templates/project/sources/pie/sources/Element.js +416 -0
- data/templates/project/sources/pie/sources/Heartbeat.js +16 -0
- data/templates/project/sources/pie/sources/ImgRenderer.js +66 -0
- data/templates/project/sources/pie/sources/Length.js +134 -0
- data/templates/project/sources/pie/sources/Observable.js +44 -0
- data/templates/project/sources/pie/sources/OnBeforeUnload.js +15 -0
- data/templates/project/sources/pie/sources/OnPrint.js +25 -0
- data/templates/project/sources/pie/sources/OnResize.js +12 -0
- data/templates/project/sources/pie/sources/OnScroll.js +15 -0
- data/templates/project/sources/pie/sources/PIE_API.js +35 -0
- data/templates/project/sources/pie/sources/PIE_close.js +2 -0
- data/templates/project/sources/pie/sources/PIE_open.js +47 -0
- data/templates/project/sources/pie/sources/RendererBase.js +299 -0
- data/templates/project/sources/pie/sources/RootRenderer.js +112 -0
- data/templates/project/sources/pie/sources/StyleInfoBase.js +93 -0
- data/templates/project/sources/pie/sources/Tokenizer.js +274 -0
- data/templates/project/sources/pie/sources/Util.js +94 -0
- data/templates/project/sources/pie/sources/VisibilityStyleInfo.js +38 -0
- data/templates/project/sources/pie/sources/closure_externs.js +4 -0
- data/templates/project/sources/pie/sources/closure_preservefunctions.js +4 -0
- data/templates/project/sources/pie/sources/htc_close.txt +2 -0
- data/templates/project/sources/pie/sources/htc_init.js +19 -0
- data/templates/project/sources/pie/sources/htc_open.txt +13 -0
- data/templates/project/sources/pie/sources/js_close.js +1 -0
- data/templates/project/sources/pie/sources/js_open.js +8 -0
- data/templates/project/sources/pie/sources/wrappers/PIE.php +19 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-001.htm +27 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-002.htm +31 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-003.htm +29 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-004.htm +29 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-005.htm +29 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-006.htm +41 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-007.htm +46 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-008.htm +41 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-009.htm +45 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-010.htm +31 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-011.htm +41 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-012.htm +49 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-013.htm +51 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-014.htm +51 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-015.htm +51 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-016.htm +50 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-017.htm +35 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-different-width-001.htm +77 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-initial-value-001.htm +35 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-not-inherited-001.htm +44 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-shorthand-001.htm +69 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-001.htm +33 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-002.htm +28 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-003.htm +28 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-004.htm +28 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-005.htm +29 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-sum-of-radii-001.htm +158 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-sum-of-radii-002.htm +92 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-with-three-values-001.htm +43 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-with-two-values-001.htm +43 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-top-left-radius-values-001.htm +45 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-top-left-radius-values-002.htm +40 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-top-left-radius-values-003.htm +51 -0
- data/templates/project/sources/pie/tests/background1.gif +0 -0
- data/templates/project/sources/pie/tests/background2.gif +0 -0
- data/templates/project/sources/pie/tests/basic.html +188 -0
- data/templates/project/sources/pie/tests/border-image-test.html +52 -0
- data/templates/project/sources/pie/tests/border.png +0 -0
- data/templates/project/sources/pie/tests/border2.png +0 -0
- data/templates/project/sources/pie/tests/box-shadow-tests.html +166 -0
- data/templates/project/sources/pie/tests/buttons.html +735 -0
- data/templates/project/sources/pie/tests/color-names.html +32 -0
- data/templates/project/sources/pie/tests/gradient-tests.html +237 -0
- data/templates/project/sources/pie/tests/hiding-tests.html +92 -0
- data/templates/project/sources/pie/tests/hover-tests.html +107 -0
- data/templates/project/sources/pie/tests/iPhoneBackButton.png +0 -0
- data/templates/project/sources/pie/tests/icon-chrome.png +0 -0
- data/templates/project/sources/pie/tests/icon-firefox.png +0 -0
- data/templates/project/sources/pie/tests/icon-ie.png +0 -0
- data/templates/project/sources/pie/tests/icon-opera.png +0 -0
- data/templates/project/sources/pie/tests/icon-safari.png +0 -0
- data/templates/project/sources/pie/tests/img.html +63 -0
- data/templates/project/sources/pie/tests/margin-auto-tests.html +57 -0
- data/templates/project/sources/pie/tests/margin-collapsing-tests.html +77 -0
- data/templates/project/sources/pie/tests/misc-tests.html +257 -0
- data/templates/project/sources/pie/tests/multiple-bg-tests.html +100 -0
- data/templates/project/sources/pie/tests/peculiar-icons/Peculiar.html +372 -0
- data/templates/project/sources/pie/tests/peculiar-icons/pictograms.css +1934 -0
- data/templates/project/sources/pie/tests/peculiar-icons/style.css +106 -0
- data/templates/project/sources/pie/tests/photo.jpg +0 -0
- data/templates/project/sources/pie/tests/png-fix.html +50 -0
- data/templates/project/sources/pie/tests/position-fixed.html +70 -0
- data/templates/project/sources/pie/tests/rtl.html +190 -0
- data/templates/project/sources/pie/tests/sizing-tests.html +55 -0
- data/templates/project/sources/pie/tests/solar-system/asteroids_meteorids.png +0 -0
- data/templates/project/sources/pie/tests/solar-system/bg.jpg +0 -0
- data/templates/project/sources/pie/tests/solar-system/solar-system.html +148 -0
- data/templates/project/sources/pie/tests/solar-system/styles.css +447 -0
- data/templates/project/sources/pie/tests/stress-test.html +187 -0
- data/templates/project/sources/pie/tests/submitted/block.png +0 -0
- data/templates/project/sources/pie/tests/submitted/forum-f3-t19.html +31 -0
- data/templates/project/sources/pie/tests/submitted/forum-f3-t25.gif +0 -0
- data/templates/project/sources/pie/tests/submitted/forum-f3-t25.html +24 -0
- data/templates/project/sources/pie/tests/submitted/forum-f3-t70.html +136 -0
- data/templates/project/sources/pie/tests/submitted/issue23.html +124 -0
- data/templates/project/sources/pie/tests/submitted/issue41.html +164 -0
- data/templates/project/sources/pie/tests/submitted/issue47.html +136 -0
- data/templates/project/sources/pie/tests/submitted/issue75.html +94 -0
- data/templates/project/sources/pie/tests/submitted/tab.png +0 -0
- data/templates/project/sources/pie/tests/tables.html +87 -0
- data/templates/project/sources/pie/tests/tokenizer-tests.html +158 -0
- data/templates/project/sources/pie/tests/z-index-tests.html +145 -0
- data/templates/project/sources/pie/tools/compiler.jar +0 -0
- data/templates/project/sources/scrollability/README.md +38 -0
- data/templates/project/sources/scrollability/scrollability-min.js +1 -0
- data/templates/project/sources/scrollability/scrollability.js +661 -0
- data/templates/project/sources/scrollorama/README.md +21 -0
- data/templates/project/sources/scrollorama/css/normalize.css +439 -0
- data/templates/project/sources/scrollorama/css/style.css +257 -0
- data/templates/project/sources/scrollorama/index.html +167 -0
- data/templates/project/sources/scrollorama/js/jquery-1.7.1.min.js +4 -0
- data/templates/project/sources/scrollorama/js/jquery.lettering-0.6.1.min.js +2 -0
- data/templates/project/sources/scrollorama/js/jquery.scrollorama.js +299 -0
- data/templates/project/style.sass +20 -25
- data/templates/project/survival-kit-logo.png +0 -0
- data/templates/project/survivalkit/drupal7.sass +2563 -0
- data/templates/project/survivalkit/survivalkit.sass +137 -0
- data/templates/project/templates/old/survivalkit/partials/header.haml +3 -3
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/rss-link.haml +1 -1
- data/templates/project/templates/old/survivalkit/partials/patterns-general/rss-link.haml +1 -1
- metadata +1253 -38
- data/VERSION +0 -1
- data/stylesheets/survivalkit/functions/_color.sass +0 -7
- data/stylesheets/survivalkit/mixins/_sfx.sass +0 -199
- data/stylesheets/survivalkit/variables/_color_schemes.sass +0 -54
- data/templates/project/partials/03-defaults/_common.sass +0 -40
- data/templates/project/partials/05-ui-patterns/_common.sass +0 -26
@@ -0,0 +1,1872 @@
|
|
1
|
+
/*
|
2
|
+
File: flexie.js
|
3
|
+
|
4
|
+
About: Version
|
5
|
+
1.0
|
6
|
+
|
7
|
+
Project: Flexie
|
8
|
+
|
9
|
+
Description:
|
10
|
+
Legacy support for the CSS3 Flexible Box Model
|
11
|
+
|
12
|
+
License:
|
13
|
+
The MIT License
|
14
|
+
|
15
|
+
Copyright (c) 2010 Richard Herrera
|
16
|
+
|
17
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
18
|
+
of this software and associated documentation files (the "Software"), to deal
|
19
|
+
in the Software without restriction, including without limitation the rights
|
20
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
21
|
+
copies of the Software, and to permit persons to whom the Software is
|
22
|
+
furnished to do so, subject to the following conditions:
|
23
|
+
|
24
|
+
The above copyright notice and this permission notice shall be included in
|
25
|
+
all copies or substantial portions of the Software.
|
26
|
+
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
28
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
29
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
30
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
31
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
32
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
33
|
+
THE SOFTWARE.
|
34
|
+
*/
|
35
|
+
|
36
|
+
/*
|
37
|
+
Class: Flexie
|
38
|
+
Scoped to the Flexie Global Namespace
|
39
|
+
*/
|
40
|
+
|
41
|
+
/*jslint evil: true, regexp: false, plusplus: false */
|
42
|
+
/*global window, document */
|
43
|
+
|
44
|
+
var Flexie = (function (win, doc) {
|
45
|
+
|
46
|
+
// Scope public properties
|
47
|
+
var FLX = {},
|
48
|
+
|
49
|
+
// Each Flexie-modified DOM node gets a unique identifier
|
50
|
+
FLX_DOM_ID = 0,
|
51
|
+
FLX_DOM_ATTR = "data-flexie-id",
|
52
|
+
FLX_PARENT_ATTR = "data-flexie-parent",
|
53
|
+
|
54
|
+
// Store support for flexbox
|
55
|
+
SUPPORT,
|
56
|
+
|
57
|
+
// Store reference to engine
|
58
|
+
ENGINE,
|
59
|
+
|
60
|
+
ENGINES = {
|
61
|
+
"NW" : {
|
62
|
+
s : "*.Dom.select"
|
63
|
+
},
|
64
|
+
"DOMAssistant" : {
|
65
|
+
s : "*.$",
|
66
|
+
m : "*.DOMReady"
|
67
|
+
},
|
68
|
+
"Prototype" : {
|
69
|
+
s : "$$",
|
70
|
+
m : "document.observe",
|
71
|
+
p : "dom:loaded",
|
72
|
+
c : "document"
|
73
|
+
},
|
74
|
+
"YAHOO" : {
|
75
|
+
s : "*.util.Selector.query",
|
76
|
+
m : "*.util.Event.onDOMReady",
|
77
|
+
c : "*.util.Event"
|
78
|
+
},
|
79
|
+
"MooTools" : {
|
80
|
+
s : "$$",
|
81
|
+
m : "window.addEvent",
|
82
|
+
p : "domready"
|
83
|
+
},
|
84
|
+
"Sizzle" : {
|
85
|
+
s : "*"
|
86
|
+
},
|
87
|
+
"jQuery" : {
|
88
|
+
s : "*",
|
89
|
+
m : "*(document).ready"
|
90
|
+
},
|
91
|
+
"dojo" : {
|
92
|
+
s : "*.query",
|
93
|
+
m : "*.addOnLoad"
|
94
|
+
}
|
95
|
+
},
|
96
|
+
|
97
|
+
// Store reference to library
|
98
|
+
LIBRARY,
|
99
|
+
|
100
|
+
// Regular Expressions
|
101
|
+
PIXEL = /^-?\d+(?:px)?$/i,
|
102
|
+
NUMBER = /^-?\d/,
|
103
|
+
SIZES = /width|height|margin|padding|border/,
|
104
|
+
MSIE = /(msie) ([\w.]+)/,
|
105
|
+
WHITESPACE_CHARACTERS = /\t|\n|\r/g,
|
106
|
+
RESTRICTIVE_PROPERTIES = /^max\-([a-z]+)/,
|
107
|
+
PROTOCOL = /^https?:\/\//i,
|
108
|
+
LEADINGTRIM = /^\s\s*/,
|
109
|
+
TRAILINGTRIM = /\s\s*$/,
|
110
|
+
ONLY_WHITESPACE = /^\s*$/,
|
111
|
+
CSS_SELECTOR = /\s?(\#|\.|\[|\:(\:)?[^first\-(line|letter)|before|after]+)/g,
|
112
|
+
|
113
|
+
// String constants
|
114
|
+
EMPTY_STRING = "",
|
115
|
+
SPACE_STRING = " ",
|
116
|
+
PLACEHOLDER_STRING = "$1",
|
117
|
+
PADDING_RIGHT = "paddingRight",
|
118
|
+
PADDING_BOTTOM = "paddingBottom",
|
119
|
+
PADDING_LEFT = "paddingLeft",
|
120
|
+
PADDING_TOP = "paddingTop",
|
121
|
+
BORDER_RIGHT = "borderRightWidth",
|
122
|
+
BORDER_BOTTOM = "borderBottomWidth",
|
123
|
+
BORDER_LEFT = "borderLeftWidth",
|
124
|
+
BORDER_TOP = "borderTopWidth",
|
125
|
+
HORIZONTAL = "horizontal",
|
126
|
+
VERTICAL = "vertical",
|
127
|
+
INLINE_AXIS = "inline-axis",
|
128
|
+
BLOCK_AXIS = "block-axis",
|
129
|
+
INHERIT = "inherit",
|
130
|
+
LEFT = "left",
|
131
|
+
|
132
|
+
END_MUSTACHE = "}",
|
133
|
+
|
134
|
+
PREFIXES = " -o- -moz- -ms- -webkit- -khtml- ".split(SPACE_STRING),
|
135
|
+
|
136
|
+
DEFAULTS = {
|
137
|
+
orient : HORIZONTAL,
|
138
|
+
align : "stretch",
|
139
|
+
direction : INHERIT,
|
140
|
+
pack : "start"
|
141
|
+
},
|
142
|
+
|
143
|
+
// Global reference objects
|
144
|
+
FLEX_BOXES = [],
|
145
|
+
POSSIBLE_FLEX_CHILDREN = [],
|
146
|
+
DOM_ORDERED,
|
147
|
+
|
148
|
+
RESIZE_LISTENER,
|
149
|
+
|
150
|
+
// Minification optimizations
|
151
|
+
TRUE = true,
|
152
|
+
FALSE = false,
|
153
|
+
NULL = null,
|
154
|
+
UNDEFINED,
|
155
|
+
|
156
|
+
// If IE, which version?
|
157
|
+
BROWSER = {
|
158
|
+
IE : (function () {
|
159
|
+
var ie, ua = win.navigator.userAgent,
|
160
|
+
match = (MSIE).exec(ua.toLowerCase());
|
161
|
+
|
162
|
+
if (match) {
|
163
|
+
ie = parseInt(match[2], 10);
|
164
|
+
}
|
165
|
+
|
166
|
+
return ie;
|
167
|
+
}())
|
168
|
+
},
|
169
|
+
|
170
|
+
/*
|
171
|
+
selectivizr v1.0.0 - (c) Keith Clark, freely distributable under the terms
|
172
|
+
of the MIT license.
|
173
|
+
|
174
|
+
selectivizr.com
|
175
|
+
*/
|
176
|
+
selectivizrEngine;
|
177
|
+
|
178
|
+
function trim (string) {
|
179
|
+
if (string) {
|
180
|
+
string = string.replace(LEADINGTRIM, EMPTY_STRING).replace(TRAILINGTRIM, EMPTY_STRING);
|
181
|
+
}
|
182
|
+
|
183
|
+
return string;
|
184
|
+
}
|
185
|
+
|
186
|
+
// Via jQuery 1.4.3
|
187
|
+
// http://github.com/jquery/jquery/blob/master/src/core.js#L593
|
188
|
+
function forEach(object, callback) {
|
189
|
+
var name, i = 0, value,
|
190
|
+
length = object ? object.length : UNDEFINED,
|
191
|
+
isObj = length === UNDEFINED;
|
192
|
+
|
193
|
+
if (isObj) {
|
194
|
+
for (name in object) {
|
195
|
+
if (object.hasOwnProperty(name)) {
|
196
|
+
if (callback.call(object[name], name, object[name]) === FALSE) {
|
197
|
+
break;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
} else {
|
202
|
+
for (value = object[0]; i < length && callback.call(value, i, value) !== FALSE; value = object[++i]) {
|
203
|
+
continue;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
// --[ determineSelectorMethod() ]--------------------------------------
|
209
|
+
// walks through the engines object testing for an suitable
|
210
|
+
// selector engine.
|
211
|
+
|
212
|
+
// Moving outside Selectivizr scope because detection is needed before running selectivizrEngine
|
213
|
+
function determineSelectorMethod() {
|
214
|
+
// compatiable selector engines in order of CSS3 support
|
215
|
+
var engines = ENGINES, method;
|
216
|
+
|
217
|
+
forEach(engines, function (engine, obj) {
|
218
|
+
if (win[engine] && !method) {
|
219
|
+
method = eval(obj.s.replace("*", engine));
|
220
|
+
|
221
|
+
if (method) {
|
222
|
+
ENGINE = engine;
|
223
|
+
return false;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
});
|
227
|
+
|
228
|
+
return method;
|
229
|
+
}
|
230
|
+
|
231
|
+
// Event handler for onload/onresize events
|
232
|
+
function addEvent(type, func) {
|
233
|
+
type = "on" + type;
|
234
|
+
var oldevent = win[type];
|
235
|
+
|
236
|
+
if (typeof win[type] !== "function") {
|
237
|
+
win[type] = func;
|
238
|
+
} else {
|
239
|
+
win[type] = function () {
|
240
|
+
if (oldevent) {
|
241
|
+
oldevent();
|
242
|
+
}
|
243
|
+
func();
|
244
|
+
};
|
245
|
+
}
|
246
|
+
}
|
247
|
+
|
248
|
+
function attachLoadMethod(handler) {
|
249
|
+
if (!ENGINE) {
|
250
|
+
LIBRARY = determineSelectorMethod();
|
251
|
+
}
|
252
|
+
|
253
|
+
// compatiable selector engines in order of CSS3 support
|
254
|
+
var engines = ENGINES,
|
255
|
+
method, caller, args;
|
256
|
+
|
257
|
+
forEach(engines, function (engine, obj) {
|
258
|
+
if (win[engine] && !method && obj.m) {
|
259
|
+
method = eval(obj.m.replace("*", engine));
|
260
|
+
caller = obj.c ? eval(obj.c.replace("*", engine)) : win;
|
261
|
+
args = [];
|
262
|
+
|
263
|
+
if (method && caller) {
|
264
|
+
if (obj.p) {
|
265
|
+
args.push(obj.p);
|
266
|
+
}
|
267
|
+
args.push(handler);
|
268
|
+
method.apply(caller, args);
|
269
|
+
return false;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
});
|
273
|
+
|
274
|
+
if (!method) {
|
275
|
+
addEvent("load", handler);
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
function buildSelector (node) {
|
280
|
+
var selector = node.nodeName.toLowerCase();
|
281
|
+
|
282
|
+
if (node.id) {
|
283
|
+
selector += "#" + node.id;
|
284
|
+
} else if (node.FLX_DOM_ID) {
|
285
|
+
selector += "[" + FLX_DOM_ATTR + "='" + node.FLX_DOM_ID + "']";
|
286
|
+
}
|
287
|
+
|
288
|
+
return selector;
|
289
|
+
}
|
290
|
+
|
291
|
+
function setFlexieId (node) {
|
292
|
+
if (!node.FLX_DOM_ID) {
|
293
|
+
FLX_DOM_ID = (FLX_DOM_ID + 1);
|
294
|
+
|
295
|
+
node.FLX_DOM_ID = FLX_DOM_ID;
|
296
|
+
node.setAttribute(FLX_DOM_ATTR, node.FLX_DOM_ID);
|
297
|
+
}
|
298
|
+
}
|
299
|
+
|
300
|
+
function buildSelectorTree(text) {
|
301
|
+
var rules = [], ruletext, rule,
|
302
|
+
match, selector, proptext, splitprop, properties;
|
303
|
+
|
304
|
+
// Tabs, Returns
|
305
|
+
text = text.replace(WHITESPACE_CHARACTERS, EMPTY_STRING);
|
306
|
+
|
307
|
+
// Leading / Trailing Whitespace
|
308
|
+
text = text.replace(/\s?(\{|\:|\})\s?/g, PLACEHOLDER_STRING);
|
309
|
+
|
310
|
+
ruletext = text.split(END_MUSTACHE);
|
311
|
+
|
312
|
+
forEach(ruletext, function (i, text) {
|
313
|
+
if (text) {
|
314
|
+
rule = [text, END_MUSTACHE].join(EMPTY_STRING);
|
315
|
+
|
316
|
+
match = (/(.*)\{(.*)\}/).exec(rule);
|
317
|
+
|
318
|
+
if (match && match[2]) {
|
319
|
+
selector = match[1];
|
320
|
+
proptext = match[2].split(";");
|
321
|
+
properties = [];
|
322
|
+
|
323
|
+
forEach(proptext, function (i, x) {
|
324
|
+
splitprop = x.split(":");
|
325
|
+
|
326
|
+
if (splitprop.length && splitprop[1]) {
|
327
|
+
properties.push({
|
328
|
+
property : splitprop[0],
|
329
|
+
value : splitprop[1]
|
330
|
+
});
|
331
|
+
}
|
332
|
+
});
|
333
|
+
|
334
|
+
if (selector && properties.length) {
|
335
|
+
rules.push({
|
336
|
+
selector : selector,
|
337
|
+
properties : properties
|
338
|
+
});
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
342
|
+
});
|
343
|
+
|
344
|
+
return rules;
|
345
|
+
}
|
346
|
+
|
347
|
+
function findFlexboxElements(rules) {
|
348
|
+
var selectors, properties,
|
349
|
+
property, value, shortProp,
|
350
|
+
selectorSplit = /\s?,\s?/,
|
351
|
+
createUniqueObject, addRules,
|
352
|
+
uniqueChildren = {}, uniqueBoxes = {};
|
353
|
+
|
354
|
+
createUniqueObject = function (selector, rules, prop, value) {
|
355
|
+
var unique = {
|
356
|
+
selector : trim(selector),
|
357
|
+
properties : []
|
358
|
+
};
|
359
|
+
|
360
|
+
forEach(rules.properties, function (i, prop) {
|
361
|
+
unique.properties.push({
|
362
|
+
property : trim(prop.property),
|
363
|
+
value : trim(prop.value)
|
364
|
+
});
|
365
|
+
});
|
366
|
+
|
367
|
+
if (prop && value) {
|
368
|
+
unique[prop] = value;
|
369
|
+
}
|
370
|
+
|
371
|
+
return unique;
|
372
|
+
};
|
373
|
+
|
374
|
+
addRules = function (selector, rules, prop, value) {
|
375
|
+
var box = (prop && value) ? uniqueChildren[selector] : uniqueBoxes[selector],
|
376
|
+
exists;
|
377
|
+
|
378
|
+
if (box) {
|
379
|
+
forEach(rules.properties, function (i, rule) {
|
380
|
+
forEach(box.properties, function (j, x) {
|
381
|
+
if (rule.property === x.property) {
|
382
|
+
exists = j;
|
383
|
+
return false;
|
384
|
+
}
|
385
|
+
});
|
386
|
+
|
387
|
+
if (exists) {
|
388
|
+
box.properties[exists] = rule;
|
389
|
+
} else {
|
390
|
+
box.properties.push(rule);
|
391
|
+
}
|
392
|
+
});
|
393
|
+
|
394
|
+
if (prop && value) {
|
395
|
+
box[prop] = value;
|
396
|
+
}
|
397
|
+
} else {
|
398
|
+
if (prop && value) {
|
399
|
+
uniqueChildren[selector] = createUniqueObject(selector, rules, prop, value);
|
400
|
+
} else {
|
401
|
+
uniqueBoxes[selector] = createUniqueObject(selector, rules, NULL, NULL);
|
402
|
+
}
|
403
|
+
}
|
404
|
+
};
|
405
|
+
|
406
|
+
forEach(rules, function (i, rule) {
|
407
|
+
selectors = trim(rule.selector).replace(selectorSplit, ",").split(selectorSplit);
|
408
|
+
|
409
|
+
forEach(selectors, function (i, selector) {
|
410
|
+
selector = trim(selector);
|
411
|
+
properties = rule.properties;
|
412
|
+
|
413
|
+
forEach(properties, function (i, prop) {
|
414
|
+
property = trim(prop.property);
|
415
|
+
value = trim(prop.value);
|
416
|
+
|
417
|
+
if (property) {
|
418
|
+
shortProp = property.replace("box-", EMPTY_STRING);
|
419
|
+
|
420
|
+
switch (shortProp) {
|
421
|
+
case "display" :
|
422
|
+
if (value === "box") {
|
423
|
+
addRules(selector, rule, NULL, NULL);
|
424
|
+
}
|
425
|
+
break;
|
426
|
+
|
427
|
+
case "orient" :
|
428
|
+
case "align" :
|
429
|
+
case "direction" :
|
430
|
+
case "pack" :
|
431
|
+
addRules(selector, rule, NULL, NULL);
|
432
|
+
break;
|
433
|
+
|
434
|
+
case "flex" :
|
435
|
+
case "flex-group" :
|
436
|
+
case "ordinal-group" :
|
437
|
+
addRules(selector, rule, shortProp, value);
|
438
|
+
break;
|
439
|
+
}
|
440
|
+
}
|
441
|
+
});
|
442
|
+
});
|
443
|
+
});
|
444
|
+
|
445
|
+
forEach(uniqueBoxes, function (key, box) {
|
446
|
+
FLEX_BOXES.push(box);
|
447
|
+
});
|
448
|
+
|
449
|
+
forEach(uniqueChildren, function (key, child) {
|
450
|
+
POSSIBLE_FLEX_CHILDREN.push(child);
|
451
|
+
});
|
452
|
+
|
453
|
+
return {
|
454
|
+
boxes : FLEX_BOXES,
|
455
|
+
children : POSSIBLE_FLEX_CHILDREN
|
456
|
+
};
|
457
|
+
}
|
458
|
+
|
459
|
+
function matchFlexChildren(parent, lib, possibleChildren) {
|
460
|
+
var caller, unique, matches = [];
|
461
|
+
|
462
|
+
forEach(possibleChildren, function (i, child) {
|
463
|
+
if (child.selector) {
|
464
|
+
caller = lib(child.selector);
|
465
|
+
caller = caller[0] ? caller : [caller];
|
466
|
+
|
467
|
+
if (caller[0]) {
|
468
|
+
forEach(caller, function (i, node) {
|
469
|
+
switch (node.nodeName.toLowerCase()) {
|
470
|
+
case "script" :
|
471
|
+
case "style" :
|
472
|
+
case "link" :
|
473
|
+
break;
|
474
|
+
|
475
|
+
default :
|
476
|
+
if (node.parentNode === parent) {
|
477
|
+
// Flag each unique node with FLX_DOM_ID
|
478
|
+
setFlexieId(node);
|
479
|
+
|
480
|
+
unique = {};
|
481
|
+
|
482
|
+
forEach(child, function (key) {
|
483
|
+
unique[key] = child[key];
|
484
|
+
});
|
485
|
+
|
486
|
+
unique.match = node;
|
487
|
+
matches.push(unique);
|
488
|
+
}
|
489
|
+
break;
|
490
|
+
}
|
491
|
+
});
|
492
|
+
}
|
493
|
+
} else {
|
494
|
+
// Flag each unique node with FLX_DOM_ID
|
495
|
+
setFlexieId(child);
|
496
|
+
|
497
|
+
matches.push({
|
498
|
+
match : child,
|
499
|
+
selector : buildSelector(child)
|
500
|
+
});
|
501
|
+
}
|
502
|
+
});
|
503
|
+
|
504
|
+
return matches;
|
505
|
+
}
|
506
|
+
|
507
|
+
function getParams(params) {
|
508
|
+
forEach(params, function (key, value) {
|
509
|
+
params[key] = value || DEFAULTS[key];
|
510
|
+
});
|
511
|
+
|
512
|
+
return params;
|
513
|
+
}
|
514
|
+
|
515
|
+
function buildFlexieCall(flexers) {
|
516
|
+
var selector, properties, property, value, shortProp,
|
517
|
+
display, orient, align, direction, pack,
|
518
|
+
lib, caller, children,
|
519
|
+
box, params, flexboxes = {},
|
520
|
+
match, childMatch, nestedFlexboxes,
|
521
|
+
flexieParentSelector = "[" + FLX_PARENT_ATTR + "]";
|
522
|
+
|
523
|
+
// No boxflex? No dice.
|
524
|
+
if (!flexers) {
|
525
|
+
return;
|
526
|
+
}
|
527
|
+
|
528
|
+
forEach(flexers.boxes, function (i, flex) {
|
529
|
+
flex.selector = trim(flex.selector);
|
530
|
+
|
531
|
+
selector = flex.selector;
|
532
|
+
properties = flex.properties;
|
533
|
+
|
534
|
+
display = orient = align = direction = pack = NULL;
|
535
|
+
|
536
|
+
forEach(properties, function (i, prop) {
|
537
|
+
|
538
|
+
property = trim(prop.property);
|
539
|
+
value = trim(prop.value);
|
540
|
+
|
541
|
+
if (property) {
|
542
|
+
shortProp = property.replace("box-", EMPTY_STRING);
|
543
|
+
|
544
|
+
switch (shortProp) {
|
545
|
+
case "display" :
|
546
|
+
if (value === "box") {
|
547
|
+
display = value;
|
548
|
+
}
|
549
|
+
break;
|
550
|
+
|
551
|
+
case "orient" :
|
552
|
+
orient = value;
|
553
|
+
break;
|
554
|
+
|
555
|
+
case "align" :
|
556
|
+
align = value;
|
557
|
+
break;
|
558
|
+
|
559
|
+
case "direction" :
|
560
|
+
direction = value;
|
561
|
+
break;
|
562
|
+
|
563
|
+
case "pack" :
|
564
|
+
pack = value;
|
565
|
+
break;
|
566
|
+
}
|
567
|
+
}
|
568
|
+
});
|
569
|
+
|
570
|
+
// Determine library
|
571
|
+
lib = LIBRARY;
|
572
|
+
|
573
|
+
// Call it.
|
574
|
+
caller = lib(flex.selector);
|
575
|
+
|
576
|
+
// In an array?
|
577
|
+
caller = caller[0] ? caller : [caller];
|
578
|
+
|
579
|
+
forEach(caller, function (i, target) {
|
580
|
+
// If is DOM object
|
581
|
+
if (target.nodeType) {
|
582
|
+
// Flag each unique node with FLX_DOM_ID
|
583
|
+
setFlexieId(target);
|
584
|
+
|
585
|
+
// Find possible child node matches
|
586
|
+
children = matchFlexChildren(target, lib, flexers.children);
|
587
|
+
|
588
|
+
// Find any nested flexbox elements
|
589
|
+
nestedFlexboxes = selector + " " + flexieParentSelector;
|
590
|
+
|
591
|
+
// Make sure there is some value associated with box properties
|
592
|
+
params = {
|
593
|
+
target : target,
|
594
|
+
selector : selector,
|
595
|
+
properties : properties,
|
596
|
+
children : children,
|
597
|
+
display : display,
|
598
|
+
orient : orient,
|
599
|
+
align : align,
|
600
|
+
direction: direction,
|
601
|
+
pack : pack,
|
602
|
+
nested : nestedFlexboxes
|
603
|
+
};
|
604
|
+
|
605
|
+
match = flexboxes[target.FLX_DOM_ID];
|
606
|
+
|
607
|
+
if (match) {
|
608
|
+
forEach(params, function (key, value) {
|
609
|
+
switch (key) {
|
610
|
+
case "selector" :
|
611
|
+
if (value && !(new RegExp(value).test(match[key]))) {
|
612
|
+
match[key] += ", " + value;
|
613
|
+
}
|
614
|
+
break;
|
615
|
+
|
616
|
+
case "children" :
|
617
|
+
forEach(params[key], function (k, child) {
|
618
|
+
childMatch = FALSE;
|
619
|
+
|
620
|
+
forEach(match[key], function (key, existing) {
|
621
|
+
if (child.match.FLX_DOM_ID === existing.match.FLX_DOM_ID) {
|
622
|
+
childMatch = TRUE;
|
623
|
+
}
|
624
|
+
});
|
625
|
+
|
626
|
+
if (!childMatch) {
|
627
|
+
match[key].push(child);
|
628
|
+
}
|
629
|
+
});
|
630
|
+
break;
|
631
|
+
|
632
|
+
default :
|
633
|
+
if (value) {
|
634
|
+
match[key] = value;
|
635
|
+
}
|
636
|
+
break;
|
637
|
+
}
|
638
|
+
});
|
639
|
+
} else {
|
640
|
+
flexboxes[target.FLX_DOM_ID] = getParams(params);
|
641
|
+
flexboxes[target.FLX_DOM_ID].target.setAttribute(FLX_PARENT_ATTR, TRUE);
|
642
|
+
}
|
643
|
+
}
|
644
|
+
});
|
645
|
+
});
|
646
|
+
|
647
|
+
DOM_ORDERED = LIBRARY(flexieParentSelector);
|
648
|
+
FLEX_BOXES = {};
|
649
|
+
|
650
|
+
forEach(DOM_ORDERED, function (i, target) {
|
651
|
+
FLEX_BOXES[target.FLX_DOM_ID] = flexboxes[target.FLX_DOM_ID];
|
652
|
+
});
|
653
|
+
|
654
|
+
// Loop through each match, initialize constructor
|
655
|
+
forEach(FLEX_BOXES, function (key, flex) {
|
656
|
+
// One final check to ensure each flexbox has a display property
|
657
|
+
if (flex.display === "box") {
|
658
|
+
// Constructor
|
659
|
+
box = new FLX.box(flex);
|
660
|
+
}
|
661
|
+
});
|
662
|
+
}
|
663
|
+
|
664
|
+
function calcPx(element, props, dir) {
|
665
|
+
var dim = dir.replace(dir.charAt(0), dir.charAt(0).toUpperCase()),
|
666
|
+
value = element["offset" + dim] || 0;
|
667
|
+
|
668
|
+
if (value) {
|
669
|
+
forEach(props, function (i, prop) {
|
670
|
+
prop = parseFloat(element.currentStyle[prop]);
|
671
|
+
if (!isNaN(prop)) {
|
672
|
+
value -= prop;
|
673
|
+
}
|
674
|
+
});
|
675
|
+
}
|
676
|
+
|
677
|
+
return value;
|
678
|
+
}
|
679
|
+
|
680
|
+
function getTrueValue(element, name) {
|
681
|
+
var left, rsLeft,
|
682
|
+
ret = element.currentStyle && element.currentStyle[name],
|
683
|
+
style = element.style;
|
684
|
+
|
685
|
+
if (!PIXEL.test(ret) && NUMBER.test(ret)) {
|
686
|
+
|
687
|
+
// Remember the original values
|
688
|
+
left = style.left;
|
689
|
+
rsLeft = element.runtimeStyle.left;
|
690
|
+
|
691
|
+
// Put in the new values to get a computed value out
|
692
|
+
element.runtimeStyle.left = element.currentStyle.left;
|
693
|
+
style.left = ret || 0;
|
694
|
+
ret = style.pixelLeft + "px";
|
695
|
+
|
696
|
+
// Revert the changed values
|
697
|
+
style.left = left || 0;
|
698
|
+
element.runtimeStyle.left = rsLeft;
|
699
|
+
}
|
700
|
+
|
701
|
+
return ret;
|
702
|
+
}
|
703
|
+
|
704
|
+
function unAuto(element, prop, name) {
|
705
|
+
var props;
|
706
|
+
|
707
|
+
switch (name) {
|
708
|
+
case "width" :
|
709
|
+
props = [PADDING_LEFT, PADDING_RIGHT, BORDER_LEFT, BORDER_RIGHT];
|
710
|
+
prop = calcPx(element, props, name);
|
711
|
+
break;
|
712
|
+
|
713
|
+
case "height" :
|
714
|
+
props = [PADDING_TOP, PADDING_BOTTOM, BORDER_TOP, BORDER_BOTTOM];
|
715
|
+
prop = calcPx(element, props, name);
|
716
|
+
break;
|
717
|
+
|
718
|
+
default :
|
719
|
+
prop = getTrueValue(element, name);
|
720
|
+
break;
|
721
|
+
}
|
722
|
+
|
723
|
+
return prop;
|
724
|
+
}
|
725
|
+
|
726
|
+
function getPixelValue(element, prop, name) {
|
727
|
+
if (PIXEL.test(prop)) {
|
728
|
+
return prop;
|
729
|
+
}
|
730
|
+
|
731
|
+
// if property is auto, do some messy appending
|
732
|
+
if (prop === "auto" || prop === "medium") {
|
733
|
+
prop = unAuto(element, prop, name);
|
734
|
+
} else {
|
735
|
+
prop = getTrueValue(element, name);
|
736
|
+
}
|
737
|
+
|
738
|
+
return prop;
|
739
|
+
}
|
740
|
+
|
741
|
+
function getComputedStyle(element, property, returnAsInt) {
|
742
|
+
var value;
|
743
|
+
|
744
|
+
if (win.getComputedStyle) {
|
745
|
+
value = win.getComputedStyle(element, NULL)[property];
|
746
|
+
} else {
|
747
|
+
if (SIZES.test(property)) {
|
748
|
+
value = getPixelValue(element, (element && element.currentStyle) ? element.currentStyle[property] : 0, property);
|
749
|
+
} else {
|
750
|
+
value = element.currentStyle[property];
|
751
|
+
}
|
752
|
+
}
|
753
|
+
|
754
|
+
if (returnAsInt) {
|
755
|
+
value = parseInt(value, 10);
|
756
|
+
|
757
|
+
if (isNaN(value)) {
|
758
|
+
value = 0;
|
759
|
+
}
|
760
|
+
}
|
761
|
+
|
762
|
+
return value;
|
763
|
+
}
|
764
|
+
|
765
|
+
function clientWidth(element) {
|
766
|
+
return element.innerWidth || element.clientWidth;
|
767
|
+
}
|
768
|
+
|
769
|
+
function clientHeight(element) {
|
770
|
+
return element.innerHeight || element.clientHeight;
|
771
|
+
}
|
772
|
+
|
773
|
+
function appendProperty(target, prop, value, prefixName) {
|
774
|
+
var cssText = [];
|
775
|
+
|
776
|
+
forEach(PREFIXES, function (i, prefix) {
|
777
|
+
cssText.push((prefixName ? prefix : EMPTY_STRING) + prop + ":" + (!prefixName ? prefix : EMPTY_STRING) + value);
|
778
|
+
});
|
779
|
+
|
780
|
+
target.style.cssText += cssText.join(";");
|
781
|
+
return target;
|
782
|
+
}
|
783
|
+
|
784
|
+
function appendPixelValue(target, prop, value) {
|
785
|
+
var targets = target && target[0] ? target : [target];
|
786
|
+
|
787
|
+
forEach(targets, function (i, target) {
|
788
|
+
if (target && target.style) {
|
789
|
+
target.style[prop] = (value ? (value + "px") : EMPTY_STRING);
|
790
|
+
}
|
791
|
+
});
|
792
|
+
}
|
793
|
+
|
794
|
+
function calculateSpecificity (selector) {
|
795
|
+
var selectorGrid, matrix, total;
|
796
|
+
|
797
|
+
selectorGrid = selector.replace(CSS_SELECTOR, function (e, f) {
|
798
|
+
return "%" + f;
|
799
|
+
}).replace(/\s|\>|\+|\~/g, "%").split(/%/g);
|
800
|
+
|
801
|
+
matrix = {
|
802
|
+
_id : 100,
|
803
|
+
_class : 10,
|
804
|
+
_tag : 1
|
805
|
+
};
|
806
|
+
|
807
|
+
// Start with rule index position
|
808
|
+
total = 0;
|
809
|
+
|
810
|
+
// Add each selector value to total.
|
811
|
+
forEach(selectorGrid, function (i, chunk) {
|
812
|
+
if ((/#/).test(chunk)) {
|
813
|
+
total += matrix._id;
|
814
|
+
} else if ((/\.|\[|\:/).test(chunk)) {
|
815
|
+
total += matrix._class;
|
816
|
+
} else if ((/[a-zA-Z]+/).test(chunk)) {
|
817
|
+
total += matrix._tag;
|
818
|
+
}
|
819
|
+
});
|
820
|
+
|
821
|
+
return total;
|
822
|
+
}
|
823
|
+
|
824
|
+
function filterDuplicates (matches, children, type) {
|
825
|
+
var filteredMatches = [], exists,
|
826
|
+
spec = (type ? "ordinal" : "flex") + "Specificity";
|
827
|
+
|
828
|
+
forEach(matches, function (i, x) {
|
829
|
+
if ((!type && x.flex) || (type && x["ordinal-group"])) {
|
830
|
+
x[spec] = x[spec] || calculateSpecificity(x.selector);
|
831
|
+
|
832
|
+
exists = FALSE;
|
833
|
+
|
834
|
+
forEach(filteredMatches, function (j, f) {
|
835
|
+
if (f.match === x.match) {
|
836
|
+
if (f[spec] < x[spec]) {
|
837
|
+
filteredMatches[j] = x;
|
838
|
+
}
|
839
|
+
|
840
|
+
exists = TRUE;
|
841
|
+
return FALSE;
|
842
|
+
}
|
843
|
+
});
|
844
|
+
|
845
|
+
if (!exists) {
|
846
|
+
filteredMatches.push(x);
|
847
|
+
}
|
848
|
+
}
|
849
|
+
});
|
850
|
+
|
851
|
+
return filteredMatches;
|
852
|
+
}
|
853
|
+
|
854
|
+
function createMatchMatrix(matches, children, type) {
|
855
|
+
var groups = {}, keys = [], totalRatio = 0,
|
856
|
+
group, order = "ordinal-group",
|
857
|
+
BoxOrdinalAttr = "data-" + order;
|
858
|
+
|
859
|
+
// Filter dupes
|
860
|
+
matches = filterDuplicates(matches, children, type);
|
861
|
+
|
862
|
+
forEach(children, function (i, kid) {
|
863
|
+
forEach(matches, function (j, x) {
|
864
|
+
if (type) {
|
865
|
+
// If no value declared, it's the default.
|
866
|
+
group = x[order] || "1";
|
867
|
+
|
868
|
+
if (x.match === kid) {
|
869
|
+
x.match.setAttribute(BoxOrdinalAttr, group);
|
870
|
+
|
871
|
+
groups[group] = groups[group] || [];
|
872
|
+
groups[group].push(x);
|
873
|
+
}
|
874
|
+
} else {
|
875
|
+
// If no value declared, it's the default.
|
876
|
+
group = x.flex || "0";
|
877
|
+
|
878
|
+
if (x.match === kid && (!x[group] || (x[group] && parseInt(x[group], 10) <= 1))) {
|
879
|
+
totalRatio += parseInt(group, 10);
|
880
|
+
|
881
|
+
groups[group] = groups[group] || [];
|
882
|
+
groups[group].push(x);
|
883
|
+
}
|
884
|
+
}
|
885
|
+
});
|
886
|
+
|
887
|
+
if (type && !kid.getAttribute(BoxOrdinalAttr)) {
|
888
|
+
group = "1";
|
889
|
+
kid.setAttribute(BoxOrdinalAttr, group);
|
890
|
+
|
891
|
+
groups[group] = groups[group] || [];
|
892
|
+
groups[group].push({
|
893
|
+
match : kid
|
894
|
+
});
|
895
|
+
}
|
896
|
+
});
|
897
|
+
|
898
|
+
forEach(groups, function (key) {
|
899
|
+
keys.push(key);
|
900
|
+
});
|
901
|
+
|
902
|
+
keys.sort(function (a, b) {
|
903
|
+
return b - a;
|
904
|
+
});
|
905
|
+
|
906
|
+
return {
|
907
|
+
keys : keys,
|
908
|
+
groups : groups,
|
909
|
+
total : totalRatio
|
910
|
+
};
|
911
|
+
}
|
912
|
+
|
913
|
+
function floatDropFix(target, params, instance) {
|
914
|
+
// Float drop fix
|
915
|
+
// Test offset values. If different, let's bring the widow back
|
916
|
+
var offsetProp = "offsetTop",
|
917
|
+
children = params.nodes,
|
918
|
+
calcOffset, val = true;
|
919
|
+
|
920
|
+
calcOffset = function (kid) {
|
921
|
+
return kid[offsetProp] - getComputedStyle(kid, instance.anti.pos, TRUE);
|
922
|
+
};
|
923
|
+
|
924
|
+
while (val && calcOffset(children[0]) !== calcOffset(children[children.length - 1])) {
|
925
|
+
forEach(children, function (i, kid) {
|
926
|
+
if (!params.hasFlex || kid.getAttribute("data-flex")) {
|
927
|
+
val = Math.max(0, getComputedStyle(kid, instance.props.dim, TRUE) - 1);
|
928
|
+
kid.style[instance.props.dim] = val;
|
929
|
+
}
|
930
|
+
});
|
931
|
+
}
|
932
|
+
}
|
933
|
+
|
934
|
+
function attachResizeListener(construct, params) {
|
935
|
+
if (!RESIZE_LISTENER) {
|
936
|
+
var storedWidth, storedHeight,
|
937
|
+
currentWidth, currentHeight,
|
938
|
+
docBody = doc.body,
|
939
|
+
docEl = doc.documentElement,
|
940
|
+
innerWidth = "innerWidth", innerHeight = "innerHeight",
|
941
|
+
clientWidth = "clientWidth", clientHeight = "clientHeight";
|
942
|
+
|
943
|
+
addEvent("resize", function () {
|
944
|
+
currentWidth = win[innerWidth] || docEl[innerWidth] || docEl[clientWidth] || docBody[clientWidth];
|
945
|
+
currentHeight = win[innerHeight] || docEl[innerHeight] || docEl[clientHeight] || docBody[clientHeight];
|
946
|
+
|
947
|
+
if (storedWidth !== currentWidth || storedHeight !== currentHeight) {
|
948
|
+
FLX.updateInstance(NULL, NULL);
|
949
|
+
|
950
|
+
storedWidth = currentWidth;
|
951
|
+
storedHeight = currentHeight;
|
952
|
+
}
|
953
|
+
});
|
954
|
+
|
955
|
+
RESIZE_LISTENER = TRUE;
|
956
|
+
}
|
957
|
+
}
|
958
|
+
|
959
|
+
function cleanPositioningProperties (children) {
|
960
|
+
var w, h;
|
961
|
+
|
962
|
+
forEach(children, function (i, kid) {
|
963
|
+
w = kid.style.width;
|
964
|
+
h = kid.style.height;
|
965
|
+
|
966
|
+
kid.style.cssText = EMPTY_STRING;
|
967
|
+
|
968
|
+
kid.style.width = w;
|
969
|
+
kid.style.height = h;
|
970
|
+
});
|
971
|
+
}
|
972
|
+
|
973
|
+
function sanitizeChildren (target, nodes) {
|
974
|
+
var children = [], node, i, j;
|
975
|
+
|
976
|
+
for (i = 0, j = nodes.length; i < j; i++) {
|
977
|
+
node = nodes[i];
|
978
|
+
|
979
|
+
if (node) {
|
980
|
+
switch (node.nodeName.toLowerCase()) {
|
981
|
+
case "script" :
|
982
|
+
case "style" :
|
983
|
+
case "link" :
|
984
|
+
break;
|
985
|
+
|
986
|
+
default :
|
987
|
+
if (node.nodeType === 1) {
|
988
|
+
children.push(node);
|
989
|
+
} else if ((node.nodeType === 3) && (node.isElementContentWhitespace || (ONLY_WHITESPACE).test(node.data))) {
|
990
|
+
target.removeChild(node);
|
991
|
+
i--;
|
992
|
+
}
|
993
|
+
break;
|
994
|
+
}
|
995
|
+
}
|
996
|
+
}
|
997
|
+
|
998
|
+
return children;
|
999
|
+
}
|
1000
|
+
|
1001
|
+
function parentFlex (target) {
|
1002
|
+
var totalFlex = 0,
|
1003
|
+
parent = target.parentNode,
|
1004
|
+
obj,
|
1005
|
+
matrix,
|
1006
|
+
isNested;
|
1007
|
+
|
1008
|
+
while (parent.FLX_DOM_ID) {
|
1009
|
+
obj = FLEX_BOXES[parent.FLX_DOM_ID];
|
1010
|
+
matrix = createMatchMatrix(obj.children, sanitizeChildren(parent, parent.childNodes), NULL);
|
1011
|
+
|
1012
|
+
totalFlex += matrix.total;
|
1013
|
+
isNested = TRUE;
|
1014
|
+
|
1015
|
+
parent = parent.parentNode;
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
return {
|
1019
|
+
nested : isNested,
|
1020
|
+
flex : totalFlex
|
1021
|
+
};
|
1022
|
+
}
|
1023
|
+
|
1024
|
+
function dimensionValues (target, prop) {
|
1025
|
+
var parent = target.parentNode,
|
1026
|
+
obj,
|
1027
|
+
dimension;
|
1028
|
+
|
1029
|
+
if (parent.FLX_DOM_ID) {
|
1030
|
+
obj = FLEX_BOXES[parent.FLX_DOM_ID];
|
1031
|
+
|
1032
|
+
forEach(obj.properties, function (i, rule) {
|
1033
|
+
if ((new RegExp(prop)).test(rule.property)) {
|
1034
|
+
dimension = TRUE;
|
1035
|
+
return FALSE;
|
1036
|
+
}
|
1037
|
+
});
|
1038
|
+
}
|
1039
|
+
|
1040
|
+
return dimension;
|
1041
|
+
}
|
1042
|
+
|
1043
|
+
function updateChildValues (params) {
|
1044
|
+
if (params.flexMatrix) {
|
1045
|
+
forEach(params.children, function (i, x) {
|
1046
|
+
x.flex = params.flexMatrix[i];
|
1047
|
+
});
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
if (params.ordinalMatrix) {
|
1051
|
+
forEach(params.children, function (i, x) {
|
1052
|
+
x["ordinal-group"] = params.ordinalMatrix[i];
|
1053
|
+
});
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
return params;
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
function ensureStructuralIntegrity (params, instance) {
|
1060
|
+
var target = params.target;
|
1061
|
+
|
1062
|
+
if (!target.FLX_DOM_ID) {
|
1063
|
+
target.FLX_DOM_ID = target.FLX_DOM_ID || (++FLX_DOM_ID);
|
1064
|
+
}
|
1065
|
+
|
1066
|
+
if (!params.nodes) {
|
1067
|
+
params.nodes = sanitizeChildren(target, target.childNodes);
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
if (!params.selector) {
|
1071
|
+
params.selector = buildSelector(target);
|
1072
|
+
target.setAttribute(FLX_PARENT_ATTR, TRUE);
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
if (!params.properties) {
|
1076
|
+
params.properties = [];
|
1077
|
+
}
|
1078
|
+
|
1079
|
+
if (!params.children) {
|
1080
|
+
params.children = matchFlexChildren(target, LIBRARY, sanitizeChildren(target, target.childNodes));
|
1081
|
+
}
|
1082
|
+
|
1083
|
+
if (!params.nested) {
|
1084
|
+
params.nested = params.selector + " [" + FLX_PARENT_ATTR + "]";
|
1085
|
+
}
|
1086
|
+
|
1087
|
+
params.target = target;
|
1088
|
+
params._instance = instance;
|
1089
|
+
|
1090
|
+
return params;
|
1091
|
+
}
|
1092
|
+
|
1093
|
+
selectivizrEngine = (function () {
|
1094
|
+
var RE_COMMENT = /(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,
|
1095
|
+
RE_IMPORT = /@import\s*(?:url\(\s*?)?(["'])?(.*?)\1\s*\)?[\w\W]*?;/g,
|
1096
|
+
RE_ASSET_URL = /\surl\((["'])?([^"')]+)\1\)/g,
|
1097
|
+
RE_SELECTOR_GROUP = /(^|\})\s*([^\{]*?[\[:][^\{]+)/g,
|
1098
|
+
|
1099
|
+
// Whitespace normalization regexp's
|
1100
|
+
RE_TIDY_TRAILING_WHITESPACE = /([(\[+~])\s+/g,
|
1101
|
+
RE_TIDY_LEADING_WHITESPACE = /\s+([)\]+~])/g,
|
1102
|
+
RE_TIDY_CONSECUTIVE_WHITESPACE = /\s+/g,
|
1103
|
+
RE_TIDY_TRIM_WHITESPACE = /^\s*((?:[\S\s]*\S)?)\s*$/;
|
1104
|
+
|
1105
|
+
// --[ trim() ]---------------------------------------------------------
|
1106
|
+
// removes leading, trailing whitespace from a string
|
1107
|
+
function trim(text) {
|
1108
|
+
return text.replace(RE_TIDY_TRIM_WHITESPACE, PLACEHOLDER_STRING);
|
1109
|
+
}
|
1110
|
+
|
1111
|
+
// --[ normalizeWhitespace() ]------------------------------------------
|
1112
|
+
// removes leading, trailing and consecutive whitespace from a string
|
1113
|
+
function normalizeWhitespace(text) {
|
1114
|
+
return trim(text).replace(RE_TIDY_CONSECUTIVE_WHITESPACE, SPACE_STRING);
|
1115
|
+
}
|
1116
|
+
|
1117
|
+
// --[ normalizeSelectorWhitespace() ]----------------------------------
|
1118
|
+
// tidys whitespace around selector brackets and combinators
|
1119
|
+
function normalizeSelectorWhitespace(selectorText) {
|
1120
|
+
return normalizeWhitespace(selectorText.replace(RE_TIDY_TRAILING_WHITESPACE, PLACEHOLDER_STRING).replace(RE_TIDY_LEADING_WHITESPACE, PLACEHOLDER_STRING));
|
1121
|
+
}
|
1122
|
+
|
1123
|
+
// --[ patchStyleSheet() ]----------------------------------------------
|
1124
|
+
// Scans the passed cssText for selectors that require emulation and
|
1125
|
+
// creates one or more patches for each matched selector.
|
1126
|
+
function patchStyleSheet(cssText) {
|
1127
|
+
return cssText.replace(RE_SELECTOR_GROUP, function (m, prefix, selectorText) {
|
1128
|
+
var selectorGroups, selector;
|
1129
|
+
|
1130
|
+
selectorGroups = selectorText.split(",");
|
1131
|
+
|
1132
|
+
forEach(selectorGroups, function (i, group) {
|
1133
|
+
selector = normalizeSelectorWhitespace(group) + SPACE_STRING;
|
1134
|
+
});
|
1135
|
+
|
1136
|
+
return prefix + selectorGroups.join(",");
|
1137
|
+
});
|
1138
|
+
}
|
1139
|
+
|
1140
|
+
// --[ getXHRObject() ]-------------------------------------------------
|
1141
|
+
function getXHRObject() {
|
1142
|
+
if (win.XMLHttpRequest) {
|
1143
|
+
return new win.XMLHttpRequest();
|
1144
|
+
}
|
1145
|
+
|
1146
|
+
try {
|
1147
|
+
return new win.ActiveXObject("Microsoft.XMLHTTP");
|
1148
|
+
} catch (e) {
|
1149
|
+
return NULL;
|
1150
|
+
}
|
1151
|
+
}
|
1152
|
+
|
1153
|
+
// --[ loadStyleSheet() ]-----------------------------------------------
|
1154
|
+
function loadStyleSheet(url) {
|
1155
|
+
var xhr = getXHRObject();
|
1156
|
+
|
1157
|
+
xhr.open("GET", url, FALSE);
|
1158
|
+
xhr.send();
|
1159
|
+
return (xhr.status === 200) ? xhr.responseText : EMPTY_STRING;
|
1160
|
+
}
|
1161
|
+
|
1162
|
+
// --[ resolveUrl() ]---------------------------------------------------
|
1163
|
+
// Converts a URL fragment to a fully qualified URL using the specified
|
1164
|
+
// context URL. Returns null if same-origin policy is broken
|
1165
|
+
function resolveUrl(url, contextUrl) {
|
1166
|
+
|
1167
|
+
// IE9 returns a false positive sometimes(?)
|
1168
|
+
if (!url) {
|
1169
|
+
return;
|
1170
|
+
}
|
1171
|
+
|
1172
|
+
function getProtocolAndHost(url) {
|
1173
|
+
return url.substring(0, url.indexOf("/", 8));
|
1174
|
+
}
|
1175
|
+
|
1176
|
+
// absolute path
|
1177
|
+
if (PROTOCOL.test(url)) {
|
1178
|
+
return getProtocolAndHost(contextUrl) === getProtocolAndHost(url) ? url : NULL;
|
1179
|
+
}
|
1180
|
+
|
1181
|
+
// root-relative path
|
1182
|
+
if (url.charAt(0) === "/") {
|
1183
|
+
return getProtocolAndHost(contextUrl) + url;
|
1184
|
+
}
|
1185
|
+
|
1186
|
+
// relative path
|
1187
|
+
var contextUrlPath = contextUrl.split("?")[0]; // ignore query string in the contextUrl
|
1188
|
+
if (url.charAt(0) !== "?" && contextUrlPath.charAt(contextUrlPath.length - 1) !== "/") {
|
1189
|
+
contextUrlPath = contextUrlPath.substring(0, contextUrlPath.lastIndexOf("/") + 1);
|
1190
|
+
}
|
1191
|
+
|
1192
|
+
return contextUrlPath + url;
|
1193
|
+
}
|
1194
|
+
|
1195
|
+
// --[ parseStyleSheet() ]----------------------------------------------
|
1196
|
+
// Downloads the stylesheet specified by the URL, removes it's comments
|
1197
|
+
// and recursivly replaces @import rules with their contents, ultimately
|
1198
|
+
// returning the full cssText.
|
1199
|
+
function parseStyleSheet(url) {
|
1200
|
+
if (url) {
|
1201
|
+
return loadStyleSheet(url).replace(RE_COMMENT, EMPTY_STRING).replace(RE_IMPORT, function( match, quoteChar, importUrl ) {
|
1202
|
+
return parseStyleSheet(resolveUrl(importUrl, url));
|
1203
|
+
}).replace(RE_ASSET_URL, function( match, quoteChar, assetUrl ) {
|
1204
|
+
quoteChar = quoteChar || EMPTY_STRING;
|
1205
|
+
return " url(" + quoteChar + resolveUrl(assetUrl, url) + quoteChar + ") ";
|
1206
|
+
});
|
1207
|
+
}
|
1208
|
+
return EMPTY_STRING;
|
1209
|
+
}
|
1210
|
+
|
1211
|
+
// --[ init() ]---------------------------------------------------------
|
1212
|
+
return function () {
|
1213
|
+
// honour the <base> tag
|
1214
|
+
var url, stylesheet, i, j,
|
1215
|
+
baseTags = doc.getElementsByTagName("BASE"),
|
1216
|
+
baseUrl = (baseTags.length > 0) ? baseTags[0].href : doc.location.href,
|
1217
|
+
cssText, tree, flexers;
|
1218
|
+
|
1219
|
+
for (i = 0, j = doc.styleSheets.length; i < j; i++) {
|
1220
|
+
stylesheet = doc.styleSheets[i];
|
1221
|
+
|
1222
|
+
if (stylesheet && stylesheet.href !== NULL) {
|
1223
|
+
url = resolveUrl(stylesheet.href, baseUrl);
|
1224
|
+
|
1225
|
+
if (url) {
|
1226
|
+
cssText = patchStyleSheet(parseStyleSheet(url));
|
1227
|
+
tree = buildSelectorTree(cssText);
|
1228
|
+
flexers = findFlexboxElements(tree);
|
1229
|
+
}
|
1230
|
+
}
|
1231
|
+
}
|
1232
|
+
|
1233
|
+
buildFlexieCall(flexers);
|
1234
|
+
};
|
1235
|
+
}());
|
1236
|
+
|
1237
|
+
// Flexie box constructor
|
1238
|
+
FLX.box = function (params) {
|
1239
|
+
return this.renderModel(params);
|
1240
|
+
};
|
1241
|
+
|
1242
|
+
FLX.box.prototype = {
|
1243
|
+
properties : {
|
1244
|
+
boxModel : function (target, children, params) {
|
1245
|
+
var selector, stylesheet, paddingFix, generatedRules;
|
1246
|
+
|
1247
|
+
target.style.display = "block";
|
1248
|
+
|
1249
|
+
if (BROWSER.IE === 8) {
|
1250
|
+
target.style.overflow = "hidden";
|
1251
|
+
}
|
1252
|
+
|
1253
|
+
// We'll be using floats, so the easiest way to retain layout
|
1254
|
+
// is the dreaded clear fix:
|
1255
|
+
if (!params.cleared) {
|
1256
|
+
selectors = params.selector.split(/\s?,\s?/);
|
1257
|
+
stylesheet = doc.styleSheets;
|
1258
|
+
stylesheet = stylesheet[stylesheet.length - 1];
|
1259
|
+
paddingFix = "padding-top:" + (getComputedStyle(target, PADDING_TOP, NULL) || "0.1px;");
|
1260
|
+
|
1261
|
+
generatedRules = [
|
1262
|
+
"content: '.'",
|
1263
|
+
"display: block",
|
1264
|
+
"height: 0",
|
1265
|
+
"overflow: hidden"
|
1266
|
+
].join(";");
|
1267
|
+
|
1268
|
+
forEach(selectors, function (i, selector) {
|
1269
|
+
if (stylesheet.addRule) {
|
1270
|
+
if (BROWSER.IE < 8) {
|
1271
|
+
target.style.zoom = "1";
|
1272
|
+
|
1273
|
+
if (BROWSER.IE === 6) {
|
1274
|
+
stylesheet.addRule(selector.replace(/\>|\+|\~/g, ""), paddingFix + "zoom:1;", 0);
|
1275
|
+
} else if (BROWSER.IE === 7) {
|
1276
|
+
stylesheet.addRule(selector, paddingFix + "display:inline-block;", 0);
|
1277
|
+
}
|
1278
|
+
} else {
|
1279
|
+
stylesheet.addRule(selector, paddingFix, 0);
|
1280
|
+
stylesheet.addRule(selector + ":before", generatedRules, 0);
|
1281
|
+
stylesheet.addRule(selector + ":after", generatedRules + ";clear:both;", 0);
|
1282
|
+
}
|
1283
|
+
} else if (stylesheet.insertRule) {
|
1284
|
+
stylesheet.insertRule(selector + "{" + paddingFix + "}", 0);
|
1285
|
+
stylesheet.insertRule(selector + ":after{" + generatedRules + ";clear:both;}", 0);
|
1286
|
+
}
|
1287
|
+
});
|
1288
|
+
|
1289
|
+
params.cleared = TRUE;
|
1290
|
+
}
|
1291
|
+
},
|
1292
|
+
|
1293
|
+
boxDirection : function (target, children, params) {
|
1294
|
+
var nestedSelector, nested;
|
1295
|
+
|
1296
|
+
if ((params.direction === "reverse" && !params.reversed) || (params.direction === "normal" && params.reversed)) {
|
1297
|
+
children = children.reverse();
|
1298
|
+
|
1299
|
+
forEach(children, function (i, kid) {
|
1300
|
+
target.appendChild(kid);
|
1301
|
+
});
|
1302
|
+
|
1303
|
+
// box-direction is inheritable.
|
1304
|
+
// We need to see if there are any nested flexbox elements
|
1305
|
+
nestedSelector = LIBRARY(params.nested);
|
1306
|
+
|
1307
|
+
forEach(nestedSelector, function (i, node) {
|
1308
|
+
nested = FLEX_BOXES[node.FLX_DOM_ID];
|
1309
|
+
|
1310
|
+
if (nested && nested.direction === INHERIT) {
|
1311
|
+
nested.direction = params.direction;
|
1312
|
+
}
|
1313
|
+
});
|
1314
|
+
|
1315
|
+
params.reversed = !params.reversed;
|
1316
|
+
}
|
1317
|
+
},
|
1318
|
+
|
1319
|
+
boxOrient : function (target, children, params) {
|
1320
|
+
var self = this, wide, high;
|
1321
|
+
|
1322
|
+
wide = {
|
1323
|
+
pos : "marginLeft",
|
1324
|
+
opp : "marginRight",
|
1325
|
+
dim : "width",
|
1326
|
+
out : "offsetWidth",
|
1327
|
+
func : clientWidth,
|
1328
|
+
pad : [PADDING_LEFT, PADDING_RIGHT, BORDER_LEFT, BORDER_RIGHT]
|
1329
|
+
};
|
1330
|
+
|
1331
|
+
high = {
|
1332
|
+
pos : "marginTop",
|
1333
|
+
opp : "marginBottom",
|
1334
|
+
dim : "height",
|
1335
|
+
out : "offsetHeight",
|
1336
|
+
func : clientHeight,
|
1337
|
+
pad : [PADDING_TOP, PADDING_BOTTOM, BORDER_TOP, BORDER_BOTTOM]
|
1338
|
+
};
|
1339
|
+
|
1340
|
+
if (!SUPPORT) {
|
1341
|
+
forEach(children, function (i, kid) {
|
1342
|
+
kid.style[(BROWSER.IE >= 9) ? "cssFloat" : "styleFloat"] = LEFT;
|
1343
|
+
|
1344
|
+
if (params.orient === VERTICAL || params.orient === BLOCK_AXIS) {
|
1345
|
+
kid.style.clear = LEFT;
|
1346
|
+
}
|
1347
|
+
|
1348
|
+
if (BROWSER.IE === 6) {
|
1349
|
+
kid.style.display = "inline";
|
1350
|
+
}
|
1351
|
+
});
|
1352
|
+
}
|
1353
|
+
|
1354
|
+
switch (params.orient) {
|
1355
|
+
case VERTICAL :
|
1356
|
+
case BLOCK_AXIS:
|
1357
|
+
self.props = high;
|
1358
|
+
self.anti = wide;
|
1359
|
+
break;
|
1360
|
+
|
1361
|
+
default :
|
1362
|
+
self.props = wide;
|
1363
|
+
self.anti = high;
|
1364
|
+
break;
|
1365
|
+
}
|
1366
|
+
},
|
1367
|
+
|
1368
|
+
boxOrdinalGroup : function (target, children, params) {
|
1369
|
+
var organizeChildren,
|
1370
|
+
matrix;
|
1371
|
+
|
1372
|
+
if (!children.length) {
|
1373
|
+
return;
|
1374
|
+
}
|
1375
|
+
|
1376
|
+
organizeChildren = function (matrix) {
|
1377
|
+
var keys = matrix.keys;
|
1378
|
+
|
1379
|
+
forEach(params.reversed ? keys : keys.reverse(), function (i, key) {
|
1380
|
+
forEach(children, function (i, kid) {
|
1381
|
+
if (key === kid.getAttribute("data-ordinal-group")) {
|
1382
|
+
target.appendChild(kid);
|
1383
|
+
}
|
1384
|
+
});
|
1385
|
+
});
|
1386
|
+
};
|
1387
|
+
|
1388
|
+
matrix = createMatchMatrix(params.children, children, TRUE);
|
1389
|
+
|
1390
|
+
if (matrix.keys.length > 1) {
|
1391
|
+
organizeChildren(matrix);
|
1392
|
+
}
|
1393
|
+
},
|
1394
|
+
|
1395
|
+
boxFlex : function (target, children, params) {
|
1396
|
+
var self = this,
|
1397
|
+
testForRestrictiveProperties,
|
1398
|
+
findTotalWhitespace,
|
1399
|
+
distributeRatio,
|
1400
|
+
matrix,
|
1401
|
+
restrict,
|
1402
|
+
whitespace,
|
1403
|
+
distro;
|
1404
|
+
|
1405
|
+
if (!children.length) {
|
1406
|
+
return;
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
testForRestrictiveProperties = function (matrix) {
|
1410
|
+
var flexers = matrix.groups,
|
1411
|
+
keys = matrix.keys,
|
1412
|
+
max;
|
1413
|
+
|
1414
|
+
forEach(keys, function (i, key) {
|
1415
|
+
forEach(flexers[key], function (i, x) {
|
1416
|
+
max = NULL;
|
1417
|
+
|
1418
|
+
forEach(x.properties, function (i, rule) {
|
1419
|
+
if ((RESTRICTIVE_PROPERTIES).test(rule.property)) {
|
1420
|
+
max = parseFloat(rule.value);
|
1421
|
+
}
|
1422
|
+
});
|
1423
|
+
|
1424
|
+
if (!max || x.match[self.props.out] > max) {
|
1425
|
+
appendPixelValue(x.match, self.props.pos, NULL);
|
1426
|
+
}
|
1427
|
+
|
1428
|
+
});
|
1429
|
+
});
|
1430
|
+
};
|
1431
|
+
|
1432
|
+
findTotalWhitespace = function (matrix) {
|
1433
|
+
var groupDimension = 0,
|
1434
|
+
whitespace,
|
1435
|
+
ration;
|
1436
|
+
|
1437
|
+
forEach(children, function (i, kid) {
|
1438
|
+
groupDimension += getComputedStyle(kid, self.props.dim, TRUE);
|
1439
|
+
|
1440
|
+
forEach(self.props.pad, function (i, pad) {
|
1441
|
+
groupDimension += getComputedStyle(kid, pad, TRUE);
|
1442
|
+
});
|
1443
|
+
|
1444
|
+
groupDimension += getComputedStyle(kid, self.props.pos, TRUE);
|
1445
|
+
groupDimension += getComputedStyle(kid, self.props.opp, TRUE);
|
1446
|
+
});
|
1447
|
+
|
1448
|
+
whitespace = target[self.props.out] - groupDimension;
|
1449
|
+
|
1450
|
+
forEach(self.props.pad, function (i, pad) {
|
1451
|
+
whitespace -= getComputedStyle(target, pad, TRUE);
|
1452
|
+
});
|
1453
|
+
|
1454
|
+
ration = (whitespace / matrix.total);
|
1455
|
+
|
1456
|
+
return {
|
1457
|
+
whitespace : whitespace,
|
1458
|
+
ration : ration
|
1459
|
+
};
|
1460
|
+
};
|
1461
|
+
|
1462
|
+
distributeRatio = function (matrix, whitespace) {
|
1463
|
+
var flexers = matrix.groups,
|
1464
|
+
keys = matrix.keys,
|
1465
|
+
flex,
|
1466
|
+
specificity,
|
1467
|
+
ration = whitespace.ration,
|
1468
|
+
widthRation,
|
1469
|
+
trueDim,
|
1470
|
+
newDimension;
|
1471
|
+
|
1472
|
+
forEach(keys, function (i, key) {
|
1473
|
+
widthRation = (ration * key);
|
1474
|
+
|
1475
|
+
forEach(flexers[key], function (i, x) {
|
1476
|
+
if (x.match) {
|
1477
|
+
flex = x.match.getAttribute("data-flex");
|
1478
|
+
specificity = x.match.getAttribute("data-specificity");
|
1479
|
+
|
1480
|
+
if (!flex || (specificity <= x.flexSpecificity)) {
|
1481
|
+
x.match.setAttribute("data-flex", key);
|
1482
|
+
x.match.setAttribute("data-specificity", x.flexSpecificity);
|
1483
|
+
|
1484
|
+
trueDim = getComputedStyle(x.match, self.props.dim, TRUE);
|
1485
|
+
newDimension = Math.max(0, (trueDim + widthRation));
|
1486
|
+
appendPixelValue(x.match, self.props.dim, newDimension);
|
1487
|
+
}
|
1488
|
+
}
|
1489
|
+
});
|
1490
|
+
});
|
1491
|
+
|
1492
|
+
// Float drop fix
|
1493
|
+
// Test offset values. If different, let's bring the widow back
|
1494
|
+
if (params.orient === HORIZONTAL || params.orient === INLINE_AXIS) {
|
1495
|
+
floatDropFix(target, params, self);
|
1496
|
+
}
|
1497
|
+
};
|
1498
|
+
|
1499
|
+
matrix = createMatchMatrix(params.children, children, NULL);
|
1500
|
+
|
1501
|
+
if (matrix.total) {
|
1502
|
+
params.hasFlex = TRUE;
|
1503
|
+
|
1504
|
+
restrict = testForRestrictiveProperties(matrix);
|
1505
|
+
whitespace = findTotalWhitespace(matrix);
|
1506
|
+
|
1507
|
+
// Distribute the calculated ratios among the children
|
1508
|
+
distro = distributeRatio(matrix, whitespace);
|
1509
|
+
}
|
1510
|
+
},
|
1511
|
+
|
1512
|
+
boxAlign : function (target, children, params) {
|
1513
|
+
var self = this,
|
1514
|
+
targetDimension,
|
1515
|
+
kidDimension,
|
1516
|
+
flexCheck = parentFlex(target);
|
1517
|
+
|
1518
|
+
if (!SUPPORT && !flexCheck.flex && (params.orient === VERTICAL || params.orient === BLOCK_AXIS)) {
|
1519
|
+
if (!dimensionValues(target, self.anti.dim)) {
|
1520
|
+
appendPixelValue(target, self.anti.dim, NULL);
|
1521
|
+
}
|
1522
|
+
appendPixelValue(children, self.anti.dim, NULL);
|
1523
|
+
}
|
1524
|
+
|
1525
|
+
// Remove padding / border from target dimension
|
1526
|
+
targetDimension = target[self.anti.out];
|
1527
|
+
forEach(self.anti.pad, function (i, pad) {
|
1528
|
+
targetDimension -= getComputedStyle(target, pad, TRUE);
|
1529
|
+
});
|
1530
|
+
|
1531
|
+
switch (params.align) {
|
1532
|
+
case "start" :
|
1533
|
+
break;
|
1534
|
+
|
1535
|
+
case "end" :
|
1536
|
+
forEach(children, function (i, kid) {
|
1537
|
+
kidDimension = targetDimension - kid[self.anti.out];
|
1538
|
+
kidDimension -= getComputedStyle(kid, self.anti.opp, TRUE);
|
1539
|
+
appendPixelValue(kid, self.anti.pos, kidDimension);
|
1540
|
+
});
|
1541
|
+
break;
|
1542
|
+
|
1543
|
+
case "center" :
|
1544
|
+
forEach(children, function (i, kid) {
|
1545
|
+
kidDimension = (targetDimension - kid[self.anti.out]) / 2;
|
1546
|
+
appendPixelValue(kid, self.anti.pos, kidDimension);
|
1547
|
+
});
|
1548
|
+
break;
|
1549
|
+
|
1550
|
+
default :
|
1551
|
+
forEach(children, function (i, kid) {
|
1552
|
+
switch (kid.nodeName.toLowerCase()) {
|
1553
|
+
case "button" :
|
1554
|
+
case "input" :
|
1555
|
+
case "select" :
|
1556
|
+
break;
|
1557
|
+
|
1558
|
+
default :
|
1559
|
+
var subtract = 0;
|
1560
|
+
|
1561
|
+
forEach(self.anti.pad, function (i, pad) {
|
1562
|
+
subtract += getComputedStyle(kid, pad, TRUE);
|
1563
|
+
subtract += getComputedStyle(target, pad, TRUE);
|
1564
|
+
});
|
1565
|
+
|
1566
|
+
kid.style[self.anti.dim] = "100%";
|
1567
|
+
kidDimension = kid[self.anti.out] - subtract;
|
1568
|
+
appendPixelValue(kid, self.anti.dim, NULL);
|
1569
|
+
|
1570
|
+
kidDimension = targetDimension;
|
1571
|
+
kidDimension -= getComputedStyle(kid, self.anti.pos, TRUE);
|
1572
|
+
|
1573
|
+
forEach(self.anti.pad, function (i, pad) {
|
1574
|
+
kidDimension -= getComputedStyle(kid, pad, TRUE);
|
1575
|
+
});
|
1576
|
+
|
1577
|
+
kidDimension -= getComputedStyle(kid, self.anti.opp, TRUE);
|
1578
|
+
kidDimension = Math.max(0, kidDimension);
|
1579
|
+
|
1580
|
+
appendPixelValue(kid, self.anti.dim, kidDimension);
|
1581
|
+
break;
|
1582
|
+
}
|
1583
|
+
});
|
1584
|
+
break;
|
1585
|
+
}
|
1586
|
+
},
|
1587
|
+
|
1588
|
+
boxPack : function (target, children, params) {
|
1589
|
+
var self = this,
|
1590
|
+
groupDimension = 0,
|
1591
|
+
firstComputedMargin = 0,
|
1592
|
+
targetPadding = 0,
|
1593
|
+
totalDimension,
|
1594
|
+
fractionedDimension,
|
1595
|
+
currentDimension,
|
1596
|
+
remainder,
|
1597
|
+
length = children.length - 1,
|
1598
|
+
kid;
|
1599
|
+
|
1600
|
+
forEach(children, function (i, kid) {
|
1601
|
+
groupDimension += kid[self.props.out];
|
1602
|
+
groupDimension += getComputedStyle(kid, self.props.pos, TRUE);
|
1603
|
+
groupDimension += getComputedStyle(kid, self.props.opp, TRUE);
|
1604
|
+
});
|
1605
|
+
|
1606
|
+
firstComputedMargin = getComputedStyle(children[0], self.props.pos, TRUE);
|
1607
|
+
totalDimension = target[self.props.out] - groupDimension;
|
1608
|
+
|
1609
|
+
// Remove padding / border from target dimension
|
1610
|
+
forEach(self.props.pad, function (i, pad) {
|
1611
|
+
totalDimension -= getComputedStyle(target, pad, TRUE);
|
1612
|
+
});
|
1613
|
+
|
1614
|
+
// If totalDimension is less than 0, we have a problem...
|
1615
|
+
if (totalDimension < 0) {
|
1616
|
+
totalDimension = Math.max(0, totalDimension);
|
1617
|
+
}
|
1618
|
+
|
1619
|
+
switch (params.pack) {
|
1620
|
+
case "end" :
|
1621
|
+
appendPixelValue(children[0], self.props.pos, targetPadding + firstComputedMargin + totalDimension);
|
1622
|
+
break;
|
1623
|
+
|
1624
|
+
case "center" :
|
1625
|
+
if (targetPadding) {
|
1626
|
+
targetPadding /= 2;
|
1627
|
+
}
|
1628
|
+
|
1629
|
+
appendPixelValue(children[0], self.props.pos, targetPadding + firstComputedMargin + (totalDimension / 2));
|
1630
|
+
break;
|
1631
|
+
|
1632
|
+
case "justify" :
|
1633
|
+
fractionedDimension = Math.floor((targetPadding + totalDimension) / length);
|
1634
|
+
remainder = (fractionedDimension * length) - totalDimension;
|
1635
|
+
|
1636
|
+
var i = children.length - 1,
|
1637
|
+
value;
|
1638
|
+
|
1639
|
+
while (i) {
|
1640
|
+
kid = children[i];
|
1641
|
+
currentDimension = fractionedDimension;
|
1642
|
+
|
1643
|
+
if (remainder) {
|
1644
|
+
currentDimension++;
|
1645
|
+
remainder++;
|
1646
|
+
}
|
1647
|
+
|
1648
|
+
value = getComputedStyle(kid, self.props.pos, TRUE) + currentDimension;
|
1649
|
+
appendPixelValue(kid, self.props.pos, value);
|
1650
|
+
|
1651
|
+
i--;
|
1652
|
+
}
|
1653
|
+
|
1654
|
+
break;
|
1655
|
+
}
|
1656
|
+
|
1657
|
+
// Float drop fix
|
1658
|
+
// Test offset values. If different, let's bring the widow back
|
1659
|
+
if ((params.pack === "end" || params.pack === "justify") && (params.orient === HORIZONTAL || params.orient === INLINE_AXIS)) {
|
1660
|
+
floatDropFix(target, params, self);
|
1661
|
+
}
|
1662
|
+
|
1663
|
+
target.style.overflow = "";
|
1664
|
+
}
|
1665
|
+
},
|
1666
|
+
|
1667
|
+
setup : function (target, children, params) {
|
1668
|
+
var self = this, matrix, flexCheck;
|
1669
|
+
|
1670
|
+
if (!target || !children || !params) {
|
1671
|
+
return;
|
1672
|
+
}
|
1673
|
+
|
1674
|
+
if (SUPPORT && SUPPORT.partialSupport) {
|
1675
|
+
matrix = createMatchMatrix(params.children, children, NULL);
|
1676
|
+
flexCheck = parentFlex(target);
|
1677
|
+
children = sanitizeChildren(target, target.childNodes);
|
1678
|
+
|
1679
|
+
self.properties.boxOrient.call(self, target, children, params);
|
1680
|
+
|
1681
|
+
if (!matrix.total || !LIBRARY(params.nested).length) {
|
1682
|
+
if ((params.align === "stretch") && !SUPPORT.boxAlignStretch && (!flexCheck.nested || !flexCheck.flex)) {
|
1683
|
+
self.properties.boxAlign.call(self, target, children, params);
|
1684
|
+
}
|
1685
|
+
|
1686
|
+
if ((params.pack === "justify") && !SUPPORT.boxPackJustify && !matrix.total) {
|
1687
|
+
self.properties.boxPack.call(self, target, children, params);
|
1688
|
+
}
|
1689
|
+
}
|
1690
|
+
} else if (!SUPPORT) {
|
1691
|
+
forEach(self.properties, function (key, func) {
|
1692
|
+
func.call(self, target, sanitizeChildren(target, target.childNodes), params);
|
1693
|
+
});
|
1694
|
+
}
|
1695
|
+
},
|
1696
|
+
|
1697
|
+
trackDOM : function (params) {
|
1698
|
+
attachResizeListener(this, params);
|
1699
|
+
},
|
1700
|
+
|
1701
|
+
updateModel : function (params) {
|
1702
|
+
var self = this,
|
1703
|
+
target = params.target,
|
1704
|
+
children = params.nodes;
|
1705
|
+
|
1706
|
+
// Null properties
|
1707
|
+
cleanPositioningProperties(children);
|
1708
|
+
|
1709
|
+
if (params.flexMatrix || params.ordinalMatrix) {
|
1710
|
+
params = updateChildValues(params);
|
1711
|
+
}
|
1712
|
+
|
1713
|
+
self.setup(target, children, params);
|
1714
|
+
self.bubbleUp(target, params);
|
1715
|
+
},
|
1716
|
+
|
1717
|
+
renderModel : function (params) {
|
1718
|
+
var self = this,
|
1719
|
+
target = params.target,
|
1720
|
+
nodes = target.childNodes;
|
1721
|
+
|
1722
|
+
// Sanity check.
|
1723
|
+
if (!target.length && !nodes) {
|
1724
|
+
return false;
|
1725
|
+
}
|
1726
|
+
|
1727
|
+
params = ensureStructuralIntegrity(params, this);
|
1728
|
+
|
1729
|
+
// Setup properties
|
1730
|
+
self.updateModel(params);
|
1731
|
+
|
1732
|
+
// Resize / DOM Polling Events
|
1733
|
+
// Delay for an instant because IE6 is insane.
|
1734
|
+
win.setTimeout(function () {
|
1735
|
+
self.trackDOM(params);
|
1736
|
+
}, 0);
|
1737
|
+
|
1738
|
+
return self;
|
1739
|
+
},
|
1740
|
+
|
1741
|
+
bubbleUp : function (target, params) {
|
1742
|
+
var self = this, flex,
|
1743
|
+
parent = params.target.parentNode;
|
1744
|
+
|
1745
|
+
while (parent) {
|
1746
|
+
flex = FLEX_BOXES[parent.FLX_DOM_ID];
|
1747
|
+
|
1748
|
+
if (flex) {
|
1749
|
+
cleanPositioningProperties(flex.nodes);
|
1750
|
+
self.setup(flex.target, flex.nodes, flex);
|
1751
|
+
}
|
1752
|
+
|
1753
|
+
parent = parent.parentNode;
|
1754
|
+
}
|
1755
|
+
}
|
1756
|
+
};
|
1757
|
+
|
1758
|
+
FLX.updateInstance = function (target, params) {
|
1759
|
+
var box;
|
1760
|
+
|
1761
|
+
if (target) {
|
1762
|
+
box = FLEX_BOXES[target.FLX_DOM_ID];
|
1763
|
+
|
1764
|
+
if (box) {
|
1765
|
+
box._instance.updateModel(box);
|
1766
|
+
} else {
|
1767
|
+
box = new FLX.box(params);
|
1768
|
+
}
|
1769
|
+
} else {
|
1770
|
+
forEach(FLEX_BOXES, function (i, box) {
|
1771
|
+
box._instance.updateModel(box);
|
1772
|
+
});
|
1773
|
+
}
|
1774
|
+
};
|
1775
|
+
|
1776
|
+
FLX.getInstance = function (target) {
|
1777
|
+
return FLEX_BOXES[target.FLX_DOM_ID];
|
1778
|
+
};
|
1779
|
+
|
1780
|
+
FLX.destroyInstance = function (target) {
|
1781
|
+
var box,
|
1782
|
+
destroy;
|
1783
|
+
|
1784
|
+
destroy = function (box) {
|
1785
|
+
box.target.FLX_DOM_ID = NULL;
|
1786
|
+
box.target.style.cssText = EMPTY_STRING;
|
1787
|
+
|
1788
|
+
forEach(box.children, function (i, x) {
|
1789
|
+
x.match.style.cssText = EMPTY_STRING;
|
1790
|
+
});
|
1791
|
+
};
|
1792
|
+
|
1793
|
+
if (target) {
|
1794
|
+
box = FLEX_BOXES[target.FLX_DOM_ID];
|
1795
|
+
|
1796
|
+
if (box) {
|
1797
|
+
destroy(box);
|
1798
|
+
}
|
1799
|
+
} else {
|
1800
|
+
forEach(FLEX_BOXES, function (i, box) {
|
1801
|
+
destroy(box);
|
1802
|
+
});
|
1803
|
+
|
1804
|
+
FLEX_BOXES = [];
|
1805
|
+
}
|
1806
|
+
};
|
1807
|
+
|
1808
|
+
FLX.flexboxSupport = function () {
|
1809
|
+
var partialSupportGrid = {},
|
1810
|
+
height = 100,
|
1811
|
+
childHeight,
|
1812
|
+
dummy = doc.createElement("flxbox"),
|
1813
|
+
child = '<b style="margin: 0; padding: 0; display:block; width: 10px; height:' + (height / 2) + 'px"></b>',
|
1814
|
+
tests,
|
1815
|
+
result;
|
1816
|
+
|
1817
|
+
dummy.style.width = dummy.style.height = height + "px";
|
1818
|
+
dummy.innerHTML = (child + child + child);
|
1819
|
+
|
1820
|
+
appendProperty(dummy, "display", "box", NULL);
|
1821
|
+
appendProperty(dummy, "box-align", "stretch", TRUE);
|
1822
|
+
appendProperty(dummy, "box-pack", "justify", TRUE);
|
1823
|
+
|
1824
|
+
doc.body.appendChild(dummy);
|
1825
|
+
childHeight = dummy.firstChild.offsetHeight;
|
1826
|
+
|
1827
|
+
tests = {
|
1828
|
+
boxAlignStretch : function () {
|
1829
|
+
return (childHeight === 100);
|
1830
|
+
},
|
1831
|
+
|
1832
|
+
boxPackJustify : function () {
|
1833
|
+
var totalOffset = 0;
|
1834
|
+
|
1835
|
+
forEach(dummy.childNodes, function (i, child) {
|
1836
|
+
totalOffset += child.offsetLeft;
|
1837
|
+
});
|
1838
|
+
|
1839
|
+
return (totalOffset === 135);
|
1840
|
+
}
|
1841
|
+
};
|
1842
|
+
|
1843
|
+
forEach(tests, function (key, value) {
|
1844
|
+
result = value();
|
1845
|
+
|
1846
|
+
if (!result) {
|
1847
|
+
partialSupportGrid.partialSupport = TRUE;
|
1848
|
+
}
|
1849
|
+
|
1850
|
+
partialSupportGrid[key] = result;
|
1851
|
+
});
|
1852
|
+
|
1853
|
+
doc.body.removeChild(dummy);
|
1854
|
+
return ~ (dummy.style.display).indexOf("box") ? partialSupportGrid : FALSE;
|
1855
|
+
};
|
1856
|
+
|
1857
|
+
FLX.init = function () {
|
1858
|
+
FLX.flexboxSupported = SUPPORT = FLX.flexboxSupport();
|
1859
|
+
|
1860
|
+
if ((!SUPPORT || SUPPORT.partialSupport) && LIBRARY) {
|
1861
|
+
selectivizrEngine();
|
1862
|
+
}
|
1863
|
+
};
|
1864
|
+
|
1865
|
+
// Flexie Version
|
1866
|
+
FLX.version = 1.0;
|
1867
|
+
|
1868
|
+
// Load when the DOM is ready
|
1869
|
+
attachLoadMethod(FLX.init);
|
1870
|
+
|
1871
|
+
return FLX;
|
1872
|
+
}(this, document));
|