muck-engine 0.4.23 → 0.4.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/VERSION +1 -1
  2. data/app/helpers/muck_engine_helper.rb +1 -1
  3. data/app/views/shared/_output_ajax_messages.erb +16 -0
  4. data/lib/muck_engine/flash_errors.rb +22 -5
  5. data/muck-engine.gemspec +27 -3
  6. data/public/javascripts/jquery/jquery.easing.js +45 -71
  7. data/public/javascripts/muck-src.js +13 -0
  8. data/public/javascripts/muck.js +2 -1
  9. data/test/rails_root/lib/tasks/muck.rake +7 -0
  10. data/test/rails_root/public/images/admin/Home.gif +0 -0
  11. data/test/rails_root/public/images/admin/source/Home.png +0 -0
  12. data/test/rails_root/public/images/fancybox/blank.gif +0 -0
  13. data/test/rails_root/public/images/fancybox/fancy_close.png +0 -0
  14. data/test/rails_root/public/images/fancybox/fancy_loading.png +0 -0
  15. data/test/rails_root/public/images/fancybox/fancy_nav_left.png +0 -0
  16. data/test/rails_root/public/images/fancybox/fancy_nav_right.png +0 -0
  17. data/test/rails_root/public/images/fancybox/fancy_shadow_e.png +0 -0
  18. data/test/rails_root/public/images/fancybox/fancy_shadow_n.png +0 -0
  19. data/test/rails_root/public/images/fancybox/fancy_shadow_ne.png +0 -0
  20. data/test/rails_root/public/images/fancybox/fancy_shadow_nw.png +0 -0
  21. data/test/rails_root/public/images/fancybox/fancy_shadow_s.png +0 -0
  22. data/test/rails_root/public/images/fancybox/fancy_shadow_se.png +0 -0
  23. data/test/rails_root/public/images/fancybox/fancy_shadow_sw.png +0 -0
  24. data/test/rails_root/public/images/fancybox/fancy_shadow_w.png +0 -0
  25. data/test/rails_root/public/images/fancybox/fancy_title_left.png +0 -0
  26. data/test/rails_root/public/images/fancybox/fancy_title_main.png +0 -0
  27. data/test/rails_root/public/images/fancybox/fancy_title_over.png +0 -0
  28. data/test/rails_root/public/images/fancybox/fancy_title_right.png +0 -0
  29. data/test/rails_root/public/images/fancybox/fancybox-x.png +0 -0
  30. data/test/rails_root/public/images/fancybox/fancybox-y.png +0 -0
  31. data/test/rails_root/public/images/fancybox/fancybox.png +0 -0
  32. data/test/rails_root/public/images/service_icons/16/fireeagle.png +0 -0
  33. data/test/rails_root/public/images/service_icons/24/fireeagle.png +0 -0
  34. data/test/rails_root/public/images/service_icons/48/fireeagle.png +0 -0
  35. data/test/rails_root/public/images/service_icons/60/fireeagle.png +0 -0
  36. data/test/rails_root/public/images/service_icons/source/fireeagle.psd +0 -0
  37. data/test/rails_root/public/javascripts/jquery/jquery.easing.js +72 -1
  38. data/test/rails_root/public/javascripts/jquery/jquery.fancybox.js +34 -6
  39. data/test/rails_root/public/javascripts/jquery/jquery.form.js +511 -473
  40. data/test/rails_root/public/javascripts/jquery/jquery.jgrowl.js +9 -2
  41. data/test/rails_root/public/javascripts/jquery/jquery.js +150 -15
  42. data/test/rails_root/public/javascripts/jquery/jquery.mousewheel.js +13 -0
  43. data/test/rails_root/public/javascripts/muck-countries.js +50 -0
  44. data/test/rails_root/public/javascripts/muck-src.js +147 -0
  45. data/test/rails_root/public/javascripts/muck.js +7 -91
  46. data/test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.2.custom.css +160 -0
  47. data/test/rails_root/public/stylesheets/jquery/jquery.fancybox.css +77 -38
  48. data/test/rails_root/public/stylesheets/jquery/redmond/jquery-ui-1.7.2.custom.css +160 -0
  49. data/test/rails_root/public/stylesheets/jquery/smoothness/jquery-ui-1.7.2.custom.css +160 -0
  50. data/test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.2.custom.css +160 -0
  51. metadata +28 -4
  52. data/app/views/admin/shared/_output_admin_messages.js.erb +0 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.23
