zurb-foundation 3.0.7 → 3.0.8.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/.gitignore +2 -0
  2. data/CONTRIBUTING.md +43 -0
  3. data/Gemfile.lock +2 -27
  4. data/README.md +2 -2
  5. data/foundation.gemspec +1 -3
  6. data/index.html +12 -6
  7. data/lib/foundation/version.rb +1 -1
  8. data/lib/zurb-foundation.rb +11 -4
  9. data/{stylesheets → scss}/foundation/_settings.scss +17 -2
  10. data/{stylesheets → scss}/foundation/common/_base.scss +0 -0
  11. data/{stylesheets → scss}/foundation/common/_forms.scss +2 -2
  12. data/{stylesheets → scss}/foundation/common/_globals.scss +3 -0
  13. data/{stylesheets → scss}/foundation/common/_typography.scss +7 -5
  14. data/{stylesheets → scss}/foundation/components/_grid.scss +34 -19
  15. data/{stylesheets → scss}/foundation/components/modules/_all.scss +1 -1
  16. data/{stylesheets → scss}/foundation/components/modules/_buttons.scss +14 -12
  17. data/{stylesheets → scss}/foundation/components/modules/_navbar.scss +0 -0
  18. data/{stylesheets → scss}/foundation/components/modules/_offcanvas.scss +0 -0
  19. data/{stylesheets → scss}/foundation/components/modules/_orbit.scss +0 -0
  20. data/{stylesheets → scss}/foundation/components/modules/_reveal.scss +1 -0
  21. data/{stylesheets → scss}/foundation/components/modules/_tabs.scss +6 -4
  22. data/{stylesheets → scss}/foundation/components/modules/_ui.scss +19 -29
  23. data/{stylesheets → scss}/foundation/functions/_all.scss +0 -0
  24. data/{stylesheets → scss}/foundation/functions/_convert-number-to-word.scss +0 -0
  25. data/{stylesheets → scss}/foundation/functions/_grid-calc.scss +0 -0
  26. data/{stylesheets → scss}/foundation/functions/_modular-scale.sass +0 -0
  27. data/{stylesheets → scss}/foundation/mixins/_all.scss +0 -0
  28. data/{stylesheets → scss}/foundation/mixins/_clearfix.scss +0 -0
  29. data/{stylesheets → scss}/foundation/mixins/_css-triangle.scss +0 -0
  30. data/{stylesheets → scss}/foundation/mixins/_font-size.scss +2 -0
  31. data/{stylesheets → scss}/foundation/mixins/_respond-to.scss +0 -0
  32. data/{stylesheets → scss}/foundation/mixins/_semantic-grid.scss +28 -8
  33. data/{stylesheets → scss}/foundation.scss +2 -2
  34. data/templates/project/index.html +12 -12
  35. data/templates/project/manifest.rb +27 -42
  36. data/templates/project/{sass → scss}/_settings.scss +17 -0
  37. data/templates/project/{sass → scss}/app.scss +4 -4
  38. data/templates/upgrade/manifest.rb +39 -0
  39. data/test/buttons.html +184 -0
  40. data/test/config.rb +11 -0
  41. data/test/elements.html +339 -0
  42. data/test/forms.html +376 -0
  43. data/test/grid.html +560 -0
  44. data/test/images/orbit-demo/demo1.jpeg +0 -0
  45. data/test/images/orbit-demo/demo2.jpeg +0 -0
  46. data/test/images/orbit-demo/demo3.jpeg +0 -0
  47. data/test/images/orbit-demo/slider-background.jpeg +0 -0
  48. data/test/index.html +84 -0
  49. data/test/navigation.html +239 -0
  50. data/test/orbit.html +106 -0
  51. data/test/reveal.html +78 -0
  52. data/test/scss/_settings.scss +75 -0
  53. data/test/scss/styles.scss +2 -0
  54. data/test/tabs.html +184 -0
  55. data/test/template.html +60 -0
  56. data/test/type.html +194 -0
  57. data/vendor/assets/javascripts/foundation/app.js +5 -4
  58. data/vendor/assets/javascripts/foundation/index.js +1 -0
  59. data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +6 -2
  60. data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +7 -7
  61. data/vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js +21 -0
  62. data/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +2 -1
  63. metadata +73 -75
  64. data/config/assets.yml +0 -58
  65. data/public/assets/foundation.js +0 -11
  66. data/public/assets/jquery.js +0 -23
  67. data/test.html +0 -232
  68. data/test2.html +0 -320
  69. data/type.html +0 -134
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zurb-foundation
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.7
5
- prerelease:
4
+ version: 3.0.8.rc1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - ZURB
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-30 00:00:00.000000000 Z
12
+ date: 2012-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: compass
@@ -59,38 +59,6 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: capistrano
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: jammit
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
62
  description: ZURB Foundation on SASS/Compass
95
63
  email:
96
64
  - foundation@zurb.com
@@ -99,13 +67,13 @@ extensions: []
99
67
  extra_rdoc_files: []
100
68
  files:
101
69
  - .gitignore
70
+ - CONTRIBUTING.md
102
71
  - Capfile
103
72
  - Gemfile
104
73
  - Gemfile.lock
105
74
  - LICENSE
106
75
  - README.md
107
76
  - Rakefile
108
- - config/assets.yml
109
77
  - config/deploy.rb
110
78
  - foundation.gemspec
111
79
  - index.html
@@ -117,44 +85,58 @@ files:
117
85
  - lib/foundation/generators/templates/application.html.haml
118
86
  - lib/foundation/version.rb
119
87
  - lib/zurb-foundation.rb
120
- - public/assets/foundation.js
121
- - public/assets/jquery.js
122
- - stylesheets/foundation.scss
123
- - stylesheets/foundation/_settings.scss
124
- - stylesheets/foundation/common/_base.scss
125
- - stylesheets/foundation/common/_forms.scss
126
- - stylesheets/foundation/common/_globals.scss
127
- - stylesheets/foundation/common/_typography.scss
128
- - stylesheets/foundation/components/_grid.scss
129
- - stylesheets/foundation/components/modules/_all.scss
130
- - stylesheets/foundation/components/modules/_buttons.scss
131
- - stylesheets/foundation/components/modules/_navbar.scss
132
- - stylesheets/foundation/components/modules/_offcanvas.scss
133
- - stylesheets/foundation/components/modules/_orbit.scss
134
- - stylesheets/foundation/components/modules/_reveal.scss
135
- - stylesheets/foundation/components/modules/_tabs.scss
136
- - stylesheets/foundation/components/modules/_ui.scss
137
- - stylesheets/foundation/functions/_all.scss
138
- - stylesheets/foundation/functions/_convert-number-to-word.scss
139
- - stylesheets/foundation/functions/_grid-calc.scss
140
- - stylesheets/foundation/functions/_modular-scale.sass
141
- - stylesheets/foundation/mixins/_all.scss
142
- - stylesheets/foundation/mixins/_clearfix.scss
143
- - stylesheets/foundation/mixins/_css-triangle.scss
144
- - stylesheets/foundation/mixins/_font-size.scss
145
- - stylesheets/foundation/mixins/_respond-to.scss
146
- - stylesheets/foundation/mixins/_semantic-grid.scss
88
+ - scss/foundation.scss
89
+ - scss/foundation/_settings.scss
90
+ - scss/foundation/common/_base.scss
91
+ - scss/foundation/common/_forms.scss
92
+ - scss/foundation/common/_globals.scss
93
+ - scss/foundation/common/_typography.scss
94
+ - scss/foundation/components/_grid.scss
95
+ - scss/foundation/components/modules/_all.scss
96
+ - scss/foundation/components/modules/_buttons.scss
97
+ - scss/foundation/components/modules/_navbar.scss
98
+ - scss/foundation/components/modules/_offcanvas.scss
99
+ - scss/foundation/components/modules/_orbit.scss
100
+ - scss/foundation/components/modules/_reveal.scss
101
+ - scss/foundation/components/modules/_tabs.scss
102
+ - scss/foundation/components/modules/_ui.scss
103
+ - scss/foundation/functions/_all.scss
104
+ - scss/foundation/functions/_convert-number-to-word.scss
105
+ - scss/foundation/functions/_grid-calc.scss
106
+ - scss/foundation/functions/_modular-scale.sass
107
+ - scss/foundation/mixins/_all.scss
108
+ - scss/foundation/mixins/_clearfix.scss
109
+ - scss/foundation/mixins/_css-triangle.scss
110
+ - scss/foundation/mixins/_font-size.scss
111
+ - scss/foundation/mixins/_respond-to.scss
112
+ - scss/foundation/mixins/_semantic-grid.scss
147
113
  - templates/project/.gitignore
