alchemy 1.0.2 → 8.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +24 -17
- data/README.md +538 -4
- data/lib/alchemy.rb +3 -6
- metadata +61 -266
- data/Rakefile +0 -21
- data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.eot +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.svg +0 -154
- data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.ttf +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.woff +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.eot +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.svg +0 -154
- data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.ttf +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.woff +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.eot +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.svg +0 -154
- data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.ttf +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.woff +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.eot +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.svg +0 -154
- data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.ttf +0 -0
- data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.woff +0 -0
- data/app/assets/fonts/alchemy/Red Hat Liberation License.txt +0 -78
- data/app/assets/fonts/alchemy/overpass_bold-web.eot +0 -0
- data/app/assets/fonts/alchemy/overpass_bold-web.svg +0 -470
- data/app/assets/fonts/alchemy/overpass_bold-web.ttf +0 -0
- data/app/assets/fonts/alchemy/overpass_bold-web.woff +0 -0
- data/app/assets/fonts/alchemy/overpass_regular-web.eot +0 -0
- data/app/assets/fonts/alchemy/overpass_regular-web.svg +0 -470
- data/app/assets/fonts/alchemy/overpass_regular-web.ttf +0 -0
- data/app/assets/fonts/alchemy/overpass_regular-web.woff +0 -0
- data/app/assets/images/alchemy/icons/action-icons.png +0 -0
- data/app/assets/images/alchemy/icons/arrow_icon.png +0 -0
- data/app/assets/images/alchemy/icons/chosen-sprite.png +0 -0
- data/app/assets/images/alchemy/icons/error_icon.png +0 -0
- data/app/assets/images/alchemy/icons/objects.png +0 -0
- data/app/assets/images/alchemy/icons/spinner.gif +0 -0
- data/app/assets/images/alchemy/icons/spinner_head.gif +0 -0
- data/app/assets/images/alchemy/icons/success_icon.png +0 -0
- data/app/assets/images/alchemy/icons/warning_icon.png +0 -0
- data/app/assets/javascripts/alchemy/flash_messages.js +0 -12
- data/app/assets/javascripts/alchemy/forms.js +0 -25
- data/app/assets/javascripts/alchemy/i18n.js +0 -36
- data/app/assets/javascripts/alchemy/login.js +0 -130
- data/app/assets/javascripts/alchemy/password.js +0 -99
- data/app/assets/stylesheets/alchemy/components/_chosen.scss +0 -423
- data/app/assets/stylesheets/alchemy/components/_content.scss +0 -58
- data/app/assets/stylesheets/alchemy/components/_helpers.scss +0 -38
- data/app/assets/stylesheets/alchemy/components/_media.scss +0 -49
- data/app/assets/stylesheets/alchemy/components/_media_object.scss +0 -22
- data/app/assets/stylesheets/alchemy/components/_normalize.scss +0 -448
- data/app/assets/stylesheets/alchemy/components/_shared.scss +0 -18
- data/app/assets/stylesheets/alchemy/components/buttons/_buttons.scss +0 -241
- data/app/assets/stylesheets/alchemy/components/buttons/_buttons_vars.scss +0 -10
- data/app/assets/stylesheets/alchemy/components/flash_messages/_flash_messages.scss +0 -93
- data/app/assets/stylesheets/alchemy/components/flash_messages/_flash_messages_vars.scss +0 -3
- data/app/assets/stylesheets/alchemy/components/fonts/_liberation.scss +0 -44
- data/app/assets/stylesheets/alchemy/components/fonts/_overpass.scss +0 -24
- data/app/assets/stylesheets/alchemy/components/footer/_footer.scss +0 -53
- data/app/assets/stylesheets/alchemy/components/footer/_footer_vars.scss +0 -4
- data/app/assets/stylesheets/alchemy/components/forms/_forms.scss +0 -536
- data/app/assets/stylesheets/alchemy/components/forms/_forms_ie.scss +0 -45
- data/app/assets/stylesheets/alchemy/components/forms/_forms_mixins.scss +0 -18
- data/app/assets/stylesheets/alchemy/components/forms/_forms_responsive.scss +0 -161
- data/app/assets/stylesheets/alchemy/components/forms/_forms_vars.scss +0 -25
- data/app/assets/stylesheets/alchemy/components/header/_header.scss +0 -214
- data/app/assets/stylesheets/alchemy/components/header/_header_vars.scss +0 -11
- data/app/assets/stylesheets/alchemy/components/login/_login.scss +0 -169
- data/app/assets/stylesheets/alchemy/components/login/_login_mixins.scss +0 -7
- data/app/assets/stylesheets/alchemy/components/login/_login_vars.scss +0 -19
- data/app/assets/stylesheets/alchemy/components/sprites/_sprites.scss +0 -110
- data/app/assets/stylesheets/alchemy/components/sprites/_sprites_mixins.scss +0 -9
- data/app/assets/stylesheets/alchemy/components/text/_text.scss +0 -30
- data/app/assets/stylesheets/alchemy/components/text/_text_vars.scss +0 -1
- data/app/assets/stylesheets/alchemy/composites/content_elements.scss +0 -6
- data/app/assets/stylesheets/alchemy/composites/login.scss +0 -9
- data/app/assets/stylesheets/alchemy/composites/shell.scss +0 -4
- data/app/assets/stylesheets/alchemy/partials/_base.scss +0 -8
- data/app/assets/stylesheets/alchemy/partials/_colors.scss +0 -99
- data/app/assets/stylesheets/alchemy/partials/_mixins.scss +0 -24
- data/app/assets/stylesheets/alchemy/partials/_vars.scss +0 -31
- data/app/helpers/alchemy/gettext_translations.rb +0 -28
- data/app/helpers/alchemy/layout_helper.rb +0 -19
- data/app/helpers/alchemy/rails_translations.rb +0 -21
- data/app/helpers/alchemy/translation_helper.rb +0 -19
- data/app/views/alchemy/layouts/_change_password_layout.html.haml +0 -20
- data/app/views/alchemy/layouts/_common_i18n.haml +0 -4
- data/app/views/alchemy/layouts/_header_layout.haml +0 -13
- data/app/views/alchemy/layouts/_login_layout.html.haml +0 -58
- data/app/views/alchemy/layouts/_user_session_layout.haml +0 -17
- data/app/views/alchemy/layouts/base.html.haml +0 -20
- data/app/views/alchemy/layouts/shell_layout.haml +0 -10
- data/lib/alchemy/version.rb +0 -3
- data/test/alchemy_test.rb +0 -7
- data/test/test_helper.rb +0 -9
- data/vendor/assets/javascripts/alchemy/html5shiv.js +0 -298
- data/vendor/assets/javascripts/alchemy/jquery/jquery-1.6.2.js +0 -8981
- data/vendor/assets/javascripts/alchemy/jquery/plugins/chosen.jquery.js +0 -1003
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/API.txt +0 -1201
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/FAQ.txt +0 -76
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/LICENSE.txt +0 -22
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/Makefile +0 -9
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/NEWS.txt +0 -508
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/PLUGINS.txt +0 -137
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/README.txt +0 -90
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/ajax.html +0 -143
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/annotating.html +0 -75
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-down.gif +0 -0
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-left.gif +0 -0
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-right.gif +0 -0
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-up.gif +0 -0
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/basic.html +0 -38
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-1.json +0 -4
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-2.json +0 -4
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-3.json +0 -4
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-4.json +0 -4
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-5.json +0 -4
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth.json +0 -4
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-japan-gdp-growth.json +0 -4
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-usa-gdp-growth.json +0 -4
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/graph-types.html +0 -75
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/hs-2004-27-a-large_web.jpg +0 -0
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/image.html +0 -45
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/index.html +0 -44
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/interacting-axes.html +0 -97
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/interacting.html +0 -93
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/layout.css +0 -6
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/multiple-axes.html +0 -60
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/navigate.html +0 -118
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/percentiles.html +0 -57
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/pie.html +0 -756
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/realtime.html +0 -83
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/resize.html +0 -61
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/selection.html +0 -114
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/setting-options.html +0 -61
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/stacking.html +0 -77
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/symbols.html +0 -49
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/thresholding.html +0 -54
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/time.html +0 -71
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/tracking.html +0 -95
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/turning-series.html +0 -98
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/visitors.html +0 -90
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/zooming.html +0 -98
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/excanvas.js +0 -1427
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/excanvas.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.colorhelpers.js +0 -179
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.colorhelpers.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.crosshair.js +0 -167
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.crosshair.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.fillbetween.js +0 -183
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.fillbetween.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.image.js +0 -238
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.image.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.js +0 -2599
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.min.js +0 -6
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.navigate.js +0 -336
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.navigate.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.pie.js +0 -750
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.pie.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.resize.js +0 -60
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.resize.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.selection.js +0 -344
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.selection.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.stack.js +0 -184
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.stack.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.symbol.js +0 -70
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.symbol.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.js +0 -103
- data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js +0 -1
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/blank.svg +0 -3
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/custom_test.js +0 -67
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.css +0 -9
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.js +0 -1101
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.min.js +0 -7
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.pack.js +0 -7
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.js +0 -396
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.min.js +0 -7
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.pack.js +0 -7
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.js +0 -1337
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.min.js +0 -7
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.pack.js +0 -7
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/lion.svg +0 -161
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/test.js +0 -714
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ajaxfileupload.js +0 -205
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ba-bbq.js +0 -1137
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ba-resize.js +0 -246
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.cookie.js +0 -92
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.easing.1.3.js +0 -205
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.fancyqueries.js +0 -106
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.flash.js +0 -288
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.form.js +0 -964
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.hoverIntent.js +0 -106
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jeditable.ajaxupload.js +0 -62
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jeditable.js +0 -556
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jnotify.js +0 -210
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jscrollpane.js +0 -1390
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jscrollpane.min.js +0 -11
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.linkHover.js +0 -89
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.loadmask.min.js +0 -10
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.mousewheel.js +0 -78
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.multiselect.filter.js +0 -176
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.multiselect.js +0 -668
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.pack.js +0 -11
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.periodicalupdater.js +0 -175
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.sortElements.js +0 -75
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.sparkline.min.js +0 -94
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.text-overflow.js +0 -60
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.timepickr.js +0 -214
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.timers.js +0 -142
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.tipsy.js +0 -358
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.treeTable.js +0 -226
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.trunk8.js +0 -203
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ui.multiselect.js +0 -338
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ui.totop.js +0 -58
- data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.uitablefilter.js +0 -95
- data/vendor/assets/javascripts/alchemy/jquery/plugins/ui.spinner.js +0 -683
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_75_dadada_1x100.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_75_e6e6e6_1x100.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_95_ffffff_1x100.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-soft_80_e0e0e0_1x100.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_inset-hard_65_ffffff_1x100.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_8f8f8f_256x240.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_97baed_256x240.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/jquery-ui-1.8.11.custom.css +0 -573
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/js/jquery-1.5.1.min.js +0 -16
- data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/js/jquery-ui-1.8.11.custom.min.js +0 -783
- data/vendor/assets/javascripts/alchemy/rails.js +0 -331
- data/vendor/assets/javascripts/alchemy/underscore-1.3.1.js +0 -999
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* jQuery resize event - v1.1 - 3/14/2010
|
|
3
|
-
* http://benalman.com/projects/jquery-resize-plugin/
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) 2010 "Cowboy" Ben Alman
|
|
6
|
-
* Dual licensed under the MIT and GPL licenses.
|
|
7
|
-
* http://benalman.com/about/license/
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
// Script: jQuery resize event
|
|
11
|
-
//
|
|
12
|
-
// *Version: 1.1, Last updated: 3/14/2010*
|
|
13
|
-
//
|
|
14
|
-
// Project Home - http://benalman.com/projects/jquery-resize-plugin/
|
|
15
|
-
// GitHub - http://github.com/cowboy/jquery-resize/
|
|
16
|
-
// Source - http://github.com/cowboy/jquery-resize/raw/master/jquery.ba-resize.js
|
|
17
|
-
// (Minified) - http://github.com/cowboy/jquery-resize/raw/master/jquery.ba-resize.min.js (1.0kb)
|
|
18
|
-
//
|
|
19
|
-
// About: License
|
|
20
|
-
//
|
|
21
|
-
// Copyright (c) 2010 "Cowboy" Ben Alman,
|
|
22
|
-
// Dual licensed under the MIT and GPL licenses.
|
|
23
|
-
// http://benalman.com/about/license/
|
|
24
|
-
//
|
|
25
|
-
// About: Examples
|
|
26
|
-
//
|
|
27
|
-
// This working example, complete with fully commented code, illustrates a few
|
|
28
|
-
// ways in which this plugin can be used.
|
|
29
|
-
//
|
|
30
|
-
// resize event - http://benalman.com/code/projects/jquery-resize/examples/resize/
|
|
31
|
-
//
|
|
32
|
-
// About: Support and Testing
|
|
33
|
-
//
|
|
34
|
-
// Information about what version or versions of jQuery this plugin has been
|
|
35
|
-
// tested with, what browsers it has been tested in, and where the unit tests
|
|
36
|
-
// reside (so you can test it yourself).
|
|
37
|
-
//
|
|
38
|
-
// jQuery Versions - 1.3.2, 1.4.1, 1.4.2
|
|
39
|
-
// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.1.
|
|
40
|
-
// Unit Tests - http://benalman.com/code/projects/jquery-resize/unit/
|
|
41
|
-
//
|
|
42
|
-
// About: Release History
|
|
43
|
-
//
|
|
44
|
-
// 1.1 - (3/14/2010) Fixed a minor bug that was causing the event to trigger
|
|
45
|
-
// immediately after bind in some circumstances. Also changed $.fn.data
|
|
46
|
-
// to $.data to improve performance.
|
|
47
|
-
// 1.0 - (2/10/2010) Initial release
|
|
48
|
-
|
|
49
|
-
(function($,window,undefined){
|
|
50
|
-
'$:nomunge'; // Used by YUI compressor.
|
|
51
|
-
|
|
52
|
-
// A jQuery object containing all non-window elements to which the resize
|
|
53
|
-
// event is bound.
|
|
54
|
-
var elems = $([]),
|
|
55
|
-
|
|
56
|
-
// Extend $.resize if it already exists, otherwise create it.
|
|
57
|
-
jq_resize = $.resize = $.extend( $.resize, {} ),
|
|
58
|
-
|
|
59
|
-
timeout_id,
|
|
60
|
-
|
|
61
|
-
// Reused strings.
|
|
62
|
-
str_setTimeout = 'setTimeout',
|
|
63
|
-
str_resize = 'resize',
|
|
64
|
-
str_data = str_resize + '-special-event',
|
|
65
|
-
str_delay = 'delay',
|
|
66
|
-
str_throttle = 'throttleWindow';
|
|
67
|
-
|
|
68
|
-
// Property: jQuery.resize.delay
|
|
69
|
-
//
|
|
70
|
-
// The numeric interval (in milliseconds) at which the resize event polling
|
|
71
|
-
// loop executes. Defaults to 250.
|
|
72
|
-
|
|
73
|
-
jq_resize[ str_delay ] = 250;
|
|
74
|
-
|
|
75
|
-
// Property: jQuery.resize.throttleWindow
|
|
76
|
-
//
|
|
77
|
-
// Throttle the native window object resize event to fire no more than once
|
|
78
|
-
// every <jQuery.resize.delay> milliseconds. Defaults to true.
|
|
79
|
-
//
|
|
80
|
-
// Because the window object has its own resize event, it doesn't need to be
|
|
81
|
-
// provided by this plugin, and its execution can be left entirely up to the
|
|
82
|
-
// browser. However, since certain browsers fire the resize event continuously
|
|
83
|
-
// while others do not, enabling this will throttle the window resize event,
|
|
84
|
-
// making event behavior consistent across all elements in all browsers.
|
|
85
|
-
//
|
|
86
|
-
// While setting this property to false will disable window object resize
|
|
87
|
-
// event throttling, please note that this property must be changed before any
|
|
88
|
-
// window object resize event callbacks are bound.
|
|
89
|
-
|
|
90
|
-
jq_resize[ str_throttle ] = true;
|
|
91
|
-
|
|
92
|
-
// Event: resize event
|
|
93
|
-
//
|
|
94
|
-
// Fired when an element's width or height changes. Because browsers only
|
|
95
|
-
// provide this event for the window element, for other elements a polling
|
|
96
|
-
// loop is initialized, running every <jQuery.resize.delay> milliseconds
|
|
97
|
-
// to see if elements' dimensions have changed. You may bind with either
|
|
98
|
-
// .resize( fn ) or .bind( "resize", fn ), and unbind with .unbind( "resize" ).
|
|
99
|
-
//
|
|
100
|
-
// Usage:
|
|
101
|
-
//
|
|
102
|
-
// > jQuery('selector').bind( 'resize', function(e) {
|
|
103
|
-
// > // element's width or height has changed!
|
|
104
|
-
// > ...
|
|
105
|
-
// > });
|
|
106
|
-
//
|
|
107
|
-
// Additional Notes:
|
|
108
|
-
//
|
|
109
|
-
// * The polling loop is not created until at least one callback is actually
|
|
110
|
-
// bound to the 'resize' event, and this single polling loop is shared
|
|
111
|
-
// across all elements.
|
|
112
|
-
//
|
|
113
|
-
// Double firing issue in jQuery 1.3.2:
|
|
114
|
-
//
|
|
115
|
-
// While this plugin works in jQuery 1.3.2, if an element's event callbacks
|
|
116
|
-
// are manually triggered via .trigger( 'resize' ) or .resize() those
|
|
117
|
-
// callbacks may double-fire, due to limitations in the jQuery 1.3.2 special
|
|
118
|
-
// events system. This is not an issue when using jQuery 1.4+.
|
|
119
|
-
//
|
|
120
|
-
// > // While this works in jQuery 1.4+
|
|
121
|
-
// > $(elem).css({ width: new_w, height: new_h }).resize();
|
|
122
|
-
// >
|
|
123
|
-
// > // In jQuery 1.3.2, you need to do this:
|
|
124
|
-
// > var elem = $(elem);
|
|
125
|
-
// > elem.css({ width: new_w, height: new_h });
|
|
126
|
-
// > elem.data( 'resize-special-event', { width: elem.width(), height: elem.height() } );
|
|
127
|
-
// > elem.resize();
|
|
128
|
-
|
|
129
|
-
$.event.special[ str_resize ] = {
|
|
130
|
-
|
|
131
|
-
// Called only when the first 'resize' event callback is bound per element.
|
|
132
|
-
setup: function() {
|
|
133
|
-
// Since window has its own native 'resize' event, return false so that
|
|
134
|
-
// jQuery will bind the event using DOM methods. Since only 'window'
|
|
135
|
-
// objects have a .setTimeout method, this should be a sufficient test.
|
|
136
|
-
// Unless, of course, we're throttling the 'resize' event for window.
|
|
137
|
-
if ( !jq_resize[ str_throttle ] && this[ str_setTimeout ] ) { return false; }
|
|
138
|
-
|
|
139
|
-
var elem = $(this);
|
|
140
|
-
|
|
141
|
-
// Add this element to the list of internal elements to monitor.
|
|
142
|
-
elems = elems.add( elem );
|
|
143
|
-
|
|
144
|
-
// Initialize data store on the element.
|
|
145
|
-
$.data( this, str_data, { w: elem.width(), h: elem.height() } );
|
|
146
|
-
|
|
147
|
-
// If this is the first element added, start the polling loop.
|
|
148
|
-
if ( elems.length === 1 ) {
|
|
149
|
-
loopy();
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
// Called only when the last 'resize' event callback is unbound per element.
|
|
154
|
-
teardown: function() {
|
|
155
|
-
// Since window has its own native 'resize' event, return false so that
|
|
156
|
-
// jQuery will unbind the event using DOM methods. Since only 'window'
|
|
157
|
-
// objects have a .setTimeout method, this should be a sufficient test.
|
|
158
|
-
// Unless, of course, we're throttling the 'resize' event for window.
|
|
159
|
-
if ( !jq_resize[ str_throttle ] && this[ str_setTimeout ] ) { return false; }
|
|
160
|
-
|
|
161
|
-
var elem = $(this);
|
|
162
|
-
|
|
163
|
-
// Remove this element from the list of internal elements to monitor.
|
|
164
|
-
elems = elems.not( elem );
|
|
165
|
-
|
|
166
|
-
// Remove any data stored on the element.
|
|
167
|
-
elem.removeData( str_data );
|
|
168
|
-
|
|
169
|
-
// If this is the last element removed, stop the polling loop.
|
|
170
|
-
if ( !elems.length ) {
|
|
171
|
-
clearTimeout( timeout_id );
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
// Called every time a 'resize' event callback is bound per element (new in
|
|
176
|
-
// jQuery 1.4).
|
|
177
|
-
add: function( handleObj ) {
|
|
178
|
-
// Since window has its own native 'resize' event, return false so that
|
|
179
|
-
// jQuery doesn't modify the event object. Unless, of course, we're
|
|
180
|
-
// throttling the 'resize' event for window.
|
|
181
|
-
if ( !jq_resize[ str_throttle ] && this[ str_setTimeout ] ) { return false; }
|
|
182
|
-
|
|
183
|
-
var old_handler;
|
|
184
|
-
|
|
185
|
-
// The new_handler function is executed every time the event is triggered.
|
|
186
|
-
// This is used to update the internal element data store with the width
|
|
187
|
-
// and height when the event is triggered manually, to avoid double-firing
|
|
188
|
-
// of the event callback. See the "Double firing issue in jQuery 1.3.2"
|
|
189
|
-
// comments above for more information.
|
|
190
|
-
|
|
191
|
-
function new_handler( e, w, h ) {
|
|
192
|
-
var elem = $(this),
|
|
193
|
-
data = $.data( this, str_data );
|
|
194
|
-
|
|
195
|
-
// If called from the polling loop, w and h will be passed in as
|
|
196
|
-
// arguments. If called manually, via .trigger( 'resize' ) or .resize(),
|
|
197
|
-
// those values will need to be computed.
|
|
198
|
-
data.w = w !== undefined ? w : elem.width();
|
|
199
|
-
data.h = h !== undefined ? h : elem.height();
|
|
200
|
-
|
|
201
|
-
old_handler.apply( this, arguments );
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
// This may seem a little complicated, but it normalizes the special event
|
|
205
|
-
// .add method between jQuery 1.4/1.4.1 and 1.4.2+
|
|
206
|
-
if ( $.isFunction( handleObj ) ) {
|
|
207
|
-
// 1.4, 1.4.1
|
|
208
|
-
old_handler = handleObj;
|
|
209
|
-
return new_handler;
|
|
210
|
-
} else {
|
|
211
|
-
// 1.4.2+
|
|
212
|
-
old_handler = handleObj.handler;
|
|
213
|
-
handleObj.handler = new_handler;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
function loopy() {
|
|
220
|
-
|
|
221
|
-
// Start the polling loop, asynchronously.
|
|
222
|
-
timeout_id = window[ str_setTimeout ](function(){
|
|
223
|
-
|
|
224
|
-
// Iterate over all elements to which the 'resize' event is bound.
|
|
225
|
-
elems.each(function(){
|
|
226
|
-
var elem = $(this),
|
|
227
|
-
width = elem.width(),
|
|
228
|
-
height = elem.height(),
|
|
229
|
-
data = $.data( this, str_data );
|
|
230
|
-
|
|
231
|
-
// If element size has changed since the last time, update the element
|
|
232
|
-
// data store and trigger the 'resize' event.
|
|
233
|
-
if ( width !== data.w || height !== data.h ) {
|
|
234
|
-
elem.trigger( str_resize, [ data.w = width, data.h = height ] );
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
// Loop.
|
|
240
|
-
loopy();
|
|
241
|
-
|
|
242
|
-
}, jq_resize[ str_delay ] );
|
|
243
|
-
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
})(jQuery,this);
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cookie plugin
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
|
|
5
|
-
* Dual licensed under the MIT and GPL licenses:
|
|
6
|
-
* http://www.opensource.org/licenses/mit-license.php
|
|
7
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Create a cookie with the given name and value and other optional parameters.
|
|
13
|
-
*
|
|
14
|
-
* @example $.cookie('the_cookie', 'the_value');
|
|
15
|
-
* @desc Set the value of a cookie.
|
|
16
|
-
* @example $.cookie('the_cookie', 'the_value', {expires: 7, path: '/', domain: 'jquery.com', secure: true});
|
|
17
|
-
* @desc Create a cookie with all available options.
|
|
18
|
-
* @example $.cookie('the_cookie', 'the_value');
|
|
19
|
-
* @desc Create a session cookie.
|
|
20
|
-
* @example $.cookie('the_cookie', null);
|
|
21
|
-
* @desc Delete a cookie by passing null as value.
|
|
22
|
-
*
|
|
23
|
-
* @param String name The name of the cookie.
|
|
24
|
-
* @param String value The value of the cookie.
|
|
25
|
-
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
|
|
26
|
-
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
|
|
27
|
-
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
|
|
28
|
-
* If set to null or omitted, the cookie will be a session cookie and will not be retained
|
|
29
|
-
* when the the browser exits.
|
|
30
|
-
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
|
|
31
|
-
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
|
|
32
|
-
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
|
|
33
|
-
* require a secure protocol (like HTTPS).
|
|
34
|
-
* @type undefined
|
|
35
|
-
*
|
|
36
|
-
* @name $.cookie
|
|
37
|
-
* @cat Plugins/Cookie
|
|
38
|
-
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Get the value of a cookie with the given name.
|
|
43
|
-
*
|
|
44
|
-
* @example $.cookie('the_cookie');
|
|
45
|
-
* @desc Get the value of a cookie.
|
|
46
|
-
*
|
|
47
|
-
* @param String name The name of the cookie.
|
|
48
|
-
* @return The value of the cookie.
|
|
49
|
-
* @type String
|
|
50
|
-
*
|
|
51
|
-
* @name $.cookie
|
|
52
|
-
* @cat Plugins/Cookie
|
|
53
|
-
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
|
54
|
-
*/
|
|
55
|
-
jQuery.cookie = function(name, value, options) {
|
|
56
|
-
if (typeof value != 'undefined') { // name and value given, set cookie
|
|
57
|
-
options = options || {};
|
|
58
|
-
if (value === null) {
|
|
59
|
-
value = '';
|
|
60
|
-
options.expires = -1;
|
|
61
|
-
}
|
|
62
|
-
var expires = '';
|
|
63
|
-
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
|
|
64
|
-
var date;
|
|
65
|
-
if (typeof options.expires == 'number') {
|
|
66
|
-
date = new Date();
|
|
67
|
-
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
|
|
68
|
-
} else {
|
|
69
|
-
date = options.expires;
|
|
70
|
-
}
|
|
71
|
-
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
|
|
72
|
-
}
|
|
73
|
-
var path = options.path ? '; path=' + options.path : '';
|
|
74
|
-
var domain = options.domain ? '; domain=' + options.domain : '';
|
|
75
|
-
var secure = options.secure ? '; secure' : '';
|
|
76
|
-
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
|
|
77
|
-
} else { // only name given, get cookie
|
|
78
|
-
var cookieValue = null;
|
|
79
|
-
if (document.cookie && document.cookie != '') {
|
|
80
|
-
var cookies = document.cookie.split(';');
|
|
81
|
-
for (var i = 0; i < cookies.length; i++) {
|
|
82
|
-
var cookie = jQuery.trim(cookies[i]);
|
|
83
|
-
// Does this cookie string begin with the name we want?
|
|
84
|
-
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
|
85
|
-
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return cookieValue;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
|
3
|
-
*
|
|
4
|
-
* Uses the built in easing capabilities added In jQuery 1.1
|
|
5
|
-
* to offer multiple easing options
|
|
6
|
-
*
|
|
7
|
-
* TERMS OF USE - jQuery Easing
|
|
8
|
-
*
|
|
9
|
-
* Open source under the BSD License.
|
|
10
|
-
*
|
|
11
|
-
* Copyright © 2008 George McGinley Smith
|
|
12
|
-
* All rights reserved.
|
|
13
|
-
*
|
|
14
|
-
* Redistribution and use in source and binary forms, with or without modification,
|
|
15
|
-
* are permitted provided that the following conditions are met:
|
|
16
|
-
*
|
|
17
|
-
* Redistributions of source code must retain the above copyright notice, this list of
|
|
18
|
-
* conditions and the following disclaimer.
|
|
19
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
20
|
-
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
21
|
-
* provided with the distribution.
|
|
22
|
-
*
|
|
23
|
-
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
24
|
-
* or promote products derived from this software without specific prior written permission.
|
|
25
|
-
*
|
|
26
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
27
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
28
|
-
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
29
|
-
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
30
|
-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
31
|
-
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
32
|
-
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
33
|
-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
34
|
-
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
// t: current time, b: begInnIng value, c: change In value, d: duration
|
|
39
|
-
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
|
40
|
-
|
|
41
|
-
jQuery.extend( jQuery.easing,
|
|
42
|
-
{
|
|
43
|
-
def: 'easeOutQuad',
|
|
44
|
-
swing: function (x, t, b, c, d) {
|
|
45
|
-
//alert(jQuery.easing.default);
|
|
46
|
-
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
|
47
|
-
},
|
|
48
|
-
easeInQuad: function (x, t, b, c, d) {
|
|
49
|
-
return c*(t/=d)*t + b;
|
|
50
|
-
},
|
|
51
|
-
easeOutQuad: function (x, t, b, c, d) {
|
|
52
|
-
return -c *(t/=d)*(t-2) + b;
|
|
53
|
-
},
|
|
54
|
-
easeInOutQuad: function (x, t, b, c, d) {
|
|
55
|
-
if ((t/=d/2) < 1) return c/2*t*t + b;
|
|
56
|
-
return -c/2 * ((--t)*(t-2) - 1) + b;
|
|
57
|
-
},
|
|
58
|
-
easeInCubic: function (x, t, b, c, d) {
|
|
59
|
-
return c*(t/=d)*t*t + b;
|
|
60
|
-
},
|
|
61
|
-
easeOutCubic: function (x, t, b, c, d) {
|
|
62
|
-
return c*((t=t/d-1)*t*t + 1) + b;
|
|
63
|
-
},
|
|
64
|
-
easeInOutCubic: function (x, t, b, c, d) {
|
|
65
|
-
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
|
66
|
-
return c/2*((t-=2)*t*t + 2) + b;
|
|
67
|
-
},
|
|
68
|
-
easeInQuart: function (x, t, b, c, d) {
|
|
69
|
-
return c*(t/=d)*t*t*t + b;
|
|
70
|
-
},
|
|
71
|
-
easeOutQuart: function (x, t, b, c, d) {
|
|
72
|
-
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
|
73
|
-
},
|
|
74
|
-
easeInOutQuart: function (x, t, b, c, d) {
|
|
75
|
-
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
|
76
|
-
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
|
77
|
-
},
|
|
78
|
-
easeInQuint: function (x, t, b, c, d) {
|
|
79
|
-
return c*(t/=d)*t*t*t*t + b;
|
|
80
|
-
},
|
|
81
|
-
easeOutQuint: function (x, t, b, c, d) {
|
|
82
|
-
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
|
83
|
-
},
|
|
84
|
-
easeInOutQuint: function (x, t, b, c, d) {
|
|
85
|
-
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
|
86
|
-
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
|
87
|
-
},
|
|
88
|
-
easeInSine: function (x, t, b, c, d) {
|
|
89
|
-
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
|
90
|
-
},
|
|
91
|
-
easeOutSine: function (x, t, b, c, d) {
|
|
92
|
-
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
|
93
|
-
},
|
|
94
|
-
easeInOutSine: function (x, t, b, c, d) {
|
|
95
|
-
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
|
96
|
-
},
|
|
97
|
-
easeInExpo: function (x, t, b, c, d) {
|
|
98
|
-
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
|
99
|
-
},
|
|
100
|
-
easeOutExpo: function (x, t, b, c, d) {
|
|
101
|
-
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
|
102
|
-
},
|
|
103
|
-
easeInOutExpo: function (x, t, b, c, d) {
|
|
104
|
-
if (t==0) return b;
|
|
105
|
-
if (t==d) return b+c;
|
|
106
|
-
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
|
107
|
-
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
|
108
|
-
},
|
|
109
|
-
easeInCirc: function (x, t, b, c, d) {
|
|
110
|
-
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
|
111
|
-
},
|
|
112
|
-
easeOutCirc: function (x, t, b, c, d) {
|
|
113
|
-
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
|
114
|
-
},
|
|
115
|
-
easeInOutCirc: function (x, t, b, c, d) {
|
|
116
|
-
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
|
117
|
-
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
|
118
|
-
},
|
|
119
|
-
easeInElastic: function (x, t, b, c, d) {
|
|
120
|
-
var s=1.70158;var p=0;var a=c;
|
|
121
|
-
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
|
122
|
-
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
|
123
|
-
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
|
124
|
-
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
|
125
|
-
},
|
|
126
|
-
easeOutElastic: function (x, t, b, c, d) {
|
|
127
|
-
var s=1.70158;var p=0;var a=c;
|
|
128
|
-
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
|
129
|
-
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
|
130
|
-
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
|
131
|
-
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
|
132
|
-
},
|
|
133
|
-
easeInOutElastic: function (x, t, b, c, d) {
|
|
134
|
-
var s=1.70158;var p=0;var a=c;
|
|
135
|
-
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
|
136
|
-
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
|
137
|
-
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
|
138
|
-
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
|
139
|
-
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
|
140
|
-
},
|
|
141
|
-
easeInBack: function (x, t, b, c, d, s) {
|
|
142
|
-
if (s == undefined) s = 1.70158;
|
|
143
|
-
return c*(t/=d)*t*((s+1)*t - s) + b;
|
|
144
|
-
},
|
|
145
|
-
easeOutBack: function (x, t, b, c, d, s) {
|
|
146
|
-
if (s == undefined) s = 1.70158;
|
|
147
|
-
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
|
148
|
-
},
|
|
149
|
-
easeInOutBack: function (x, t, b, c, d, s) {
|
|
150
|
-
if (s == undefined) s = 1.70158;
|
|
151
|
-
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
|
152
|
-
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
|
153
|
-
},
|
|
154
|
-
easeInBounce: function (x, t, b, c, d) {
|
|
155
|
-
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
|
156
|
-
},
|
|
157
|
-
easeOutBounce: function (x, t, b, c, d) {
|
|
158
|
-
if ((t/=d) < (1/2.75)) {
|
|
159
|
-
return c*(7.5625*t*t) + b;
|
|
160
|
-
} else if (t < (2/2.75)) {
|
|
161
|
-
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
|
162
|
-
} else if (t < (2.5/2.75)) {
|
|
163
|
-
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
|
164
|
-
} else {
|
|
165
|
-
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
easeInOutBounce: function (x, t, b, c, d) {
|
|
169
|
-
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
|
170
|
-
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
/*
|
|
175
|
-
*
|
|
176
|
-
* TERMS OF USE - EASING EQUATIONS
|
|
177
|
-
*
|
|
178
|
-
* Open source under the BSD License.
|
|
179
|
-
*
|
|
180
|
-
* Copyright © 2001 Robert Penner
|
|
181
|
-
* All rights reserved.
|
|
182
|
-
*
|
|
183
|
-
* Redistribution and use in source and binary forms, with or without modification,
|
|
184
|
-
* are permitted provided that the following conditions are met:
|
|
185
|
-
*
|
|
186
|
-
* Redistributions of source code must retain the above copyright notice, this list of
|
|
187
|
-
* conditions and the following disclaimer.
|
|
188
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
189
|
-
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
190
|
-
* provided with the distribution.
|
|
191
|
-
*
|
|
192
|
-
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
193
|
-
* or promote products derived from this software without specific prior written permission.
|
|
194
|
-
*
|
|
195
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
196
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
197
|
-
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
198
|
-
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
199
|
-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
200
|
-
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
201
|
-
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
202
|
-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
203
|
-
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
204
|
-
*
|
|
205
|
-
*/
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright 2011 Red Hat, Inc.
|
|
3
|
-
|
|
4
|
-
This software is licensed to you under the GNU General Public
|
|
5
|
-
License as published by the Free Software Foundation; either version
|
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
(function($){
|
|
15
|
-
$.fn.fancyQueries = function () {
|
|
16
|
-
/* Handle closing of dropdown if clicked outside */
|
|
17
|
-
$(document).click(function (e) {
|
|
18
|
-
//console.log(e.target);
|
|
19
|
-
if(!( $(e.target).closest(".search").length ||
|
|
20
|
-
$(e.target).hasClass("queryeditor") ||
|
|
21
|
-
$(e.target).hasClass("showmore"))) {
|
|
22
|
-
$(".qdropdown").hide();
|
|
23
|
-
$(".queries").removeClass('open queryeditor');
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
$('#search').click(function(e){$(document).click();});
|
|
27
|
-
this.each(function () {
|
|
28
|
-
var $qdropdown = $('.qdropdown', this);
|
|
29
|
-
var searchbox = this;
|
|
30
|
-
var menuurl = $(searchbox).attr("data-url");
|
|
31
|
-
var $button;
|
|
32
|
-
var offset = $(this).offset();
|
|
33
|
-
var height = $(this).outerHeight();
|
|
34
|
-
var width = $(this).outerWidth();
|
|
35
|
-
/* Create Dropdown if it doesn't exist */
|
|
36
|
-
if (!$qdropdown.length) {
|
|
37
|
-
$qdropdown = $("<div class='qdropdown'></div>");
|
|
38
|
-
$qdropdown.appendTo(this).hide();
|
|
39
|
-
}
|
|
40
|
-
/* Create button and resize the search input to show it */
|
|
41
|
-
$button = $('<div class="queries"><span class="arrow"></span></div>"');
|
|
42
|
-
$button.attr("data-url", menuurl);
|
|
43
|
-
$button.appendTo($(this));
|
|
44
|
-
$("input",this).css('margin-left', '24px');
|
|
45
|
-
$("input",this).css('width', function () {
|
|
46
|
-
width = $(this).width() - 24;
|
|
47
|
-
return width;
|
|
48
|
-
});
|
|
49
|
-
/* Hook showing and hiding of the dropdown */
|
|
50
|
-
$button.click(function () {
|
|
51
|
-
if ($qdropdown.filter(":visible").length>0) {
|
|
52
|
-
$qdropdown.hide(); //hides all menus, not just in this context
|
|
53
|
-
$(".queries").removeClass('open queryeditor');
|
|
54
|
-
} else {
|
|
55
|
-
$('.qdropdown').hide(); //hide all first
|
|
56
|
-
$(".queries").removeClass('open queryeditor');
|
|
57
|
-
|
|
58
|
-
$.get(menuurl, function (data) {
|
|
59
|
-
var $list, hidden, $hideme;
|
|
60
|
-
$qdropdown.html(data).css('top', height - 1);
|
|
61
|
-
if ($qdropdown.width()+offset.left > $('#maincontent').width()) {
|
|
62
|
-
$qdropdown.removeClass('left-menu').addClass('right-menu');
|
|
63
|
-
} else {
|
|
64
|
-
$qdropdown.removeClass('right-menu').addClass('left-menu');
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
$qdropdown.show(200);
|
|
68
|
-
|
|
69
|
-
// process the elements of the list and truncate any that are too long with ellipsis (...) (e.g. jquery.text-overflow.js)
|
|
70
|
-
$(".one-line-ellipsis").ellipsis();
|
|
71
|
-
|
|
72
|
-
$button.addClass('open');
|
|
73
|
-
$list = $("ul:first", $qdropdown);
|
|
74
|
-
$("li.item:gt(9)", $list).hide();
|
|
75
|
-
hidden = $("li.item:hidden",$list).length;
|
|
76
|
-
if (hidden) {
|
|
77
|
-
$hideme = $('<a class="showmore">Show '+ hidden + ' more</a>');
|
|
78
|
-
$('#search_list').append($hideme);
|
|
79
|
-
$hideme.click(function (e) {
|
|
80
|
-
e.preventDefault();
|
|
81
|
-
$("li.item", $list).show();
|
|
82
|
-
$(this).remove(); //for some reason remove triggers a click or something.
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
/* Query Editor */
|
|
90
|
-
$(".queryeditor", $qdropdown[0]).live('click', function (e) {
|
|
91
|
-
var content = '<h1>Query Editor</h1>';
|
|
92
|
-
content += "<div><h2>FIXME</h2>";
|
|
93
|
-
content += "<p style='width: 400px; min-height: 100px;'>Initially I think this would provide help on how to compose a query. Once we have a better idea on what the queries look like, a gui editor.</p>" +
|
|
94
|
-
"<a href='#' onclick='$(document).click()'>Close</a></div>";
|
|
95
|
-
$button.removeClass('open').addClass('queryeditor');
|
|
96
|
-
$qdropdown.empty().hide().addClass('queryeditor').html(content);
|
|
97
|
-
if ($qdropdown.width()+offset.left > $('#maincontent').width()) {
|
|
98
|
-
$qdropdown.removeClass('left-menu').addClass('right-menu');
|
|
99
|
-
} else {
|
|
100
|
-
$qdropdown.removeClass('right-menu').addClass('left-menu');
|
|
101
|
-
}
|
|
102
|
-
$qdropdown.show(200);
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
})(jQuery);
|