1
+ 0.4.24
@@ -14,7 +14,7 @@ module MuckEngineHelper
14
14
  #
15
15
  # message_dom_id: The dom id of the element that will hold messages.
16
16
  # This element can have display:none by default.
17
- def jquery_message(message_dom_id)
17
+ def jquery_json_message(message_dom_id)
18
18
  if GlobalConfig.growl_enabled
19
19
  "jQuery('##{message_dom_id}').html(json.message);"
20
20
  "jQuery('##{message_dom_id}').show();"
@@ -0,0 +1,16 @@
1
+ <%
2
+ html = output_errors(title, options, fields, flash_only)
3
+ return if html.blank?
4
+ html = escape_javascript(html)
5
+ if decode_html
6
+ html = "decodeHtml('#{html}')"
7
+ else
8
+ html = "'#{html}'"
9
+ end
10
+ -%>
11
+ <% if growl -%>
12
+ jQuery.jGrowl.info(<%=html%>);
13
+ <% else -%>
14
+ jQuery('#<%=dom_id%>').html(<%=html%>);
15
+ jQuery('#<%=dom_id%>').show();
16
+ <% end -%>
@@ -40,11 +40,28 @@ class MuckEngine
40
40
 
41
41
  # Output a page update that will display messages in the flash
42
42
  def output_admin_messages(fields = nil, title = '', options = { :class => 'notify-box' }, flash_only = false)
43
- @fields = fields
44
- @title = title
45
- @options = options
46
- @flash_only = flash_only
47
- render :partial => 'admin/shared/output_admin_messages'
43
+ output_errors_ajax('admin-messages', fields, title, options, flash_only)
44
+ end
45
+
46
+ # Output a message that can be show for an ajax request.
47
+ # Parameters:
48
+ # dom_id: The id of the dom element that will contain the message content. If growl is enabled this value is irrelevant.
49
+ # title: Title to display for the error.
50
+ # options: Options. Currently the css class can be specified via this parameter.
51
+ # fields: The instance object for which to display errors. ie @user, @project, etc.
52
+ # flash_only: If true show only flash messages.
53
+ # decode_html: Occasionally the html sent to the client is encoded and the result is visible html. Set this value to true if this happens.
54
+ # growl: Can be used to make this a growl message even if growl_enabled is false. Note that if growl_enabled is enabled setting this
55
+ # value will have no effect.
56
+ def output_errors_ajax(dom_id, title = '', options = { :class => 'notify-box' }, fields = nil, flash_only = false, decode_html = false, growl = false)
57
+ growl ||= GlobalConfig.growl_enabled
58
+ render :partial => 'shared/output_ajax_messages', :locals => {:fields => fields,
59
+ :title => title,
60
+ :options => options,
61
+ :flash_only => flash_only,
62
+ :dom_id => dom_id,
63
+ :growl => growl,
64
+ :decode_html => decode_html }
48
65
  end
49
66
 
50
67
  end
data/muck-engine.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-engine}
8
- s.version = "0.4.23"
8
+ s.version = "0.4.24"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball", "Joel Duffin"]
12
- s.date = %q{2010-04-16}
12
+ s.date = %q{2010-04-30}
13
13
  s.description = %q{The base engine for the muck system. Contains common tables, custom for, css and javascript.}
14
14
  s.email = %q{justin@tatemae.com}
