survivalkit 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +4 -0
- data/README.markdown +81 -0
- data/VERSION +1 -0
- data/lib/survivalkit.rb +9 -0
- data/stylesheets/survivalkit/extend/_all.sass +1 -0
- data/stylesheets/survivalkit/extend/_helpers.sass +20 -0
- data/stylesheets/survivalkit/functions/_all.sass +3 -0
- data/stylesheets/survivalkit/functions/_calculations.sass +19 -0
- data/stylesheets/survivalkit/functions/_color.sass +7 -0
- data/stylesheets/survivalkit/functions/_modular-scale.sass +142 -0
- data/stylesheets/survivalkit/mixins/_all.sass +5 -0
- data/stylesheets/survivalkit/mixins/_helpers.sass +29 -0
- data/stylesheets/survivalkit/mixins/_layout.sass +19 -0
- data/stylesheets/survivalkit/mixins/_sfx.sass +199 -0
- data/stylesheets/survivalkit/mixins/_typography.sass +77 -0
- data/stylesheets/survivalkit/mixins/_ui.sass +49 -0
- data/stylesheets/survivalkit/readme.markdown +1 -0
- data/stylesheets/survivalkit/reset/_meyer-reset.sass +33 -0
- data/stylesheets/survivalkit/reset/_normalize.sass +345 -0
- data/stylesheets/survivalkit/reset/_reset.sass +18 -0
- data/stylesheets/survivalkit/survival_kit/_survival-kit.sass +52 -0
- data/stylesheets/survivalkit/variables/_all.sass +2 -0
- data/stylesheets/survivalkit/variables/_color_names.sass +149 -0
- data/stylesheets/survivalkit/variables/_color_schemes.sass +54 -0
- data/templates/project/files/apple-touch-icon.png +0 -0
- data/templates/project/files/crossdomain.xml +25 -0
- data/templates/project/files/favicon.ico +0 -0
- data/templates/project/files/google.yml +22 -0
- data/templates/project/files/htaccess.htaccess +478 -0
- data/templates/project/files/html/404.html +22 -0
- data/templates/project/files/html/formalize_jquery_demo.html +288 -0
- data/templates/project/files/html/formalize_jquery_disabled.html +288 -0
- data/templates/project/files/html/formalize_jquery_errors.html +288 -0
- data/templates/project/files/html/index.html +63 -0
- data/templates/project/files/html/survivalkit/elements-common.html +549 -0
- data/templates/project/files/html/survivalkit/elements-html5.html +2959 -0
- data/templates/project/files/html/survivalkit/elements-typography.html +196 -0
- data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal.html +625 -0
- data/templates/project/files/html/survivalkit/elements-ui-patterns.html +151 -0
- data/templates/project/files/html/survivalkit/index.html +94 -0
- data/templates/project/files/html/survivalkit/styletile/index.html +1 -0
- data/templates/project/files/html/survivalkit/styletile/styletile.html +168 -0
- data/templates/project/files/humans.txt +43 -0
- data/templates/project/files/robots.txt +5 -0
- data/templates/project/ie.sass +3 -0
- data/templates/project/kit/kit-source.jquery.js +21 -0
- data/templates/project/libs/dd_belatedpng.js +13 -0
- data/templates/project/libs/formalize/README.txt +11 -0
- data/templates/project/libs/formalize/dojo.formalize.js +174 -0
- data/templates/project/libs/formalize/extjs.formalize.js +168 -0
- data/templates/project/libs/formalize/jquery.formalize.js +158 -0
- data/templates/project/libs/formalize/mootools.formalize.js +163 -0
- data/templates/project/libs/formalize/prototype.formalize.js +171 -0
- data/templates/project/libs/formalize/yui.formalize.js +168 -0
- data/templates/project/libs/jquery-1.6.js +8865 -0
- data/templates/project/libs/jquery-1.6.min.js +16 -0
- data/templates/project/libs/modernizr-2.0.min.js +4 -0
- data/templates/project/libs/mootools-core-1.3.1-full-compat-yc.js +485 -0
- data/templates/project/libs/plugins.js +16 -0
- data/templates/project/libs/respond.min.js +7 -0
- data/templates/project/libs/selectivizr.js +5 -0
- data/templates/project/manifest.rb +78 -0
- data/templates/project/partials/01-variables/_all.sass +6 -0
- data/templates/project/partials/01-variables/_base.sass +29 -0
- data/templates/project/partials/01-variables/_colors.sass +21 -0
- data/templates/project/partials/01-variables/_fonts.sass +22 -0
- data/templates/project/partials/01-variables/_grids-all.sass +10 -0
- data/templates/project/partials/02-extend/_all.sass +1 -0
- data/templates/project/partials/02-extend/_typography.sass +39 -0
- data/templates/project/partials/03-defaults/_all.sass +10 -0
- data/templates/project/partials/03-defaults/_common.sass +40 -0
- data/templates/project/partials/03-defaults/_font-face.sass +3 -0
- data/templates/project/partials/03-defaults/markup/_edits.sass +6 -0
- data/templates/project/partials/03-defaults/markup/_grouping.sass +52 -0
- data/templates/project/partials/03-defaults/markup/_headers.sass +33 -0
- data/templates/project/partials/03-defaults/markup/_images.sass +14 -0
- data/templates/project/partials/03-defaults/markup/_semantics.sass +104 -0
- data/templates/project/partials/03-defaults/markup/_tables.sass +48 -0
- data/templates/project/partials/03-defaults/markup/forms/_form-defaults.sass +67 -0
- data/templates/project/partials/03-defaults/markup/forms/_formalize.sass +261 -0
- data/templates/project/partials/04-grids/_grids-blueprint.sass +20 -0
- data/templates/project/partials/04-grids/_grids-susy.sass +38 -0
- data/templates/project/partials/05-ui-patterns/_common.sass +26 -0
- data/templates/project/partials/05-ui-patterns/drupal/_ui-patterns.sass +83 -0
- data/templates/project/partials/06-sprites/_sprites.sass +20 -0
- data/templates/project/partials/07-layout-design/_design.sass +6 -0
- data/templates/project/partials/07-layout-design/_layout.sass +8 -0
- data/templates/project/partials/08-styletile/_tile-design.sass +139 -0
- data/templates/project/partials/08-styletile/_tile-layout.sass +81 -0
- data/templates/project/partials/09-responsive/_responsive-blueprint.sass +139 -0
- data/templates/project/partials/09-responsive/_responsive-susy.sass +106 -0
- data/templates/project/partials/10-media/_print.sass +57 -0
- data/templates/project/partials/11-browser-adjustments/_ie.sass +26 -0
- data/templates/project/partials/11-browser-adjustments/_modernizr.sass +8 -0
- data/templates/project/partials/11-browser-adjustments/_selectivizr.sass +0 -0
- data/templates/project/partials/readme.markdown +3 -0
- data/templates/project/readme.markdown +3 -0
- data/templates/project/script.js +26 -0
- data/templates/project/selectivizr.sass +8 -0
- 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.bat +4 -0
- data/templates/project/sources/BigText/test.sh +5 -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/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/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/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/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-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.xml +392 -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/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.html +53 -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/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.php +25 -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/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.php +24 -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/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.php +24 -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/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.php +28 -0
- data/templates/project/sources/pie/site/pie-wp-theme/functions/sidebars.php +42 -0
- data/templates/project/sources/pie/site/pie-wp-theme/header.php +24 -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/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.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/single.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/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/style.sass +136 -0
- data/templates/project/templates/_flashes.html.haml +4 -0
- data/templates/project/templates/_footer.html.haml +2 -0
- data/templates/project/templates/_head.html.haml +26 -0
- data/templates/project/templates/_header.html.haml +1 -0
- data/templates/project/templates/_javascripts.html.haml +27 -0
- data/templates/project/templates/_stylesheets.html.haml +5 -0
- data/templates/project/templates/application.html.haml +28 -0
- data/templates/project/templates/old/_layout.haml +1 -0
- data/templates/project/templates/old/home.html.haml +14 -0
- data/templates/project/templates/old/layouts/default.haml +62 -0
- data/templates/project/templates/old/layouts/survivalkit/default.haml +64 -0
- data/templates/project/templates/old/layouts/survivalkit/styletile.haml +64 -0
- data/templates/project/templates/old/survivalkit/_layout.haml +1 -0
- data/templates/project/templates/old/survivalkit/elements-common.haml +33 -0
- data/templates/project/templates/old/survivalkit/elements-html5.haml +71 -0
- data/templates/project/templates/old/survivalkit/elements-typography.haml +100 -0
- data/templates/project/templates/old/survivalkit/elements-ui-patterns-drupal.haml +38 -0
- data/templates/project/templates/old/survivalkit/elements-ui-patterns.haml +23 -0
- data/templates/project/templates/old/survivalkit/index.haml +2 -0
- data/templates/project/templates/old/survivalkit/partials/common/abbr.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/acronym.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/characters.haml +11 -0
- data/templates/project/templates/old/survivalkit/partials/common/cite.haml +12 -0
- data/templates/project/templates/old/survivalkit/partials/common/code.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/dfn.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/em.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/common/forms.haml +27 -0
- data/templates/project/templates/old/survivalkit/partials/common/headers.haml +23 -0
- data/templates/project/templates/old/survivalkit/partials/common/inline-images.haml +9 -0
- data/templates/project/templates/old/survivalkit/partials/common/kbd.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/common/links.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/common/lists.haml +55 -0
- data/templates/project/templates/old/survivalkit/partials/common/others.haml +35 -0
- data/templates/project/templates/old/survivalkit/partials/common/paragraphs.haml +15 -0
- data/templates/project/templates/old/survivalkit/partials/common/pre.haml +27 -0
- data/templates/project/templates/old/survivalkit/partials/common/q.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/samp.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/strong.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/tables.haml +43 -0
- data/templates/project/templates/old/survivalkit/partials/common/var.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/header-styletile.haml +9 -0
- data/templates/project/templates/old/survivalkit/partials/header.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/html5/a.haml +36 -0
- data/templates/project/templates/old/survivalkit/partials/html5/abbr.haml +26 -0
- data/templates/project/templates/old/survivalkit/partials/html5/address.haml +27 -0
- data/templates/project/templates/old/survivalkit/partials/html5/all-headings.haml +31 -0
- data/templates/project/templates/old/survivalkit/partials/html5/article.haml +22 -0
- data/templates/project/templates/old/survivalkit/partials/html5/aside.haml +20 -0
- data/templates/project/templates/old/survivalkit/partials/html5/b.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/html5/bdi.haml +30 -0
- data/templates/project/templates/old/survivalkit/partials/html5/blockquote.haml +32 -0
- data/templates/project/templates/old/survivalkit/partials/html5/cite.haml +46 -0
- data/templates/project/templates/old/survivalkit/partials/html5/code.haml +70 -0
- data/templates/project/templates/old/survivalkit/partials/html5/details.haml +42 -0
- data/templates/project/templates/old/survivalkit/partials/html5/dfn.haml +52 -0
- data/templates/project/templates/old/survivalkit/partials/html5/dl.haml +69 -0
- data/templates/project/templates/old/survivalkit/partials/html5/em.haml +15 -0
- data/templates/project/templates/old/survivalkit/partials/html5/fieldset.haml +49 -0
- data/templates/project/templates/old/survivalkit/partials/html5/figure.haml +48 -0
- data/templates/project/templates/old/survivalkit/partials/html5/footer.haml +37 -0
- data/templates/project/templates/old/survivalkit/partials/html5/header.haml +44 -0
- data/templates/project/templates/old/survivalkit/partials/html5/hgroup.haml +20 -0
- data/templates/project/templates/old/survivalkit/partials/html5/hr.haml +52 -0
- data/templates/project/templates/old/survivalkit/partials/html5/i.haml +28 -0
- data/templates/project/templates/old/survivalkit/partials/html5/kbd.haml +19 -0
- data/templates/project/templates/old/survivalkit/partials/html5/label.haml +18 -0
- data/templates/project/templates/old/survivalkit/partials/html5/li.haml +91 -0
- data/templates/project/templates/old/survivalkit/partials/html5/mark.haml +30 -0
- data/templates/project/templates/old/survivalkit/partials/html5/menu.haml +39 -0
- data/templates/project/templates/old/survivalkit/partials/html5/nav.haml +68 -0
- data/templates/project/templates/old/survivalkit/partials/html5/ol.haml +23 -0
- data/templates/project/templates/old/survivalkit/partials/html5/p.haml +41 -0
- data/templates/project/templates/old/survivalkit/partials/html5/pre.haml +48 -0
- data/templates/project/templates/old/survivalkit/partials/html5/q.haml +34 -0
- data/templates/project/templates/old/survivalkit/partials/html5/ruby.haml +55 -0
- data/templates/project/templates/old/survivalkit/partials/html5/s.haml +17 -0
- data/templates/project/templates/old/survivalkit/partials/html5/samp.haml +27 -0
- data/templates/project/templates/old/survivalkit/partials/html5/sample-forms.haml +52 -0
- data/templates/project/templates/old/survivalkit/partials/html5/sample-tables.haml +152 -0
- data/templates/project/templates/old/survivalkit/partials/html5/section.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/html5/small.haml +33 -0
- data/templates/project/templates/old/survivalkit/partials/html5/strong.haml +25 -0
- data/templates/project/templates/old/survivalkit/partials/html5/sub-sup.haml +58 -0
- data/templates/project/templates/old/survivalkit/partials/html5/table.haml +196 -0
- data/templates/project/templates/old/survivalkit/partials/html5/text-summary.haml +305 -0
- data/templates/project/templates/old/survivalkit/partials/html5/thead.haml +67 -0
- data/templates/project/templates/old/survivalkit/partials/html5/time.haml +31 -0
- data/templates/project/templates/old/survivalkit/partials/html5/ul.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/menu.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/block.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/breadcrumbs.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/comments.haml +69 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/field-image.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-comment.haml +54 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-login.haml +23 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-account.haml +24 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-password.haml +16 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/links.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/menu.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/messages.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/node.haml +28 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/pager.haml +17 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/rss-link.haml +5 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/search.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/site-name.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/tabs.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/taxonomy.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/block.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/breadcrumbs.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/comments.haml +69 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/field-image.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-comment.haml +54 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-login.haml +23 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-account.haml +24 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-password.haml +16 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/links.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/menu.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/messages.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/node.haml +28 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/pager.haml +17 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/rss-link.haml +5 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/search.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/site-name.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/tabs.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/taxonomy.haml +10 -0
- data/templates/project/templates/old/survivalkit/styletile/_layout.haml +1 -0
- data/templates/project/templates/old/survivalkit/styletile/index.redirect +1 -0
- data/templates/project/templates/old/survivalkit/styletile/styletile.haml +60 -0
- data/templates/project/templates/old/view_helpers.rb +25 -0
- metadata +1448 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
(function($){
|
2
|
+
function demoLoad (){
|
3
|
+
var currentValue = false,
|
4
|
+
el = $('#demo-content span');
|
5
|
+
el.focus(function(){
|
6
|
+
currentValue = $(this).text();
|
7
|
+
});
|
8
|
+
el.keypress(function (e) {
|
9
|
+
if (e.which == 13) {
|
10
|
+
e.preventDefault();
|
11
|
+
updateIMG($(this));
|
12
|
+
}
|
13
|
+
})
|
14
|
+
el.focusout(function() {
|
15
|
+
updateIMG($(this));
|
16
|
+
});
|
17
|
+
function updateIMG(argu) {
|
18
|
+
if (argu.text() !== currentValue) {
|
19
|
+
var keywords = $('#keywords').text();
|
20
|
+
$('#demo-splash').html('<img src="flickr://' + keywords + '" width="940px" height="250px" style="display:none"><span>Loading New Demo Content</span>');
|
21
|
+
startFlickrBomb();
|
22
|
+
} else {
|
23
|
+
return false;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
demoLoad();
|
28
|
+
})(jQuery);
|
@@ -0,0 +1,94 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
function supports_local_storage() { try { return 'localStorage' in window && window['localStorage'] !== null; } catch(e){ return false; } }
|
4
|
+
|
5
|
+
if (supports_local_storage()) {
|
6
|
+
|
7
|
+
// A simple module to replace `Backbone.sync` with *localStorage*-based
|
8
|
+
// persistence. Models are given GUIDS, and saved into a JSON object. Simple
|
9
|
+
// as that.
|
10
|
+
|
11
|
+
// Generate four random hex digits.
|
12
|
+
function S4() {
|
13
|
+
return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
|
14
|
+
};
|
15
|
+
|
16
|
+
// Generate a pseudo-GUID by concatenating random hexadecimal.
|
17
|
+
function guid() {
|
18
|
+
return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());
|
19
|
+
};
|
20
|
+
|
21
|
+
// Our Store is represented by a single JS object in *localStorage*. Create it
|
22
|
+
// with a meaningful name, like the name you'd give a table.
|
23
|
+
var Store = function(name) {
|
24
|
+
this.name = name;
|
25
|
+
var store = localStorage.getItem(this.name);
|
26
|
+
this.data = (store && JSON.parse(store)) || {};
|
27
|
+
};
|
28
|
+
|
29
|
+
_.extend(Store.prototype, {
|
30
|
+
|
31
|
+
// Save the current state of the **Store** to *localStorage*.
|
32
|
+
save: function() {
|
33
|
+
localStorage.setItem(this.name, JSON.stringify(this.data));
|
34
|
+
},
|
35
|
+
|
36
|
+
// Add a model, giving it a (hopefully)-unique GUID, if it doesn't already
|
37
|
+
// have an id of it's own.
|
38
|
+
create: function(model) {
|
39
|
+
if (!model.id) model.id = model.attributes.id = guid();
|
40
|
+
this.data[model.id] = model;
|
41
|
+
this.save();
|
42
|
+
return model;
|
43
|
+
},
|
44
|
+
|
45
|
+
// Update a model by replacing its copy in `this.data`.
|
46
|
+
update: function(model) {
|
47
|
+
this.data[model.id] = model;
|
48
|
+
this.save();
|
49
|
+
return model;
|
50
|
+
},
|
51
|
+
|
52
|
+
// Retrieve a model from `this.data` by id.
|
53
|
+
find: function(model) {
|
54
|
+
return this.data[model.id];
|
55
|
+
},
|
56
|
+
|
57
|
+
// Return the array of all models currently in storage.
|
58
|
+
findAll: function() {
|
59
|
+
return _.values(this.data);
|
60
|
+
},
|
61
|
+
|
62
|
+
// Delete a model from `this.data`, returning it.
|
63
|
+
destroy: function(model) {
|
64
|
+
delete this.data[model.id];
|
65
|
+
this.save();
|
66
|
+
return model;
|
67
|
+
}
|
68
|
+
|
69
|
+
});
|
70
|
+
// Override `Backbone.sync` to use delegate to the model or collection's
|
71
|
+
// *localStorage* property, which should be an instance of `Store`.
|
72
|
+
Backbone.sync = function(method, model, success, error) {
|
73
|
+
|
74
|
+
var resp;
|
75
|
+
var store = model.localStorage || model.collection.localStorage;
|
76
|
+
|
77
|
+
switch (method) {
|
78
|
+
case "read": resp = model.id ? store.find(model) : store.findAll(); break;
|
79
|
+
case "create": resp = store.create(model); break;
|
80
|
+
case "update": resp = store.update(model); break;
|
81
|
+
case "delete": resp = store.destroy(model); break;
|
82
|
+
}
|
83
|
+
|
84
|
+
if (resp) {
|
85
|
+
success(resp);
|
86
|
+
} else {
|
87
|
+
// Swallow errors for now
|
88
|
+
// error("Record not found");
|
89
|
+
}
|
90
|
+
};
|
91
|
+
} else {
|
92
|
+
Backbone.sync = $.noop;
|
93
|
+
}
|
94
|
+
|
@@ -0,0 +1,1011 @@
|
|
1
|
+
// Backbone.js 0.3.3
|
2
|
+
// (c) 2010 Jeremy Ashkenas, DocumentCloud Inc.
|
3
|
+
// Backbone may be freely distributed under the MIT license.
|
4
|
+
// For all details and documentation:
|
5
|
+
// http://documentcloud.github.com/backbone
|
6
|
+
|
7
|
+
(function(){
|
8
|
+
|
9
|
+
// Initial Setup
|
10
|
+
// -------------
|
11
|
+
|
12
|
+
// The top-level namespace. All public Backbone classes and modules will
|
13
|
+
// be attached to this. Exported for both CommonJS and the browser.
|
14
|
+
var Backbone;
|
15
|
+
if (typeof exports !== 'undefined') {
|
16
|
+
Backbone = exports;
|
17
|
+
} else {
|
18
|
+
Backbone = this.Backbone = {};
|
19
|
+
}
|
20
|
+
|
21
|
+
// Current version of the library. Keep in sync with `package.json`.
|
22
|
+
Backbone.VERSION = '0.3.3';
|
23
|
+
|
24
|
+
// Require Underscore, if we're on the server, and it's not already present.
|
25
|
+
var _ = this._;
|
26
|
+
if (!_ && (typeof require !== 'undefined')) _ = require("underscore")._;
|
27
|
+
|
28
|
+
// For Backbone's purposes, either jQuery or Zepto owns the `$` variable.
|
29
|
+
var $ = this.jQuery || this.Zepto;
|
30
|
+
|
31
|
+
// Turn on `emulateHTTP` to use support legacy HTTP servers. Setting this option will
|
32
|
+
// fake `"PUT"` and `"DELETE"` requests via the `_method` parameter and set a
|
33
|
+
// `X-Http-Method-Override` header.
|
34
|
+
Backbone.emulateHTTP = false;
|
35
|
+
|
36
|
+
// Turn on `emulateJSON` to support legacy servers that can't deal with direct
|
37
|
+
// `application/json` requests ... will encode the body as
|
38
|
+
// `application/x-www-form-urlencoded` instead and will send the model in a
|
39
|
+
// form param named `model`.
|
40
|
+
Backbone.emulateJSON = false;
|
41
|
+
|
42
|
+
// Backbone.Events
|
43
|
+
// -----------------
|
44
|
+
|
45
|
+
// A module that can be mixed in to *any object* in order to provide it with
|
46
|
+
// custom events. You may `bind` or `unbind` a callback function to an event;
|
47
|
+
// `trigger`-ing an event fires all callbacks in succession.
|
48
|
+
//
|
49
|
+
// var object = {};
|
50
|
+
// _.extend(object, Backbone.Events);
|
51
|
+
// object.bind('expand', function(){ alert('expanded'); });
|
52
|
+
// object.trigger('expand');
|
53
|
+
//
|
54
|
+
Backbone.Events = {
|
55
|
+
|
56
|
+
// Bind an event, specified by a string name, `ev`, to a `callback` function.
|
57
|
+
// Passing `"all"` will bind the callback to all events fired.
|
58
|
+
bind : function(ev, callback) {
|
59
|
+
var calls = this._callbacks || (this._callbacks = {});
|
60
|
+
var list = this._callbacks[ev] || (this._callbacks[ev] = []);
|
61
|
+
list.push(callback);
|
62
|
+
return this;
|
63
|
+
},
|
64
|
+
|
65
|
+
// Remove one or many callbacks. If `callback` is null, removes all
|
66
|
+
// callbacks for the event. If `ev` is null, removes all bound callbacks
|
67
|
+
// for all events.
|
68
|
+
unbind : function(ev, callback) {
|
69
|
+
var calls;
|
70
|
+
if (!ev) {
|
71
|
+
this._callbacks = {};
|
72
|
+
} else if (calls = this._callbacks) {
|
73
|
+
if (!callback) {
|
74
|
+
calls[ev] = [];
|
75
|
+
} else {
|
76
|
+
var list = calls[ev];
|
77
|
+
if (!list) return this;
|
78
|
+
for (var i = 0, l = list.length; i < l; i++) {
|
79
|
+
if (callback === list[i]) {
|
80
|
+
list.splice(i, 1);
|
81
|
+
break;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
return this;
|
87
|
+
},
|
88
|
+
|
89
|
+
// Trigger an event, firing all bound callbacks. Callbacks are passed the
|
90
|
+
// same arguments as `trigger` is, apart from the event name.
|
91
|
+
// Listening for `"all"` passes the true event name as the first argument.
|
92
|
+
trigger : function(ev) {
|
93
|
+
var list, calls, i, l;
|
94
|
+
if (!(calls = this._callbacks)) return this;
|
95
|
+
if (list = calls[ev]) {
|
96
|
+
for (i = 0, l = list.length; i < l; i++) {
|
97
|
+
list[i].apply(this, Array.prototype.slice.call(arguments, 1));
|
98
|
+
}
|
99
|
+
}
|
100
|
+
if (list = calls['all']) {
|
101
|
+
for (i = 0, l = list.length; i < l; i++) {
|
102
|
+
list[i].apply(this, arguments);
|
103
|
+
}
|
104
|
+
}
|
105
|
+
return this;
|
106
|
+
}
|
107
|
+
|
108
|
+
};
|
109
|
+
|
110
|
+
// Backbone.Model
|
111
|
+
// --------------
|
112
|
+
|
113
|
+
// Create a new model, with defined attributes. A client id (`cid`)
|
114
|
+
// is automatically generated and assigned for you.
|
115
|
+
Backbone.Model = function(attributes, options) {
|
116
|
+
attributes || (attributes = {});
|
117
|
+
if (this.defaults) attributes = _.extend({}, this.defaults, attributes);
|
118
|
+
this.attributes = {};
|
119
|
+
this._escapedAttributes = {};
|
120
|
+
this.cid = _.uniqueId('c');
|
121
|
+
this.set(attributes, {silent : true});
|
122
|
+
this._previousAttributes = _.clone(this.attributes);
|
123
|
+
if (options && options.collection) this.collection = options.collection;
|
124
|
+
this.initialize(attributes, options);
|
125
|
+
};
|
126
|
+
|
127
|
+
// Attach all inheritable methods to the Model prototype.
|
128
|
+
_.extend(Backbone.Model.prototype, Backbone.Events, {
|
129
|
+
|
130
|
+
// A snapshot of the model's previous attributes, taken immediately
|
131
|
+
// after the last `"change"` event was fired.
|
132
|
+
_previousAttributes : null,
|
133
|
+
|
134
|
+
// Has the item been changed since the last `"change"` event?
|
135
|
+
_changed : false,
|
136
|
+
|
137
|
+
// Initialize is an empty function by default. Override it with your own
|
138
|
+
// initialization logic.
|
139
|
+
initialize : function(){},
|
140
|
+
|
141
|
+
// Return a copy of the model's `attributes` object.
|
142
|
+
toJSON : function() {
|
143
|
+
return _.clone(this.attributes);
|
144
|
+
},
|
145
|
+
|
146
|
+
// Get the value of an attribute.
|
147
|
+
get : function(attr) {
|
148
|
+
return this.attributes[attr];
|
149
|
+
},
|
150
|
+
|
151
|
+
// Get the HTML-escaped value of an attribute.
|
152
|
+
escape : function(attr) {
|
153
|
+
var html;
|
154
|
+
if (html = this._escapedAttributes[attr]) return html;
|
155
|
+
var val = this.attributes[attr];
|
156
|
+
return this._escapedAttributes[attr] = escapeHTML(val == null ? '' : val);
|
157
|
+
},
|
158
|
+
|
159
|
+
// Set a hash of model attributes on the object, firing `"change"` unless you
|
160
|
+
// choose to silence it.
|
161
|
+
set : function(attrs, options) {
|
162
|
+
|
163
|
+
// Extract attributes and options.
|
164
|
+
options || (options = {});
|
165
|
+
if (!attrs) return this;
|
166
|
+
if (attrs.attributes) attrs = attrs.attributes;
|
167
|
+
var now = this.attributes, escaped = this._escapedAttributes;
|
168
|
+
|
169
|
+
// Run validation.
|
170
|
+
if (!options.silent && this.validate && !this._performValidation(attrs, options)) return false;
|
171
|
+
|
172
|
+
// Check for changes of `id`.
|
173
|
+
if ('id' in attrs) this.id = attrs.id;
|
174
|
+
|
175
|
+
// Update attributes.
|
176
|
+
for (var attr in attrs) {
|
177
|
+
var val = attrs[attr];
|
178
|
+
if (!_.isEqual(now[attr], val)) {
|
179
|
+
now[attr] = val;
|
180
|
+
delete escaped[attr];
|
181
|
+
if (!options.silent) {
|
182
|
+
this._changed = true;
|
183
|
+
this.trigger('change:' + attr, this, val, options);
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
// Fire the `"change"` event, if the model has been changed.
|
189
|
+
if (!options.silent && this._changed) this.change(options);
|
190
|
+
return this;
|
191
|
+
},
|
192
|
+
|
193
|
+
// Remove an attribute from the model, firing `"change"` unless you choose
|
194
|
+
// to silence it.
|
195
|
+
unset : function(attr, options) {
|
196
|
+
options || (options = {});
|
197
|
+
var value = this.attributes[attr];
|
198
|
+
|
199
|
+
// Run validation.
|
200
|
+
var validObj = {};
|
201
|
+
validObj[attr] = void 0;
|
202
|
+
if (!options.silent && this.validate && !this._performValidation(validObj, options)) return false;
|
203
|
+
|
204
|
+
// Remove the attribute.
|
205
|
+
delete this.attributes[attr];
|
206
|
+
delete this._escapedAttributes[attr];
|
207
|
+
if (!options.silent) {
|
208
|
+
this._changed = true;
|
209
|
+
this.trigger('change:' + attr, this, void 0, options);
|
210
|
+
this.change(options);
|
211
|
+
}
|
212
|
+
return this;
|
213
|
+
},
|
214
|
+
|
215
|
+
// Clear all attributes on the model, firing `"change"` unless you choose
|
216
|
+
// to silence it.
|
217
|
+
clear : function(options) {
|
218
|
+
options || (options = {});
|
219
|
+
var old = this.attributes;
|
220
|
+
|
221
|
+
// Run validation.
|
222
|
+
var validObj = {};
|
223
|
+
for (attr in old) validObj[attr] = void 0;
|
224
|
+
if (!options.silent && this.validate && !this._performValidation(validObj, options)) return false;
|
225
|
+
|
226
|
+
this.attributes = {};
|
227
|
+
this._escapedAttributes = {};
|
228
|
+
if (!options.silent) {
|
229
|
+
this._changed = true;
|
230
|
+
for (attr in old) {
|
231
|
+
this.trigger('change:' + attr, this, void 0, options);
|
232
|
+
}
|
233
|
+
this.change(options);
|
234
|
+
}
|
235
|
+
return this;
|
236
|
+
},
|
237
|
+
|
238
|
+
// Fetch the model from the server. If the server's representation of the
|
239
|
+
// model differs from its current attributes, they will be overriden,
|
240
|
+
// triggering a `"change"` event.
|
241
|
+
fetch : function(options) {
|
242
|
+
options || (options = {});
|
243
|
+
var model = this;
|
244
|
+
var success = function(resp) {
|
245
|
+
if (!model.set(model.parse(resp), options)) return false;
|
246
|
+
if (options.success) options.success(model, resp);
|
247
|
+
};
|
248
|
+
var error = wrapError(options.error, model, options);
|
249
|
+
(this.sync || Backbone.sync)('read', this, success, error);
|
250
|
+
return this;
|
251
|
+
},
|
252
|
+
|
253
|
+
// Set a hash of model attributes, and sync the model to the server.
|
254
|
+
// If the server returns an attributes hash that differs, the model's
|
255
|
+
// state will be `set` again.
|
256
|
+
save : function(attrs, options) {
|
257
|
+
options || (options = {});
|
258
|
+
if (attrs && !this.set(attrs, options)) return false;
|
259
|
+
var model = this;
|
260
|
+
var success = function(resp) {
|
261
|
+
if (!model.set(model.parse(resp), options)) return false;
|
262
|
+
if (options.success) options.success(model, resp);
|
263
|
+
};
|
264
|
+
var error = wrapError(options.error, model, options);
|
265
|
+
var method = this.isNew() ? 'create' : 'update';
|
266
|
+
(this.sync || Backbone.sync)(method, this, success, error);
|
267
|
+
return this;
|
268
|
+
},
|
269
|
+
|
270
|
+
// Destroy this model on the server. Upon success, the model is removed
|
271
|
+
// from its collection, if it has one.
|
272
|
+
destroy : function(options) {
|
273
|
+
options || (options = {});
|
274
|
+
var model = this;
|
275
|
+
var success = function(resp) {
|
276
|
+
if (model.collection) model.collection.remove(model);
|
277
|
+
if (options.success) options.success(model, resp);
|
278
|
+
};
|
279
|
+
var error = wrapError(options.error, model, options);
|
280
|
+
(this.sync || Backbone.sync)('delete', this, success, error);
|
281
|
+
return this;
|
282
|
+
},
|
283
|
+
|
284
|
+
// Default URL for the model's representation on the server -- if you're
|
285
|
+
// using Backbone's restful methods, override this to change the endpoint
|
286
|
+
// that will be called.
|
287
|
+
url : function() {
|
288
|
+
var base = getUrl(this.collection);
|
289
|
+
if (this.isNew()) return base;
|
290
|
+
return base + (base.charAt(base.length - 1) == '/' ? '' : '/') + this.id;
|
291
|
+
},
|
292
|
+
|
293
|
+
// **parse** converts a response into the hash of attributes to be `set` on
|
294
|
+
// the model. The default implementation is just to pass the response along.
|
295
|
+
parse : function(resp) {
|
296
|
+
return resp;
|
297
|
+
},
|
298
|
+
|
299
|
+
// Create a new model with identical attributes to this one.
|
300
|
+
clone : function() {
|
301
|
+
return new this.constructor(this);
|
302
|
+
},
|
303
|
+
|
304
|
+
// A model is new if it has never been saved to the server, and has a negative
|
305
|
+
// ID.
|
306
|
+
isNew : function() {
|
307
|
+
return !this.id;
|
308
|
+
},
|
309
|
+
|
310
|
+
// Call this method to manually fire a `change` event for this model.
|
311
|
+
// Calling this will cause all objects observing the model to update.
|
312
|
+
change : function(options) {
|
313
|
+
this.trigger('change', this, options);
|
314
|
+
this._previousAttributes = _.clone(this.attributes);
|
315
|
+
this._changed = false;
|
316
|
+
},
|
317
|
+
|
318
|
+
// Determine if the model has changed since the last `"change"` event.
|
319
|
+
// If you specify an attribute name, determine if that attribute has changed.
|
320
|
+
hasChanged : function(attr) {
|
321
|
+
if (attr) return this._previousAttributes[attr] != this.attributes[attr];
|
322
|
+
return this._changed;
|
323
|
+
},
|
324
|
+
|
325
|
+
// Return an object containing all the attributes that have changed, or false
|
326
|
+
// if there are no changed attributes. Useful for determining what parts of a
|
327
|
+
// view need to be updated and/or what attributes need to be persisted to
|
328
|
+
// the server.
|
329
|
+
changedAttributes : function(now) {
|
330
|
+
now || (now = this.attributes);
|
331
|
+
var old = this._previousAttributes;
|
332
|
+
var changed = false;
|
333
|
+
for (var attr in now) {
|
334
|
+
if (!_.isEqual(old[attr], now[attr])) {
|
335
|
+
changed = changed || {};
|
336
|
+
changed[attr] = now[attr];
|
337
|
+
}
|
338
|
+
}
|
339
|
+
return changed;
|
340
|
+
},
|
341
|
+
|
342
|
+
// Get the previous value of an attribute, recorded at the time the last
|
343
|
+
// `"change"` event was fired.
|
344
|
+
previous : function(attr) {
|
345
|
+
if (!attr || !this._previousAttributes) return null;
|
346
|
+
return this._previousAttributes[attr];
|
347
|
+
},
|
348
|
+
|
349
|
+
// Get all of the attributes of the model at the time of the previous
|
350
|
+
// `"change"` event.
|
351
|
+
previousAttributes : function() {
|
352
|
+
return _.clone(this._previousAttributes);
|
353
|
+
},
|
354
|
+
|
355
|
+
// Run validation against a set of incoming attributes, returning `true`
|
356
|
+
// if all is well. If a specific `error` callback has been passed,
|
357
|
+
// call that instead of firing the general `"error"` event.
|
358
|
+
_performValidation : function(attrs, options) {
|
359
|
+
var error = this.validate(attrs);
|
360
|
+
if (error) {
|
361
|
+
if (options.error) {
|
362
|
+
options.error(this, error);
|
363
|
+
} else {
|
364
|
+
this.trigger('error', this, error, options);
|
365
|
+
}
|
366
|
+
return false;
|
367
|
+
}
|
368
|
+
return true;
|
369
|
+
}
|
370
|
+
|
371
|
+
});
|
372
|
+
|
373
|
+
// Backbone.Collection
|
374
|
+
// -------------------
|
375
|
+
|
376
|
+
// Provides a standard collection class for our sets of models, ordered
|
377
|
+
// or unordered. If a `comparator` is specified, the Collection will maintain
|
378
|
+
// its models in sort order, as they're added and removed.
|
379
|
+
Backbone.Collection = function(models, options) {
|
380
|
+
options || (options = {});
|
381
|
+
if (options.comparator) {
|
382
|
+
this.comparator = options.comparator;
|
383
|
+
delete options.comparator;
|
384
|
+
}
|
385
|
+
this._boundOnModelEvent = _.bind(this._onModelEvent, this);
|
386
|
+
this._reset();
|
387
|
+
if (models) this.refresh(models, {silent: true});
|
388
|
+
this.initialize(models, options);
|
389
|
+
};
|
390
|
+
|
391
|
+
// Define the Collection's inheritable methods.
|
392
|
+
_.extend(Backbone.Collection.prototype, Backbone.Events, {
|
393
|
+
|
394
|
+
// The default model for a collection is just a **Backbone.Model**.
|
395
|
+
// This should be overridden in most cases.
|
396
|
+
model : Backbone.Model,
|
397
|
+
|
398
|
+
// Initialize is an empty function by default. Override it with your own
|
399
|
+
// initialization logic.
|
400
|
+
initialize : function(){},
|
401
|
+
|
402
|
+
// The JSON representation of a Collection is an array of the
|
403
|
+
// models' attributes.
|
404
|
+
toJSON : function() {
|
405
|
+
return this.map(function(model){ return model.toJSON(); });
|
406
|
+
},
|
407
|
+
|
408
|
+
// Add a model, or list of models to the set. Pass **silent** to avoid
|
409
|
+
// firing the `added` event for every new model.
|
410
|
+
add : function(models, options) {
|
411
|
+
if (_.isArray(models)) {
|
412
|
+
for (var i = 0, l = models.length; i < l; i++) {
|
413
|
+
this._add(models[i], options);
|
414
|
+
}
|
415
|
+
} else {
|
416
|
+
this._add(models, options);
|
417
|
+
}
|
418
|
+
return this;
|
419
|
+
},
|
420
|
+
|
421
|
+
// Remove a model, or a list of models from the set. Pass silent to avoid
|
422
|
+
// firing the `removed` event for every model removed.
|
423
|
+
remove : function(models, options) {
|
424
|
+
if (_.isArray(models)) {
|
425
|
+
for (var i = 0, l = models.length; i < l; i++) {
|
426
|
+
this._remove(models[i], options);
|
427
|
+
}
|
428
|
+
} else {
|
429
|
+
this._remove(models, options);
|
430
|
+
}
|
431
|
+
return this;
|
432
|
+
},
|
433
|
+
|
434
|
+
// Get a model from the set by id.
|
435
|
+
get : function(id) {
|
436
|
+
if (id == null) return null;
|
437
|
+
return this._byId[id.id != null ? id.id : id];
|
438
|
+
},
|
439
|
+
|
440
|
+
// Get a model from the set by client id.
|
441
|
+
getByCid : function(cid) {
|
442
|
+
return cid && this._byCid[cid.cid || cid];
|
443
|
+
},
|
444
|
+
|
445
|
+
// Get the model at the given index.
|
446
|
+
at: function(index) {
|
447
|
+
return this.models[index];
|
448
|
+
},
|
449
|
+
|
450
|
+
// Force the collection to re-sort itself. You don't need to call this under normal
|
451
|
+
// circumstances, as the set will maintain sort order as each item is added.
|
452
|
+
sort : function(options) {
|
453
|
+
options || (options = {});
|
454
|
+
if (!this.comparator) throw new Error('Cannot sort a set without a comparator');
|
455
|
+
this.models = this.sortBy(this.comparator);
|
456
|
+
if (!options.silent) this.trigger('refresh', this, options);
|
457
|
+
return this;
|
458
|
+
},
|
459
|
+
|
460
|
+
// Pluck an attribute from each model in the collection.
|
461
|
+
pluck : function(attr) {
|
462
|
+
return _.map(this.models, function(model){ return model.get(attr); });
|
463
|
+
},
|
464
|
+
|
465
|
+
// When you have more items than you want to add or remove individually,
|
466
|
+
// you can refresh the entire set with a new list of models, without firing
|
467
|
+
// any `added` or `removed` events. Fires `refresh` when finished.
|
468
|
+
refresh : function(models, options) {
|
469
|
+
models || (models = []);
|
470
|
+
options || (options = {});
|
471
|
+
this._reset();
|
472
|
+
this.add(models, {silent: true});
|
473
|
+
if (!options.silent) this.trigger('refresh', this, options);
|
474
|
+
return this;
|
475
|
+
},
|
476
|
+
|
477
|
+
// Fetch the default set of models for this collection, refreshing the
|
478
|
+
// collection when they arrive.
|
479
|
+
fetch : function(options) {
|
480
|
+
options || (options = {});
|
481
|
+
var collection = this;
|
482
|
+
var success = function(resp) {
|
483
|
+
collection.refresh(collection.parse(resp));
|
484
|
+
if (options.success) options.success(collection, resp);
|
485
|
+
};
|
486
|
+
var error = wrapError(options.error, collection, options);
|
487
|
+
(this.sync || Backbone.sync)('read', this, success, error);
|
488
|
+
return this;
|
489
|
+
},
|
490
|
+
|
491
|
+
// Create a new instance of a model in this collection. After the model
|
492
|
+
// has been created on the server, it will be added to the collection.
|
493
|
+
create : function(model, options) {
|
494
|
+
var coll = this;
|
495
|
+
options || (options = {});
|
496
|
+
if (!(model instanceof Backbone.Model)) {
|
497
|
+
model = new this.model(model, {collection: coll});
|
498
|
+
} else {
|
499
|
+
model.collection = coll;
|
500
|
+
}
|
501
|
+
var success = function(nextModel, resp) {
|
502
|
+
coll.add(nextModel);
|
503
|
+
if (options.success) options.success(nextModel, resp);
|
504
|
+
};
|
505
|
+
return model.save(null, {success : success, error : options.error});
|
506
|
+
},
|
507
|
+
|
508
|
+
// **parse** converts a response into a list of models to be added to the
|
509
|
+
// collection. The default implementation is just to pass it through.
|
510
|
+
parse : function(resp) {
|
511
|
+
return resp;
|
512
|
+
},
|
513
|
+
|
514
|
+
// Proxy to _'s chain. Can't be proxied the same way the rest of the
|
515
|
+
// underscore methods are proxied because it relies on the underscore
|
516
|
+
// constructor.
|
517
|
+
chain: function () {
|
518
|
+
return _(this.models).chain();
|
519
|
+
},
|
520
|
+
|
521
|
+
// Reset all internal state. Called when the collection is refreshed.
|
522
|
+
_reset : function(options) {
|
523
|
+
this.length = 0;
|
524
|
+
this.models = [];
|
525
|
+
this._byId = {};
|
526
|
+
this._byCid = {};
|
527
|
+
},
|
528
|
+
|
529
|
+
// Internal implementation of adding a single model to the set, updating
|
530
|
+
// hash indexes for `id` and `cid` lookups.
|
531
|
+
_add : function(model, options) {
|
532
|
+
options || (options = {});
|
533
|
+
if (!(model instanceof Backbone.Model)) {
|
534
|
+
model = new this.model(model, {collection: this});
|
535
|
+
}
|
536
|
+
var already = this.getByCid(model);
|
537
|
+
if (already) throw new Error(["Can't add the same model to a set twice", already.id]);
|
538
|
+
this._byId[model.id] = model;
|
539
|
+
this._byCid[model.cid] = model;
|
540
|
+
model.collection = this;
|
541
|
+
var index = this.comparator ? this.sortedIndex(model, this.comparator) : this.length;
|
542
|
+
this.models.splice(index, 0, model);
|
543
|
+
model.bind('all', this._boundOnModelEvent);
|
544
|
+
this.length++;
|
545
|
+
if (!options.silent) model.trigger('add', model, this, options);
|
546
|
+
return model;
|
547
|
+
},
|
548
|
+
|
549
|
+
// Internal implementation of removing a single model from the set, updating
|
550
|
+
// hash indexes for `id` and `cid` lookups.
|
551
|
+
_remove : function(model, options) {
|
552
|
+
options || (options = {});
|
553
|
+
model = this.getByCid(model) || this.get(model);
|
554
|
+
if (!model) return null;
|
555
|
+
delete this._byId[model.id];
|
556
|
+
delete this._byCid[model.cid];
|
557
|
+
delete model.collection;
|
558
|
+
this.models.splice(this.indexOf(model), 1);
|
559
|
+
this.length--;
|
560
|
+
if (!options.silent) model.trigger('remove', model, this, options);
|
561
|
+
model.unbind('all', this._boundOnModelEvent);
|
562
|
+
return model;
|
563
|
+
},
|
564
|
+
|
565
|
+
// Internal method called every time a model in the set fires an event.
|
566
|
+
// Sets need to update their indexes when models change ids. All other
|
567
|
+
// events simply proxy through.
|
568
|
+
_onModelEvent : function(ev, model) {
|
569
|
+
if (ev === 'change:id') {
|
570
|
+
delete this._byId[model.previous('id')];
|
571
|
+
this._byId[model.id] = model;
|
572
|
+
}
|
573
|
+
this.trigger.apply(this, arguments);
|
574
|
+
}
|
575
|
+
|
576
|
+
});
|
577
|
+
|
578
|
+
// Underscore methods that we want to implement on the Collection.
|
579
|
+
var methods = ['forEach', 'each', 'map', 'reduce', 'reduceRight', 'find', 'detect',
|
580
|
+
'filter', 'select', 'reject', 'every', 'all', 'some', 'any', 'include',
|
581
|
+
'invoke', 'max', 'min', 'sortBy', 'sortedIndex', 'toArray', 'size',
|
582
|
+
'first', 'rest', 'last', 'without', 'indexOf', 'lastIndexOf', 'isEmpty'];
|
583
|
+
|
584
|
+
// Mix in each Underscore method as a proxy to `Collection#models`.
|
585
|
+
_.each(methods, function(method) {
|
586
|
+
Backbone.Collection.prototype[method] = function() {
|
587
|
+
return _[method].apply(_, [this.models].concat(_.toArray(arguments)));
|
588
|
+
};
|
589
|
+
});
|
590
|
+
|
591
|
+
// Backbone.Controller
|
592
|
+
// -------------------
|
593
|
+
|
594
|
+
// Controllers map faux-URLs to actions, and fire events when routes are
|
595
|
+
// matched. Creating a new one sets its `routes` hash, if not set statically.
|
596
|
+
Backbone.Controller = function(options) {
|
597
|
+
options || (options = {});
|
598
|
+
if (options.routes) this.routes = options.routes;
|
599
|
+
this._bindRoutes();
|
600
|
+
this.initialize(options);
|
601
|
+
};
|
602
|
+
|
603
|
+
// Cached regular expressions for matching named param parts and splatted
|
604
|
+
// parts of route strings.
|
605
|
+
var namedParam = /:([\w\d]+)/g;
|
606
|
+
var splatParam = /\*([\w\d]+)/g;
|
607
|
+
|
608
|
+
// Set up all inheritable **Backbone.Controller** properties and methods.
|
609
|
+
_.extend(Backbone.Controller.prototype, Backbone.Events, {
|
610
|
+
|
611
|
+
// Initialize is an empty function by default. Override it with your own
|
612
|
+
// initialization logic.
|
613
|
+
initialize : function(){},
|
614
|
+
|
615
|
+
// Manually bind a single named route to a callback. For example:
|
616
|
+
//
|
617
|
+
// this.route('search/:query/p:num', 'search', function(query, num) {
|
618
|
+
// ...
|
619
|
+
// });
|
620
|
+
//
|
621
|
+
route : function(route, name, callback) {
|
622
|
+
Backbone.history || (Backbone.history = new Backbone.History);
|
623
|
+
if (!_.isRegExp(route)) route = this._routeToRegExp(route);
|
624
|
+
Backbone.history.route(route, _.bind(function(fragment) {
|
625
|
+
var args = this._extractParameters(route, fragment);
|
626
|
+
callback.apply(this, args);
|
627
|
+
this.trigger.apply(this, ['route:' + name].concat(args));
|
628
|
+
}, this));
|
629
|
+
},
|
630
|
+
|
631
|
+
// Simple proxy to `Backbone.history` to save a fragment into the history,
|
632
|
+
// without triggering routes.
|
633
|
+
saveLocation : function(fragment) {
|
634
|
+
Backbone.history.saveLocation(fragment);
|
635
|
+
},
|
636
|
+
|
637
|
+
// Bind all defined routes to `Backbone.history`.
|
638
|
+
_bindRoutes : function() {
|
639
|
+
if (!this.routes) return;
|
640
|
+
for (var route in this.routes) {
|
641
|
+
var name = this.routes[route];
|
642
|
+
this.route(route, name, this[name]);
|
643
|
+
}
|
644
|
+
},
|
645
|
+
|
646
|
+
// Convert a route string into a regular expression, suitable for matching
|
647
|
+
// against the current location fragment.
|
648
|
+
_routeToRegExp : function(route) {
|
649
|
+
route = route.replace(namedParam, "([^\/]*)").replace(splatParam, "(.*?)");
|
650
|
+
return new RegExp('^' + route + '$');
|
651
|
+
},
|
652
|
+
|
653
|
+
// Given a route, and a URL fragment that it matches, return the array of
|
654
|
+
// extracted parameters.
|
655
|
+
_extractParameters : function(route, fragment) {
|
656
|
+
return route.exec(fragment).slice(1);
|
657
|
+
}
|
658
|
+
|
659
|
+
});
|
660
|
+
|
661
|
+
// Backbone.History
|
662
|
+
// ----------------
|
663
|
+
|
664
|
+
// Handles cross-browser history management, based on URL hashes. If the
|
665
|
+
// browser does not support `onhashchange`, falls back to polling.
|
666
|
+
Backbone.History = function() {
|
667
|
+
this.handlers = [];
|
668
|
+
this.fragment = this.getFragment();
|
669
|
+
_.bindAll(this, 'checkUrl');
|
670
|
+
};
|
671
|
+
|
672
|
+
// Cached regex for cleaning hashes.
|
673
|
+
var hashStrip = /^#*/;
|
674
|
+
|
675
|
+
// Set up all inheritable **Backbone.History** properties and methods.
|
676
|
+
_.extend(Backbone.History.prototype, {
|
677
|
+
|
678
|
+
// The default interval to poll for hash changes, if necessary, is
|
679
|
+
// twenty times a second.
|
680
|
+
interval: 50,
|
681
|
+
|
682
|
+
// Get the cross-browser normalized URL fragment.
|
683
|
+
getFragment : function(loc) {
|
684
|
+
return (loc || window.location).hash.replace(hashStrip, '');
|
685
|
+
},
|
686
|
+
|
687
|
+
// Start the hash change handling, returning `true` if the current URL matches
|
688
|
+
// an existing route, and `false` otherwise.
|
689
|
+
start : function() {
|
690
|
+
var docMode = document.documentMode;
|
691
|
+
var oldIE = ($.browser.msie && (!docMode || docMode <= 7));
|
692
|
+
if (oldIE) {
|
693
|
+
this.iframe = $('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo('body')[0].contentWindow;
|
694
|
+
}
|
695
|
+
if ('onhashchange' in window && !oldIE) {
|
696
|
+
$(window).bind('hashchange', this.checkUrl);
|
697
|
+
} else {
|
698
|
+
setInterval(this.checkUrl, this.interval);
|
699
|
+
}
|
700
|
+
return this.loadUrl();
|
701
|
+
},
|
702
|
+
|
703
|
+
// Add a route to be tested when the hash changes. Routes are matched in the
|
704
|
+
// order they are added.
|
705
|
+
route : function(route, callback) {
|
706
|
+
this.handlers.push({route : route, callback : callback});
|
707
|
+
},
|
708
|
+
|
709
|
+
// Checks the current URL to see if it has changed, and if it has,
|
710
|
+
// calls `loadUrl`, normalizing across the hidden iframe.
|
711
|
+
checkUrl : function() {
|
712
|
+
var current = this.getFragment();
|
713
|
+
if (current == this.fragment && this.iframe) {
|
714
|
+
current = this.getFragment(this.iframe.location);
|
715
|
+
}
|
716
|
+
if (current == this.fragment ||
|
717
|
+
current == decodeURIComponent(this.fragment)) return false;
|
718
|
+
if (this.iframe) {
|
719
|
+
window.location.hash = this.iframe.location.hash = current;
|
720
|
+
}
|
721
|
+
this.loadUrl();
|
722
|
+
},
|
723
|
+
|
724
|
+
// Attempt to load the current URL fragment. If a route succeeds with a
|
725
|
+
// match, returns `true`. If no defined routes matches the fragment,
|
726
|
+
// returns `false`.
|
727
|
+
loadUrl : function() {
|
728
|
+
var fragment = this.fragment = this.getFragment();
|
729
|
+
var matched = _.any(this.handlers, function(handler) {
|
730
|
+
if (handler.route.test(fragment)) {
|
731
|
+
handler.callback(fragment);
|
732
|
+
return true;
|
733
|
+
}
|
734
|
+
});
|
735
|
+
return matched;
|
736
|
+
},
|
737
|
+
|
738
|
+
// Save a fragment into the hash history. You are responsible for properly
|
739
|
+
// URL-encoding the fragment in advance. This does not trigger
|
740
|
+
// a `hashchange` event.
|
741
|
+
saveLocation : function(fragment) {
|
742
|
+
fragment = (fragment || '').replace(hashStrip, '');
|
743
|
+
if (this.fragment == fragment) return;
|
744
|
+
window.location.hash = this.fragment = fragment;
|
745
|
+
if (this.iframe && (fragment != this.getFragment(this.iframe.location))) {
|
746
|
+
this.iframe.document.open().close();
|
747
|
+
this.iframe.location.hash = fragment;
|
748
|
+
}
|
749
|
+
}
|
750
|
+
|
751
|
+
});
|
752
|
+
|
753
|
+
// Backbone.View
|
754
|
+
// -------------
|
755
|
+
|
756
|
+
// Creating a Backbone.View creates its initial element outside of the DOM,
|
757
|
+
// if an existing element is not provided...
|
758
|
+
Backbone.View = function(options) {
|
759
|
+
this._configure(options || {});
|
760
|
+
this._ensureElement();
|
761
|
+
this.delegateEvents();
|
762
|
+
this.initialize(options);
|
763
|
+
};
|
764
|
+
|
765
|
+
// Element lookup, scoped to DOM elements within the current view.
|
766
|
+
// This should be prefered to global lookups, if you're dealing with
|
767
|
+
// a specific view.
|
768
|
+
var selectorDelegate = function(selector) {
|
769
|
+
return $(selector, this.el);
|
770
|
+
};
|
771
|
+
|
772
|
+
// Cached regex to split keys for `delegate`.
|
773
|
+
var eventSplitter = /^(\w+)\s*(.*)$/;
|
774
|
+
|
775
|
+
// Set up all inheritable **Backbone.View** properties and methods.
|
776
|
+
_.extend(Backbone.View.prototype, Backbone.Events, {
|
777
|
+
|
778
|
+
// The default `tagName` of a View's element is `"div"`.
|
779
|
+
tagName : 'div',
|
780
|
+
|
781
|
+
// Attach the `selectorDelegate` function as the `$` property.
|
782
|
+
$ : selectorDelegate,
|
783
|
+
|
784
|
+
// Initialize is an empty function by default. Override it with your own
|
785
|
+
// initialization logic.
|
786
|
+
initialize : function(){},
|
787
|
+
|
788
|
+
// **render** is the core function that your view should override, in order
|
789
|
+
// to populate its element (`this.el`), with the appropriate HTML. The
|
790
|
+
// convention is for **render** to always return `this`.
|
791
|
+
render : function() {
|
792
|
+
return this;
|
793
|
+
},
|
794
|
+
|
795
|
+
// Remove this view from the DOM. Note that the view isn't present in the
|
796
|
+
// DOM by default, so calling this method may be a no-op.
|
797
|
+
remove : function() {
|
798
|
+
$(this.el).remove();
|
799
|
+
return this;
|
800
|
+
},
|
801
|
+
|
802
|
+
// For small amounts of DOM Elements, where a full-blown template isn't
|
803
|
+
// needed, use **make** to manufacture elements, one at a time.
|
804
|
+
//
|
805
|
+
// var el = this.make('li', {'class': 'row'}, this.model.escape('title'));
|
806
|
+
//
|
807
|
+
make : function(tagName, attributes, content) {
|
808
|
+
var el = document.createElement(tagName);
|
809
|
+
if (attributes) $(el).attr(attributes);
|
810
|
+
if (content) $(el).html(content);
|
811
|
+
return el;
|
812
|
+
},
|
813
|
+
|
814
|
+
// Set callbacks, where `this.callbacks` is a hash of
|
815
|
+
//
|
816
|
+
// *{"event selector": "callback"}*
|
817
|
+
//
|
818
|
+
// {
|
819
|
+
// 'mousedown .title': 'edit',
|
820
|
+
// 'click .button': 'save'
|
821
|
+
// }
|
822
|
+
//
|
823
|
+
// pairs. Callbacks will be bound to the view, with `this` set properly.
|
824
|
+
// Uses event delegation for efficiency.
|
825
|
+
// Omitting the selector binds the event to `this.el`.
|
826
|
+
// This only works for delegate-able events: not `focus`, `blur`, and
|
827
|
+
// not `change`, `submit`, and `reset` in Internet Explorer.
|
828
|
+
delegateEvents : function(events) {
|
829
|
+
if (!(events || (events = this.events))) return;
|
830
|
+
$(this.el).unbind();
|
831
|
+
for (var key in events) {
|
832
|
+
var methodName = events[key];
|
833
|
+
var match = key.match(eventSplitter);
|
834
|
+
var eventName = match[1], selector = match[2];
|
835
|
+
var method = _.bind(this[methodName], this);
|
836
|
+
if (selector === '') {
|
837
|
+
$(this.el).bind(eventName, method);
|
838
|
+
} else {
|
839
|
+
$(this.el).delegate(selector, eventName, method);
|
840
|
+
}
|
841
|
+
}
|
842
|
+
},
|
843
|
+
|
844
|
+
// Performs the initial configuration of a View with a set of options.
|
845
|
+
// Keys with special meaning *(model, collection, id, className)*, are
|
846
|
+
// attached directly to the view.
|
847
|
+
_configure : function(options) {
|
848
|
+
if (this.options) options = _.extend({}, this.options, options);
|
849
|
+
if (options.model) this.model = options.model;
|
850
|
+
if (options.collection) this.collection = options.collection;
|
851
|
+
if (options.el) this.el = options.el;
|
852
|
+
if (options.id) this.id = options.id;
|
853
|
+
if (options.className) this.className = options.className;
|
854
|
+
if (options.tagName) this.tagName = options.tagName;
|
855
|
+
this.options = options;
|
856
|
+
},
|
857
|
+
|
858
|
+
// Ensure that the View has a DOM element to render into.
|
859
|
+
_ensureElement : function() {
|
860
|
+
if (this.el) return;
|
861
|
+
var attrs = {};
|
862
|
+
if (this.id) attrs.id = this.id;
|
863
|
+
if (this.className) attrs["class"] = this.className;
|
864
|
+
this.el = this.make(this.tagName, attrs);
|
865
|
+
}
|
866
|
+
|
867
|
+
});
|
868
|
+
|
869
|
+
// The self-propagating extend function that Backbone classes use.
|
870
|
+
var extend = function (protoProps, classProps) {
|
871
|
+
var child = inherits(this, protoProps, classProps);
|
872
|
+
child.extend = extend;
|
873
|
+
return child;
|
874
|
+
};
|
875
|
+
|
876
|
+
// Set up inheritance for the model, collection, and view.
|
877
|
+
Backbone.Model.extend = Backbone.Collection.extend =
|
878
|
+
Backbone.Controller.extend = Backbone.View.extend = extend;
|
879
|
+
|
880
|
+
// Map from CRUD to HTTP for our default `Backbone.sync` implementation.
|
881
|
+
var methodMap = {
|
882
|
+
'create': 'POST',
|
883
|
+
'update': 'PUT',
|
884
|
+
'delete': 'DELETE',
|
885
|
+
'read' : 'GET'
|
886
|
+
};
|
887
|
+
|
888
|
+
// Backbone.sync
|
889
|
+
// -------------
|
890
|
+
|
891
|
+
// Override this function to change the manner in which Backbone persists
|
892
|
+
// models to the server. You will be passed the type of request, and the
|
893
|
+
// model in question. By default, uses makes a RESTful Ajax request
|
894
|
+
// to the model's `url()`. Some possible customizations could be:
|
895
|
+
//
|
896
|
+
// * Use `setTimeout` to batch rapid-fire updates into a single request.
|
897
|
+
// * Send up the models as XML instead of JSON.
|
898
|
+
// * Persist models via WebSockets instead of Ajax.
|
899
|
+
//
|
900
|
+
// Turn on `Backbone.emulateHTTP` in order to send `PUT` and `DELETE` requests
|
901
|
+
// as `POST`, with a `_method` parameter containing the true HTTP method,
|
902
|
+
// as well as all requests with the body as `application/x-www-form-urlencoded` instead of
|
903
|
+
// `application/json` with the model in a param named `model`.
|
904
|
+
// Useful when interfacing with server-side languages like **PHP** that make
|
905
|
+
// it difficult to read the body of `PUT` requests.
|
906
|
+
Backbone.sync = function(method, model, success, error) {
|
907
|
+
var type = methodMap[method];
|
908
|
+
var modelJSON = (method === 'create' || method === 'update') ?
|
909
|
+
JSON.stringify(model.toJSON()) : null;
|
910
|
+
|
911
|
+
// Default JSON-request options.
|
912
|
+
var params = {
|
913
|
+
url: getUrl(model),
|
914
|
+
type: type,
|
915
|
+
contentType: 'application/json',
|
916
|
+
data: modelJSON,
|
917
|
+
dataType: 'json',
|
918
|
+
processData: false,
|
919
|
+
success: success,
|
920
|
+
error: error
|
921
|
+
};
|
922
|
+
|
923
|
+
// For older servers, emulate JSON by encoding the request into an HTML-form.
|
924
|
+
if (Backbone.emulateJSON) {
|
925
|
+
params.contentType = 'application/x-www-form-urlencoded';
|
926
|
+
params.processData = true;
|
927
|
+
params.data = modelJSON ? {model : modelJSON} : {};
|
928
|
+
}
|
929
|
+
|
930
|
+
// For older servers, emulate HTTP by mimicking the HTTP method with `_method`
|
931
|
+
// And an `X-HTTP-Method-Override` header.
|
932
|
+
if (Backbone.emulateHTTP) {
|
933
|
+
if (type === 'PUT' || type === 'DELETE') {
|
934
|
+
if (Backbone.emulateJSON) params.data._method = type;
|
935
|
+
params.type = 'POST';
|
936
|
+
params.beforeSend = function(xhr) {
|
937
|
+
xhr.setRequestHeader("X-HTTP-Method-Override", type);
|
938
|
+
};
|
939
|
+
}
|
940
|
+
}
|
941
|
+
|
942
|
+
// Make the request.
|
943
|
+
$.ajax(params);
|
944
|
+
};
|
945
|
+
|
946
|
+
// Helpers
|
947
|
+
// -------
|
948
|
+
|
949
|
+
// Shared empty constructor function to aid in prototype-chain creation.
|
950
|
+
var ctor = function(){};
|
951
|
+
|
952
|
+
// Helper function to correctly set up the prototype chain, for subclasses.
|
953
|
+
// Similar to `goog.inherits`, but uses a hash of prototype properties and
|
954
|
+
// class properties to be extended.
|
955
|
+
var inherits = function(parent, protoProps, staticProps) {
|
956
|
+
var child;
|
957
|
+
|
958
|
+
// The constructor function for the new subclass is either defined by you
|
959
|
+
// (the "constructor" property in your `extend` definition), or defaulted
|
960
|
+
// by us to simply call `super()`.
|
961
|
+
if (protoProps && protoProps.hasOwnProperty('constructor')) {
|
962
|
+
child = protoProps.constructor;
|
963
|
+
} else {
|
964
|
+
child = function(){ return parent.apply(this, arguments); };
|
965
|
+
}
|
966
|
+
|
967
|
+
// Set the prototype chain to inherit from `parent`, without calling
|
968
|
+
// `parent`'s constructor function.
|
969
|
+
ctor.prototype = parent.prototype;
|
970
|
+
child.prototype = new ctor();
|
971
|
+
|
972
|
+
// Add prototype properties (instance properties) to the subclass,
|
973
|
+
// if supplied.
|
974
|
+
if (protoProps) _.extend(child.prototype, protoProps);
|
975
|
+
|
976
|
+
// Add static properties to the constructor function, if supplied.
|
977
|
+
if (staticProps) _.extend(child, staticProps);
|
978
|
+
|
979
|
+
// Correctly set child's `prototype.constructor`, for `instanceof`.
|
980
|
+
child.prototype.constructor = child;
|
981
|
+
|
982
|
+
// Set a convenience property in case the parent's prototype is needed later.
|
983
|
+
child.__super__ = parent.prototype;
|
984
|
+
|
985
|
+
return child;
|
986
|
+
};
|
987
|
+
|
988
|
+
// Helper function to get a URL from a Model or Collection as a property
|
989
|
+
// or as a function.
|
990
|
+
var getUrl = function(object) {
|
991
|
+
if (!(object && object.url)) throw new Error("A 'url' property or function must be specified");
|
992
|
+
return _.isFunction(object.url) ? object.url() : object.url;
|
993
|
+
};
|
994
|
+
|
995
|
+
// Wrap an optional error callback with a fallback error event.
|
996
|
+
var wrapError = function(onError, model, options) {
|
997
|
+
return function(resp) {
|
998
|
+
if (onError) {
|
999
|
+
onError(model, resp);
|
1000
|
+
} else {
|
1001
|
+
model.trigger('error', model, resp, options);
|
1002
|
+
}
|
1003
|
+
};
|
1004
|
+
};
|
1005
|
+
|
1006
|
+
// Helper function to escape a string for HTML rendering.
|
1007
|
+
var escapeHTML = function(string) {
|
1008
|
+
return string.replace(/&(?!\w+;)/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
1009
|
+
};
|
1010
|
+
|
1011
|
+
})();
|