148
114
  - templates/project/MIT-LICENSE.txt
149
115
  - templates/project/humans.txt
150
116
  - templates/project/index.html
151
117
  - templates/project/manifest.rb
152
118
  - templates/project/robots.txt
153
- - templates/project/sass/_settings.scss
154
- - templates/project/sass/app.scss
155
- - test.html
156
- - test2.html
157
- - type.html
119
+ - templates/project/scss/_settings.scss
120
+ - templates/project/scss/app.scss
121
+ - templates/upgrade/manifest.rb
122
+ - test/buttons.html
123
+ - test/config.rb
124
+ - test/elements.html
125
+ - test/forms.html
126
+ - test/grid.html
127
+ - test/images/orbit-demo/demo1.jpeg
128
+ - test/images/orbit-demo/demo2.jpeg
129
+ - test/images/orbit-demo/demo3.jpeg
130
+ - test/images/orbit-demo/slider-background.jpeg
131
+ - test/index.html
132
+ - test/navigation.html
133
+ - test/orbit.html
134
+ - test/reveal.html
135
+ - test/scss/_settings.scss
136
+ - test/scss/styles.scss
137
+ - test/tabs.html
138
+ - test/template.html
139
+ - test/type.html
158
140
  - vendor/assets/images/foundation/orbit/bullets.jpg
159
141
  - vendor/assets/images/foundation/orbit/left-arrow-small.png
160
142
  - vendor/assets/images/foundation/orbit/left-arrow.png
@@ -171,6 +153,7 @@ files:
171
153
  - vendor/assets/javascripts/foundation/jquery.foundation.alerts.js
172
154
  - vendor/assets/javascripts/foundation/jquery.foundation.buttons.js
173
155
  - vendor/assets/javascripts/foundation/jquery.foundation.forms.js
156
+ - vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js
174
157
  - vendor/assets/javascripts/foundation/jquery.foundation.navigation.js
175
158
  - vendor/assets/javascripts/foundation/jquery.foundation.orbit.js
176
159
  - vendor/assets/javascripts/foundation/jquery.foundation.reveal.js
@@ -194,20 +177,35 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
177
  version: '0'
195
178
  segments:
196
179
  - 0
197
- hash: -2833576183208330201
180
+ hash: 3263140076592270617
198
181
  required_rubygems_version: !ruby/object:Gem::Requirement
199
182
  none: false
200
183
  requirements:
201
- - - ! '>='
184
+ - - ! '>'
202
185
  - !ruby/object:Gem::Version
203
- version: '0'
204
- segments:
205
- - 0
206
- hash: -2833576183208330201
186
+ version: 1.3.1
207
187
  requirements: []
208
188
  rubyforge_project:
209
189
  rubygems_version: 1.8.23
210
190
  signing_key:
211
191
  specification_version: 3
212
192
  summary: ZURB Foundation on SASS/Compass