15
15
  s.extra_rdoc_files = [
@@ -32,7 +32,6 @@ Gem::Specification.new do |s|
32
32
  "app/models/language.rb",
33
33
  "app/models/state.rb",
34
34
  "app/views/admin/default/index.html.erb",
35
- "app/views/admin/shared/_output_admin_messages.js.erb",
36
35
  "app/views/forms/_base_field.erb",
37
36
  "app/views/forms/_color_picker_field.erb",
38
37
  "app/views/forms/_default.erb",
@@ -64,6 +63,7 @@ Gem::Specification.new do |s|
64
63
  "app/views/shared/_growl_box.erb",
65
64
  "app/views/shared/_message_container.erb",
66
65
  "app/views/shared/_no_result.erb",
66
+ "app/views/shared/_output_ajax_messages.erb",
67
67
  "app/views/shared/page_alert.js.erb",
68
68
  "config/muck_engine_routes.rb",
69
69
  "db/migrate/20090402234137_create_languages.rb",
@@ -698,19 +698,27 @@ Gem::Specification.new do |s|
698
698
  "test/rails_root/db/migrate/20090602041838_create_users.rb",
699
699
  "test/rails_root/features/step_definitions/webrat_steps.rb",
700
700
  "test/rails_root/features/support/env.rb",
701
+ "test/rails_root/lib/tasks/muck.rake",
701
702
  "test/rails_root/public/.htaccess",
702
703
  "test/rails_root/public/404.html",
703
704
  "test/rails_root/public/422.html",
704
705
  "test/rails_root/public/500.html",
705
706
  "test/rails_root/public/dispatch.rb",
706
707
  "test/rails_root/public/favicon.ico",
708
+ "test/rails_root/public/images/admin/Home.gif",
709
+ "test/rails_root/public/images/admin/source/Home.png",
707
710
  "test/rails_root/public/images/arrow_down.gif",
708
711
  "test/rails_root/public/images/arrow_left.gif",
709
712
  "test/rails_root/public/images/arrow_right.gif",
710
713
  "test/rails_root/public/images/arrow_up.gif",
711
714
  "test/rails_root/public/images/blue/preview.gif",
715
+ "test/rails_root/public/images/fancybox/blank.gif",
716
+ "test/rails_root/public/images/fancybox/fancy_close.png",
712
717
  "test/rails_root/public/images/fancybox/fancy_closebox.png",
713
718
  "test/rails_root/public/images/fancybox/fancy_left.png",
719
+ "test/rails_root/public/images/fancybox/fancy_loading.png",
720
+ "test/rails_root/public/images/fancybox/fancy_nav_left.png",
721
+ "test/rails_root/public/images/fancybox/fancy_nav_right.png",
714
722
  "test/rails_root/public/images/fancybox/fancy_progress.png",
715
723
  "test/rails_root/public/images/fancybox/fancy_right.png",
716
724
  "test/rails_root/public/images/fancybox/fancy_shadow_e.png",
@@ -723,7 +731,11 @@ Gem::Specification.new do |s|
723
731
  "test/rails_root/public/images/fancybox/fancy_shadow_w.png",
724
732
  "test/rails_root/public/images/fancybox/fancy_title_left.png",
725
733
  "test/rails_root/public/images/fancybox/fancy_title_main.png",
734
+ "test/rails_root/public/images/fancybox/fancy_title_over.png",
726
735
  "test/rails_root/public/images/fancybox/fancy_title_right.png",
736
+ "test/rails_root/public/images/fancybox/fancybox-x.png",
737
+ "test/rails_root/public/images/fancybox/fancybox-y.png",
738
+ "test/rails_root/public/images/fancybox/fancybox.png",
727
739
  "test/rails_root/public/images/icons/accept.png",
728
740
  "test/rails_root/public/images/icons/add.png",
729
741
  "test/rails_root/public/images/icons/blue_guy.png",
@@ -767,6 +779,7 @@ Gem::Specification.new do |s|
767
779
  "test/rails_root/public/images/service_icons/16/diigo.png",
768
780
  "test/rails_root/public/images/service_icons/16/facebook.png",
769
781
  "test/rails_root/public/images/service_icons/16/feed.png",
782
+ "test/rails_root/public/images/service_icons/16/fireeagle.png",
770
783
  "test/rails_root/public/images/service_icons/16/flickr.png",
771
784
  "test/rails_root/public/images/service_icons/16/fotolog.png",
772
785
  "test/rails_root/public/images/service_icons/16/friendfeed.png",
@@ -832,6 +845,7 @@ Gem::Specification.new do |s|
832
845
  "test/rails_root/public/images/service_icons/24/diigo.png",
833
846
  "test/rails_root/public/images/service_icons/24/facebook.png",
834
847
  "test/rails_root/public/images/service_icons/24/feed.png",
848
+ "test/rails_root/public/images/service_icons/24/fireeagle.png",
835
849
  "test/rails_root/public/images/service_icons/24/flickr.png",
836
850
  "test/rails_root/public/images/service_icons/24/fotolog.png",
837
851
  "test/rails_root/public/images/service_icons/24/friendfeed.png",
@@ -897,6 +911,7 @@ Gem::Specification.new do |s|
897
911
  "test/rails_root/public/images/service_icons/48/diigo.png",
898
912
  "test/rails_root/public/images/service_icons/48/facebook.png",
899
913
  "test/rails_root/public/images/service_icons/48/feed.png",
914
+ "test/rails_root/public/images/service_icons/48/fireeagle.png",
900
915
  "test/rails_root/public/images/service_icons/48/flickr.png",
901
916
  "test/rails_root/public/images/service_icons/48/fotolog.png",
902
917
  "test/rails_root/public/images/service_icons/48/friendfeed.png",
@@ -962,6 +977,7 @@ Gem::Specification.new do |s|
962
977
  "test/rails_root/public/images/service_icons/60/diigo.png",
963
978
  "test/rails_root/public/images/service_icons/60/facebook.png",
964
979
  "test/rails_root/public/images/service_icons/60/feed.png",
980
+ "test/rails_root/public/images/service_icons/60/fireeagle.png",
965
981
  "test/rails_root/public/images/service_icons/60/flickr.png",
966
982
  "test/rails_root/public/images/service_icons/60/fotolog.png",
967
983
  "test/rails_root/public/images/service_icons/60/friendfeed.png",
@@ -1039,6 +1055,7 @@ Gem::Specification.new do |s|
1039
1055
  "test/rails_root/public/images/service_icons/source/diigo.png",
1040
1056
  "test/rails_root/public/images/service_icons/source/facebook.png",
1041
1057
  "test/rails_root/public/images/service_icons/source/feed.png",
1058
+ "test/rails_root/public/images/service_icons/source/fireeagle.psd",
1042
1059
  "test/rails_root/public/images/service_icons/source/flickr.png",
1043
1060
  "test/rails_root/public/images/service_icons/source/fotolog.png",
1044
1061
  "test/rails_root/public/images/service_icons/source/friendfeed.png",
@@ -1112,11 +1129,14 @@ Gem::Specification.new do |s|
1112
1129
  "test/rails_root/public/javascripts/jquery/jquery.jgrowl.js",
1113
1130
  "test/rails_root/public/javascripts/jquery/jquery.js",
1114
1131
  "test/rails_root/public/javascripts/jquery/jquery.metadata.min.js",
1132
+ "test/rails_root/public/javascripts/jquery/jquery.mousewheel.js",
1115
1133
  "test/rails_root/public/javascripts/jquery/jquery.queryString.js",
1116
1134
  "test/rails_root/public/javascripts/jquery/jquery.swapimage.js",
1117
1135
  "test/rails_root/public/javascripts/jquery/jquery.swapimage.min.js",
1118
1136
  "test/rails_root/public/javascripts/jquery/jquery.tips.js",
1119
1137
  "test/rails_root/public/javascripts/jquery/jrails.js",
1138
+ "test/rails_root/public/javascripts/muck-countries.js",
1139
+ "test/rails_root/public/javascripts/muck-src.js",
1120
1140
  "test/rails_root/public/javascripts/muck.js",
1121
1141
  "test/rails_root/public/javascripts/muck_activities.js",
1122
1142
  "test/rails_root/public/javascripts/muck_time/en.js",
@@ -1178,6 +1198,7 @@ Gem::Specification.new do |s|
1178
1198
  "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_cd0a0a_256x240.png",
1179
1199
  "test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_ffffff_256x240.png",
1180
1200
  "test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.1.custom.css",
1201
+ "test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.2.custom.css",
1181
1202
  "test/rails_root/public/stylesheets/jquery/jquery.autocomplete.css",
1182
1203
  "test/rails_root/public/stylesheets/jquery/jquery.fancybox.css",
1183
1204
  "test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png",
@@ -1196,6 +1217,7 @@ Gem::Specification.new do |s|
1196
1217
  "test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_d8e7f3_256x240.png",
1197
1218
  "test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_f9bd01_256x240.png",
1198
1219
  "test/rails_root/public/stylesheets/jquery/redmond/jquery-ui-1.7.1.custom.css",
1220
+ "test/rails_root/public/stylesheets/jquery/redmond/jquery-ui-1.7.2.custom.css",
1199
1221
  "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png",
1200
1222
  "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_75_ffffff_40x100.png",
1201
1223
  "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png",
@@ -1210,6 +1232,7 @@ Gem::Specification.new do |s|
1210
1232
  "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_888888_256x240.png",
1211
1233
  "test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_cd0a0a_256x240.png",
1212
1234
  "test/rails_root/public/stylesheets/jquery/smoothness/jquery-ui-1.7.1.custom.css",
1235
+ "test/rails_root/public/stylesheets/jquery/smoothness/jquery-ui-1.7.2.custom.css",
1213
1236
  "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png",
1214
1237
  "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png",
1215
1238
  "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png",
@@ -1225,6 +1248,7 @@ Gem::Specification.new do |s|
1225
1248
  "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png",
1226
1249
  "test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png",
1227
1250
  "test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.1.custom.css",
1251
+ "test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.2.custom.css",
1228
1252
  "test/rails_root/public/stylesheets/reset.css",
1229
1253
  "test/rails_root/public/stylesheets/styles.css",
1230
1254
  "test/rails_root/public/stylesheets/themes/blue/styles.css",
@@ -1,72 +1,46 @@
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
- *
1
+ /* This lib is to support fancybox. The default compressed version causes errors with Rails caching.
2
+ This version is compressed with http://closure-compiler.appspot.com/home
3
+ *
4
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
5
+ *
6
+ * Uses the built in easing capabilities added In jQuery 1.1
7
+ * to offer multiple easing options
8
+ *
9
+ * TERMS OF USE - jQuery Easing
10
+ *
11
+ * Open source under the BSD License.
12
+ *
13
+ * Copyright © 2008 George McGinley Smith
14
+ * All rights reserved.
15
+ *
16
+ * Redistribution and use in source and binary forms, with or without modification,
17
+ * are permitted provided that the following conditions are met:
18
+ *
19
+ * Redistributions of source code must retain the above copyright notice, this list of
20
+ * conditions and the following disclaimer.
21
+ * Redistributions in binary form must reproduce the above copyright notice, this list
22
+ * of conditions and the following disclaimer in the documentation and/or other materials
23
+ * provided with the distribution.
24
+ *
25
+ * Neither the name of the author nor the names of contributors may be used to endorse
26
+ * or promote products derived from this software without specific prior written permission.
27
+ *
28
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
29
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
31
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
32
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
33
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
34
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
36
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
37
+ *
36
38
  */
37
-
38
- // t: current time, b: begInnIng value, c: change In value, d: duration
39
- eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
40
-
41
- /*
42
- *
43
- * TERMS OF USE - EASING EQUATIONS
44
- *
45
- * Open source under the BSD License.
46
- *
47
- * Copyright © 2001 Robert Penner
48
- * All rights reserved.
49
- *
50
- * Redistribution and use in source and binary forms, with or without modification,
51
- * are permitted provided that the following conditions are met:
52
- *
53
- * Redistributions of source code must retain the above copyright notice, this list of
54
- * conditions and the following disclaimer.
55
- * Redistributions in binary form must reproduce the above copyright notice, this list
56
- * of conditions and the following disclaimer in the documentation and/or other materials
57
- * provided with the distribution.
58
- *
59
- * Neither the name of the author nor the names of contributors may be used to endorse
60
- * or promote products derived from this software without specific prior written permission.
61
- *
62
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
63
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
64
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
65
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
66
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
67
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
68
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
69
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
70
- * OF THE POSSIBILITY OF SUCH DAMAGE.
71
- *
72
- */
39
+ jQuery.easing.jswing=jQuery.easing.swing;
40
+ jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return jQuery.easing[jQuery.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a+c;return-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){if((a/=d/2)<1)return b/
41
+ 2*a*a*a+c;return b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a+c;return-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a*a+c;return b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,
42
+ a,c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return a==0?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){if(a==0)return c;if(a==d)return c+b;if((a/=d/2)<1)return b/2*Math.pow(2,10*(a-1))+c;return b/2*(-Math.pow(2,-10*--a)+2)+c},
43
+ easeInCirc:function(e,a,c,b,d){return-b*(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){if((a/=d/2)<1)return-b/2*(Math.sqrt(1-a*a)-1)+c;return b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);if(g<Math.abs(b)){g=b;e=f/4}else e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f))+c},easeOutElastic:function(e,
44
+ a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);if(g<Math.abs(b)){g=b;e=f/4}else e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin((a*d-e)*2*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d/2)==2)return c+b;f||(f=d*0.3*1.5);if(g<Math.abs(b)){g=b;e=f/4}else e=f/(2*Math.PI)*Math.asin(b/g);if(a<1)return-0.5*g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f)+c;return g*Math.pow(2,-10*(a-=1))*Math.sin((a*
45
+ d-e)*2*Math.PI/f)*0.5+b+c},easeInBack:function(e,a,c,b,d,f){if(f==undefined)f=1.70158;return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){if(f==undefined)f=1.70158;return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){if(f==undefined)f=1.70158;if((a/=d/2)<1)return b/2*a*a*(((f*=1.525)+1)*a-f)+c;return b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-jQuery.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=
46
+ d)<1/2.75?b*7.5625*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+0.75)+c:a<2.5/2.75?b*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(e,a,c,b,d){if(a<d/2)return jQuery.easing.easeInBounce(e,a*2,0,b,d)*0.5+c;return jQuery.easing.easeOutBounce(e,a*2-d,0,b,d)*0.5+b*0.5+c}});
@@ -131,4 +131,17 @@ function split_list(items_string){
131
131
  }
