speedo 0.1.9 → 0.2.0

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.
Files changed (113) hide show
  1. data/app/assets/javascripts/speedo.js +12 -12
  2. data/app/views/layouts/speedo/application.html.haml +2 -2
  3. data/lib/speedo/sass.rb +1 -1
  4. data/lib/speedo/version.rb +1 -1
  5. data/test/dummy/log/development.log +889 -0
  6. data/test/dummy/tmp/cache/assets/BC8/350/sprockets%2F3357f02a74351649de62769431854154 +0 -0
  7. data/test/dummy/tmp/cache/assets/BFD/090/sprockets%2F50267839603d9c7384477250f0169f0e +0 -0
  8. data/test/dummy/tmp/cache/assets/C4F/220/sprockets%2F19a6a3539a4ed0526c356691798032a3 +0 -0
  9. data/test/dummy/tmp/cache/assets/C55/E10/sprockets%2F9da121566709335e3081059e7774a9bb +957 -0
  10. data/test/dummy/tmp/cache/assets/C5F/4E0/sprockets%2F4c17092a9c628e66645a4586e9b50717 +57 -0
  11. data/test/dummy/tmp/cache/assets/C82/BB0/sprockets%2F904cd2f9283528b32d94a1d2a6711489 +41 -0
  12. data/test/dummy/tmp/cache/assets/CDE/600/sprockets%2F205a8cce7806d7c77117f1dc263146a8 +0 -0
  13. data/test/dummy/tmp/cache/assets/CE0/930/sprockets%2Fb6670296cd6b3ce81034c8d5d31e5725 +8 -0
  14. data/test/dummy/tmp/cache/assets/CE1/3B0/sprockets%2Fe8865654d2d075e6bba1074193e443dc +350 -0
  15. data/test/dummy/tmp/cache/assets/CF5/F40/sprockets%2F72637ea0f394f68dcc931527509e79ec +0 -0
  16. data/test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F488b6dcdeb1301268a65202e7101ed2a +974 -0
  17. data/test/dummy/tmp/cache/assets/D0C/C60/sprockets%2F39d93fba83bb3b50a75826703c5a28c5 +311 -0
  18. data/test/dummy/tmp/cache/assets/D1D/D50/sprockets%2F5b87bedce3ae871f14e41e2479290866 +0 -0
  19. data/test/dummy/tmp/cache/assets/D2A/5C0/sprockets%2Fe12edc211b1935a76d3aab4e8716006d +394 -0
  20. data/test/dummy/tmp/cache/assets/D3A/090/sprockets%2F0d24039ad1b8ef3525e367fe51905fbb +11635 -0
  21. data/test/dummy/tmp/cache/assets/D3B/1E0/sprockets%2Fe5f2362b8b1eb8273f1a7764cbb15e35 +11618 -0
  22. data/test/dummy/tmp/cache/assets/D3D/F80/sprockets%2Fadfc8f7271b3a873f3462e149a6a34e0 +374 -0
  23. data/test/dummy/tmp/cache/assets/D3F/0A0/sprockets%2Fc4574a4ea12e8efe636123e1a17f7d66 +11773 -0
  24. data/test/dummy/tmp/cache/assets/D42/CB0/sprockets%2F6c01eb50fe79d82720a649960dee5dd0 +20 -0
  25. data/test/dummy/tmp/cache/assets/D49/2B0/sprockets%2F34363288c95affbe232a199c6938ceab +391 -0
  26. data/test/dummy/tmp/cache/assets/D5B/120/sprockets%2F525577d56abcec9969e805ddc2997fd0 +332 -0
  27. data/test/dummy/tmp/cache/assets/D65/820/sprockets%2F4e91290eae5edd2f4d287ca2952be000 +327 -0
  28. data/test/dummy/tmp/cache/assets/D6C/3D0/sprockets%2Fa62ebc5f479b52c204f4c71ea65594ca +55 -0
  29. data/test/dummy/tmp/cache/assets/D71/D90/sprockets%2F7bb9508df3d877f853823addd4b0a22b +19 -0
  30. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  31. data/test/dummy/tmp/cache/assets/D97/830/sprockets%2Fd55ede995a2705ab74db22acf510dd90 +0 -0
  32. data/test/dummy/tmp/cache/assets/D9B/400/sprockets%2Fec83dc0dc78764b460a3ffc063df25e0 +11789 -0
  33. data/test/dummy/tmp/cache/assets/DA1/670/sprockets%2Fb71f32bbfb530e59ad7a177cf54a888b +0 -0
  34. data/test/dummy/tmp/cache/assets/DA8/760/sprockets%2F1359bb83c703a91d57cfebdaf879a4d7 +9288 -0
  35. data/test/dummy/tmp/cache/assets/DB3/C60/sprockets%2F1ff86e3b1c5bf1c179ac719fced99829 +53 -0
  36. data/test/dummy/tmp/cache/assets/DBE/F80/sprockets%2F8647fc3439abdaa0eb161dadf2fc4304 +694 -0
  37. data/test/dummy/tmp/cache/assets/DC3/CC0/sprockets%2Fa04ece65c59a7a325cab61861da2be7e +0 -0
  38. data/test/dummy/tmp/cache/assets/DC5/290/sprockets%2F1c5dee9b02ab66fbf6e62627a13e27ba +37 -0
  39. data/test/dummy/tmp/cache/assets/DE9/520/sprockets%2Fe9f8259c99da2f355198dc4bcdebb69d +0 -0
  40. data/test/dummy/tmp/cache/assets/DEA/500/sprockets%2F485fc5ba3f81b49ccdd788885ea8de5e +0 -0
  41. data/test/dummy/tmp/cache/assets/DF2/CB0/sprockets%2F4500acae993e0fa07bd48dceee07e2b3 +0 -0
  42. data/test/dummy/tmp/cache/assets/DF9/EB0/sprockets%2Ffcaa51a13d86ac9cf245f2a5d70c9d8c +256 -0
  43. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  44. data/test/dummy/tmp/cache/assets/E7F/BB0/sprockets%2Ffdeefdc424a13a04addae542356dffae +678 -0
  45. data/test/dummy/tmp/cache/assets/E82/D20/sprockets%2Fcdce4acb88dcbeaba64a06a254a9e09f +0 -0
  46. metadata +192 -88
  47. /data/vendor/assets/javascripts/{chosen.jquery.js → speedo/chosen.jquery.js} +0 -0
  48. /data/vendor/assets/javascripts/{jquery.autoSuggest.js → speedo/jquery.autoSuggest.js} +0 -0
  49. /data/vendor/assets/javascripts/{jquery.autogrow.js → speedo/jquery.autogrow.js} +0 -0
  50. /data/vendor/assets/javascripts/{jquery.dataTables.js → speedo/jquery.dataTables.js} +0 -0
  51. /data/vendor/assets/javascripts/{jquery.livequery.js → speedo/jquery.livequery.js} +0 -0
  52. /data/vendor/assets/javascripts/{jquery.mousewheel-3.0.4.pack.js → speedo/jquery.mousewheel-3.0.4.pack.js} +0 -0
  53. /data/vendor/assets/javascripts/{jquery.placeholder.min.js → speedo/jquery.placeholder.min.js} +0 -0
  54. /data/vendor/assets/javascripts/{jquery.spin.js → speedo/jquery.spin.js} +0 -0
  55. /data/vendor/assets/javascripts/{jquery.timeago.js → speedo/jquery.timeago.js} +0 -0
  56. /data/vendor/assets/javascripts/{jquery.tools.min.js → speedo/jquery.tools.min.js} +0 -0
  57. /data/vendor/assets/javascripts/{jquery.uniform.js → speedo/jquery.uniform.js} +0 -0
  58. /data/vendor/assets/javascripts/{modernizr.min.js → speedo/modernizr.min.js} +0 -0
  59. /data/vendor/assets/javascripts/{respond.js → speedo/respond.js} +0 -0
  60. /data/vendor/assets/javascripts/{spin.js → speedo/spin.js} +0 -0
  61. /data/vendor/assets/stylesheets/{autoSuggest.css → speedo/autoSuggest.css} +0 -0
  62. /data/vendor/assets/stylesheets/{chosen-sprite.png → speedo/chosen-sprite.png} +0 -0
  63. /data/vendor/assets/stylesheets/{chosen.css → speedo/chosen.css} +0 -0
  64. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/Sorting icons.psd +0 -0
  65. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/back_disabled.png +0 -0
  66. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/back_enabled.png +0 -0
  67. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/back_enabled_hover.png +0 -0
  68. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/favicon.ico +0 -0
  69. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/forward_disabled.png +0 -0
  70. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/forward_enabled.png +0 -0
  71. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/forward_enabled_hover.png +0 -0
  72. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/sort_asc.png +0 -0
  73. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/sort_asc_disabled.png +0 -0
  74. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/sort_both.png +0 -0
  75. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/sort_desc.png +0 -0
  76. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/sort_desc_disabled.png +0 -0
  77. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  78. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  79. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-bg_glass_65_ffffff_1x400.png +0 -0
  80. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-bg_glass_75_dadada_1x400.png +0 -0
  81. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  82. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-bg_glass_75_ffffff_1x400.png +0 -0
  83. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  84. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  85. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-icons_222222_256x240.png +0 -0
  86. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-icons_2e83ff_256x240.png +0 -0
  87. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-icons_454545_256x240.png +0 -0
  88. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-icons_888888_256x240.png +0 -0
  89. /data/vendor/assets/stylesheets/{dataTables → speedo/dataTables}/ui-icons_cd0a0a_256x240.png +0 -0
  90. /data/vendor/assets/stylesheets/{formtastic-buttonless.css → speedo/formtastic-buttonless.css} +0 -0
  91. /data/vendor/assets/stylesheets/{gh-buttons.css → speedo/gh-buttons.css} +0 -0
  92. /data/vendor/assets/stylesheets/{gh-icons.png → speedo/gh-icons.png} +0 -0
  93. /data/vendor/assets/stylesheets/{jquery-ui-1.8.18.custom.css → speedo/jquery-ui-1.8.18.custom.css} +0 -0
  94. /data/vendor/assets/stylesheets/{jquery.dataTables.css → speedo/jquery.dataTables.css} +0 -0
  95. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  96. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  97. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-bg_glass_65_ffffff_1x400.png +0 -0
  98. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-bg_glass_75_dadada_1x400.png +0 -0
  99. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  100. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-bg_glass_75_ffffff_1x400.png +0 -0
  101. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  102. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  103. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-icons_222222_256x240.png +0 -0
  104. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-icons_2e83ff_256x240.png +0 -0
  105. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-icons_454545_256x240.png +0 -0
  106. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-icons_888888_256x240.png +0 -0
  107. /data/vendor/assets/stylesheets/{jqueryui → speedo/jqueryui}/ui-icons_cd0a0a_256x240.png +0 -0
  108. /data/vendor/assets/stylesheets/{normalize.css → speedo/normalize.css} +0 -0
  109. /data/vendor/assets/stylesheets/{uniform → speedo/uniform}/bg-input-focus.png +0 -0
  110. /data/vendor/assets/stylesheets/{uniform → speedo/uniform}/bg-input.png +0 -0
  111. /data/vendor/assets/stylesheets/{uniform → speedo/uniform}/sprite-aristo.png +0 -0
  112. /data/vendor/assets/stylesheets/{uniform → speedo/uniform}/sprite.png +0 -0
  113. /data/vendor/assets/stylesheets/{uniform.default.css → speedo/uniform.default.css} +0 -0