213
- test_files: []
193
+ test_files:
194
+ - test/buttons.html
195
+ - test/config.rb
196
+ - test/elements.html
197
+ - test/forms.html
198
+ - test/grid.html
199
+ - test/images/orbit-demo/demo1.jpeg
200
+ - test/images/orbit-demo/demo2.jpeg
201
+ - test/images/orbit-demo/demo3.jpeg
202
+ - test/images/orbit-demo/slider-background.jpeg
203
+ - test/index.html
204
+ - test/navigation.html
205
+ - test/orbit.html
206
+ - test/reveal.html
207
+ - test/scss/_settings.scss
208
+ - test/scss/styles.scss
209
+ - test/tabs.html
210
+ - test/template.html
211
+ - test/type.html
data/config/assets.yml DELETED
@@ -1,58 +0,0 @@
1
- compress_assets: on
2
- gzip_assets: off
3
-
4
- javascripts:
5
- jquery:
6
- - vendor/assets/javascripts/foundation/jquery.js
7
-
8
- foundation:
9
- - vendor/assets/javascripts/foundation/modernizr.foundation.js
10
- - vendor/assets/javascripts/foundation/jquery.placeholder.js
11
- - vendor/assets/javascripts/foundation/jquery.foundation.alerts.js
12
- - vendor/assets/javascripts/foundation/jquery.foundation.accordion.js
13
- - vendor/assets/javascripts/foundation/jquery.foundation.buttons.js
14
- - vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js
15
- - vendor/assets/javascripts/foundation/jquery.foundation.forms.js
16
- - vendor/assets/javascripts/foundation/jquery.foundation.tabs.js
17
- - vendor/assets/javascripts/foundation/jquery.foundation.navigation.js
18
- - vendor/assets/javascripts/foundation/jquery.foundation.reveal.js
19
- - vendor/assets/javascripts/foundation/jquery.foundation.orbit.js
20
-
21
- marketing:
22
- - vendor/assets/javascripts/foundation/jquery.js
23
- - vendor/assets/javascripts/foundation/modernizr.foundation.js
24
- - vendor/assets/javascripts/foundation/jquery.placeholder.js
25
- - vendor/assets/javascripts/foundation/jquery.foundation.alerts.js
26
- - vendor/assets/javascripts/foundation/jquery.foundation.accordion.js
27
- - vendor/assets/javascripts/foundation/jquery.foundation.buttons.js
28
- - vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js
29
- - vendor/assets/javascripts/foundation/jquery.foundation.forms.js
30
- - vendor/assets/javascripts/foundation/jquery.foundation.tabs.js
31
- - vendor/assets/javascripts/foundation/jquery.foundation.navigation.js
32
- - vendor/assets/javascripts/foundation/jquery.foundation.reveal.js
33
- - vendor/assets/javascripts/foundation/jquery.foundation.orbit.js
34
- - vendor/assets/javascripts/foundation/jquery.offcanvas.js
35
- - vendor/assets/javascripts/foundation/app.js
36
- - marketing/javascripts/foundation.top-bar.js
37
- - marketing/jswipe.js
38
- - marketing/swipe.js
39
- - marketing/javascripts/download.js
40
- - marketing/github.js
41
-
42
- marketing_docs:
43
- - vendor/assets/javascripts/foundation/jquery.js
44
- - vendor/assets/javascripts/foundation/modernizr.foundation.js
45
- - vendor/assets/javascripts/foundation/jquery.placeholder.js
46
- - vendor/assets/javascripts/foundation/jquery.foundation.alerts.js
47
- - vendor/assets/javascripts/foundation/jquery.foundation.accordion.js
48
- - vendor/assets/javascripts/foundation/jquery.foundation.buttons.js
49
- - vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js
50
- - vendor/assets/javascripts/foundation/jquery.foundation.forms.js
51
- - vendor/assets/javascripts/foundation/jquery.foundation.tabs.js
52
- - vendor/assets/javascripts/foundation/jquery.foundation.navigation.js
53
- - vendor/assets/javascripts/foundation/jquery.foundation.reveal.js
54
- - vendor/assets/javascripts/foundation/jquery.foundation.orbit.js
55
- - vendor/assets/javascripts/foundation/jquery.offcanvas.js
56
- - vendor/assets/javascripts/foundation/app.js
57
- - marketing/javascripts/foundation.top-bar.js
58
- - marketing/docs/presentation.js
@@ -1,11 +0,0 @@
1
- window.Modernizr=function(af,ae,ad){function F(b){W.cssText=b}function E(d,c){return F(T.join(d+";")+(c||""))}function D(d,c){return typeof d===c}function Q(d,c){return !!~(""+d).indexOf(c)}function O(g,c,j){for(var i in g){var h=c[g[i]];if(h!==ad){return j===!1?g[i]:D(h,"function")?h.bind(j||c):h}}return !1}var ac="2.6.0",ab={},aa=!0,Z=ae.documentElement,Y="modernizr",X=ae.createElement(Y),W=X.style,V,U={}.toString,T=" -webkit- -moz- -o- -ms- ".split(" "),S={svg:"http://www.w3.org/2000/svg"},R={},P={},N={},M=[],K=M.slice,J,I=function(t,s,r,q){var p,o,n,h=ae.createElement("div"),g=ae.body,b=g?g:ae.createElement("body");if(parseInt(r,10)){while(r--){n=ae.createElement("div"),n.id=q?q[r]:Y+(r+1),h.appendChild(n)}}return p=["&#173;",'<style id="s',Y,'">',t,"</style>"].join(""),h.id=Y,(g?h:b).innerHTML+=p,b.appendChild(h),g||(b.style.background="",Z.appendChild(b)),o=s(h,t),g?h.parentNode.removeChild(h):b.parentNode.removeChild(b),!!o},H={}.hasOwnProperty,G;!D(H,"undefined")&&!D(H.call,"undefined")?G=function(d,c){return H.call(d,c)}:G=function(d,c){return c in d&&D(d.constructor.prototype[c],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(a){var h=this;if(typeof h!="function"){throw new TypeError}var g=K.call(arguments,1),f=function(){if(this instanceof f){var b=function(){};b.prototype=h.prototype;var d=new b,c=h.apply(d,g.concat(K.call(arguments)));return Object(c)===c?c:d}return h.apply(a,g.concat(K.call(arguments)))};return f}),R.touch=function(){var a;return"ontouchstart" in af||af.DocumentTouch&&ae instanceof DocumentTouch?a=!0:I(["@media (",T.join("touch-enabled),("),Y,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(b){a=b.offsetTop===9}),a},R.svg=function(){return !!ae.createElementNS&&!!ae.createElementNS(S.svg,"svg").createSVGRect},R.inlinesvg=function(){var b=ae.createElement("div");return b.innerHTML="<svg/>",(b.firstChild&&b.firstChild.namespaceURI)==S.svg},R.svgclippaths=function(){return !!ae.createElementNS&&/SVGClipPath/.test(U.call(ae.createElementNS(S.svg,"clipPath")))};for(var L in R){G(R,L)&&(J=L.toLowerCase(),ab[J]=R[L](),M.push((ab[J]?"":"no-")+J))}return ab.addTest=function(e,c){if(typeof e=="object"){for(var f in e){G(e,f)&&ab.addTest(f,e[f])}}else{e=e.toLowerCase();if(ab[e]!==ad){return ab}c=typeof c=="function"?c():c,aa&&(Z.className+=" "+(c?"":"no-")+e),ab[e]=c}return ab},F(""),X=V=null,function(am,al){function z(f,e){var h=f.createElement("p"),g=f.getElementsByTagName("head")[0]||f.documentElement;return h.innerHTML="x<style>"+e+"</style>",g.insertBefore(h.lastChild,g.firstChild)}function y(){var b=s.elements;return typeof b=="string"?b.split(" "):b}function x(d){var c=B[d[ag]];return c||(c={},C++,d[ag]=C,B[C]=c),c}function w(b,h,e){h||(h=al);if(A){return h.createElement(b)}e||(e=x(h));var d;return e.cache[b]?d=e.cache[b].cloneNode():ai.test(b)?d=(e.cache[b]=e.createElem(b)).cloneNode():d=e.createElem(b),d.canHaveChildren&&!aj.test(b)?e.frag.appendChild(d):d}function v(b,l){b||(b=al);if(A){return b.createDocumentFragment()}l=l||x(b);var k=l.frag.cloneNode(),j=0,i=y(),h=i.length;for(;j<h;j++){k.createElement(i[j])}return k}function u(d,c){c.cache||(c.cache={},c.createElem=d.createElement,c.createFrag=d.createDocumentFragment,c.frag=c.createFrag()),d.createElement=function(a){return s.shivMethods?w(a,d,c):c.createElem(a)},d.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+y().join().replace(/\w+/g,function(b){return c.createElem(b),c.frag.createElement(b),'c("'+b+'")'})+");return n}")(s,c.frag)}function t(b){b||(b=al);var d=x(b);return s.shivCSS&&!ah&&!d.hasCSS&&(d.hasCSS=!!z(b,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),A||u(b,d),b}var ak=am.html5||{},aj=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,ai=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,ah,ag="_html5shiv",C=0,B={},A;(function(){try{var b=al.createElement("a");b.innerHTML="<xyz></xyz>",ah="hidden" in b,A=b.childNodes.length==1||function(){al.createElement("a");var c=al.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()}catch(d){ah=!0,A=!0}})();var s={elements:ak.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:ak.shivCSS!==!1,supportsUnknownElements:A,shivMethods:ak.shivMethods!==!1,type:"default",shivDocument:t,createElement:w,createDocumentFragment:v};am.html5=s,t(al)}(this,ae),ab._version=ac,ab._prefixes=T,ab.testStyles=I,Z.className=Z.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(aa?" js "+M.join(" "):""),ab}(this,this.document),function(ad,ac,ab){function aa(b){return P.call(b)=="[object Function]"}function Z(b){return typeof b=="string"}function Y(){}function X(b){return !b||b=="loaded"||b=="complete"||b=="uninitialized"}function W(){var b=O.shift();M=1,b?b.t?R(function(){(b.t=="c"?L.injectCss:L.injectJs)(b.s,0,b.a,b.x,b.e,1)},0):(b(),W()):M=0}function V(w,v,t,s,q,p,n){function m(a){if(!g&&X(h.readyState)&&(x.r=g=1,!M&&W(),h.onload=h.onreadystatechange=null,a)){w!="img"&&R(function(){I.removeChild(h)},50);for(var c in D[v]){D[v].hasOwnProperty(c)&&D[v][c].onload()}}}var n=n||L.errorTimeout,h={},g=0,b=0,x={t:t,s:v,e:q,a:p,x:n};D[v]===1&&(b=1,D[v]=[],h=ac.createElement(w)),w=="object"?h.data=v:(h.src=v,h.type=w),h.width=h.height="0",h.onerror=h.onload=h.onreadystatechange=function(){m.call(this,b)},O.splice(s,0,x),w!="img"&&(b||D[v]===2?(I.insertBefore(h,J?null:Q),R(m,n)):D[v].push(h))}function U(g,e,j,i,h){return M=0,e=e||"j",Z(g)?V(e=="c"?G:H,g,e,this.i++,j,i,h):(O.splice(this.i++,0,g),O.length==1&&W()),this}function T(){var b=L;return b.loader={load:U,i:0},b}var S=ac.documentElement,R=ad.setTimeout,Q=ac.getElementsByTagName("script")[0],P={}.toString,O=[],M=0,K="MozAppearance" in S.style,J=K&&!!ac.createRange().compareNode,I=J?S:Q.parentNode,S=ad.opera&&P.call(ad.opera)=="[object Opera]",S=!!ac.attachEvent&&!S,H=K?"object":S?"script":"img",G=S?"script":H,F=Array.isArray||function(b){return P.call(b)=="[object Array]"},E=[],D={},C={timeout:function(d,c){return c.length&&(d.timeout=c[0]),d}},N,L;L=function(f){function d(j){var j=j.split("!"),i=E.length,q=j.pop(),p=j.length,q={url:q,origUrl:q,prefixes:j},o,m,l;for(m=0;m<p;m++){l=j[m].split("="),(o=C[l.shift()])&&(q=o(q,l))}for(m=0;m<i;m++){q=E[m](q)}return q}function n(m,s,r,q,p){var o=d(m),b=o.autoCallback;o.url.split(".").pop().split("?").shift(),o.bypass||(s&&(s=aa(s)?s:s[m]||s[q]||s[m.split("/").pop().split("?")[0]]||W),o.instead?o.instead(m,s,r,q,p):(D[o.url]?o.noexec=!0:D[o.url]=1,r.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":ab,o.noexec,o.attrs,o.timeout),(aa(s)||aa(b))&&r.load(function(){T(),s&&s(o.origUrl,p,q),b&&b(o.origUrl,p,q),D[o.url]=2})))}function k(w,v){function u(b,i){if(b){if(Z(b)){i||(r=function(){var j=[].slice.call(arguments);q.apply(this,j),p()}),n(b,r,v,0,t)}else{if(Object(b)===b){for(g in o=function(){var a=0,j;for(j in b){b.hasOwnProperty(j)&&a++}return a}(),b){b.hasOwnProperty(g)&&(!i&&!--o&&(aa(r)?r=function(){var j=[].slice.call(arguments);q.apply(this,j),p()}:r[g]=function(j){return function(){var a=[].slice.call(arguments);j&&j.apply(this,a),p()}}(q[g])),n(b[g],r,v,g,t))}}}}else{!i&&p()}}var t=!!w.test,s=w.load||w.both,r=w.callback||Y,q=r,p=w.complete||Y,o,g;u(t?w.yep:w.nope,!!s),s&&u(s)}var h,e,c=this.yepnope.loader;if(Z(f)){n(f,0,c,0)}else{if(F(f)){for(h=0;h<f.length;h++){e=f[h],Z(e)?n(e,0,c,0):F(e)?L(e):Object(e)===e&&k(e,c)}}else{Object(f)===f&&k(f,c)}}},L.addPrefix=function(d,c){C[d]=c},L.addFilter=function(b){E.push(b)},L.errorTimeout=10000,ac.readyState==null&&ac.addEventListener&&(ac.readyState="loading",ac.addEventListener("DOMContentLoaded",N=function(){ac.removeEventListener("DOMContentLoaded",N,0),ac.readyState="complete"},0)),ad.yepnope=T(),ad.yepnope.executeStack=W,ad.yepnope.injectJs=function(r,q,p,n,m,h){var g=ac.createElement("script"),f,b,n=n||L.errorTimeout;g.src=r;for(b in p){g.setAttribute(b,p[b])}q=h?W:q||Y,g.onreadystatechange=g.onload=function(){!f&&X(g.readyState)&&(f=1,q(),g.onload=g.onreadystatechange=null)},R(function(){f||(f=1,q(1))},n),m?g.onload():Q.parentNode.insertBefore(g,Q)},ad.yepnope.injectCss=function(b,n,m,l,k,h){var l=ac.createElement("link"),f,n=h?W:n||Y;l.href=b,l.rel="stylesheet",l.type="text/css";for(f in m){l.setAttribute(f,m[f])}k||(Q.parentNode.insertBefore(l,Q),R(n,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("ie8compat",function(){return !window.addEventListener&&document.documentMode&&document.documentMode===7});
2
- /*! http://mths.be/placeholder v2.0.7 by @mathias */
3
- (function(g,i,d){var a="placeholder" in i.createElement("input"),e="placeholder" in i.createElement("textarea"),j=d.fn,c=d.valHooks,l,k;if(a&&e){k=j.placeholder=function(){return this};k.input=k.textarea=true}else{k=j.placeholder=function(){var m=this;m.filter((a?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":b,"blur.placeholder":f}).data("placeholder-enabled",true).trigger("blur.placeholder");return m};k.input=a;k.textarea=e;l={get:function(n){var m=d(n);return m.data("placeholder-enabled")&&m.hasClass("placeholder")?"":n.value},set:function(n,o){var m=d(n);if(!m.data("placeholder-enabled")){return n.value=o}if(o==""){n.value=o;if(n!=i.activeElement){f.call(n)}}else{if(m.hasClass("placeholder")){b.call(n,true,o)||(n.value=o)}else{n.value=o}}return m}};a||(c.input=l);e||(c.textarea=l);d(function(){d(i).delegate("form","submit.placeholder",function(){var m=d(".placeholder",this).each(b);setTimeout(function(){m.each(f)},10)})});d(g).bind("beforeunload.placeholder",function(){d(".placeholder").each(function(){this.value=""})})}function h(n){var m={},o=/^jQuery\d+$/;d.each(n.attributes,function(q,p){if(p.specified&&!o.test(p.name)){m[p.name]=p.value}});return m}function b(n,o){var m=this,p=d(m);if(m.value==p.attr("placeholder")&&p.hasClass("placeholder")){if(p.data("placeholder-password")){p=p.hide().next().show().attr("id",p.removeAttr("id").data("placeholder-id"));if(n===true){return p[0].value=o}p.focus()}else{m.value="";p.removeClass("placeholder");m==i.activeElement&&m.select()}}}function f(){var r,m=this,q=d(m),n=q,p=this.id;if(m.value==""){if(m.type=="password"){if(!q.data("placeholder-textinput")){try{r=q.clone().attr({type:"text"})}catch(o){r=d("<input>").attr(d.extend(h(this),{type:"text"}))}r.removeAttr("name").data({"placeholder-password":true,"placeholder-id":p}).bind("focus.placeholder",b);q.data({"placeholder-textinput":r,"placeholder-id":p}).before(r)}q=q.removeAttr("id").hide().prev().attr("id",p).show()}q.addClass("placeholder");q[0].value=q.attr("placeholder")}else{q.removeClass("placeholder")}}}(this,document,jQuery));(function(a){a.fn.foundationAlerts=function(b){var c=a.extend({callback:a.noop},b);a(".alert-box",this).delegate("a.close","click",function(d){d.preventDefault();a(this).closest(".alert-box").fadeOut(function(e){a(this).remove();c.callback()})})}})(jQuery);(function(a){a.fn.foundationAccordion=function(b){a(".accordion li",this).on("click.fndtn",function(){var c=a(this).children(".content").first();a(".accordion .content").not(c).hide().parent("li").removeClass("active");c.show(0,function(){c.parent("li").addClass("active")})})}})(jQuery);(function(a){a.fn.foundationButtons=function(d){a(".button.disabled",this).on("click.fndtn",function(g){g.preventDefault()});a(".button.dropdown > ul",this).addClass("no-hover");a(".button.dropdown",this).on("click.fndtn",function(g){g.stopPropagation()});a(".button.dropdown.split span",this).on("click.fndtn",function(g){g.preventDefault();a(".button.dropdown",this).not(a(this).parent()).children("ul").removeClass("show-dropdown");a(this).siblings("ul").toggleClass("show-dropdown")});a(".button.dropdown",this).not(".split").on("click.fndtn",function(g){a(".button.dropdown",this).not(this).children("ul").removeClass("show-dropdown");a(this).children("ul").toggleClass("show-dropdown")});a("body, html").on("click.fndtn",function(){a(".button.dropdown ul").removeClass("show-dropdown")});var b=a(".button.dropdown:not(.large):not(.small):not(.tiny)",this).outerHeight()-1,f=a(".button.large.dropdown",this).outerHeight()-1,e=a(".button.small.dropdown",this).outerHeight()-1,c=a(".button.tiny.dropdown",this).outerHeight()-1;a(".button.dropdown:not(.large):not(.small):not(.tiny) > ul",this).css("top",b);a(".button.dropdown.large > ul",this).css("top",f);a(".button.dropdown.small > ul",this).css("top",e);a(".button.dropdown.tiny > ul",this).css("top",c);a(".button.dropdown.up:not(.large):not(.small):not(.tiny) > ul",this).css("top","auto").css("bottom",b-2);a(".button.dropdown.up.large > ul",this).css("top","auto").css("bottom",f-2);a(".button.dropdown.up.small > ul",this).css("top","auto").css("bottom",e-2);a(".button.dropdown.up.tiny > ul",this).css("top","auto").css("bottom",c-2)}})(jQuery);(function(c){var b={bodyHeight:0,targetClass:".has-tip",tooltipClass:".tooltip",tipTemplate:function(d,e){return'<span data-selector="'+d+'" class="'+b.tooltipClass.substring(1)+'">'+e+'<span class="nub"></span></span>'}},a={init:function(d){return this.each(function(){var e=c("body");if(Modernizr.touch){e.on("click.tooltip touchstart.tooltip touchend.tooltip",b.targetClass,function(f){f.preventDefault();c(b.tooltipClass).hide();a.showOrCreateTip(c(this))});e.on("click.tooltip touchstart.tooltip touchend.tooltip",b.tooltipClass,function(f){f.preventDefault();c(this).fadeOut(150)})}else{e.on("mouseover.tooltip mouseout.tooltip",b.targetClass,function(g){var f=c(this);if(g.type==="mouseover"){a.showOrCreateTip(f)}else{if(g.type==="mouseout"){a.hide(f)}}})}})},showOrCreateTip:function(d){var e=a.getTip(d);if(e&&e.length>0){a.show(d)}else{a.create(d)}},getTip:function(e){var d=a.selector(e),f=null;if(d){f=c("span[data-selector="+d+"]"+b.tooltipClass)}return(f.length>0)?f:false},selector:function(d){var f=d.attr("id"),e=d.data("selector");if(f===undefined&&e===undefined){e="tooltip"+Math.random().toString(36).substring(7);d.attr("data-selector",e)}return(f)?f:e},create:function(d){var f=c(b.tipTemplate(a.selector(d),c("<div>").text(d.attr("title")).html())),e=a.inheritable_classes(d);f.addClass(e).appendTo("body");if(Modernizr.touch){f.append('<span class="tap-to-close">tap to close </span>')}d.removeAttr("title");a.show(d)},reposition:function(h,k,f){var d,l,j,g,e,i;k.css("visibility","hidden").show();d=h.data("width");l=k.children(".nub");j=l.outerHeight();g=l.outerWidth();i=function(r,q,n,m,p,o){return r.css({top:q,bottom:m,left:p,right:n,width:(o)?o:"auto"}).end()};i(k,(h.offset().top+h.outerHeight()+10),"auto","auto",h.offset().left,d);i(l,-j,"auto","auto",10);if(c(window).width()<767){e=h.closest(".columns");if(e.length<0){e=c("body")}k.width(e.outerWidth()-25).css("left",15).addClass("tip-override");i(l,-j,"auto","auto",h.offset().left)}else{if(f.indexOf("tip-top")>-1){i(k,(h.offset().top-k.outerHeight()-j),"auto","auto",h.offset().left,d).removeClass("tip-override");i(l,"auto","auto",-j,"auto")}else{if(f.indexOf("tip-left")>-1){i(k,(h.offset().top+(h.outerHeight()/2)-j),"auto","auto",(h.offset().left-k.outerWidth()-10),d).removeClass("tip-override");i(l,(k.outerHeight()/2)-(j/2),-j,"auto","auto")}else{if(f.indexOf("tip-right")>-1){i(k,(h.offset().top+(h.outerHeight()/2)-j),"auto","auto",(h.offset().left+h.outerWidth()+10),d).removeClass("tip-override");i(l,(k.outerHeight()/2)-(j/2),"auto","auto",-j)}}}}k.css("visibility","visible").hide()},inheritable_classes:function(f){var e=["tip-top","tip-left","tip-bottom","tip-right","noradius"],d=f.attr("class").split(" ").map(function(h,g){if(c.inArray(h,e)!==-1){return h}}).join(" ");return c.trim(d)},show:function(d){var e=a.getTip(d);a.reposition(d,e,d.attr("class"));e.fadeIn(150)},hide:function(d){var e=a.getTip(d);e.fadeOut(150)},reload:function(){var d=c(this);return(d.data("tooltips"))?d.tooltips("destroy").tooltips("init"):d.tooltips("init")},destroy:function(){return this.each(function(){c(window).off(".tooltip");c(b.targetClass).off(".tooltip");c(b.tooltipClass).each(function(d){c(c(b.targetClass).get(d)).attr("title",c(this).text())}).remove()})}};c.fn.tooltips=function(d){if(a[d]){return a[d].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof d==="object"||!d){return a.init.apply(this,arguments)}else{c.error("Method "+d+" does not exist on jQuery.tooltips")}}}}(jQuery));(function(d){var c=function(){var f=[],g=null;return{adjust:function(i){var h=this;h.hidden=i.parents().andSelf().filter(":hidden");h.hidden.each(function(){var j=d(this);h.tmp.push(j.attr("style"));j.css({visibility:"hidden",display:"block"})})},reset:function(){var h=this;h.hidden.each(function(k){var j=d(this),l=h.tmp[k];if(l===undefined){j.removeAttr("style")}else{j.attr("style",l)}});h.tmp=[];h.hidden=null}}};jQuery.foundation=jQuery.foundation||{};jQuery.foundation.customForms=jQuery.foundation.customForms||{};d.foundation.customForms.appendCustomMarkup=function(h){var i={disable_class:"js-disable-custom"};h=d.extend(i,h);function g(j,m){var n=d(m).hide(),l=n.attr("type"),k=n.next("span.custom."+l);if(k.length===0){k=d('<span class="custom '+l+'"></span>').insertAfter(n)}k.toggleClass("checked",n.is(":checked"));k.toggleClass("disabled",n.is(":disabled"))}function f(u,l){var x=c();var q=d(l),p=q.next("div.custom.dropdown"),r=p.find("ul"),s=p.find(".current"),w=p.find(".selector"),o=q.find("option"),m=o.filter(":selected"),v=0,t="",k;var j=false;if(q.hasClass("no-custom")){return}if(p.length===0){var n=q.hasClass("small")?"small":q.hasClass("medium")?"medium":q.hasClass("large")?"large":q.hasClass("expand")?"expand":"";p=d('<div class="'+["custom","dropdown",n].join(" ")+'"><a href="#" class="selector"></a><ul /></div>"');w=p.find(".selector");r=p.find("ul");t=d.map(o,function(y){return"<li>"+y.value+"</li>"}).join("");r.append(t);j=p.prepend('<a href="#" class="current">'+m.html()+"</a>").find(".current");q.after(p).hide()}else{t=d.map(o,function(y){return"<li>"+y.value+"</li>"}).join("");r.html("").append(t)}p.toggleClass("disabled",q.is(":disabled"));k=r.find("li");o.each(function(y){if(this.selected){k.eq(y).addClass("selected");if(j){j.html(this.value)}}});r.css("width","inherit");p.css("width","inherit");if(!p.is(".small, .medium, .large, .expand")){p.addClass("open");x.adjust(r);v=(k.outerWidth()>v)?k.outerWidth():v;x.reset();p.removeClass("open");p.width(v+18);r.width(v+16)}}d("form.custom input:radio[data-customforms!=disabled]").each(g);d("form.custom input:checkbox[data-customforms!=disabled]").each(g);d("form.custom select[data-customforms!=disabled]").each(f)};var b=function(f){var g=0,h=f.next();$options=f.find("option");h.find("ul").html("");$options.each(function(){$li=d("<li>"+d(this).html()+"</li>");h.find("ul").append($li)});$options.each(function(i){if(this.selected){h.find("li").eq(i).addClass("selected");h.find(".current").html(d(this).html())}});h.removeAttr("style").find("ul").removeAttr("style");h.find("li").each(function(){h.addClass("open");if(d(this).outerWidth()>g){g=d(this).outerWidth()}h.removeClass("open")});h.css("width",g+18+"px");h.find("ul").css("width",g+16+"px")};var a=function(f){var h=f.prev(),g=h[0];if(false==h.is(":disabled")){g.checked=((g.checked)?false:true);f.toggleClass("checked");h.trigger("change")}};var e=function(f){var h=f.prev(),g=h[0];if(false==h.is(":disabled")){d('input:radio[name="'+h.attr("name")+'"]').each(function(){d(this).next().removeClass("checked")});g.checked=((g.checked)?false:true);f.toggleClass("checked");h.trigger("change")}};d("form.custom span.custom.checkbox").on("click",function(f){f.preventDefault();f.stopPropagation();a(d(this))});d("form.custom span.custom.radio").on("click",function(f){f.preventDefault();f.stopPropagation();e(d(this))});d("form.custom select").on("change",function(f){b(d(this))});d("form.custom label").on("click",function(g){var f=d("#"+d(this).attr("for")),i,h;if(f.length!==0){if(f.attr("type")==="checkbox"){g.preventDefault();i=d(this).find("span.custom.checkbox");a(i)}else{if(f.attr("type")==="radio"){g.preventDefault();h=d(this).find("span.custom.radio");e(h)}}}});d("form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector").live("click",function(g){var i=d(this),h=i.closest("div.custom.dropdown"),f=h.prev();g.preventDefault();d("div.dropdown").removeClass("open");if(false==f.is(":disabled")){h.toggleClass("open");if(h.hasClass("open")){d(document).bind("click.customdropdown",function(j){h.removeClass("open");d(document).unbind(".customdropdown")})}else{d(document).unbind(".customdropdown")}return false}});d("form.custom div.custom.dropdown li").live("click",function(i){var j=d(this),g=j.closest("div.custom.dropdown"),h=g.prev(),f=0;i.preventDefault();i.stopPropagation();d("div.dropdown").removeClass("open");j.closest("ul").find("li").removeClass("selected");j.addClass("selected");g.removeClass("open").find("a.current").html(j.html());j.closest("ul").find("li").each(function(k){if(j[0]==this){f=k}});h[0].selectedIndex=f;h.trigger("change")});d.fn.foundationCustomForms=d.foundation.customForms.appendCustomMarkup})(jQuery);(function(a){a.fn.foundationTabs=function(b){var d=a.extend({callback:a.noop},b);var c=function(g){var f=g.closest("dl").find("dd.active"),e=g.children("a").attr("href")+"Tab";e=e.replace(/^.+#/,"#");f.removeClass("active");g.addClass("active");a(e).closest(".tabs-content").children("li").removeClass("active").hide();a(e).css("display","block").addClass("active")};a("dl.tabs dd a",this).on("click.fndtn",function(e){c(a(this).parent("dd"))});if(window.location.hash){c(a('a[href="'+window.location.hash+'"]').parent("dd"));d.callback()}}})(jQuery);(function(a){a.fn.foundationNavigation=function(c){var b=false;if(Modernizr.touch||navigator.userAgent.match(/Windows Phone/i)){a(".nav-bar a.flyout-toggle",this).on("click.fndtn touchstart.fndtn",function(f){f.preventDefault();var d=a(this).siblings(".flyout").first();if(b===false){a(".nav-bar .flyout").not(d).slideUp(500);d.slideToggle(500,function(){b=false})}b=true});a(".nav-bar>li.has-flyout",this).addClass("is-touch")}else{a(".nav-bar>li.has-flyout",this).hover(function(){a(this).children(".flyout").show()},function(){a(this).children(".flyout").hide()})}}})(jQuery);(function(b){var a=false;b("a[data-reveal-id]").live("click",function(d){d.preventDefault();var c=b(this).attr("data-reveal-id");b("#"+c).reveal(b(this).data())});b.fn.reveal=function(c){var e=b(document),d={animation:"fadeAndPop",animationSpeed:300,closeOnBackgroundClick:true,dismissModalClass:"close-reveal-modal",open:b.noop,opened:b.noop,close:b.noop,closed:b.noop};c=b.extend({},d,c);return this.each(function(){var q=b(this),i=parseInt(q.css("top"),10),l=q.height()+i,k=false,g=b(".reveal-modal-bg"),j={open:{top:0,opacity:0,visibility:"visible",display:"block"},close:{top:i,opacity:1,visibility:"hidden",display:"none"}},f;if(g.length===0){g=b("<div />",{"class":"reveal-modal-bg"}).insertAfter(q);g.fadeTo("fast",0.8)}function m(){k=false}function r(){k=true}function o(){var s=b(".reveal-modal.open");if(s.length===1){a=true;s.trigger("reveal:close")}}function n(){if(!k){r();o();q.addClass("open");if(c.animation==="fadeAndPop"){j.open.top=e.scrollTop()-l;j.open.opacity=0;q.css(j.open);g.fadeIn(c.animationSpeed/2);q.delay(c.animationSpeed/2).animate({top:e.scrollTop()+i+"px",opacity:1},c.animationSpeed,function(){q.trigger("reveal:opened")})}if(c.animation==="fade"){j.open.top=e.scrollTop()+i;j.open.opacity=0;q.css(j.open);g.fadeIn(c.animationSpeed/2);q.delay(c.animationSpeed/2).animate({opacity:1},c.animationSpeed,function(){q.trigger("reveal:opened")})}if(c.animation==="none"){j.open.top=e.scrollTop()+i;j.open.opacity=1;q.css(j.open);g.css({display:"block"});q.trigger("reveal:opened")}}}q.bind("reveal:open.reveal",n);function h(){if(!k){r();q.removeClass("open");if(c.animation==="fadeAndPop"){q.animate({top:e.scrollTop()-l+"px",opacity:0},c.animationSpeed/2,function(){q.css(j.close)});if(!a){g.delay(c.animationSpeed).fadeOut(c.animationSpeed,function(){q.trigger("reveal:closed")})}else{q.trigger("reveal:closed")}a=false}if(c.animation==="fade"){q.animate({opacity:0},c.animationSpeed,function(){q.css(j.close)});if(!a){g.delay(c.animationSpeed).fadeOut(c.animationSpeed,function(){q.trigger("reveal:closed")})}else{q.trigger("reveal:closed")}}if(c.animation==="none"){q.css(j.close);if(!a){g.css({display:"none"})}q.trigger("reveal:closed")}}}function p(){q.unbind(".reveal");g.unbind(".reveal");f.unbind(".reveal");b("body").unbind(".reveal")}q.bind("reveal:close.reveal",h);q.bind("reveal:opened.reveal reveal:closed.reveal",m);q.bind("reveal:closed.reveal",p);q.bind("reveal:open.reveal",c.open);q.bind("reveal:opened.reveal",c.opened);q.bind("reveal:close.reveal",c.close);q.bind("reveal:closed.reveal",c.closed);q.trigger("reveal:open");f=b("."+c.dismissModalClass).bind("click.reveal",function(){q.trigger("reveal:close")});if(c.closeOnBackgroundClick){g.css({cursor:"pointer"});g.bind("click.reveal",function(){q.trigger("reveal:close")})}b("body").bind("keyup.reveal",function(s){if(s.which===27){q.trigger("reveal:close")}})})}}(jQuery));(function(b){b.fn.findFirstImage=function(){return this.first().find("img").andSelf().filter("img").first()};var a={defaults:{animation:"horizontal-push",animationSpeed:600,timer:true,advanceSpeed:4000,pauseOnHover:false,startClockOnMouseOut:false,startClockOnMouseOutAfter:1000,directionalNav:true,directionalNavRightText:"Right",directionalNavLeftText:"Left",captions:true,captionAnimation:"fade",captionAnimationSpeed:600,resetTimerOnClick:false,bullets:false,bulletThumbs:false,bulletThumbLocation:"",afterSlideChange:b.noop,afterLoadComplete:b.noop,fluid:true,centerBullets:true},activeSlide:0,numberSlides:0,orbitWidth:null,orbitHeight:null,locked:null,timerRunning:null,degrees:0,wrapperHTML:'<div class="orbit-wrapper" />',timerHTML:'<div class="timer"><span class="mask"><span class="rotator"></span></span><span class="pause"></span></div>',captionHTML:'<div class="orbit-caption"></div>',directionalNavHTML:'<div class="slider-nav"><span class="right"></span><span class="left"></span></div>',bulletHTML:'<ul class="orbit-bullets"></ul>',init:function(f,e){var c,g=0,d=this;this.clickTimer=b.proxy(this.clickTimer,this);this.addBullet=b.proxy(this.addBullet,this);this.resetAndUnlock=b.proxy(this.resetAndUnlock,this);this.stopClock=b.proxy(this.stopClock,this);this.startTimerAfterMouseLeave=b.proxy(this.startTimerAfterMouseLeave,this);this.clearClockMouseLeaveTimer=b.proxy(this.clearClockMouseLeaveTimer,this);this.rotateTimer=b.proxy(this.rotateTimer,this);this.options=b.extend({},this.defaults,e);if(this.options.timer==="false"){this.options.timer=false}if(this.options.captions==="false"){this.options.captions=false}if(this.options.directionalNav==="false"){this.options.directionalNav=false}this.$element=b(f);this.$wrapper=this.$element.wrap(this.wrapperHTML).parent();this.$slides=this.$element.children("img, a, div");this.$element.bind("orbit.next",function(){d.shift("next")});this.$element.bind("orbit.prev",function(){d.shift("prev")});this.$element.bind("orbit.goto",function(i,h){d.shift(h)});this.$element.bind("orbit.start",function(i,h){d.startClock()});this.$element.bind("orbit.stop",function(i,h){d.stopClock()});c=this.$slides.filter("img");if(c.length===0){this.loaded()}else{c.bind("imageready",function(){g+=1;if(g===c.length){d.loaded()}})}},loaded:function(){this.$element.addClass("orbit").css({width:"1px",height:"1px"});this.$slides.addClass("orbit-slide");this.setDimentionsFromLargestSlide();this.updateOptionsIfOnlyOneSlide();this.setupFirstSlide();if(this.options.timer){this.setupTimer();this.startClock()}if(this.options.captions){this.setupCaptions()}if(this.options.directionalNav){this.setupDirectionalNav()}if(this.options.bullets){this.setupBulletNav();this.setActiveBullet()}this.options.afterLoadComplete.call(this)},currentSlide:function(){return this.$slides.eq(this.activeSlide)},setDimentionsFromLargestSlide:function(){var d=this,c;d.$element.add(d.$wrapper).width(this.$slides.first().outerWidth());d.$element.add(d.$wrapper).height(this.$slides.first().height());d.orbitWidth=this.$slides.first().outerWidth();d.orbitHeight=this.$slides.first().height();c=this.$slides.first().findFirstImage().clone();this.$slides.each(function(){var e=b(this),g=e.outerWidth(),f=e.height();if(g>d.$element.outerWidth()){d.$element.add(d.$wrapper).width(g);d.orbitWidth=d.$element.outerWidth()}if(f>d.$element.height()){d.$element.add(d.$wrapper).height(f);d.orbitHeight=d.$element.height();c=b(this).findFirstImage().clone()}d.numberSlides+=1});if(this.options.fluid){if(typeof this.options.fluid==="string"){c=b('<img src="http://placehold.it/'+this.options.fluid+'" />')}d.$element.prepend(c);c.addClass("fluid-placeholder");d.$element.add(d.$wrapper).css({width:"inherit"});d.$element.add(d.$wrapper).css({height:"inherit"});b(window).bind("resize",function(){d.orbitWidth=d.$element.outerWidth();d.orbitHeight=d.$element.height()})}},lock:function(){this.locked=true},unlock:function(){this.locked=false},updateOptionsIfOnlyOneSlide:function(){if(this.$slides.length===1){this.options.directionalNav=false;this.options.timer=false;this.options.bullets=false}},setupFirstSlide:function(){var c=this;this.$slides.first().css({"z-index":3}).fadeIn(function(){c.$slides.css({display:"block"})})},startClock:function(){var c=this;if(!this.options.timer){return false}if(this.$timer.is(":hidden")){this.clock=setInterval(function(){c.$element.trigger("orbit.next")},this.options.advanceSpeed)}else{this.timerRunning=true;this.$pause.removeClass("active");this.clock=setInterval(this.rotateTimer,this.options.advanceSpeed/180,false)}},rotateTimer:function(d){var c="rotate("+this.degrees+"deg)";this.degrees+=2;this.$rotator.css({"-webkit-transform":c,"-moz-transform":c,"-o-transform":c});if(this.degrees>180){this.$rotator.addClass("move");this.$mask.addClass("move")}if(this.degrees>360||d){this.$rotator.removeClass("move");this.$mask.removeClass("move");this.degrees=0;this.$element.trigger("orbit.next")}},stopClock:function(){if(!this.options.timer){return false}else{this.timerRunning=false;clearInterval(this.clock);this.$pause.addClass("active")}},setupTimer:function(){this.$timer=b(this.timerHTML);this.$wrapper.append(this.$timer);this.$rotator=this.$timer.find(".rotator");this.$mask=this.$timer.find(".mask");this.$pause=this.$timer.find(".pause");this.$timer.click(this.clickTimer);if(this.options.startClockOnMouseOut){this.$wrapper.mouseleave(this.startTimerAfterMouseLeave);this.$wrapper.mouseenter(this.clearClockMouseLeaveTimer)}if(this.options.pauseOnHover){this.$wrapper.mouseenter(this.stopClock)}},startTimerAfterMouseLeave:function(){var c=this;this.outTimer=setTimeout(function(){if(!c.timerRunning){c.startClock()}},this.options.startClockOnMouseOutAfter)},clearClockMouseLeaveTimer:function(){clearTimeout(this.outTimer)},clickTimer:function(){if(!this.timerRunning){this.startClock()}else{this.stopClock()}},setupCaptions:function(){this.$caption=b(this.captionHTML);this.$wrapper.append(this.$caption);this.setCaption()},setCaption:function(){var d=this.currentSlide().attr("data-caption"),c;if(!this.options.captions){return false}if(d){if(b.trim(b(d).text()).length<1){return false}c=b(d).html();this.$caption.attr("id",d).html(c);switch(this.options.captionAnimation){case"none":this.$caption.show();break;case"fade":this.$caption.fadeIn(this.options.captionAnimationSpeed);break;case"slideOpen":this.$caption.slideDown(this.options.captionAnimationSpeed);break}}else{switch(this.options.captionAnimation){case"none":this.$caption.hide();break;case"fade":this.$caption.fadeOut(this.options.captionAnimationSpeed);break;case"slideOpen":this.$caption.slideUp(this.options.captionAnimationSpeed);break}}},setupDirectionalNav:function(){var c=this,d=b(this.directionalNavHTML);d.find(".right").html(this.options.directionalNavRightText);d.find(".left").html(this.options.directionalNavLeftText);this.$wrapper.append(d);this.$wrapper.find(".left").click(function(){c.stopClock();if(c.options.resetTimerOnClick){c.rotateTimer(true);c.startClock()}c.$element.trigger("orbit.prev")});this.$wrapper.find(".right").click(function(){c.stopClock();if(c.options.resetTimerOnClick){c.rotateTimer(true);c.startClock()}c.$element.trigger("orbit.next")})},setupBulletNav:function(){this.$bullets=b(this.bulletHTML);this.$wrapper.append(this.$bullets);this.$slides.each(this.addBullet);this.$element.addClass("with-bullets");if(this.options.centerBullets){this.$bullets.css("margin-left",-this.$bullets.outerWidth()/2)}},addBullet:function(g,e){var d=g+1,h=b("<li>"+(d)+"</li>"),c,f=this;if(this.options.bulletThumbs){c=b(e).attr("data-thumb");if(c){h.addClass("has-thumb").css({background:"url("+this.options.bulletThumbLocation+c+") no-repeat"})}}this.$bullets.append(h);h.data("index",g);h.click(function(){f.stopClock();if(f.options.resetTimerOnClick){f.rotateTimer(true);f.startClock()}f.$element.trigger("orbit.goto",[h.data("index")])})},setActiveBullet:function(){if(!this.options.bullets){return false}else{this.$bullets.find("li").removeClass("active").eq(this.activeSlide).addClass("active")}},resetAndUnlock:function(){this.$slides.eq(this.prevActiveSlide).css({"z-index":1});this.unlock();this.options.afterSlideChange.call(this,this.$slides.eq(this.prevActiveSlide),this.$slides.eq(this.activeSlide))},shift:function(d){var c=d;this.prevActiveSlide=this.activeSlide;if(this.prevActiveSlide==c){return false}if(this.$slides.length=="1"){return false}if(!this.locked){this.lock();if(d=="next"){this.activeSlide++;if(this.activeSlide==this.numberSlides){this.activeSlide=0}}else{if(d=="prev"){this.activeSlide--;if(this.activeSlide<0){this.activeSlide=this.numberSlides-1}}else{this.activeSlide=d;if(this.prevActiveSlide<this.activeSlide){c="next"}else{if(this.prevActiveSlide>this.activeSlide){c="prev"}}}}this.setActiveBullet();this.$slides.eq(this.prevActiveSlide).css({"z-index":2});if(this.options.animation=="fade"){this.$slides.eq(this.activeSlide).css({opacity:0,"z-index":3}).animate({opacity:1},this.options.animationSpeed,this.resetAndUnlock)}if(this.options.animation=="horizontal-slide"){if(c=="next"){this.$slides.eq(this.activeSlide).css({left:this.orbitWidth,"z-index":3}).animate({left:0},this.options.animationSpeed,this.resetAndUnlock)}if(c=="prev"){this.$slides.eq(this.activeSlide).css({left:-this.orbitWidth,"z-index":3}).animate({left:0},this.options.animationSpeed,this.resetAndUnlock)}}if(this.options.animation=="vertical-slide"){if(c=="prev"){this.$slides.eq(this.activeSlide).css({top:this.orbitHeight,"z-index":3}).animate({top:0},this.options.animationSpeed,this.resetAndUnlock)}if(c=="next"){this.$slides.eq(this.activeSlide).css({top:-this.orbitHeight,"z-index":3}).animate({top:0},this.options.animationSpeed,this.resetAndUnlock)}}if(this.options.animation=="horizontal-push"){if(c=="next"){this.$slides.eq(this.activeSlide).css({left:this.orbitWidth,"z-index":3}).animate({left:0},this.options.animationSpeed,this.resetAndUnlock);this.$slides.eq(this.prevActiveSlide).animate({left:-this.orbitWidth},this.options.animationSpeed)}if(c=="prev"){this.$slides.eq(this.activeSlide).css({left:-this.orbitWidth,"z-index":3}).animate({left:0},this.options.animationSpeed,this.resetAndUnlock);this.$slides.eq(this.prevActiveSlide).animate({left:this.orbitWidth},this.options.animationSpeed)}}if(this.options.animation=="vertical-push"){if(c=="next"){this.$slides.eq(this.activeSlide).css({top:-this.orbitHeight,"z-index":3}).animate({top:0},this.options.animationSpeed,this.resetAndUnlock);this.$slides.eq(this.prevActiveSlide).animate({top:this.orbitHeight},this.options.animationSpeed)}if(c=="prev"){this.$slides.eq(this.activeSlide).css({top:this.orbitHeight,"z-index":3}).animate({top:0},this.options.animationSpeed,this.resetAndUnlock);this.$slides.eq(this.prevActiveSlide).animate({top:-this.orbitHeight},this.options.animationSpeed)}}this.setCaption()}}};b.fn.orbit=function(c){return this.each(function(){var d=b.extend({},a);d.init(this,c)})}})(jQuery);
4
- /*!
5
- * jQuery imageready Plugin
6
- * http://www.zurb.com/playground/
7
- *
8
- * Copyright 2011, ZURB
9
- * Released under the MIT License
10
- */
11
- (function(c){var b={};c.event.special.imageready={setup:function(f,e,d){b=f||b},add:function(d){var e=c(this),f;if(this.nodeType===1&&this.tagName.toLowerCase()==="img"&&this.src!==""){if(b.forceLoad){f=e.attr("src");e.attr("src","");a(this,d.handler);e.attr("src",f)}else{if(this.complete||this.readyState===4){d.handler.apply(this,arguments)}else{a(this,d.handler)}}}},teardown:function(d){c(this).unbind(".imageready")}};function a(d,f){var e=c(d);e.bind("load.imageready",function(){f.apply(d,arguments);e.unbind("load.imageready")})}}(jQuery));