speedo 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. data/app/assets/javascripts/speedo.js +1 -1
  2. data/app/assets/javascripts/swim.js.coffee +32 -10
  3. data/app/assets/stylesheets/speedo.css.scss +81 -16
  4. data/app/views/layouts/speedo/application.html.haml +1 -0
  5. data/app/views/speedo/home/examples.html.haml +23 -8
  6. data/lib/speedo/version.rb +1 -1
  7. data/vendor/assets/javascripts/jquery.tools.min.js +35 -0
  8. metadata +21 -42
  9. data/vendor/assets/javascripts/jquery.fancybox-1.3.4.js +0 -1156
  10. data/vendor/assets/stylesheets/fancybox/blank.gif +0 -0
  11. data/vendor/assets/stylesheets/fancybox/fancy_close.png +0 -0
  12. data/vendor/assets/stylesheets/fancybox/fancy_loading.png +0 -0
  13. data/vendor/assets/stylesheets/fancybox/fancy_nav_left.png +0 -0
  14. data/vendor/assets/stylesheets/fancybox/fancy_nav_right.png +0 -0
  15. data/vendor/assets/stylesheets/fancybox/fancy_shadow_e.png +0 -0
  16. data/vendor/assets/stylesheets/fancybox/fancy_shadow_n.png +0 -0
  17. data/vendor/assets/stylesheets/fancybox/fancy_shadow_ne.png +0 -0
  18. data/vendor/assets/stylesheets/fancybox/fancy_shadow_nw.png +0 -0
  19. data/vendor/assets/stylesheets/fancybox/fancy_shadow_s.png +0 -0
  20. data/vendor/assets/stylesheets/fancybox/fancy_shadow_se.png +0 -0
  21. data/vendor/assets/stylesheets/fancybox/fancy_shadow_sw.png +0 -0
  22. data/vendor/assets/stylesheets/fancybox/fancy_shadow_w.png +0 -0
  23. data/vendor/assets/stylesheets/fancybox/fancy_title_left.png +0 -0
  24. data/vendor/assets/stylesheets/fancybox/fancy_title_main.png +0 -0
  25. data/vendor/assets/stylesheets/fancybox/fancy_title_over.png +0 -0
  26. data/vendor/assets/stylesheets/fancybox/fancy_title_right.png +0 -0
  27. data/vendor/assets/stylesheets/fancybox/fancybox-x.png +0 -0
  28. data/vendor/assets/stylesheets/fancybox/fancybox-y.png +0 -0
  29. data/vendor/assets/stylesheets/fancybox/fancybox.png +0 -0
  30. data/vendor/assets/stylesheets/jquery.fancybox-1.3.4.css +0 -359
@@ -3,10 +3,10 @@
3
3
  //= require jquery.autoSuggest
4
4
  //= require jquery.autogrow
5
5
  //= require jquery.dataTables
6
- //= require jquery.fancybox-1.3.4
7
6
  //= require jquery.livequery
8
7
  //= require jquery.mousewheel-3.0.4.pack
9
8
  //= require jquery.placeholder.min
10
9
  //= require jquery.timeago
10
+ //= require jquery.tools.min
11
11
  //= require jquery.uniform
12
12
  //= require swim
@@ -6,20 +6,42 @@ $ ->
6
6
  # $('.col1, .col2, .col3').css('height',$(window).height() - $('.main_nav').outerHeight() - $('.branding').outerHeight() - 60 + 'px')
7
7
 
8
8
 
9
- $('.popup').livequery ->
10
- $(this).fancybox
11
- overlayColor: "#fff"
12
- transitionIn:"none"
13
- transitionOut:"none"
14
- titlePosition:"outside"
15
- showCloseButton:false
16
- titleFormat: (title, currentArray, currentIndex, currentOpts) ->
17
- return if title == ''
18
- return '<h3 class="popup-title">' + title + '</h3>'
9
+ $('.popup:not(a)').livequery ->
10
+ $(this).overlay()
11
+
12
+ $('a.popup').livequery ->
13
+ $(this).overlay
14
+ onBeforeLoad: ->
15
+ wrap = this.getOverlay().find(".wrap")
16
+ wrap.load(this.getTrigger().attr("href"))
19
17
 
18
+ $('.modal:not(a)').livequery ->
19
+ $(this).overlay
20
+ mask: '#fff'
21
+ closeOnClick: false
22
+ closeOnEsc: false
23
+
24
+ $('a.modal').livequery ->
25
+ $(this).overlay
26
+ mask: '#fff'
27
+ closeOnClick: false
28
+ closeOnEsc: false
29
+ onBeforeLoad: ->
30
+ wrap = this.getOverlay().find(".wrap")
31
+ wrap.load(this.getTrigger().attr("href"))
32
+
20
33
  $('time.ago').livequery ->
21
34
  $(this).timeago()
22
35
 
36
+ $('.tip').livequery ->
37
+ $(this).tooltip
38
+ effect: 'slide'
39
+ slideFade: true
40
+ bounce: true
41
+ .dynamic
42
+ direction: 'down'
43
+ bounce: true
44
+
23
45
  $('#fancybox-content .close').live 'click', (e) -> #close_lightbox_from_link(e)