132
132
  }
133
133
  return cleaned;
134
+ }
135
+
136
+ function isEncodedHtml(str) {
137
+ if(str.search(/&amp;/g) != -1 || str.search(/&lt;/g) != -1 || str.search(/&gt;/g) != -1)
138
+ return true;
139
+ else
140
+ return false;
141
+ };
142
+
143
+ function decodeHtml(str){
144
+ if(isEncodedHtml(str))
145
+ return str.replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>');
146
+ return str;
134
147
  }
@@ -3,4 +3,5 @@ function add_headers(a){a.setRequestHeader("Accept","text/javascript");a.setRequ
3
3
  jQuery(document).ready(function(){jQuery("a.ajax-delete").live("click",function(){var a=jQuery(this).attr("title"),b=true;if(a.length>0)b=confirm(a);b&&jQuery.post(this.href,{_method:"delete",format:"js"},null,"script");return false});jQuery("a.ajax-update").live("click",function(){jQuery.post(this.href,{_method:"put",format:"js"},null,"script");return false});jQuery(".submit-form").click(function(){jQuery(this).parent("form").submit()});apply_ajax_forms();jQuery("a.dialog-pop").live("click",function(){var a=
4
4
  jQuery('<div class="dialog"></div>').appendTo("body");a.dialog({modal:true,autoOpen:false,width:"auto",title:jQuery(this).attr("title")});a.load(jQuery(this).attr("href"),"",function(){a.dialog("open");apply_ajax_forms()});return false});jQuery(".submit-delete").live("click",function(){jQuery(this).parents(".delete-container").fadeOut();var a=jQuery(this).parents("form");jQuery.post(a.attr("action")+".json",a.serialize(),function(b){b=eval("("+b+")");b.success||jQuery.jGrowl.info(b.message)});return false});
5
5
  jQuery(".submit-delete-js").live("click",function(){jQuery(this).parents(".delete-container").fadeOut();var a=jQuery(this).parents("form");jQuery.post(a.attr("action")+".js",a.serialize(),function(){});return false});jQuery(document).ready(function(){jQuery(".waiting").hide();jQuery(".wait-button").live("click",function(){jQuery(this).siblings(".waiting").show();jQuery(this).hide()})})});
6
- function add_to_list(a,b){a=split_list(a);var c=true;for(i=0;i<a.length;i++)if(a[i]==b)c=false;c&&a.push(b);return a.join(", ")}function remove_from_list(a,b){a=split_list(a);var c=[];for(i=0;i<a.length;i++)a[i]!=b&&c.push(a[i]);return c.join(", ")}function split_list(a){a=undefined!=a&&a.length>0?a.split(","):[];var b=[];for(i=0;i<a.length;i++){var c=jQuery.trim(a[i]);c.length>0&&b.push(c)}return b};
6
+ function add_to_list(a,b){var c=split_list(a),d=true;for(i=0;i<c.length;i++)if(c[i]==b)d=false;d&&c.push(b);return c.join(", ")}function remove_from_list(a,b){var c=split_list(a),d=[];for(i=0;i<c.length;i++)c[i]!=b&&d.push(c[i]);return d.join(", ")}function split_list(a){a=undefined!=a&&a.length>0?a.split(","):[];var b=[];for(i=0;i<a.length;i++){var c=jQuery.trim(a[i]);c.length>0&&b.push(c)}return b}
7
+ function isEncodedHtml(a){return a.search(/&amp;/g)!=-1||a.search(/&lt;/g)!=-1||a.search(/&gt;/g)!=-1?true:false}function decodeHtml(a){if(isEncodedHtml(a))return a.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">");return a};
@@ -0,0 +1,7 @@
1
+ namespace :muck do
2
+
3
+ def muck_gems
4
+ ['babelphish', 'muck-engine']
5
+ end
6
+
7
+ end
@@ -1 +1,72 @@
1
- jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});
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
+ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
40
+
41
+ /*
42
+ *
43
+ * TERMS OF USE - EASING EQUATIONS
44
+ *
45
+ * Open source under the BSD License.
46
+ *
47
+ * Copyright © 2001 Robert Penner
48
+ * All rights reserved.
49
+ *
50
+ * Redistribution and use in source and binary forms, with or without modification,
51
+ * are permitted provided that the following conditions are met:
52
+ *
53
+ * Redistributions of source code must retain the above copyright notice, this list of
54
+ * conditions and the following disclaimer.
55
+ * Redistributions in binary form must reproduce the above copyright notice, this list
56
+ * of conditions and the following disclaimer in the documentation and/or other materials
57
+ * provided with the distribution.
58
+ *
59
+ * Neither the name of the author nor the names of contributors may be used to endorse
60
+ * or promote products derived from this software without specific prior written permission.
61
+ *
62
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
63
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
64
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
65
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
66
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
67
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
68
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
69
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
70
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
71
+ *
72
+ */