@@ -0,0 +1,694 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1339771359.567303: @value{I"
2
+ class:EFI"BundledAsset;
3
+ FI"id;
4
+ F"%5c314c432c0e5a1786975f73981811daI"logical_path;
5
+ F"speedo/jquery.uniform.jsI"
6
+ F"k/Users/stu/Documents/Work/CrankApps/Projects/speedo/vendor/assets/javascripts/speedo/jquery.uniform.jsI"content_type;
7
+ FI"application/javascript;
8
+ FI"
9
+ mtime;
10
+ FI"2012-05-07T10:43:28-04:00;
11
+ FI" body;
12
+ FI"�L/*
13
+
14
+ Uniform v1.7.5
15
+ Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC
16
+ http://pixelmatrixdesign.com
17
+
18
+ Requires jQuery 1.4 or newer
19
+
20
+ Much thanks to Thomas Reynolds and Buck Wilson for their help and advice on this
21
+
22
+ Disabling text selection is made possible by Mathias Bynens <http://mathiasbynens.be/>
23
+ and his noSelect plugin. <http://github.com/mathiasbynens/noSelect-jQuery-Plugin>
24
+
25
+ Also, thanks to David Kaneda and Eugene Bond for their contributions to the plugin
26
+
27
+ License:
28
+ MIT License - http://www.opensource.org/licenses/mit-license.php
29
+
30
+ Enjoy!
31
+
32
+ */
33
+
34
+
35
+ (function($) {
36
+ $.uniform = {
37
+ options: {
38
+ selectClass: 'uni-selector',
39
+ radioClass: 'uni-radio',
40
+ checkboxClass: 'uni-checker',
41
+ fileClass: 'uni-uploader',
42
+ filenameClass: 'uni-filename',
43
+ fileBtnClass: 'uni-action',
44
+ fileDefaultText: 'No file selected',
45
+ fileBtnText: 'Choose File',
46
+ checkedClass: 'uni-checked',
47
+ focusClass: 'uni-focus',
48
+ disabledClass: 'uni-disabled',
49
+ buttonClass: 'uni-button',
50
+ activeClass: 'uni-active',
51
+ hoverClass: 'uni-hover',
52
+ useID: true,
53
+ idPrefix: 'uniform',
54
+ resetSelector: false,
55
+ autoHide: true
56
+ },
57
+ elements: []
58
+ };
59
+
60
+ if($.browser.msie && $.browser.version < 7){
61
+ $.support.selectOpacity = false;
62
+ }else{
63
+ $.support.selectOpacity = true;
64
+ }
65
+
66
+ $.fn.uniform = function(options) {
67
+
68
+ options = $.extend($.uniform.options, options);
69
+
70
+ var el = this;
71
+ //code for specifying a reset button
72
+ if(options.resetSelector != false){
73
+ $(options.resetSelector).mouseup(function(){
74
+ function resetThis(){
75
+ $.uniform.update(el);
76
+ }
77
+ setTimeout(resetThis, 10);
78
+ });
79
+ }
80
+
81
+ function doInput(elem){
82
+ $el = $(elem);
83
+ $el.addClass($el.attr("type"));
84
+ storeElement(elem);
85
+ }
86
+
87
+ function doTextarea(elem){
88
+ $(elem).addClass("uniform");
89
+ storeElement(elem);
90
+ }
91
+
92
+ function doButton(elem){
93
+ var $el = $(elem);
94
+
95
+ var divTag = $("<div>"),
96
+ spanTag = $("<span>");
97
+
98
+ divTag.addClass(options.buttonClass);
99
+
100
+ if(options.useID && $el.attr("id") != "") divTag.attr("id", options.idPrefix+"-"+$el.attr("id"));
101
+
102
+ var btnText;
103
+
104
+ if($el.is("a") || $el.is("button")){
105
+ btnText = $el.text();
106
+ }else if($el.is(":submit") || $el.is(":reset") || $el.is("input[type=button]")){
107
+ btnText = $el.attr("value");
108
+ }
109
+
110
+ btnText = btnText == "" ? $el.is(":reset") ? "Reset" : "Submit" : btnText;
111
+
112
+ spanTag.html(btnText);
113
+
114
+ $el.css("opacity", 0);
115
+ $el.wrap(divTag);
116
+ $el.wrap(spanTag);
117
+
118
+ //redefine variables
119
+ divTag = $el.closest("div");
120
+ spanTag = $el.closest("span");
121
+
122
+ if($el.is(":disabled")) divTag.addClass(options.disabledClass);
123
+
124
+ divTag.bind({
125
+ "mouseenter.uniform": function(){
126
+ divTag.addClass(options.hoverClass);
127
+ },
128
+ "mouseleave.uniform": function(){
129
+ divTag.removeClass(options.hoverClass);
130
+ divTag.removeClass(options.activeClass);
131
+ },
132
+ "mousedown.uniform touchbegin.uniform": function(){
133
+ divTag.addClass(options.activeClass);
134
+ },
135
+ "mouseup.uniform touchend.uniform": function(){
136
+ divTag.removeClass(options.activeClass);
137
+ },
138
+ "click.uniform touchend.uniform": function(e){
139
+ if($(e.target).is("span") || $(e.target).is("div")){
140
+ if(elem[0].dispatchEvent){
141
+ var ev = document.createEvent('MouseEvents');
142
+ ev.initEvent( 'click', true, true );
143
+ elem[0].dispatchEvent(ev);
144
+ }else{
145
+ elem[0].click();
146
+ }
147
+ }
148
+ }
149
+ });
150
+
151
+ elem.bind({
152
+ "focus.uniform": function(){
153
+ divTag.addClass(options.focusClass);
154
+ },
155
+ "blur.uniform": function(){
156
+ divTag.removeClass(options.focusClass);
157
+ }
158
+ });
159
+
160
+ $.uniform.noSelect(divTag);
161
+ storeElement(elem);
162
+
163
+ }
164
+
165
+ function doSelect(elem){
166
+ var $el = $(elem);
167
+
168
+ var divTag = $('<div />'),
169
+ spanTag = $('<span />');
170
+
171
+ if(!$el.css("display") == "none" && options.autoHide){
172
+ divTag.hide();
173
+ }
174
+
175
+ divTag.addClass(options.selectClass);
176
+
177
+ if(options.useID && elem.attr("id") != ""){
178
+ divTag.attr("id", options.idPrefix+"-"+elem.attr("id"));
179
+ }
180
+
181
+ var selected = elem.find(":selected:first");
182
+ if(selected.length == 0){
183
+ selected = elem.find("option:first");
184
+ }
185
+ spanTag.html(selected.html());
186
+
187
+ elem.css('opacity', 0);
188
+ elem.wrap(divTag);
189
+ elem.before(spanTag);
190
+
191
+ //redefine variables
192
+ divTag = elem.parent("div");
193
+ spanTag = elem.siblings("span");
194
+
195
+ elem.bind({
196
+ "change.uniform": function() {
197
+ spanTag.text(elem.find(":selected").html());
198
+ divTag.removeClass(options.activeClass);
199
+ },
200
+ "focus.uniform": function() {
201
+ divTag.addClass(options.focusClass);
202
+ },
203
+ "blur.uniform": function() {
204
+ divTag.removeClass(options.focusClass);
205
+ divTag.removeClass(options.activeClass);
206
+ },
207
+ "mousedown.uniform touchbegin.uniform": function() {
208
+ divTag.addClass(options.activeClass);
209
+ },
210
+ "mouseup.uniform touchend.uniform": function() {
211
+ divTag.removeClass(options.activeClass);
212
+ },
213
+ "click.uniform touchend.uniform": function(){
214
+ divTag.removeClass(options.activeClass);
215
+ },
216
+ "mouseenter.uniform": function() {
217
+ divTag.addClass(options.hoverClass);
218
+ },
219
+ "mouseleave.uniform": function() {
220
+ divTag.removeClass(options.hoverClass);
221
+ divTag.removeClass(options.activeClass);
222
+ },
223
+ "keyup.uniform": function(){
224
+ spanTag.text(elem.find(":selected").html());
225
+ }
226
+ });
227
+
228
+ //handle disabled state
229
+ if($(elem).attr("disabled")){
230
+ //box is checked by default, check our box
231
+ divTag.addClass(options.disabledClass);
232
+ }
233
+ $.uniform.noSelect(spanTag);
234
+
235
+ storeElement(elem);
236
+
237
+ }
238
+
239
+ function doCheckbox(elem){
240
+ var $el = $(elem);
241
+
242
+ var divTag = $('<div />'),
243
+ spanTag = $('<span />');
244
+
245
+ if(!$el.css("display") == "none" && options.autoHide){
246
+ divTag.hide();
247
+ }
248
+
249
+ divTag.addClass(options.checkboxClass);
250
+
251
+ //assign the id of the element
252
+ if(options.useID && elem.attr("id") != ""){
253
+ divTag.attr("id", options.idPrefix+"-"+elem.attr("id"));
254
+ }
255
+
256
+ //wrap with the proper elements
257
+ $(elem).wrap(divTag);
258
+ $(elem).wrap(spanTag);
259
+
260
+ //redefine variables
261
+ spanTag = elem.parent();
262
+ divTag = spanTag.parent();
263
+
264
+ //hide normal input and add focus classes
265
+ $(elem)
266
+ .css("opacity", 0)
267
+ .bind({
268
+ "focus.uniform": function(){
269
+ divTag.addClass(options.focusClass);
270
+ },
271
+ "blur.uniform": function(){
272
+ divTag.removeClass(options.focusClass);
273
+ },
274
+ "click.uniform touchend.uniform": function(){
275
+ if(!$(elem).attr("checked")){
276
+ //box was just unchecked, uncheck span
277
+ spanTag.removeClass(options.checkedClass);
278
+ }else{
279
+ //box was just checked, check span.
280
+ spanTag.addClass(options.checkedClass);
281
+ }
282
+ },
283
+ "mousedown.uniform touchbegin.uniform": function() {
284
+ divTag.addClass(options.activeClass);
285
+ },
286
+ "mouseup.uniform touchend.uniform": function() {
287
+ divTag.removeClass(options.activeClass);
288
+ },
289
+ "mouseenter.uniform": function() {
290
+ divTag.addClass(options.hoverClass);
291
+ },
292
+ "mouseleave.uniform": function() {
293
+ divTag.removeClass(options.hoverClass);
294
+ divTag.removeClass(options.activeClass);
295
+ }
296
+ });
297
+
298
+ //handle defaults
299
+ if($(elem).attr("checked")){
300
+ //box is checked by default, check our box
301
+ spanTag.addClass(options.checkedClass);
302
+ }
303
+
304
+ //handle disabled state
305
+ if($(elem).attr("disabled")){
306
+ //box is checked by default, check our box
307
+ divTag.addClass(options.disabledClass);
308
+ }
309
+
310
+ storeElement(elem);
311
+ }
312
+
313
+ function doRadio(elem){
314
+ var $el = $(elem);
315
+
316
+ var divTag = $('<div />'),
317
+ spanTag = $('<span />');
318
+
319
+ if(!$el.css("display") == "none" && options.autoHide){
320
+ divTag.hide();
321
+ }
322
+
323
+ divTag.addClass(options.radioClass);
324
+
325
+ if(options.useID && elem.attr("id") != ""){
326
+ divTag.attr("id", options.idPrefix+"-"+elem.attr("id"));
327
+ }
328
+
329
+ //wrap with the proper elements
330
+ $(elem).wrap(divTag);
331
+ $(elem).wrap(spanTag);
332
+
333
+ //redefine variables
334
+ spanTag = elem.parent();
335
+ divTag = spanTag.parent();
336
+
337
+ //hide normal input and add focus classes
338
+ $(elem)
339
+ .css("opacity", 0)
340
+ .bind({
341
+ "focus.uniform": function(){
342
+ divTag.addClass(options.focusClass);
343
+ },
344
+ "blur.uniform": function(){
345
+ divTag.removeClass(options.focusClass);
346
+ },
347
+ "click.uniform touchend.uniform": function(){
348
+ if(!$(elem).attr("checked")){
349
+ //box was just unchecked, uncheck span
350
+ spanTag.removeClass(options.checkedClass);
351
+ }else{
352
+ //box was just checked, check span
353
+ var classes = options.radioClass.split(" ")[0];
354
+ $("." + classes + " span." + options.checkedClass + ":has([name='" + $(elem).attr('name') + "'])").removeClass(options.checkedClass);
355
+ spanTag.addClass(options.checkedClass);
356
+ }
357
+ },
358
+ "mousedown.uniform touchend.uniform": function() {
359
+ if(!$(elem).is(":disabled")){
360
+ divTag.addClass(options.activeClass);
361
+ }
362
+ },
363
+ "mouseup.uniform touchbegin.uniform": function() {
364
+ divTag.removeClass(options.activeClass);
365
+ },
366
+ "mouseenter.uniform touchend.uniform": function() {
367
+ divTag.addClass(options.hoverClass);
368
+ },
369
+ "mouseleave.uniform": function() {
370
+ divTag.removeClass(options.hoverClass);
371
+ divTag.removeClass(options.activeClass);
372
+ }
373
+ });
374
+
375
+ //handle defaults
376
+ if($(elem).attr("checked")){
377
+ //box is checked by default, check span
378
+ spanTag.addClass(options.checkedClass);
379
+ }
380
+ //handle disabled state
381
+ if($(elem).attr("disabled")){
382
+ //box is checked by default, check our box
383
+ divTag.addClass(options.disabledClass);
384
+ }
385
+
386
+ storeElement(elem);
387
+
388
+ }
389
+
390
+ function doFile(elem){
391
+ //sanitize input
392
+ var $el = $(elem);
393
+
394
+ var divTag = $('<div />'),
395
+ filenameTag = $('<span>'+options.fileDefaultText+'</span>'),
396
+ btnTag = $('<span>'+options.fileBtnText+'</span>');
397
+
398
+ if(!$el.css("display") == "none" && options.autoHide){
399
+ divTag.hide();
400
+ }
401
+
402
+ divTag.addClass(options.fileClass);
403
+ filenameTag.addClass(options.filenameClass);
404
+ btnTag.addClass(options.fileBtnClass);
405
+
406
+ if(options.useID && $el.attr("id") != ""){
407
+ divTag.attr("id", options.idPrefix+"-"+$el.attr("id"));
408
+ }
409
+
410
+ //wrap with the proper elements
411
+ $el.wrap(divTag);
412
+ $el.after(btnTag);
413
+ $el.after(filenameTag);
414
+
415
+ //redefine variables
416
+ divTag = $el.closest("div");
417
+ filenameTag = $el.siblings("."+options.filenameClass);
418
+ btnTag = $el.siblings("."+options.fileBtnClass);
419
+
420
+ //set the size
421
+ if(!$el.attr("size")){
422
+ var divWidth = divTag.width();
423
+ //$el.css("width", divWidth);
424
+ $el.attr("size", divWidth/10);
425
+ }
426
+
427
+ //actions
428
+ var setFilename = function()
429
+ {
430
+ var filename = $el.val();
431
+ if (filename === '')
432
+ {
433
+ filename = options.fileDefaultText;
434
+ }
435
+ else
436
+ {
437
+ filename = filename.split(/[\/\\]+/);
438
+ filename = filename[(filename.length-1)];
439
+ }
440
+ filenameTag.text(filename);
441
+ };
442
+
443
+ // Account for input saved across refreshes
444
+ setFilename();
445
+
446
+ $el
447
+ .css("opacity", 0)
448
+ .bind({
449
+ "focus.uniform": function(){
450
+ divTag.addClass(options.focusClass);
451
+ },
452
+ "blur.uniform": function(){
453
+ divTag.removeClass(options.focusClass);
454
+ },
455
+ "mousedown.uniform": function() {
456
+ if(!$(elem).is(":disabled")){
457
+ divTag.addClass(options.activeClass);
458
+ }
459
+ },
460
+ "mouseup.uniform": function() {
461
+ divTag.removeClass(options.activeClass);
462
+ },
463
+ "mouseenter.uniform": function() {
464
+ divTag.addClass(options.hoverClass);
465
+ },
466
+ "mouseleave.uniform": function() {
467
+ divTag.removeClass(options.hoverClass);
468
+ divTag.removeClass(options.activeClass);
469
+ }
470
+ });
471
+
472
+ // IE7 doesn't fire onChange until blur or second fire.
473
+ if ($.browser.msie){
474
+ // IE considers browser chrome blocking I/O, so it
475
+ // suspends tiemouts until after the file has been selected.
476
+ $el.bind('click.uniform.ie7', function() {
477
+ setTimeout(setFilename, 0);
478
+ });
479
+ }else{
480
+ // All other browsers behave properly
481
+ $el.bind('change.uniform', setFilename);
482
+ }
483
+
484
+ //handle defaults
485
+ if($el.attr("disabled")){
486
+ //box is checked by default, check our box
487
+ divTag.addClass(options.disabledClass);
488
+ }
489
+
490
+ $.uniform.noSelect(filenameTag);
491
+ $.uniform.noSelect(btnTag);
492
+
493
+ storeElement(elem);
494
+
495
+ }
496
+
497
+ $.uniform.restore = function(elem){
498
+ if(elem == undefined){
499
+ elem = $($.uniform.elements);
500
+ }
501
+
502
+ $(elem).each(function(){
503
+ if($(this).is(":checkbox")){
504
+ //unwrap from span and div
505
+ $(this).unwrap().unwrap();
506
+ }else if($(this).is("select")){
507
+ //remove sibling span
508
+ $(this).siblings("span").remove();
509
+ //unwrap parent div
510
+ $(this).unwrap();
511
+ }else if($(this).is(":radio")){
512
+ //unwrap from span and div
513
+ $(this).unwrap().unwrap();
514
+ }else if($(this).is(":file")){
515
+ //remove sibling spans
516
+ $(this).siblings("span").remove();
517
+ //unwrap parent div
518
+ $(this).unwrap();
519
+ }else if($(this).is("button, :submit, :reset, a, input[type='button']")){
520
+ //unwrap from span and div
521
+ $(this).unwrap().unwrap();
522
+ }
523
+
524
+ //unbind events
525
+ $(this).unbind(".uniform");
526
+
527
+ //reset inline style
528
+ $(this).css("opacity", "1");
529
+
530
+ //remove item from list of uniformed elements
531
+ var index = $.inArray($(elem), $.uniform.elements);
532
+ $.uniform.elements.splice(index, 1);
533
+ });
534
+ };
535
+
536
+ function storeElement(elem){
537
+ //store this element in our global array
538
+ elem = $(elem).get();
539
+ if(elem.length > 1){
540
+ $.each(elem, function(i, val){
541
+ $.uniform.elements.push(val);
542
+ });
543
+ }else{
544
+ $.uniform.elements.push(elem);
545
+ }
546
+ }
547
+
548
+ //noSelect v1.0
549
+ $.uniform.noSelect = function(elem) {
550
+ function f() {
551
+ return false;
552
+ };
553
+ $(elem).each(function() {
554
+ this.onselectstart = this.ondragstart = f; // Webkit & IE
555
+ $(this)
556
+ .mousedown(f) // Webkit & Opera
557
+ .css({ MozUserSelect: 'none' }); // Firefox
558
+ });
559
+ };
560
+
561
+ $.uniform.update = function(elem){
562
+ if(elem == undefined){
563
+ elem = $($.uniform.elements);
564
+ }
565
+ //sanitize input
566
+ elem = $(elem);
567
+
568
+ elem.each(function(){
569
+ //do to each item in the selector
570
+ //function to reset all classes
571
+ var $e = $(this);
572
+
573
+ if($e.is("select")){
574
+ //element is a select
575
+ var spanTag = $e.siblings("span");
576
+ var divTag = $e.parent("div");
577
+
578
+ divTag.removeClass(options.hoverClass+" "+options.focusClass+" "+options.activeClass);
579
+
580
+ //reset current selected text
581
+ spanTag.html($e.find(":selected").html());
582
+
583
+ if($e.is(":disabled")){
584
+ divTag.addClass(options.disabledClass);
585
+ }else{
586
+ divTag.removeClass(options.disabledClass);
587
+ }
588
+
589
+ }else if($e.is(":checkbox")){
590
+ //element is a checkbox
591
+ var spanTag = $e.closest("span");
592
+ var divTag = $e.closest("div");
593
+
594
+ divTag.removeClass(options.hoverClass+" "+options.focusClass+" "+options.activeClass);
595
+ spanTag.removeClass(options.checkedClass);
596
+
597
+ if($e.is(":checked")){
598
+ spanTag.addClass(options.checkedClass);
599
+ }
600
+ if($e.is(":disabled")){
601
+ divTag.addClass(options.disabledClass);
602
+ }else{
603
+ divTag.removeClass(options.disabledClass);
604
+ }
605
+
606
+ }else if($e.is(":radio")){
607
+ //element is a radio
608
+ var spanTag = $e.closest("span");
609
+ var divTag = $e.closest("div");
610
+
611
+ divTag.removeClass(options.hoverClass+" "+options.focusClass+" "+options.activeClass);
612
+ spanTag.removeClass(options.checkedClass);
613
+
614
+ if($e.is(":checked")){
615
+ spanTag.addClass(options.checkedClass);
616
+ }
617
+
618
+ if($e.is(":disabled")){
619
+ divTag.addClass(options.disabledClass);
620
+ }else{
621
+ divTag.removeClass(options.disabledClass);
622
+ }
623
+ }else if($e.is(":file")){
624
+ var divTag = $e.parent("div");
625
+ var filenameTag = $e.siblings(options.filenameClass);
626
+ btnTag = $e.siblings(options.fileBtnClass);
627
+
628
+ divTag.removeClass(options.hoverClass+" "+options.focusClass+" "+options.activeClass);
629
+
630
+ filenameTag.text($e.val());
631
+
632
+ if($e.is(":disabled")){
633
+ divTag.addClass(options.disabledClass);
634
+ }else{
635
+ divTag.removeClass(options.disabledClass);
636
+ }
637
+ }else if($e.is(":submit") || $e.is(":reset") || $e.is("button") || $e.is("a") || elem.is("input[type=button]")){
638
+ var divTag = $e.closest("div");
639
+ divTag.removeClass(options.hoverClass+" "+options.focusClass+" "+options.activeClass);
640
+
641
+ if($e.is(":disabled")){
642
+ divTag.addClass(options.disabledClass);
643
+ }else{
644
+ divTag.removeClass(options.disabledClass);
645
+ }
646
+
647
+ }
648
+
649
+ });
650
+ };
651
+
652
+ return this.each(function() {
653
+ if($.support.selectOpacity){
654
+ var elem = $(this);
655
+
656
+ if(elem.is("select")){
657
+ //element is a select
658
+ if(elem.attr("multiple") != true){
659
+ //element is not a multi-select
660
+ if(elem.attr("size") == undefined || elem.attr("size") <= 1){
661
+ doSelect(elem);
662
+ }
663
+ }
664
+ }else if(elem.is(":checkbox")){
665
+ //element is a checkbox
666
+ doCheckbox(elem);
667
+ }else if(elem.is(":radio")){
668
+ //element is a radio
669
+ doRadio(elem);
670
+ }else if(elem.is(":file")){
671
+ //element is a file upload
672
+ doFile(elem);
673
+ }else if(elem.is(":text, :password, input[type='email']")){
674
+ doInput(elem);
675
+ }else if(elem.is("textarea")){
676
+ doTextarea(elem);
677
+ }else if(elem.is("a") || elem.is(":submit") || elem.is(":reset") || elem.is("button") || elem.is("input[type=button]")){
678
+ doButton(elem);
679
+ }
680
+
681
+ }
682
+ });
683
+ };
684
+ })(jQuery);
685
+ ;
686
+ TI"asset_paths;
687
+ F["k/Users/stu/Documents/Work/CrankApps/Projects/speedo/vendor/assets/javascripts/speedo/jquery.uniform.jsI"dependency_paths;
688
+ F[{I" path;
689
+ F"k/Users/stu/Documents/Work/CrankApps/Projects/speedo/vendor/assets/javascripts/speedo/jquery.uniform.jsI"
690
+ mtime;
691
+ FIu: Time
692
+ T: offseti���I"hexdigest;
693
+ F"%f289d43830e4656f7b9adc9a9b056979I"
694
+ F"%46dde6621c301f4928e3b34efee9e3b5