speedo 0.0.4 → 0.0.5

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 (91) hide show
  1. data/app/views/layouts/speedo/application.html.haml +26 -21
  2. data/app/views/speedo/home/examples.html.haml +15 -16
  3. data/config/routes.rb +2 -2
  4. data/lib/generators/speedo/install_generator.rb +2 -2
  5. data/lib/speedo/sass.rb +1 -2
  6. data/lib/speedo/version.rb +1 -1
  7. data/vendor/assets/javascripts/chosen.jquery.js +952 -0
  8. data/vendor/assets/javascripts/jquery.autoSuggest.js +368 -0
  9. data/vendor/assets/javascripts/jquery.autogrow.js +50 -0
  10. data/vendor/assets/javascripts/jquery.dataTables.js +11612 -0
  11. data/vendor/assets/javascripts/jquery.fancybox-1.3.4.js +1156 -0
  12. data/vendor/assets/javascripts/jquery.livequery.js +250 -0
  13. data/vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js +14 -0
  14. data/vendor/assets/javascripts/jquery.placeholder.min.js +2 -0
  15. data/vendor/assets/javascripts/jquery.uniform.js +672 -0
  16. data/vendor/assets/javascripts/modernizr.min.js +13 -0
  17. data/vendor/assets/javascripts/respond.js +326 -0
  18. data/vendor/assets/stylesheets/autoSuggest.css +217 -0
  19. data/vendor/assets/stylesheets/chosen-sprite.png +0 -0
  20. data/vendor/assets/stylesheets/chosen.css +392 -0
  21. data/vendor/assets/stylesheets/dataTables/Sorting icons.psd +0 -0
  22. data/vendor/assets/stylesheets/dataTables/back_disabled.png +0 -0
  23. data/vendor/assets/stylesheets/dataTables/back_enabled.png +0 -0
  24. data/vendor/assets/stylesheets/dataTables/back_enabled_hover.png +0 -0
  25. data/vendor/assets/stylesheets/dataTables/favicon.ico +0 -0
  26. data/vendor/assets/stylesheets/dataTables/forward_disabled.png +0 -0
  27. data/vendor/assets/stylesheets/dataTables/forward_enabled.png +0 -0
  28. data/vendor/assets/stylesheets/dataTables/forward_enabled_hover.png +0 -0
  29. data/vendor/assets/stylesheets/dataTables/sort_asc.png +0 -0
  30. data/vendor/assets/stylesheets/dataTables/sort_asc_disabled.png +0 -0
  31. data/vendor/assets/stylesheets/dataTables/sort_both.png +0 -0
  32. data/vendor/assets/stylesheets/dataTables/sort_desc.png +0 -0
  33. data/vendor/assets/stylesheets/dataTables/sort_desc_disabled.png +0 -0
  34. data/vendor/assets/stylesheets/dataTables/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  35. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  36. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_65_ffffff_1x400.png +0 -0
  37. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_dadada_1x400.png +0 -0
  38. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  39. data/vendor/assets/stylesheets/dataTables/ui-bg_glass_75_ffffff_1x400.png +0 -0
  40. data/vendor/assets/stylesheets/dataTables/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  41. data/vendor/assets/stylesheets/dataTables/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  42. data/vendor/assets/stylesheets/dataTables/ui-icons_222222_256x240.png +0 -0
  43. data/vendor/assets/stylesheets/dataTables/ui-icons_2e83ff_256x240.png +0 -0
  44. data/vendor/assets/stylesheets/dataTables/ui-icons_454545_256x240.png +0 -0
  45. data/vendor/assets/stylesheets/dataTables/ui-icons_888888_256x240.png +0 -0
  46. data/vendor/assets/stylesheets/dataTables/ui-icons_cd0a0a_256x240.png +0 -0
  47. data/vendor/assets/stylesheets/fancybox/blank.gif +0 -0
  48. data/vendor/assets/stylesheets/fancybox/fancy_close.png +0 -0
  49. data/vendor/assets/stylesheets/fancybox/fancy_loading.png +0 -0
  50. data/vendor/assets/stylesheets/fancybox/fancy_nav_left.png +0 -0
  51. data/vendor/assets/stylesheets/fancybox/fancy_nav_right.png +0 -0
  52. data/vendor/assets/stylesheets/fancybox/fancy_shadow_e.png +0 -0
  53. data/vendor/assets/stylesheets/fancybox/fancy_shadow_n.png +0 -0
  54. data/vendor/assets/stylesheets/fancybox/fancy_shadow_ne.png +0 -0
  55. data/vendor/assets/stylesheets/fancybox/fancy_shadow_nw.png +0 -0
  56. data/vendor/assets/stylesheets/fancybox/fancy_shadow_s.png +0 -0
  57. data/vendor/assets/stylesheets/fancybox/fancy_shadow_se.png +0 -0
  58. data/vendor/assets/stylesheets/fancybox/fancy_shadow_sw.png +0 -0
  59. data/vendor/assets/stylesheets/fancybox/fancy_shadow_w.png +0 -0
  60. data/vendor/assets/stylesheets/fancybox/fancy_title_left.png +0 -0
  61. data/vendor/assets/stylesheets/fancybox/fancy_title_main.png +0 -0
  62. data/vendor/assets/stylesheets/fancybox/fancy_title_over.png +0 -0
  63. data/vendor/assets/stylesheets/fancybox/fancy_title_right.png +0 -0
  64. data/vendor/assets/stylesheets/fancybox/fancybox-x.png +0 -0
  65. data/vendor/assets/stylesheets/fancybox/fancybox-y.png +0 -0
  66. data/vendor/assets/stylesheets/fancybox/fancybox.png +0 -0
  67. data/vendor/assets/stylesheets/gh-buttons.css +393 -0
  68. data/vendor/assets/stylesheets/gh-icons.png +0 -0
  69. data/vendor/assets/stylesheets/jquery-ui-1.8.18.custom.css +565 -0
  70. data/vendor/assets/stylesheets/jquery.dataTables.css +219 -0
  71. data/vendor/assets/stylesheets/jquery.fancybox-1.3.4.css +359 -0
  72. data/vendor/assets/stylesheets/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  73. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  74. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  75. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_dadada_1x400.png +0 -0
  76. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  77. data/vendor/assets/stylesheets/jqueryui/ui-bg_glass_75_ffffff_1x400.png +0 -0
  78. data/vendor/assets/stylesheets/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  79. data/vendor/assets/stylesheets/jqueryui/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  80. data/vendor/assets/stylesheets/jqueryui/ui-icons_222222_256x240.png +0 -0
  81. data/vendor/assets/stylesheets/jqueryui/ui-icons_2e83ff_256x240.png +0 -0
  82. data/vendor/assets/stylesheets/jqueryui/ui-icons_454545_256x240.png +0 -0
  83. data/vendor/assets/stylesheets/jqueryui/ui-icons_888888_256x240.png +0 -0
  84. data/vendor/assets/stylesheets/jqueryui/ui-icons_cd0a0a_256x240.png +0 -0
  85. data/vendor/assets/stylesheets/normalize.css +504 -0
  86. data/vendor/assets/stylesheets/uniform/bg-input-focus.png +0 -0
  87. data/vendor/assets/stylesheets/uniform/bg-input.png +0 -0
  88. data/vendor/assets/stylesheets/uniform/sprite-aristo.png +0 -0
  89. data/vendor/assets/stylesheets/uniform/sprite.png +0 -0
  90. data/vendor/assets/stylesheets/uniform.default.css +610 -0
  91. metadata +100 -16
