uikit2-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.travis.yml +4 -0
  4. data/Gemfile +4 -0
  5. data/README.md +66 -0
  6. data/Rakefile +1 -0
  7. data/bin/console +14 -0
  8. data/bin/setup +7 -0
  9. data/lib/uikit2/rails.rb +8 -0
  10. data/lib/uikit2/rails/version.rb +5 -0
  11. data/uikit2-rails.gemspec +25 -0
  12. data/vendor/assets/fonts/FontAwesome.otf +0 -0
  13. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  14. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  15. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  16. data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
  17. data/vendor/assets/javascripts/uikit.js +3537 -0
  18. data/vendor/assets/javascripts/uikit/components/accordion.js +172 -0
  19. data/vendor/assets/javascripts/uikit/components/accordion.min.js +2 -0
  20. data/vendor/assets/javascripts/uikit/components/autocomplete.js +334 -0
  21. data/vendor/assets/javascripts/uikit/components/autocomplete.min.js +2 -0
  22. data/vendor/assets/javascripts/uikit/components/datepicker.js +3166 -0
  23. data/vendor/assets/javascripts/uikit/components/datepicker.min.js +3 -0
  24. data/vendor/assets/javascripts/uikit/components/form-password.js +67 -0
  25. data/vendor/assets/javascripts/uikit/components/form-password.min.js +2 -0
  26. data/vendor/assets/javascripts/uikit/components/form-select.js +70 -0
  27. data/vendor/assets/javascripts/uikit/components/form-select.min.js +2 -0
  28. data/vendor/assets/javascripts/uikit/components/grid.js +523 -0
  29. data/vendor/assets/javascripts/uikit/components/grid.min.js +2 -0
  30. data/vendor/assets/javascripts/uikit/components/htmleditor.js +623 -0
  31. data/vendor/assets/javascripts/uikit/components/htmleditor.min.js +2 -0
  32. data/vendor/assets/javascripts/uikit/components/lightbox.js +555 -0
  33. data/vendor/assets/javascripts/uikit/components/lightbox.min.js +2 -0
  34. data/vendor/assets/javascripts/uikit/components/nestable.js +638 -0
  35. data/vendor/assets/javascripts/uikit/components/nestable.min.js +2 -0
  36. data/vendor/assets/javascripts/uikit/components/notify.js +189 -0
  37. data/vendor/assets/javascripts/uikit/components/notify.min.js +2 -0
  38. data/vendor/assets/javascripts/uikit/components/pagination.js +147 -0
  39. data/vendor/assets/javascripts/uikit/components/pagination.min.js +2 -0
  40. data/vendor/assets/javascripts/uikit/components/parallax.js +417 -0
  41. data/vendor/assets/javascripts/uikit/components/parallax.min.js +2 -0
  42. data/vendor/assets/javascripts/uikit/components/search.js +92 -0
  43. data/vendor/assets/javascripts/uikit/components/search.min.js +2 -0
  44. data/vendor/assets/javascripts/uikit/components/slider.js +520 -0
  45. data/vendor/assets/javascripts/uikit/components/slider.min.js +2 -0
  46. data/vendor/assets/javascripts/uikit/components/slideset.js +502 -0
  47. data/vendor/assets/javascripts/uikit/components/slideset.min.js +2 -0
  48. data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +375 -0
  49. data/vendor/assets/javascripts/uikit/components/slideshow-fx.min.js +2 -0
  50. data/vendor/assets/javascripts/uikit/components/slideshow.js +545 -0
  51. data/vendor/assets/javascripts/uikit/components/slideshow.min.js +2 -0
  52. data/vendor/assets/javascripts/uikit/components/sortable.js +664 -0
  53. data/vendor/assets/javascripts/uikit/components/sortable.min.js +2 -0
  54. data/vendor/assets/javascripts/uikit/components/sticky.js +349 -0
  55. data/vendor/assets/javascripts/uikit/components/sticky.min.js +2 -0
  56. data/vendor/assets/javascripts/uikit/components/timepicker.js +192 -0
  57. data/vendor/assets/javascripts/uikit/components/timepicker.min.js +2 -0
  58. data/vendor/assets/javascripts/uikit/components/tooltip.js +234 -0
  59. data/vendor/assets/javascripts/uikit/components/tooltip.min.js +2 -0
  60. data/vendor/assets/javascripts/uikit/components/upload.js +260 -0
  61. data/vendor/assets/javascripts/uikit/components/upload.min.js +2 -0
  62. data/vendor/assets/javascripts/uikit/core/alert.js +66 -0
  63. data/vendor/assets/javascripts/uikit/core/alert.min.js +2 -0
  64. data/vendor/assets/javascripts/uikit/core/button.js +157 -0
  65. data/vendor/assets/javascripts/uikit/core/button.min.js +2 -0
  66. data/vendor/assets/javascripts/uikit/core/core.js +725 -0
  67. data/vendor/assets/javascripts/uikit/core/core.min.js +2 -0
  68. data/vendor/assets/javascripts/uikit/core/cover.js +95 -0
  69. data/vendor/assets/javascripts/uikit/core/cover.min.js +2 -0
  70. data/vendor/assets/javascripts/uikit/core/dropdown.js +421 -0
  71. data/vendor/assets/javascripts/uikit/core/dropdown.min.js +2 -0
  72. data/vendor/assets/javascripts/uikit/core/grid.js +114 -0
  73. data/vendor/assets/javascripts/uikit/core/grid.min.js +2 -0
  74. data/vendor/assets/javascripts/uikit/core/modal.js +372 -0
  75. data/vendor/assets/javascripts/uikit/core/modal.min.js +2 -0
  76. data/vendor/assets/javascripts/uikit/core/nav.js +136 -0
  77. data/vendor/assets/javascripts/uikit/core/nav.min.js +2 -0
  78. data/vendor/assets/javascripts/uikit/core/offcanvas.js +180 -0
  79. data/vendor/assets/javascripts/uikit/core/offcanvas.min.js +2 -0
  80. data/vendor/assets/javascripts/uikit/core/scrollspy.js +208 -0
  81. data/vendor/assets/javascripts/uikit/core/scrollspy.min.js +2 -0
  82. data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +62 -0
  83. data/vendor/assets/javascripts/uikit/core/smooth-scroll.min.js +2 -0
  84. data/vendor/assets/javascripts/uikit/core/switcher.js +304 -0
  85. data/vendor/assets/javascripts/uikit/core/switcher.min.js +2 -0
  86. data/vendor/assets/javascripts/uikit/core/tab.js +165 -0
  87. data/vendor/assets/javascripts/uikit/core/tab.min.js +2 -0
  88. data/vendor/assets/javascripts/uikit/core/toggle.js +120 -0
  89. data/vendor/assets/javascripts/uikit/core/toggle.min.js +2 -0
  90. data/vendor/assets/javascripts/uikit/core/touch.js +173 -0
  91. data/vendor/assets/javascripts/uikit/core/touch.min.js +2 -0
  92. data/vendor/assets/javascripts/uikit/core/utility.js +239 -0
  93. data/vendor/assets/javascripts/uikit/core/utility.min.js +2 -0
  94. data/vendor/assets/stylesheets/uikit.almost-flat.css +8551 -0
  95. data/vendor/assets/stylesheets/uikit.css +8252 -0
  96. data/vendor/assets/stylesheets/uikit.gradient.css +8614 -0
  97. data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.css +39 -0
  98. data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.min.css +2 -0
  99. data/vendor/assets/stylesheets/uikit/components/accordion.css +37 -0
  100. data/vendor/assets/stylesheets/uikit/components/accordion.gradient.css +39 -0
  101. data/vendor/assets/stylesheets/uikit/components/accordion.gradient.min.css +2 -0
  102. data/vendor/assets/stylesheets/uikit/components/accordion.min.css +2 -0
  103. data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.css +52 -0
  104. data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.min.css +2 -0
  105. data/vendor/assets/stylesheets/uikit/components/autocomplete.css +50 -0
  106. data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.css +52 -0
  107. data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.min.css +2 -0
  108. data/vendor/assets/stylesheets/uikit/components/autocomplete.min.css +2 -0
  109. data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.css +129 -0
  110. data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.min.css +2 -0
  111. data/vendor/assets/stylesheets/uikit/components/datepicker.css +123 -0
  112. data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.css +139 -0
  113. data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.min.css +2 -0
  114. data/vendor/assets/stylesheets/uikit/components/datepicker.min.css +2 -0
  115. data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.css +128 -0
  116. data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.min.css +2 -0
  117. data/vendor/assets/stylesheets/uikit/components/dotnav.css +124 -0
  118. data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.css +128 -0
  119. data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.min.css +2 -0
  120. data/vendor/assets/stylesheets/uikit/components/dotnav.min.css +2 -0
  121. data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.css +78 -0
  122. data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.min.css +2 -0
  123. data/vendor/assets/stylesheets/uikit/components/form-advanced.css +78 -0
  124. data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.css +78 -0
  125. data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.min.css +2 -0
  126. data/vendor/assets/stylesheets/uikit/components/form-advanced.min.css +2 -0
  127. data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.css +34 -0
  128. data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.min.css +2 -0
  129. data/vendor/assets/stylesheets/uikit/components/form-file.css +34 -0
  130. data/vendor/assets/stylesheets/uikit/components/form-file.gradient.css +34 -0
  131. data/vendor/assets/stylesheets/uikit/components/form-file.gradient.min.css +2 -0
  132. data/vendor/assets/stylesheets/uikit/components/form-file.min.css +2 -0
  133. data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.css +34 -0
  134. data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.min.css +2 -0
  135. data/vendor/assets/stylesheets/uikit/components/form-password.css +34 -0
  136. data/vendor/assets/stylesheets/uikit/components/form-password.gradient.css +34 -0
  137. data/vendor/assets/stylesheets/uikit/components/form-password.gradient.min.css +2 -0
  138. data/vendor/assets/stylesheets/uikit/components/form-password.min.css +2 -0
  139. data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.css +35 -0
  140. data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.min.css +2 -0
  141. data/vendor/assets/stylesheets/uikit/components/form-select.css +35 -0
  142. data/vendor/assets/stylesheets/uikit/components/form-select.gradient.css +35 -0
  143. data/vendor/assets/stylesheets/uikit/components/form-select.gradient.min.css +2 -0
  144. data/vendor/assets/stylesheets/uikit/components/form-select.min.css +2 -0
  145. data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.css +222 -0
  146. data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.min.css +2 -0
  147. data/vendor/assets/stylesheets/uikit/components/htmleditor.css +164 -0
  148. data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.css +229 -0
  149. data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.min.css +2 -0
  150. data/vendor/assets/stylesheets/uikit/components/htmleditor.min.css +2 -0
  151. data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.css +135 -0
  152. data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.min.css +2 -0
  153. data/vendor/assets/stylesheets/uikit/components/nestable.css +132 -0
  154. data/vendor/assets/stylesheets/uikit/components/nestable.gradient.css +139 -0
  155. data/vendor/assets/stylesheets/uikit/components/nestable.gradient.min.css +2 -0
  156. data/vendor/assets/stylesheets/uikit/components/nestable.min.css +2 -0
  157. data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.css +98 -0
  158. data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.min.css +2 -0
  159. data/vendor/assets/stylesheets/uikit/components/notify.css +92 -0
  160. data/vendor/assets/stylesheets/uikit/components/notify.gradient.css +98 -0
  161. data/vendor/assets/stylesheets/uikit/components/notify.gradient.min.css +2 -0
  162. data/vendor/assets/stylesheets/uikit/components/notify.min.css +2 -0
  163. data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.css +29 -0
  164. data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.min.css +2 -0
  165. data/vendor/assets/stylesheets/uikit/components/placeholder.css +29 -0
  166. data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.css +29 -0
  167. data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.min.css +2 -0
  168. data/vendor/assets/stylesheets/uikit/components/placeholder.min.css +2 -0
  169. data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.css +104 -0
  170. data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.min.css +2 -0
  171. data/vendor/assets/stylesheets/uikit/components/progress.css +94 -0
  172. data/vendor/assets/stylesheets/uikit/components/progress.gradient.css +112 -0
  173. data/vendor/assets/stylesheets/uikit/components/progress.gradient.min.css +2 -0
  174. data/vendor/assets/stylesheets/uikit/components/progress.min.css +2 -0
  175. data/vendor/assets/stylesheets/uikit/components/search.almost-flat.css +191 -0
  176. data/vendor/assets/stylesheets/uikit/components/search.almost-flat.min.css +2 -0
  177. data/vendor/assets/stylesheets/uikit/components/search.css +189 -0
  178. data/vendor/assets/stylesheets/uikit/components/search.gradient.css +191 -0
  179. data/vendor/assets/stylesheets/uikit/components/search.gradient.min.css +2 -0
  180. data/vendor/assets/stylesheets/uikit/components/search.min.css +2 -0
  181. data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.css +98 -0
  182. data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.min.css +2 -0
  183. data/vendor/assets/stylesheets/uikit/components/slidenav.css +98 -0
  184. data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.css +98 -0
  185. data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.min.css +2 -0
  186. data/vendor/assets/stylesheets/uikit/components/slidenav.min.css +2 -0
  187. data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.css +85 -0
  188. data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.min.css +2 -0
  189. data/vendor/assets/stylesheets/uikit/components/slider.css +85 -0
  190. data/vendor/assets/stylesheets/uikit/components/slider.gradient.css +85 -0
  191. data/vendor/assets/stylesheets/uikit/components/slider.gradient.min.css +2 -0
  192. data/vendor/assets/stylesheets/uikit/components/slider.min.css +2 -0
  193. data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.css +140 -0
  194. data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.min.css +2 -0
  195. data/vendor/assets/stylesheets/uikit/components/slideshow.css +140 -0
  196. data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.css +140 -0
  197. data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.min.css +2 -0
  198. data/vendor/assets/stylesheets/uikit/components/slideshow.min.css +2 -0
  199. data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.css +62 -0
  200. data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.min.css +2 -0
  201. data/vendor/assets/stylesheets/uikit/components/sortable.css +62 -0
  202. data/vendor/assets/stylesheets/uikit/components/sortable.gradient.css +62 -0
  203. data/vendor/assets/stylesheets/uikit/components/sortable.gradient.min.css +2 -0
  204. data/vendor/assets/stylesheets/uikit/components/sortable.min.css +2 -0
  205. data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.css +31 -0
  206. data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.min.css +2 -0
  207. data/vendor/assets/stylesheets/uikit/components/sticky.css +31 -0
  208. data/vendor/assets/stylesheets/uikit/components/sticky.gradient.css +31 -0
  209. data/vendor/assets/stylesheets/uikit/components/sticky.gradient.min.css +2 -0
  210. data/vendor/assets/stylesheets/uikit/components/sticky.min.css +2 -0
  211. data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.css +118 -0
  212. data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.min.css +2 -0
  213. data/vendor/assets/stylesheets/uikit/components/tooltip.css +116 -0
  214. data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.css +118 -0
  215. data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.min.css +2 -0
  216. data/vendor/assets/stylesheets/uikit/components/tooltip.min.css +2 -0
  217. data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.css +10 -0
  218. data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.min.css +2 -0
  219. data/vendor/assets/stylesheets/uikit/components/upload.css +10 -0
  220. data/vendor/assets/stylesheets/uikit/components/upload.gradient.css +10 -0
  221. data/vendor/assets/stylesheets/uikit/components/upload.gradient.min.css +2 -0
  222. data/vendor/assets/stylesheets/uikit/components/upload.min.css +2 -0
  223. metadata +295 -0