24
46
  e.preventDefault()
25
47
  $.fancybox.close()
@@ -4,7 +4,6 @@
4
4
  @import "chosen";
5
5
  @import "gh-buttons";
6
6
  @import "jquery.dataTables";
7
- @import "jquery.fancybox-1.3.4";
8
7
  @import "jquery-ui-1.8.18.custom";
9
8
  @import "uniform.default";
10
9
  @import "bourbon";
@@ -38,7 +37,7 @@ body {
38
37
  font-size:12px;
39
38
  line-height:1.231;
40
39
  }
41
- a, a:visited, .link {
40
+ a, a:visited:not(.button), .link {
42
41
  color: $link;
43
42
  text-decoration: none;
44
43
  cursor:pointer;
@@ -158,6 +157,48 @@ input:not(.button), textarea {
158
157
  color:#900;
159
158
  }
160
159
  }
160
+ .tooltip {
161
+ width:15em;
162
+ border:1px solid #000;
163
+ padding:1em;
164
+ @include border-radius(0.5em);
165
+ @include box-shadow(0 0 10px rgba(0,0,0,0.5));
166
+ @include linear-gradient(#333, #999);
167
+ text-shadow:1px 1px 1px #000000;
168
+ color:#fff;
169
+ &:before, &:after {
170
+ content:".";
171
+ display:block;
172
+ height:0;
173
+ width:0;
174
+ overflow:hidden;
175
+ position:absolute;
176
+ bottom:-6px;
177
+ left:50%;
178
+ margin-left:-5px;
179
+ border-style:solid;
180
+ border-width:5px 5px 0;
181
+ border-color:#000 transparent;
182
+ color:transparent;
183
+ }
184
+ &:after {
185
+ bottom:-5px;
186
+ border-color:#999 transparent;
187
+ }
188
+ &.bottom {
189
+ &:before, &:after {
190
+ bottom:auto;
191
+ border-width:0 5px 5px;
192
+ }
193
+ &:before {
194
+ top:-6px;
195
+ }
196
+ &:after {
197
+ top:-5px;
198
+ border-color:#333 transparent;
199
+ }
200
+ }
201
+ }
161
202
  footer {
162
203
  position:relative;
163
204
  margin:-1.8em 10px 0 0; /* So it appears at the bottom of the right column and is not lost in web-app mode */
@@ -204,28 +245,52 @@ ul.as-selections {
204
245
  }
205
246
  /* Fancybox Popups */
206
247
  .popups {
207
- display:none;
208
248
  }
209
249
  .popup_content {
210
- min-width:400px;
211
- }
212
- #fancybox-wrap {
213
- padding-top:40px;
214
- #fancybox-title {
250
+ display:none;
251
+ position:relative;
252
+ min-width:320px;
253
+ max-width:600px;
254
+ padding:1em;
255
+ border:1px solid #666;
256
+ @include border-radius(1em);
257
+ @include box-shadow(0 0 5em #666);
258
+ background:#fff;
259
+ z-index:10000;
260
+ .close:first-child {
215
261
  position:absolute;
216
- top:0px;
217
- left:19px;
218
- height:28px;
262
+ top:-10px;
263
+ right:-10px;
264
+ &:hover {
265
+ background:none;
266
+ }
267
+ &:after {
268
+ content:"x";
269
+ display:block;
270
+ width:20px;
271
+ height:20px;
272
+ border:2px solid #FFFFFF;
273
+ @include border-radius(1em);
274
+ @include box-shadow(0 0 3px #000);
275
+ font-size:21px;
276
+ line-height:20px;
277
+ text-align:center;
278
+ color:#FFFFFF;
279
+ background:#000000;
280
+ }
281
+ }
282
+ .title {
283
+ margin-top:0;
219
284
  border:1px solid #333;
220
285
  @include border-radius(3px);
221
286
  padding:5px 10px;
222
287
  @include box-shadow(0 1px 3px rgba(0,0,0,0.5));
223
288
  @include linear-gradient(#355b92, #274674);
224
- h3.popup-title {
225
- margin-top:3px;
226
- font-weight:normal;
227
- text-shadow:1px 1px #333;
228
- }
289
+ color:#fff;
290
+ }
291
+ .wrap {
292
+ width:600px;
293
+ overflow:auto;
229
294
  }
230
295
  }
231
296
 
@@ -64,6 +64,7 @@
64
64
  = yield :left_col
65
65
  .col3
66
66
  = yield :right_col
67
+ = yield :popups
67
68
  %footer
68
69
  Copyright &copy;
69
70
  = Time.now.year
@@ -5,7 +5,7 @@
5
5
  = f.inputs do
6
6
  = f.input 'Title', placeholder: 'Type your title'
7
7
  = f.input 'Singer', input_html: { class: 'autoSuggest' }
8
- = f.input 'Description', as: :text, input_html: { placeholder: 'AutoGrowing', class: 'autoGrow', :rows => 2 }
8
+ = f.input 'Description', as: :text, input_html: { placeholder: 'AutoGrowing', class: 'autoGrow tip', :rows => 2, title: 'Tip: you can type what you like, and this will get bigger to fit!' }
9
9
  = f.input 'Attachment', as: :file, required: false
10
10
  = f.input 'Select', as: :select, include_blank: false
11
11
  = f.input 'Are you real?', as: :radio, wrapper_html: { class: 'inline_choices' }
@@ -16,7 +16,6 @@
16
16
  = f.actions do
17
17
  = f.action :submit, label: 'Submit', as: :button, button_html: { class: 'button' }
18
18
  = f.action :cancel, label: 'Cancel', as: :link, button_html: { class: 'button danger' }
19
- = link_to 'Popup', '#popup', class: 'button popup icon comment', title: 'Popup title'
20
19
  %button.button.icon.add Add icon
21
20
 
22
21
 
@@ -60,7 +59,7 @@
60
59
  %h6 Time - h6
61
60
  %pre.ib %time.ago{datetime: Time.now.iso8601}
62
61
  results in telling us when this page was loaded:
63
- %time.ago.notice.flash{datetime: Time.now.iso8601}
62
+ %time.ago.notice.flash.tip{datetime: Time.now.iso8601, title: Time.now.to_s(:long)}
64
63
  %p Note: make sure you use iso8601 or you'll get errors!
65
64
 
66
65
 
@@ -73,11 +72,27 @@ results in telling us when this page was loaded:
73
72
 
74
73
  = content_for :right_col do
75
74
  %h3 Right Col
75
+ .modal.button.icon.comment{rel: '#modal'} Modal
76
+ %br
77
+ .popup.button.icon.comment{rel: '#popup'} Popup Help!
78
+ %br
79
+ = link_to 'External Modal', '/', class: 'modal button icon comment', rel: '#external'
80
+ %br
81
+ = link_to 'External Popup', '/', class: 'popup button icon comment', rel: '#external'
76
82
 
77
83
 
78
- .popups
84
+ = content_for :popups do
79
85
  #popup.popup_content
80
- %h4 Help
81
- %p See speedo.css.scss for classes and helper classes
82
- %p See swim.js.coffee for standard JS calls
83
- %button.button.close.right Close
86
+ %h2.title Helpful Popup
87
+ %p For popups and modals, all &lt;a&gt; tags will be assumed to be external links that load in content (they still require a placeholder div). Other .popup's assume the content is already on the page. Use "= content_for :popups do".
88
+ %p Use .popup with rel="#id" on the button (or whatever opens the popup), and #id.popup_content for the content. Within popups, .title receives special styling.
89
+ %p Modals are for when user input is required before continuing. Make sure to provide a .close element, or the X will be visible in the top-right.
90
+ #modal.popup_content
91
+ %h2.title Modal
92
+ %p Modals needs .close to close them. Use them when user input is required.
93
+ %p For example: Which are you?
94
+ %button.button.close Right handed
95
+ %button.button.close Left handed
96
+ %button.button.close Ambidextrous
97
+ #external.popup_content
98
+ .wrap
@@ -1,3 +1,3 @@
1
1
  module Speedo
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -0,0 +1,35 @@
1
+ /*!
2
+ * jQuery Tools v1.2.7 - The missing UI library for the Web
3
+ *
4
+ * overlay/overlay.js
5
+ * overlay/overlay.apple.js
6
+ * toolbox/toolbox.expose.js
7
+ * toolbox/toolbox.flashembed.js
8
+ * toolbox/toolbox.history.js
9
+ * toolbox/toolbox.mousewheel.js
10
+ * tooltip/tooltip.js
11
+ * tooltip/tooltip.dynamic.js
12
+ * tooltip/tooltip.slide.js
13
+ *
14
+ * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
15
+ *
16
+ * http://flowplayer.org/tools/
17
+ *
18
+ * jquery.event.wheel.js - rev 1
19
+ * Copyright (c) 2008, Three Dub Media (http://threedubmedia.com)
20
+ * Liscensed under the MIT License (MIT-LICENSE.txt)
21
+ * http://www.opensource.org/licenses/mit-license.php
22
+ * Created: 2008-07-01 | Updated: 2008-07-14
23
+ *
24
+ * -----
25
+ *
26
+ */
27
+ (function(a){a.tools=a.tools||{version:"v1.2.7"},a.tools.overlay={addEffect:function(a,b,d){c[a]=[b,d]},conf:{close:null,closeOnClick:!0,closeOnEsc:!0,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:!1,mask:null,oneInstance:!0,speed:"normal",target:null,top:"10%"}};var b=[],c={};a.tools.overlay.addEffect("default",function(b,c){var d=this.getConf(),e=a(window);d.fixed||(b.top+=e.scrollTop(),b.left+=e.scrollLeft()),b.position=d.fixed?"fixed":"absolute",this.getOverlay().css(b).fadeIn(d.speed,c)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});function d(d,e){var f=this,g=d.add(f),h=a(window),i,j,k,l=a.tools.expose&&(e.mask||e.expose),m=Math.random().toString().slice(10);l&&(typeof l=="string"&&(l={color:l}),l.closeOnClick=l.closeOnEsc=!1);var n=e.target||d.attr("rel");j=n?a(n):null||d;if(!j.length)throw"Could not find Overlay: "+n;d&&d.index(j)==-1&&d.click(function(a){f.load(a);return a.preventDefault()}),a.extend(f,{load:function(d){if(f.isOpened())return f;var i=c[e.effect];if(!i)throw"Overlay: cannot find effect : \""+e.effect+"\"";e.oneInstance&&a.each(b,function(){this.close(d)}),d=d||a.Event(),d.type="onBeforeLoad",g.trigger(d);if(d.isDefaultPrevented())return f;k=!0,l&&a(j).expose(l);var n=e.top,o=e.left,p=j.outerWidth({margin:!0}),q=j.outerHeight({margin:!0});typeof n=="string"&&(n=n=="center"?Math.max((h.height()-q)/2,0):parseInt(n,10)/100*h.height()),o=="center"&&(o=Math.max((h.width()-p)/2,0)),i[0].call(f,{top:n,left:o},function(){k&&(d.type="onLoad",g.trigger(d))}),l&&e.closeOnClick&&a.mask.getMask().one("click",f.close),e.closeOnClick&&a(document).on("click."+m,function(b){a(b.target).parents(j).length||f.close(b)}),e.closeOnEsc&&a(document).on("keydown."+m,function(a){a.keyCode==27&&f.close(a)});return f},close:function(b){if(!f.isOpened())return f;b=b||a.Event(),b.type="onBeforeClose",g.trigger(b);if(!b.isDefaultPrevented()){k=!1,c[e.effect][1].call(f,function(){b.type="onClose",g.trigger(b)}),a(document).off("click."+m+" keydown."+m),l&&a.mask.close();return f}},getOverlay:function(){return j},getTrigger:function(){return d},getClosers:function(){return i},isOpened:function(){return k},getConf:function(){return e}}),a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(b,c){a.isFunction(e[c])&&a(f).on(c,e[c]),f[c]=function(b){b&&a(f).on(c,b);return f}}),i=j.find(e.close||".close"),!i.length&&!e.close&&(i=a("<a class=\"close\"></a>"),j.prepend(i)),i.click(function(a){f.close(a)}),e.load&&f.load()}a.fn.overlay=function(c){var e=this.data("overlay");if(e)return e;a.isFunction(c)&&(c={onBeforeLoad:c}),c=a.extend(!0,{},a.tools.overlay.conf,c),this.each(function(){e=new d(a(this),c),b.push(e),a(this).data("overlay",e)});return c.api?e:this}})(jQuery);
28
+ (function(a){var b=a.tools.overlay,c=a(window);a.extend(b.conf,{start:{top:null,left:null},fadeInSpeed:"fast",zIndex:9999});function d(a){var b=a.offset();return{top:b.top+a.height()/2,left:b.left+a.width()/2}}var e=function(b,e){var f=this.getOverlay(),g=this.getConf(),h=this.getTrigger(),i=this,j=f.outerWidth({margin:!0}),k=f.data("img"),l=g.fixed?"fixed":"absolute";if(!k){var m=f.css("backgroundImage");if(!m)throw"background-image CSS property not set for overlay";m=m.slice(m.indexOf("(")+1,m.indexOf(")")).replace(/\"/g,""),f.css("backgroundImage","none"),k=a("<img src=\""+m+"\"/>"),k.css({border:0,display:"none"}).width(j),a("body").append(k),f.data("img",k)}var n=g.start.top||Math.round(c.height()/2),o=g.start.left||Math.round(c.width()/2);if(h){var p=d(h);n=p.top,o=p.left}g.fixed?(n-=c.scrollTop(),o-=c.scrollLeft()):(b.top+=c.scrollTop(),b.left+=c.scrollLeft()),k.css({position:"absolute",top:n,left:o,width:0,zIndex:g.zIndex}).show(),b.position=l,f.css(b),k.animate({top:b.top,left:b.left,width:j},g.speed,function(){f.css("zIndex",g.zIndex+1).fadeIn(g.fadeInSpeed,function(){i.isOpened()&&!a(this).index(f)?e.call():f.hide()})}).css("position",l)},f=function(b){var e=this.getOverlay().hide(),f=this.getConf(),g=this.getTrigger(),h=e.data("img"),i={top:f.start.top,left:f.start.left,width:0};g&&a.extend(i,d(g)),f.fixed&&h.css({position:"absolute"}).animate({top:"+="+c.scrollTop(),left:"+="+c.scrollLeft()},0),h.animate(i,f.closeSpeed,b)};b.addEffect("apple",e,f)})(jQuery);
29
+ (function(a){a.tools=a.tools||{version:"v1.2.7"};var b;b=a.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:!0,closeOnEsc:!0,zIndex:9998,opacity:.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};function c(){if(a.browser.msie){var b=a(document).height(),c=a(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b-c<20?c:b]}return[a(document).width(),a(document).height()]}function d(b){if(b)return b.call(a.mask)}var e,f,g,h,i;a.mask={load:function(j,k){if(g)return this;typeof j=="string"&&(j={color:j}),j=j||h,h=j=a.extend(a.extend({},b.conf),j),e=a("#"+j.maskId),e.length||(e=a("<div/>").attr("id",j.maskId),a("body").append(e));var l=c();e.css({position:"absolute",top:0,left:0,width:l[0],height:l[1],display:"none",opacity:j.startOpacity,zIndex:j.zIndex}),j.color&&e.css("backgroundColor",j.color);if(d(j.onBeforeLoad)===!1)return this;j.closeOnEsc&&a(document).on("keydown.mask",function(b){b.keyCode==27&&a.mask.close(b)}),j.closeOnClick&&e.on("click.mask",function(b){a.mask.close(b)}),a(window).on("resize.mask",function(){a.mask.fit()}),k&&k.length&&(i=k.eq(0).css("zIndex"),a.each(k,function(){var b=a(this);/relative|absolute|fixed/i.test(b.css("position"))||b.css("position","relative")}),f=k.css({zIndex:Math.max(j.zIndex+1,i=="auto"?0:i)})),e.css({display:"block"}).fadeTo(j.loadSpeed,j.opacity,function(){a.mask.fit(),d(j.onLoad),g="full"}),g=!0;return this},close:function(){if(g){if(d(h.onBeforeClose)===!1)return this;e.fadeOut(h.closeSpeed,function(){d(h.onClose),f&&f.css({zIndex:i}),g=!1}),a(document).off("keydown.mask"),e.off("click.mask"),a(window).off("resize.mask")}return this},fit:function(){if(g){var a=c();e.css({width:a[0],height:a[1]})}},getMask:function(){return e},isLoaded:function(a){return a?g=="full":g},getConf:function(){return h},getExposed:function(){return f}},a.fn.mask=function(b){a.mask.load(b);return this},a.fn.expose=function(b){a.mask.load(b,this);return this}})(jQuery);
30
+ (function(){var a=document.all,b="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",d=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,e={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}});function f(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function g(a,b){var c=[];for(var d in a)a.hasOwnProperty(d)&&(c[d]=b(a[d]));return c}window.flashembed=function(a,b,c){typeof a=="string"&&(a=document.getElementById(a.replace("#","")));if(a){typeof b=="string"&&(b={src:b});return new j(a,f(f({},e),b),c)}};var h=f(window.flashembed,{conf:e,getVersion:function(){var a,b;try{b=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(c){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),b=a&&a.GetVariable("$version")}catch(e){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b=a&&a.GetVariable("$version")}catch(f){}}}b=d.exec(b);return b?[b[1],b[3]]:[0,0]},asString:function(a){if(a===null||a===undefined)return null;var b=typeof a;b=="object"&&a.push&&(b="array");switch(b){case"string":a=a.replace(new RegExp("([\"\\\\])","g"),"\\$1"),a=a.replace(/^\s?(\d+\.?\d*)%/,"$1pct");return"\""+a+"\"";case"array":return"["+g(a,function(a){return h.asString(a)}).join(",")+"]";case"function":return"\"function()\"";case"object":var c=[];for(var d in a)a.hasOwnProperty(d)&&c.push("\""+d+"\":"+h.asString(a[d]));return"{"+c.join(",")+"}"}return String(a).replace(/\s/g," ").replace(/\'/g,"\"")},getHTML:function(b,c){b=f({},b);var d="<object width=\""+b.width+"\" height=\""+b.height+"\" id=\""+b.id+"\" name=\""+b.id+"\"";b.cachebusting&&(b.src+=(b.src.indexOf("?")!=-1?"&":"?")+Math.random()),b.w3c||!a?d+=" data=\""+b.src+"\" type=\"application/x-shockwave-flash\"":d+=" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"",d+=">";if(b.w3c||a)d+="<param name=\"movie\" value=\""+b.src+"\" />";b.width=b.height=b.id=b.w3c=b.src=null,b.onFail=b.version=b.expressInstall=null;for(var e in b)b[e]&&(d+="<param name=\""+e+"\" value=\""+b[e]+"\" />");var g="";if(c){for(var i in c)if(c[i]){var j=c[i];g+=i+"="+encodeURIComponent(/function|object/.test(typeof j)?h.asString(j):j)+"&"}g=g.slice(0,-1),d+="<param name=\"flashvars\" value='"+g+"' />"}d+="</object>";return d},isSupported:function(a){return i[0]>a[0]||i[0]==a[0]&&i[1]>=a[1]}}),i=h.getVersion();function j(c,d,e){if(h.isSupported(d.version))c.innerHTML=h.getHTML(d,e);else if(d.expressInstall&&h.isSupported([6,65]))c.innerHTML=h.getHTML(f(d,{src:d.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{c.innerHTML.replace(/\s/g,"")||(c.innerHTML="<h2>Flash version "+d.version+" or greater is required</h2><h3>"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"</h3>"+(c.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+b+"'>here</a></p>"),c.tagName=="A"&&(c.onclick=function(){location.href=b}));if(d.onFail){var g=d.onFail.call(this);typeof g=="string"&&(c.innerHTML=g)}}a&&(window[d.id]=document.getElementById(d.id)),f(this,{getRoot:function(){return c},getOptions:function(){return d},getConf:function(){return e},getApi:function(){return c.firstChild}})}c&&(jQuery.tools=jQuery.tools||{version:"v1.2.7"},jQuery.tools.flashembed={conf:e},jQuery.fn.flashembed=function(a,b){return this.each(function(){jQuery(this).data("flashembed",flashembed(this,a,b))})})})();
31
+ (function(a){var b,c,d,e;a.tools=a.tools||{version:"v1.2.7"},a.tools.history={init:function(g){e||(a.browser.msie&&a.browser.version<"8"?c||(c=a("<iframe/>").attr("src","javascript:false;").hide().get(0),a("body").append(c),setInterval(function(){var d=c.contentWindow.document,e=d.location.hash;b!==e&&a(window).trigger("hash",e)},100),f(location.hash||"#")):setInterval(function(){var c=location.hash;c!==b&&a(window).trigger("hash",c)},100),d=d?d.add(g):g,g.click(function(b){var d=a(this).attr("href");c&&f(d);if(d.slice(0,1)!="#"){location.href="#"+d;return b.preventDefault()}}),e=!0)}};function f(a){if(a){var b=c.contentWindow.document;b.open().close(),b.location.hash=a}}a(window).on("hash",function(c,e){e?d.filter(function(){var b=a(this).attr("href");return b==e||b==e.replace("#","")}).trigger("history",[e]):d.eq(0).trigger("history",[e]),b=e}),a.fn.history=function(b){a.tools.history.init(this);return this.on("history",b)}})(jQuery);
32
+ (function(a){a.fn.mousewheel=function(a){return this[a?"on":"trigger"]("wheel",a)},a.event.special.wheel={setup:function(){a.event.add(this,b,c,{})},teardown:function(){a.event.remove(this,b,c)}};var b=a.browser.mozilla?"DOMMouseScroll"+(a.browser.version<"1.9"?" mousemove":""):"mousewheel";function c(b){switch(b.type){case"mousemove":return a.extend(b.data,{clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY});case"DOMMouseScroll":a.extend(b,b.data),b.delta=-b.detail/3;break;case"mousewheel":b.delta=b.wheelDelta/120}b.type="wheel";return a.event.handle.call(this,b,b.delta)}})(jQuery);
33
+ (function(a){a.tools=a.tools||{version:"v1.2.7"},a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,fadeIE:!1,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,c,d){b[a]=[c,d]}};var b={toggle:[function(a){var b=this.getConf(),c=this.getTip(),d=b.opacity;d<1&&c.css({opacity:d}),c.show(),a.call()},function(a){this.getTip().hide(),a.call()}],fade:[function(b){var c=this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeTo(c.fadeInSpeed,c.opacity,b):(this.getTip().show(),b())},function(b){var c=this.getConf();!a.browser.msie||c.fadeIE?this.getTip().fadeOut(c.fadeOutSpeed,b):(this.getTip().hide(),b())}]};function c(b,c,d){var e=d.relative?b.position().top:b.offset().top,f=d.relative?b.position().left:b.offset().left,g=d.position[0];e-=c.outerHeight()-d.offset[0],f+=b.outerWidth()+d.offset[1],/iPad/i.test(navigator.userAgent)&&(e-=a(window).scrollTop());var h=c.outerHeight()+b.outerHeight();g=="center"&&(e+=h/2),g=="bottom"&&(e+=h),g=d.position[1];var i=c.outerWidth()+b.outerWidth();g=="center"&&(f-=i/2),g=="left"&&(f-=i);return{top:e,left:f}}function d(d,e){var f=this,g=d.add(f),h,i=0,j=0,k=d.attr("title"),l=d.attr("data-tooltip"),m=b[e.effect],n,o=d.is(":input"),p=o&&d.is(":checkbox, :radio, select, :button, :submit"),q=d.attr("type"),r=e.events[q]||e.events[o?p?"widget":"input":"def"];if(!m)throw"Nonexistent effect \""+e.effect+"\"";r=r.split(/,\s*/);if(r.length!=2)throw"Tooltip: bad events configuration for "+q;d.on(r[0],function(a){clearTimeout(i),e.predelay?j=setTimeout(function(){f.show(a)},e.predelay):f.show(a)}).on(r[1],function(a){clearTimeout(j),e.delay?i=setTimeout(function(){f.hide(a)},e.delay):f.hide(a)}),k&&e.cancelDefault&&(d.removeAttr("title"),d.data("title",k)),a.extend(f,{show:function(b){if(!h){l?h=a(l):e.tip?h=a(e.tip).eq(0):k?h=a(e.layout).addClass(e.tipClass).appendTo(document.body).hide().append(k):(h=d.next(),h.length||(h=d.parent().next()));if(!h.length)throw"Cannot find tooltip for "+d}if(f.isShown())return f;h.stop(!0,!0);var o=c(d,h,e);e.tip&&h.html(d.data("title")),b=a.Event(),b.type="onBeforeShow",g.trigger(b,[o]);if(b.isDefaultPrevented())return f;o=c(d,h,e),h.css({position:"absolute",top:o.top,left:o.left}),n=!0,m[0].call(f,function(){b.type="onShow",n="full",g.trigger(b)});var p=e.events.tooltip.split(/,\s*/);h.data("__set")||(h.off(p[0]).on(p[0],function(){clearTimeout(i),clearTimeout(j)}),p[1]&&!d.is("input:not(:checkbox, :radio), textarea")&&h.off(p[1]).on(p[1],function(a){a.relatedTarget!=d[0]&&d.trigger(r[1].split(" ")[0])}),e.tip||h.data("__set",!0));return f},hide:function(c){if(!h||!f.isShown())return f;c=a.Event(),c.type="onBeforeHide",g.trigger(c);if(!c.isDefaultPrevented()){n=!1,b[e.effect][1].call(f,function(){c.type="onHide",g.trigger(c)});return f}},isShown:function(a){return a?n=="full":n},getConf:function(){return e},getTip:function(){return h},getTrigger:function(){return d}}),a.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(b,c){a.isFunction(e[c])&&a(f).on(c,e[c]),f[c]=function(b){b&&a(f).on(c,b);return f}})}a.fn.tooltip=function(b){var c=this.data("tooltip");if(c)return c;b=a.extend(!0,{},a.tools.tooltip.conf,b),typeof b.position=="string"&&(b.position=b.position.split(/,?\s/)),this.each(function(){c=new d(a(this),b),a(this).data("tooltip",c)});return b.api?c:this}})(jQuery);
34
+ (function(a){var b=a.tools.tooltip;b.dynamic={conf:{classNames:"top right bottom left"}};function c(b){var c=a(window),d=c.width()+c.scrollLeft(),e=c.height()+c.scrollTop();return[b.offset().top<=c.scrollTop(),d<=b.offset().left+b.width(),e<=b.offset().top+b.height(),c.scrollLeft()>=b.offset().left]}function d(a){var b=a.length;while(b--)if(a[b])return!1;return!0}a.fn.dynamic=function(e){typeof e=="number"&&(e={speed:e}),e=a.extend({},b.dynamic.conf,e);var f=a.extend(!0,{},e),g=e.classNames.split(/\s/),h;this.each(function(){var b=a(this).tooltip().onBeforeShow(function(b,e){var i=this.getTip(),j=this.getConf();h||(h=[j.position[0],j.position[1],j.offset[0],j.offset[1],a.extend({},j)]),a.extend(j,h[4]),j.position=[h[0],h[1]],j.offset=[h[2],h[3]],i.css({visibility:"hidden",position:"absolute",top:e.top,left:e.left}).show();var k=a.extend(!0,{},f),l=c(i);if(!d(l)){l[2]&&(a.extend(j,k.top),j.position[0]="top",i.addClass(g[0])),l[3]&&(a.extend(j,k.right),j.position[1]="right",i.addClass(g[1])),l[0]&&(a.extend(j,k.bottom),j.position[0]="bottom",i.addClass(g[2])),l[1]&&(a.extend(j,k.left),j.position[1]="left",i.addClass(g[3]));if(l[0]||l[2])j.offset[0]*=-1;if(l[1]||l[3])j.offset[1]*=-1}i.css({visibility:"visible"}).hide()});b.onBeforeShow(function(){var a=this.getConf(),b=this.getTip();setTimeout(function(){a.position=[h[0],h[1]],a.offset=[h[2],h[3]]},0)}),b.onHide(function(){var a=this.getTip();a.removeClass(e.classNames)}),ret=b});return e.api?ret:this}})(jQuery);
35
+ (function(a){var b=a.tools.tooltip;a.extend(b.conf,{direction:"up",bounce:!1,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!a.browser.msie});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.addEffect("slide",function(a){var b=this.getConf(),d=this.getTip(),e=b.slideFade?{opacity:b.opacity}:{},f=c[b.direction]||c.up;e[f[1]]=f[0]+"="+b.slideOffset,b.slideFade&&d.css({opacity:0}),d.show().animate(e,b.slideInSpeed,a)},function(b){var d=this.getConf(),e=d.slideOffset,f=d.slideFade?{opacity:0}:{},g=c[d.direction]||c.up,h=""+g[0];d.bounce&&(h=h=="+"?"-":"+"),f[g[1]]=h+"="+e,this.getTip().animate(f,d.slideOutSpeed,function(){a(this).hide(),b.call()})})})(jQuery);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speedo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-07 00:00:00.000000000Z
13
+ date: 2012-05-08 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &2164449480 !ruby/object:Gem::Requirement
17
+ requirement: &2165086620 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '3.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2164449480
25
+ version_requirements: *2165086620
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: haml
28
- requirement: &2164448520 !ruby/object:Gem::Requirement
28
+ requirement: &2165085640 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2164448520
36
+ version_requirements: *2165085640
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: coffee-script
39
- requirement: &2164447060 !ruby/object:Gem::Requirement
39
+ requirement: &2165084500 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2164447060
47
+ version_requirements: *2165084500
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: sass-rails
50
- requirement: &2164446320 !ruby/object:Gem::Requirement
50
+ requirement: &2165083060 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2164446320
58
+ version_requirements: *2165083060
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: bourbon
61
- requirement: &2164445440 !ruby/object:Gem::Requirement
61
+ requirement: &2165082220 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *2164445440
69
+ version_requirements: *2165082220
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: formtastic
72
- requirement: &2164444580 !ruby/object:Gem::Requirement
72
+ requirement: &2165081420 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 2.1.0.rc
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *2164444580
80
+ version_requirements: *2165081420
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: jquery-rails
83
- requirement: &2164443680 !ruby/object:Gem::Requirement
83
+ requirement: &2165080560 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *2164443680
91
+ version_requirements: *2165080560
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: sqlite3
94
- requirement: &2164442720 !ruby/object:Gem::Requirement
94
+ requirement: &2165079640 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,7 +99,7 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *2164442720
102
+ version_requirements: *2165079640
103
103
  description: This is a layout gem intended as a backdrop for developing rails applications
104
104
  quickly. Its intention is to speed initial development, removing the need for any
105
105
  intensive front-end development until the app is functional.
@@ -132,11 +132,11 @@ files:
132
132
  - vendor/assets/javascripts/jquery.autogrow.js
133
133
  - vendor/assets/javascripts/jquery.autoSuggest.js
134
134
  - vendor/assets/javascripts/jquery.dataTables.js
135
- - vendor/assets/javascripts/jquery.fancybox-1.3.4.js
136
135
  - vendor/assets/javascripts/jquery.livequery.js
137
136
  - vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
138
137
  - vendor/assets/javascripts/jquery.placeholder.min.js
139
138
  - vendor/assets/javascripts/jquery.timeago.js
139
+ - vendor/assets/javascripts/jquery.tools.min.js
140
140
  - vendor/assets/javascripts/jquery.uniform.js
141
141
  - vendor/assets/javascripts/modernizr.min.js
142
142
  - vendor/assets/javascripts/respond.js
@@ -169,32 +169,11 @@ files:
169
169
  - vendor/assets/stylesheets/dataTables/ui-icons_454545_256x240.png
170
170
  - vendor/assets/stylesheets/dataTables/ui-icons_888888_256x240.png
171
171
  - vendor/assets/stylesheets/dataTables/ui-icons_cd0a0a_256x240.png
172
- - vendor/assets/stylesheets/fancybox/blank.gif
173
- - vendor/assets/stylesheets/fancybox/fancy_close.png
174
- - vendor/assets/stylesheets/fancybox/fancy_loading.png
175
- - vendor/assets/stylesheets/fancybox/fancy_nav_left.png
176
- - vendor/assets/stylesheets/fancybox/fancy_nav_right.png
177
- - vendor/assets/stylesheets/fancybox/fancy_shadow_e.png
178
- - vendor/assets/stylesheets/fancybox/fancy_shadow_n.png
179
- - vendor/assets/stylesheets/fancybox/fancy_shadow_ne.png
180
- - vendor/assets/stylesheets/fancybox/fancy_shadow_nw.png
181
- - vendor/assets/stylesheets/fancybox/fancy_shadow_s.png
182
- - vendor/assets/stylesheets/fancybox/fancy_shadow_se.png
183
- - vendor/assets/stylesheets/fancybox/fancy_shadow_sw.png
184
- - vendor/assets/stylesheets/fancybox/fancy_shadow_w.png
185
- - vendor/assets/stylesheets/fancybox/fancy_title_left.png
186
- - vendor/assets/stylesheets/fancybox/fancy_title_main.png
187
- - vendor/assets/stylesheets/fancybox/fancy_title_over.png
188
- - vendor/assets/stylesheets/fancybox/fancy_title_right.png
189
- - vendor/assets/stylesheets/fancybox/fancybox-x.png
190
- - vendor/assets/stylesheets/fancybox/fancybox-y.png
191
- - vendor/assets/stylesheets/fancybox/fancybox.png
192
172
  - vendor/assets/stylesheets/formtastic-buttonless.css
193
173
  - vendor/assets/stylesheets/gh-buttons.css
194
174
  - vendor/assets/stylesheets/gh-icons.png
195
175
  - vendor/assets/stylesheets/jquery-ui-1.8.18.custom.css
196
176
  - vendor/assets/stylesheets/jquery.dataTables.css
197
- - vendor/assets/stylesheets/jquery.fancybox-1.3.4.css
198
177
  - vendor/assets/stylesheets/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png
199
178
  - vendor/assets/stylesheets/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png
200
179
  - vendor/assets/stylesheets/jqueryui/ui-bg_glass_65_ffffff_1x400.png
@@ -345,7 +324,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
345
324
  version: '0'
346
325
  segments:
347
326
  - 0
348
- hash: 1572378502578861044
327
+ hash: -3573564018785346633
349
328
  required_rubygems_version: !ruby/object:Gem::Requirement
350
329
  none: false
351
330
  requirements:
@@ -354,7 +333,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
333
  version: '0'
355
334
  segments:
356
335
  - 0
357
- hash: 1572378502578861044
336
+ hash: -3573564018785346633
358
337
  requirements: []
359
338
  rubyforge_project:
360
339
  rubygems_version: 1.8.10