@@ -0,0 +1,250 @@
1
+ /*! Copyright (c) 2008 Brandon Aaron (http://brandonaaron.net)
2
+ * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
3
+ * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
4
+ *
5
+ * Version: 1.0.3
6
+ * Requires jQuery 1.1.3+
7
+ * Docs: http://docs.jquery.com/Plugins/livequery
8
+ */
9
+
10
+ (function($) {
11
+
12
+ $.extend($.fn, {
13
+ livequery: function(type, fn, fn2) {
14
+ var self = this, q;
15
+
16
+ // Handle different call patterns
17
+ if ($.isFunction(type))
18
+ fn2 = fn, fn = type, type = undefined;
19
+
20
+ // See if Live Query already exists
21
+ $.each( $.livequery.queries, function(i, query) {
22
+ if ( self.selector == query.selector && self.context == query.context &&
23
+ type == query.type && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) )
24
+ // Found the query, exit the each loop
25
+ return (q = query) && false;
26
+ });
27
+
28
+ // Create new Live Query if it wasn't found
29
+ q = q || new $.livequery(this.selector, this.context, type, fn, fn2);
30
+
31
+ // Make sure it is running
32
+ q.stopped = false;
33
+
34
+ // Run it immediately for the first time
35
+ q.run();
36
+
37
+ // Contnue the chain
38
+ return this;
39
+ },
40
+
41
+ expire: function(type, fn, fn2) {
42
+ var self = this;
43
+
44
+ // Handle different call patterns
45
+ if ($.isFunction(type))
46
+ fn2 = fn, fn = type, type = undefined;
47
+
48
+ // Find the Live Query based on arguments and stop it
49
+ $.each( $.livequery.queries, function(i, query) {
50
+ if ( self.selector == query.selector && self.context == query.context &&
51
+ (!type || type == query.type) && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) && !this.stopped )
52
+ $.livequery.stop(query.id);
53
+ });
54
+
55
+ // Continue the chain
56
+ return this;
57
+ }
58
+ });
59
+
60
+ $.livequery = function(selector, context, type, fn, fn2) {
61
+ this.selector = selector;
62
+ this.context = context || document;
63
+ this.type = type;
64
+ this.fn = fn;
65
+ this.fn2 = fn2;
66
+ this.elements = [];
67
+ this.stopped = false;
68
+
69
+ // The id is the index of the Live Query in $.livequery.queries
70
+ this.id = $.livequery.queries.push(this)-1;
71
+
72
+ // Mark the functions for matching later on
73
+ fn.$lqguid = fn.$lqguid || $.livequery.guid++;
74
+ if (fn2) fn2.$lqguid = fn2.$lqguid || $.livequery.guid++;
75
+
76
+ // Return the Live Query
77
+ return this;
78
+ };
79
+
80
+ $.livequery.prototype = {
81
+ stop: function() {
82
+ var query = this;
83
+
84
+ if ( this.type )
85
+ // Unbind all bound events
86
+ this.elements.unbind(this.type, this.fn);
87
+ else if (this.fn2)
88
+ // Call the second function for all matched elements
89
+ this.elements.each(function(i, el) {
90
+ query.fn2.apply(el);
91
+ });
92
+
93
+ // Clear out matched elements
94
+ this.elements = [];
95
+
96
+ // Stop the Live Query from running until restarted
97
+ this.stopped = true;
98
+ },
99
+
100
+ run: function() {
101
+ // Short-circuit if stopped
102
+ if ( this.stopped ) return;
103
+ var query = this;
104
+
105
+ var oEls = this.elements,
106
+ els = $(this.selector, this.context),
107
+ nEls = els.not(oEls);
108
+
109
+ // Set elements to the latest set of matched elements
110
+ this.elements = els;
111
+
112
+ if (this.type) {
113
+ // Bind events to newly matched elements
114
+ nEls.bind(this.type, this.fn);
115
+
116
+ // Unbind events to elements no longer matched
117
+ if (oEls.length > 0)
118
+ $.each(oEls, function(i, el) {
119
+ if ( $.inArray(el, els) < 0 )
120
+ $.event.remove(el, query.type, query.fn);
121
+ });
122
+ }
123
+ else {
124
+ // Call the first function for newly matched elements
125
+ nEls.each(function() {
126
+ query.fn.apply(this);
127
+ });
128
+
129
+ // Call the second function for elements no longer matched
130
+ if ( this.fn2 && oEls.length > 0 )
131
+ $.each(oEls, function(i, el) {
132
+ if ( $.inArray(el, els) < 0 )
133
+ query.fn2.apply(el);
134
+ });
135
+ }
136
+ }
137
+ };
138
+
139
+ $.extend($.livequery, {
140
+ guid: 0,
141
+ queries: [],
142
+ queue: [],
143
+ running: false,
144
+ timeout: null,
145
+
146
+ checkQueue: function() {
147
+ if ( $.livequery.running && $.livequery.queue.length ) {
148
+ var length = $.livequery.queue.length;
149
+ // Run each Live Query currently in the queue
150
+ while ( length-- )
151
+ $.livequery.queries[ $.livequery.queue.shift() ].run();
152
+ }
153
+ },
154
+
155
+ pause: function() {
156
+ // Don't run anymore Live Queries until restarted
157
+ $.livequery.running = false;
158
+ },
159
+
160
+ play: function() {
161
+ // Restart Live Queries
162
+ $.livequery.running = true;
163
+ // Request a run of the Live Queries
164
+ $.livequery.run();
165
+ },
166
+
167
+ registerPlugin: function() {
168
+ $.each( arguments, function(i,n) {
169
+ // Short-circuit if the method doesn't exist
170
+ if (!$.fn[n]) return;
171
+
172
+ // Save a reference to the original method
173
+ var old = $.fn[n];
174
+
175
+ // Create a new method
176
+ $.fn[n] = function() {
177
+ // Call the original method
178
+ var r = old.apply(this, arguments);
179
+
180
+ // Request a run of the Live Queries
181
+ $.livequery.run();
182
+
183
+ // Return the original methods result
184
+ return r;
185
+ }
186
+ });
187
+ },
188
+
189
+ run: function(id) {
190
+ if (id != undefined) {
191
+ // Put the particular Live Query in the queue if it doesn't already exist
192
+ if ( $.inArray(id, $.livequery.queue) < 0 )
193
+ $.livequery.queue.push( id );
194
+ }
195
+ else
196
+ // Put each Live Query in the queue if it doesn't already exist
197
+ $.each( $.livequery.queries, function(id) {
198
+ if ( $.inArray(id, $.livequery.queue) < 0 )
199
+ $.livequery.queue.push( id );
200
+ });
201
+
202
+ // Clear timeout if it already exists
203
+ if ($.livequery.timeout) clearTimeout($.livequery.timeout);
204
+ // Create a timeout to check the queue and actually run the Live Queries
205
+ $.livequery.timeout = setTimeout($.livequery.checkQueue, 20);
206
+ },
207
+
208
+ stop: function(id) {
209
+ if (id != undefined)
210
+ // Stop are particular Live Query
211
+ $.livequery.queries[ id ].stop();
212
+ else
213
+ // Stop all Live Queries
214
+ $.each( $.livequery.queries, function(id) {
215
+ $.livequery.queries[ id ].stop();
216
+ });
217
+ }
218
+ });
219
+
220
+ // Register core DOM manipulation methods
221
+ $.livequery.registerPlugin('append', 'prepend', 'after', 'before', 'wrap', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'empty', 'remove');
222
+
223
+ // Run Live Queries when the Document is ready
224
+ $(function() { $.livequery.play(); });
225
+
226
+
227
+ // Save a reference to the original init method
228
+ var init = $.prototype.init;
229
+
230
+ // Create a new init method that exposes two new properties: selector and context
231
+ $.prototype.init = function(a,c) {
232
+ // Call the original init and save the result
233
+ var r = init.apply(this, arguments);
234
+
235
+ // Copy over properties if they exist already
236
+ if (a && a.selector)
237
+ r.context = a.context, r.selector = a.selector;
238
+
239
+ // Set properties
240
+ if ( typeof a == 'string' )
241
+ r.context = c || document, r.selector = a;
242
+
243
+ // Return the result
244
+ return r;
245
+ };
246
+
247
+ // Give the init function the jQuery prototype for later instantiation (needed after Rev 4091)
248
+ $.prototype.init.prototype = $.prototype;
249
+
250
+ })(jQuery);
@@ -0,0 +1,14 @@
1
+ /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
2
+ * Licensed under the MIT License (LICENSE.txt).
3
+ *
4
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
+ * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
+ *
8
+ * Version: 3.0.4
9
+ *
10
+ * Requires: 1.2.2+
11
+ */
12
+
13
+ (function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
14
+ f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
@@ -0,0 +1,2 @@
1
+ /*! http://mths.be/placeholder v1.8.5 by @mathias */
2
+ (function(g,a,$){var f='placeholder' in a.createElement('input'),b='placeholder' in a.createElement('textarea');if(f&&b){$.fn.placeholder=function(){return this};$.fn.placeholder.input=$.fn.placeholder.textarea=true}else{$.fn.placeholder=function(){return this.filter((f?'textarea':':input')+'[placeholder]').bind('focus.placeholder',c).bind('blur.placeholder',e).trigger('blur.placeholder').end()};$.fn.placeholder.input=f;$.fn.placeholder.textarea=b;$(function(){$('form').bind('submit.placeholder',function(){var h=$('.placeholder',this).each(c);setTimeout(function(){h.each(e)},10)})});$(g).bind('unload.placeholder',function(){$('.placeholder').val('')})}function d(i){var h={},j=/^jQuery\d+$/;$.each(i.attributes,function(l,k){if(k.specified&&!j.test(k.name)){h[k.name]=k.value}});return h}function c(){var h=$(this);if(h.val()===h.attr('placeholder')&&h.hasClass('placeholder')){if(h.data('placeholder-password')){h.hide().next().show().focus().attr('id',h.removeAttr('id').data('placeholder-id'))}else{h.val('').removeClass('placeholder')}}}function e(){var l,k=$(this),h=k,j=this.id;if(k.val()===''){if(k.is(':password')){if(!k.data('placeholder-textinput')){try{l=k.clone().attr({type:'text'})}catch(i){l=$('<input>').attr($.extend(d(this),{type:'text'}))}l.removeAttr('name').data('placeholder-password',true).data('placeholder-id',j).bind('focus.placeholder',c);k.data('placeholder-textinput',l).data('placeholder-id',j).before(l)}k=k.removeAttr('id').hide().prev().attr('id',j).show()}k.addClass('placeholder').val(k.attr('placeholder'))}else{k.removeClass('placeholder')}}}(this,document,jQuery));