@@ -0,0 +1,2 @@
1
+ /*! UIkit 2.22.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
+ !function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-parallax",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(e,a,r){var n,i,o,s,c,p,l,d=new Image;return i=e.element.css({"background-size":"cover","background-repeat":"no-repeat"}),n=i.css("background-image").replace(/^url\(/g,"").replace(/\)$/g,"").replace(/("|')/g,""),s=function(){var t=i.width(),n=i.height(),o="bg"==a?r.diff:r.diff/100*n;n+=o,t+=Math.ceil(o*c),n>t/c?(p=Math.ceil(n*c),l=n):(p=t,l=Math.ceil(t/c)),e.element.css({"background-size":p+"px "+l+"px"})},d.onerror=function(){},d.onload=function(){o={w:d.width,height:d.height},c=d.width/d.height,t.$win.on("load resize orientationchange",t.Utils.debounce(function(){s()},50)),s()},d.src=n,!0}function a(t,e,a){return t=n(t),e=n(e),a=a||0,r(t,e,a)}function r(t,e,a){var r="rgba("+parseInt(t[0]+a*(e[0]-t[0]),10)+","+parseInt(t[1]+a*(e[1]-t[1]),10)+","+parseInt(t[2]+a*(e[2]-t[2]),10)+","+(t&&e?parseFloat(t[3]+a*(e[3]-t[3])):1);return r+=")"}function n(t){var e,a;return a=(e=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),1]:(e=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(t))?[17*parseInt(e[1],16),17*parseInt(e[2],16),17*parseInt(e[3],16),1]:(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),1]:(e=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(t))?[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]:l[t]||[255,255,255,0]}var i=[],o=!1,s=0,c=window.innerHeight,p=function(){s=t.$win.scrollTop(),window.requestAnimationFrame.apply(window,[function(){for(var t=0;t<i.length;t++)i[t].process()}])};t.component("parallax",{defaults:{velocity:.5,target:!1,viewport:!1,media:!1},boot:function(){o=function(){var t,e=document.createElement("div"),a={WebkitTransform:"-webkit-transform",MSTransform:"-ms-transform",MozTransform:"-moz-transform",Transform:"transform"};document.body.insertBefore(e,null);for(var r in a)void 0!==e.style[r]&&(e.style[r]="translate3d(1px,1px,1px)",t=window.getComputedStyle(e).getPropertyValue(a[r]));return document.body.removeChild(e),void 0!==t&&t.length>0&&"none"!==t}(),t.$doc.on("scrolling.uk.document",p),t.$win.on("load resize orientationchange",t.Utils.debounce(function(){c=window.innerHeight,p()},50)),t.ready(function(e){t.$("[data-uk-parallax]",e).each(function(){var e=t.$(this);e.data("parallax")||t.parallax(e,t.Utils.options(e.attr("data-uk-parallax")))})})},init:function(){this.base=this.options.target?t.$(this.options.target):this.element,this.props={},this.velocity=this.options.velocity||1;var e=["target","velocity","viewport","plugins","media"];Object.keys(this.options).forEach(function(t){if(-1===e.indexOf(t)){var a,r,n,i,o=String(this.options[t]).split(",");t.match(/color/i)?(a=o[1]?o[0]:this._getStartValue(t),r=o[1]?o[1]:o[0],a||(a="rgba(255,255,255,0)")):(a=parseFloat(o[1]?o[0]:this._getStartValue(t)),r=parseFloat(o[1]?o[1]:o[0]),i=r>a?r-a:a-r,n=r>a?1:-1),this.props[t]={start:a,end:r,dir:n,diff:i}}}.bind(this)),i.push(this)},process:function(){if(this.options.media)switch(typeof this.options.media){case"number":if(window.innerWidth<this.options.media)return!1;break;case"string":if(window.matchMedia&&!window.matchMedia(this.options.media).matches)return!1}var t=this.percentageInViewport();this.options.viewport!==!1&&(t=0===this.options.viewport?1:t/this.options.viewport),this.update(t)},percentageInViewport:function(){var t,e,a,r=this.base.offset().top,n=this.base.outerHeight();return r>s+c?a=0:s>r+n?a=1:c>r+n?a=(c>s?s:s-c)/(r+n):(t=s+c-r,e=Math.round(t/((c+n)/100)),a=e/100),a},update:function(t){var r,n,i={transform:""},s=t*(1-(this.velocity-this.velocity*t));0>s&&(s=0),s>1&&(s=1),(void 0===this._percent||this._percent!=s)&&(Object.keys(this.props).forEach(function(c){switch(r=this.props[c],0===t?n=r.start:1===t?n=r.end:void 0!==r.diff&&(n=r.start+r.diff*s*r.dir),"bg"!=c&&"bgp"!=c||this._bgcover||(this._bgcover=e(this,c,r)),c){case"x":i.transform+=o?" translate3d("+n+"px, 0, 0)":" translateX("+n+"px)";break;case"xp":i.transform+=o?" translate3d("+n+"%, 0, 0)":" translateX("+n+"%)";break;case"y":i.transform+=o?" translate3d(0, "+n+"px, 0)":" translateY("+n+"px)";break;case"yp":i.transform+=o?" translate3d(0, "+n+"%, 0)":" translateY("+n+"%)";break;case"rotate":i.transform+=" rotate("+n+"deg)";break;case"scale":i.transform+=" scale("+n+")";break;case"bg":i["background-position"]="50% "+n+"px";break;case"bgp":i["background-position"]="50% "+n+"%";break;case"color":case"background-color":case"border-color":i[c]=a(r.start,r.end,s);break;default:i[c]=n}}.bind(this)),this.element.css(i),this._percent=s)},_getStartValue:function(t){var e=0;switch(t){case"scale":e=1;break;default:e=this.element.css(t)}return e||0}});var l={black:[0,0,0,1],blue:[0,0,255,1],brown:[165,42,42,1],cyan:[0,255,255,1],fuchsia:[255,0,255,1],gold:[255,215,0,1],green:[0,128,0,1],indigo:[75,0,130,1],khaki:[240,230,140,1],lime:[0,255,0,1],magenta:[255,0,255,1],maroon:[128,0,0,1],navy:[0,0,128,1],olive:[128,128,0,1],orange:[255,165,0,1],pink:[255,192,203,1],purple:[128,0,128,1],violet:[128,0,128,1],red:[255,0,0,1],silver:[192,192,192,1],white:[255,255,255,1],yellow:[255,255,0,1],transparent:[255,255,255,0]};return t.parallax});
@@ -0,0 +1,92 @@
1
+ /*! UIkit 2.22.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
+ (function(addon) {
3
+
4
+ var component;
5
+
6
+ if (window.UIkit) {
7
+ component = addon(UIkit);
8
+ }
9
+
10
+ if (typeof define == "function" && define.amd) {
11
+ define("uikit-search", ["uikit"], function(){
12
+ return component || addon(UIkit);
13
+ });
14
+ }
15
+
16
+ })(function(UI){
17
+
18
+ "use strict";
19
+
20
+ UI.component('search', {
21
+ defaults: {
22
+ msgResultsHeader : 'Search Results',
23
+ msgMoreResults : 'More Results',
24
+ msgNoResults : 'No results found',
25
+ template : '<ul class="uk-nav uk-nav-search uk-autocomplete-results">\
26
+ {{#msgResultsHeader}}<li class="uk-nav-header uk-skip">{{msgResultsHeader}}</li>{{/msgResultsHeader}}\
27
+ {{#items && items.length}}\
28
+ {{~items}}\
29
+ <li data-url="{{!$item.url}}">\
30
+ <a href="{{!$item.url}}">\
31
+ {{{$item.title}}}\
32
+ {{#$item.text}}<div>{{{$item.text}}}</div>{{/$item.text}}\
33
+ </a>\
34
+ </li>\
35
+ {{/items}}\
36
+ {{#msgMoreResults}}\
37
+ <li class="uk-nav-divider uk-skip"></li>\
38
+ <li class="uk-search-moreresults" data-moreresults="true"><a href="#" onclick="jQuery(this).closest(\'form\').submit();">{{msgMoreResults}}</a></li>\
39
+ {{/msgMoreResults}}\
40
+ {{/end}}\
41
+ {{^items.length}}\
42
+ {{#msgNoResults}}<li class="uk-skip"><a>{{msgNoResults}}</a></li>{{/msgNoResults}}\
43
+ {{/end}}\
44
+ </ul>',
45
+
46
+ renderer: function(data) {
47
+
48
+ var opts = this.options;
49
+
50
+ this.dropdown.append(this.template({"items":data.results || [], "msgResultsHeader":opts.msgResultsHeader, "msgMoreResults": opts.msgMoreResults, "msgNoResults": opts.msgNoResults}));
51
+ this.show();
52
+ }
53
+ },
54
+
55
+ boot: function() {
56
+
57
+ // init code
58
+ UI.$html.on("focus.search.uikit", "[data-uk-search]", function(e) {
59
+ var ele =UI.$(this);
60
+
61
+ if (!ele.data("search")) {
62
+ UI.search(ele, UI.Utils.options(ele.attr("data-uk-search")));
63
+ }
64
+ });
65
+ },
66
+
67
+ init: function() {
68
+ var $this = this;
69
+
70
+ this.autocomplete = UI.autocomplete(this.element, this.options);
71
+
72
+ this.autocomplete.dropdown.addClass('uk-dropdown-search');
73
+
74
+ this.autocomplete.input.on("keyup", function(){
75
+ $this.element[$this.autocomplete.input.val() ? "addClass":"removeClass"]("uk-active");
76
+ }).closest("form").on("reset", function(){
77
+ $this.value="";
78
+ $this.element.removeClass("uk-active");
79
+ });
80
+
81
+ this.on('selectitem.uk.autocomplete', function(e, data) {
82
+ if (data.url) {
83
+ location.href = data.url;
84
+ } else if(data.moreresults) {
85
+ $this.autocomplete.input.closest('form').submit();
86
+ }
87
+ });
88
+
89
+ this.element.data("search", this);
90
+ }
91
+ });
92
+ });
@@ -0,0 +1,2 @@
1
+ /*! UIkit 2.22.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
+ !function(e){var s;window.UIkit&&(s=e(UIkit)),"function"==typeof define&&define.amd&&define("uikit-search",["uikit"],function(){return s||e(UIkit)})}(function(e){"use strict";e.component("search",{defaults:{msgResultsHeader:"Search Results",msgMoreResults:"More Results",msgNoResults:"No results found",template:'<ul class="uk-nav uk-nav-search uk-autocomplete-results"> {{#msgResultsHeader}}<li class="uk-nav-header uk-skip">{{msgResultsHeader}}</li>{{/msgResultsHeader}} {{#items && items.length}} {{~items}} <li data-url="{{!$item.url}}"> <a href="{{!$item.url}}"> {{{$item.title}}} {{#$item.text}}<div>{{{$item.text}}}</div>{{/$item.text}} </a> </li> {{/items}} {{#msgMoreResults}} <li class="uk-nav-divider uk-skip"></li> <li class="uk-search-moreresults" data-moreresults="true"><a href="#" onclick="jQuery(this).closest(\'form\').submit();">{{msgMoreResults}}</a></li> {{/msgMoreResults}} {{/end}} {{^items.length}} {{#msgNoResults}}<li class="uk-skip"><a>{{msgNoResults}}</a></li>{{/msgNoResults}} {{/end}} </ul>',renderer:function(e){var s=this.options;this.dropdown.append(this.template({items:e.results||[],msgResultsHeader:s.msgResultsHeader,msgMoreResults:s.msgMoreResults,msgNoResults:s.msgNoResults})),this.show()}},boot:function(){e.$html.on("focus.search.uikit","[data-uk-search]",function(){var s=e.$(this);s.data("search")||e.search(s,e.Utils.options(s.attr("data-uk-search")))})},init:function(){var s=this;this.autocomplete=e.autocomplete(this.element,this.options),this.autocomplete.dropdown.addClass("uk-dropdown-search"),this.autocomplete.input.on("keyup",function(){s.element[s.autocomplete.input.val()?"addClass":"removeClass"]("uk-active")}).closest("form").on("reset",function(){s.value="",s.element.removeClass("uk-active")}),this.on("selectitem.uk.autocomplete",function(e,t){t.url?location.href=t.url:t.moreresults&&s.autocomplete.input.closest("form").submit()}),this.element.data("search",this)}})});
@@ -0,0 +1,520 @@
1
+ /*! UIkit 2.22.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
+ (function(addon) {
3
+
4
+ var component;
5
+
6
+ if (window.UIkit) {
7
+ component = addon(UIkit);
8
+ }
9
+
10
+ if (typeof define == "function" && define.amd) {
11
+ define("uikit-slider", ["uikit"], function(){
12
+ return component || addon(UIkit);
13
+ });
14
+ }
15
+
16
+ })(function(UI){
17
+
18
+ "use strict";
19
+
20
+ var dragging, delayIdle, anchor, dragged, store = {};
21
+
22
+ UI.component('slider', {
23
+
24
+ defaults: {
25
+ center : false,
26
+ threshold : 10,
27
+ infinite : true,
28
+ autoplay : false,
29
+ autoplayInterval : 7000,
30
+ pauseOnHover : true,
31
+ activecls : 'uk-active'
32
+ },
33
+
34
+ boot: function() {
35
+
36
+ // init code
37
+ UI.ready(function(context) {
38
+
39
+ setTimeout(function(){
40
+
41
+ UI.$("[data-uk-slider]", context).each(function(){
42
+
43
+ var ele = UI.$(this);
44
+
45
+ if (!ele.data("slider")) {
46
+ UI.slider(ele, UI.Utils.options(ele.attr('data-uk-slider')));
47
+ }
48
+ });
49
+
50
+ }, 0);
51
+ });
52
+ },
53
+
54
+ init: function() {
55
+
56
+ var $this = this;
57
+
58
+ this.container = this.element.find('.uk-slider');
59
+ this.focus = 0;
60
+
61
+ UI.$win.on("resize load", UI.Utils.debounce(function() {
62
+ $this.resize(true);
63
+ }, 100));
64
+
65
+ this.on("click.uikit.slider", '[data-uk-slider-item]', function(e) {
66
+
67
+ e.preventDefault();
68
+
69
+ var item = UI.$(this).attr('data-uk-slider-item');
70
+
71
+ if ($this.focus == item) return;
72
+
73
+ // stop autoplay
74
+ $this.stop();
75
+
76
+ switch(item) {
77
+ case 'next':
78
+ case 'previous':
79
+ $this[item=='next' ? 'next':'previous']();
80
+ break;
81
+ default:
82
+ $this.updateFocus(parseInt(item, 10));
83
+ }
84
+ });
85
+
86
+ this.container.on({
87
+ 'touchstart mousedown': function(evt) {
88
+
89
+ if (evt.originalEvent && evt.originalEvent.touches) {
90
+ evt = evt.originalEvent.touches[0];
91
+ }
92
+
93
+ // ignore right click button
94
+ if (evt.button && evt.button==2 || !$this.active) {
95
+ return;
96
+ }
97
+
98
+ // stop autoplay
99
+ $this.stop();
100
+
101
+ anchor = UI.$(evt.target).is('a') ? UI.$(evt.target) : UI.$(evt.target).parents('a:first');
102
+ dragged = false;
103
+
104
+ if (anchor.length) {
105
+
106
+ anchor.one('click', function(e){
107
+ if (dragged) e.preventDefault();
108
+ });
109
+ }
110
+
111
+ delayIdle = function(e) {
112
+
113
+ dragged = true;
114
+ dragging = $this;
115
+ store = {
116
+ touchx : parseInt(e.pageX, 10),
117
+ dir : 1,
118
+ focus : $this.focus,
119
+ base : $this.options.center ? 'center':'area'
120
+ };
121
+
122
+ if (e.originalEvent && e.originalEvent.touches) {
123
+ e = e.originalEvent.touches[0];
124
+ }
125
+
126
+ dragging.element.data({
127
+ 'pointer-start': {x: parseInt(e.pageX, 10), y: parseInt(e.pageY, 10)},
128
+ 'pointer-pos-start': $this.pos
129
+ });
130
+
131
+ $this.container.addClass('uk-drag');
132
+
133
+ delayIdle = false;
134
+ };
135
+
136
+ delayIdle.x = parseInt(evt.pageX, 10);
137
+ delayIdle.threshold = $this.options.threshold;
138
+
139
+ },
140
+ mouseenter: function() { if ($this.options.pauseOnHover) $this.hovering = true; },
141
+ mouseleave: function() { $this.hovering = false; }
142
+ });
143
+
144
+ this.resize(true);
145
+
146
+ this.on('display.uk.check', function(){
147
+ if ($this.element.is(":visible")) {
148
+ $this.resize(true);
149
+ }
150
+ });
151
+
152
+ // prevent dragging links + images
153
+ this.element.find('a,img').attr('draggable', 'false');
154
+
155
+ // Set autoplay
156
+ if (this.options.autoplay) {
157
+ this.start();
158
+ }
159
+
160
+ },
161
+
162
+ resize: function(focus) {
163
+
164
+ var $this = this, pos = 0, maxheight = 0, item, width, cwidth, size;
165
+
166
+ this.items = this.container.children().filter(':visible');
167
+ this.vp = this.element[0].getBoundingClientRect().width;
168
+
169
+ this.container.css({'min-width': '', 'min-height': ''});
170
+
171
+ this.items.each(function(idx){
172
+
173
+ item = UI.$(this);
174
+ size = item.css({'left': '', 'width':''})[0].getBoundingClientRect();
175
+ width = size.width;
176
+ cwidth = item.width();
177
+ maxheight = Math.max(maxheight, size.height);
178
+
179
+ item.css({'left': pos, 'width':width}).data({'idx':idx, 'left': pos, 'width': width, 'cwidth':cwidth, 'area': (pos+width), 'center':(pos - ($this.vp/2 - cwidth/2))});
180
+
181
+ pos += width;
182
+ });
183
+
184
+ this.container.css({'min-width': pos, 'min-height': maxheight});
185
+
186
+ if (this.options.infinite && pos <= (2*this.vp) && !this.itemsResized) {
187
+
188
+ // fill with cloned items
189
+ this.container.children().each(function(idx){
190
+ $this.container.append($this.items.eq(idx).clone(true).attr('id', ''));
191
+ }).each(function(idx){
192
+ $this.container.append($this.items.eq(idx).clone(true).attr('id', ''));
193
+ });
194
+
195
+ this.itemsResized = true;
196
+
197
+ return this.resize();
198
+ }
199
+
200
+ this.cw = pos;
201
+ this.pos = 0;
202
+ this.active = pos >= this.vp;
203
+
204
+ this.container.css({
205
+ '-ms-transform': '',
206
+ '-webkit-transform': '',
207
+ 'transform': ''
208
+ });
209
+
210
+ if (focus) this.updateFocus(this.focus);
211
+ },
212
+
213
+ updatePos: function(pos) {
214
+ this.pos = pos;
215
+ this.container.css({
216
+ '-ms-transform': 'translateX('+pos+'px)',
217
+ '-webkit-transform': 'translateX('+pos+'px)',
218
+ 'transform': 'translateX('+pos+'px)'
219
+ });
220
+ },
221
+
222
+ updateFocus: function(idx, dir) {
223
+
224
+ if (!this.active) {
225
+ return;
226
+ }
227
+
228
+ dir = dir || (idx > this.focus ? 1:-1);
229
+
230
+ var item = this.items.eq(idx), area, i;
231
+
232
+ if (this.options.infinite) {
233
+ this.infinite(idx, dir);
234
+ }
235
+
236
+ if (this.options.center) {
237
+
238
+ this.updatePos(item.data('center')*-1);
239
+
240
+ this.items.filter('.'+this.options.activecls).removeClass(this.options.activecls);
241
+ item.addClass(this.options.activecls);
242
+
243
+ } else {
244
+
245
+ if (this.options.infinite) {
246
+
247
+ this.updatePos(item.data('left')*-1);
248
+
249
+ } else {
250
+
251
+ area = 0;
252
+
253
+ for (i=idx;i<this.items.length;i++) {
254
+ area += this.items.eq(i).data('width');
255
+ }
256
+
257
+
258
+ if (area > this.vp) {
259
+
260
+ this.updatePos(item.data('left')*-1);
261
+
262
+ } else {
263
+
264
+ if (dir == 1) {
265
+
266
+ area = 0;
267
+
268
+ for (i=this.items.length-1;i>=0;i--) {
269
+
270
+ area += this.items.eq(i).data('width');
271
+
272
+ if (area >= this.vp) {
273
+ idx = i;
274
+ break;
275
+ }
276
+ }
277
+
278
+ this.updatePos(this.items.eq(idx).data('left')*-1);
279
+ }
280
+ }
281
+ }
282
+ }
283
+
284
+ this.focus = idx;
285
+
286
+ this.trigger('focusitem.uk.slider', [idx,this.items.eq(idx),this]);
287
+ },
288
+
289
+ next: function() {
290
+
291
+ var focus = this.items[this.focus + 1] ? (this.focus + 1) : (this.options.infinite ? 0:this.focus);
292
+
293
+ this.updateFocus(focus, 1);
294
+ },
295
+
296
+ previous: function() {
297
+
298
+ var focus = this.items[this.focus - 1] ? (this.focus - 1) : (this.options.infinite ? (this.items[this.focus - 1] ? this.items-1:this.items.length-1):this.focus);
299
+
300
+ this.updateFocus(focus, -1);
301
+ },
302
+
303
+ start: function() {
304
+
305
+ this.stop();
306
+
307
+ var $this = this;
308
+
309
+ this.interval = setInterval(function() {
310
+ if (!$this.hovering) $this.next();
311
+ }, this.options.autoplayInterval);
312
+
313
+ },
314
+
315
+ stop: function() {
316
+ if (this.interval) clearInterval(this.interval);
317
+ },
318
+
319
+ infinite: function(baseidx, direction) {
320
+
321
+ var $this = this, item = this.items.eq(baseidx), i, z = baseidx, move = [], area = 0;
322
+
323
+ if (direction == 1) {
324
+
325
+
326
+ for (i=0;i<this.items.length;i++) {
327
+
328
+ if (z != baseidx) {
329
+ area += this.items.eq(z).data('width');
330
+ move.push(this.items.eq(z));
331
+ }
332
+
333
+ if (area > this.vp) {
334
+ break;
335
+ }
336
+
337
+ z = z+1 == this.items.length ? 0:z+1;
338
+ }
339
+
340
+ if (move.length) {
341
+
342
+ move.forEach(function(itm){
343
+
344
+ var left = item.data('area');
345
+
346
+ itm.css({'left': left}).data({
347
+ 'left' : left,
348
+ 'area' : (left+itm.data('width')),
349
+ 'center': (left - ($this.vp/2 - itm.data('cwidth')/2))
350
+ });
351
+
352
+ item = itm;
353
+ });
354
+ }
355
+
356
+
357
+ } else {
358
+
359
+ for (i=this.items.length-1;i >-1 ;i--) {
360
+
361
+ area += this.items.eq(z).data('width');
362
+
363
+ if (z != baseidx) {
364
+ move.push(this.items.eq(z));
365
+ }
366
+
367
+ if (area > this.vp) {
368
+ break;
369
+ }
370
+
371
+ z = z-1 == -1 ? this.items.length-1:z-1;
372
+ }
373
+
374
+ if (move.length) {
375
+
376
+ move.forEach(function(itm){
377
+
378
+ var left = item.data('left') - itm.data('width');
379
+
380
+ itm.css({'left': left}).data({
381
+ 'left' : left,
382
+ 'area' : (left+itm.data('width')),
383
+ 'center': (left - ($this.vp/2 - itm.data('cwidth')/2))
384
+ });
385
+
386
+ item = itm;
387
+ });
388
+ }
389
+ }
390
+ }
391
+ });
392
+
393
+ // handle dragging
394
+ UI.$doc.on('mousemove.uikit.slider touchmove.uikit.slider', function(e) {
395
+
396
+ if (e.originalEvent && e.originalEvent.touches) {
397
+ e = e.originalEvent.touches[0];
398
+ }
399
+
400
+ if (delayIdle && Math.abs(e.pageX - delayIdle.x) > delayIdle.threshold) {
401
+
402
+ if (!window.getSelection().toString()) {
403
+ delayIdle(e);
404
+ } else {
405
+ dragging = delayIdle = false;
406
+ }
407
+ }
408
+
409
+ if (!dragging) {
410
+ return;
411
+ }
412
+
413
+ var x, xDiff, pos, dir, focus, item, next, diff, i, z, itm;
414
+
415
+ if (e.clientX || e.clientY) {
416
+ x = e.clientX;
417
+ } else if (e.pageX || e.pageY) {
418
+ x = e.pageX - document.body.scrollLeft - document.documentElement.scrollLeft;
419
+ }
420
+
421
+ focus = store.focus;
422
+ xDiff = x - dragging.element.data('pointer-start').x;
423
+ pos = dragging.element.data('pointer-pos-start') + xDiff;
424
+ dir = x > dragging.element.data('pointer-start').x ? -1:1;
425
+ item = dragging.items.eq(store.focus);
426
+
427
+ if (dir == 1) {
428
+
429
+ diff = item.data('left') + Math.abs(xDiff);
430
+
431
+ for (i=0,z=store.focus;i<dragging.items.length;i++) {
432
+
433
+ itm = dragging.items.eq(z);
434
+
435
+ if (z != store.focus && itm.data('left') < diff && itm.data('area') > diff) {
436
+ focus = z;
437
+ break;
438
+ }
439
+
440
+ z = z+1 == dragging.items.length ? 0:z+1;
441
+ }
442
+
443
+ } else {
444
+
445
+ diff = item.data('left') - Math.abs(xDiff);
446
+
447
+ for (i=0,z=store.focus;i<dragging.items.length;i++) {
448
+
449
+ itm = dragging.items.eq(z);
450
+
451
+ if (z != store.focus && itm.data('area') <= item.data('left') && itm.data('center') < diff) {
452
+ focus = z;
453
+ break;
454
+ }
455
+
456
+ z = z-1 == -1 ? dragging.items.length-1:z-1;
457
+ }
458
+ }
459
+
460
+ if (dragging.options.infinite && focus!=store._focus) {
461
+ dragging.infinite(focus, dir);
462
+ }
463
+
464
+ dragging.updatePos(pos);
465
+
466
+ store.dir = dir;
467
+ store._focus = focus;
468
+ store.touchx = parseInt(e.pageX, 10);
469
+ store.diff = diff;
470
+ });
471
+
472
+ UI.$doc.on('mouseup.uikit.slider touchend.uikit.slider', function(e) {
473
+
474
+ if (dragging) {
475
+
476
+ dragging.container.removeClass('uk-drag');
477
+
478
+ // TODO is this needed?
479
+ dragging.items.eq(store.focus);
480
+
481
+ var itm, focus = false, i, z;
482
+
483
+ if (store.dir == 1) {
484
+
485
+ for (i=0,z=store.focus;i<dragging.items.length;i++) {
486
+
487
+ itm = dragging.items.eq(z);
488
+
489
+ if (z != store.focus && itm.data('left') > store.diff) {
490
+ focus = z;
491
+ break;
492
+ }
493
+
494
+ z = z+1 == dragging.items.length ? 0:z+1;
495
+ }
496
+
497
+ } else {
498
+
499
+ for (i=0,z=store.focus;i<dragging.items.length;i++) {
500
+
501
+ itm = dragging.items.eq(z);
502
+
503
+ if (z != store.focus && itm.data('left') < store.diff) {
504
+ focus = z;
505
+ break;
506
+ }
507
+
508
+ z = z-1 == -1 ? dragging.items.length-1:z-1;
509
+ }
510
+ }
511
+
512
+ dragging.updateFocus(focus!==false ? focus:store._focus);
513
+
514
+ }
515
+
516
+ dragging = delayIdle = false;
517
+ });
518
+
519
+ return UI.slider;
520
+ });