linaro-jekyll-theme 0.2.0.1 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -52
  3. data/_data/footer.yml +0 -1
  4. data/_includes/_theme-includes/_blog/pagination.html +1 -1
  5. data/_includes/_theme-includes/_footer/backup.html +71 -0
  6. data/_includes/_theme-includes/_footer/footer.html +25 -56
  7. data/_includes/_theme-includes/_head/ascii-art.html +11 -0
  8. data/_includes/_theme-includes/_head/head.html +7 -15
  9. data/_includes/_theme-includes/_navigation/_sub-navigation/tabbed-nav.html +150 -0
  10. data/_includes/_theme-includes/_navigation/nav.html +16 -62
  11. data/_includes/_theme-includes/_page-structure/breadcrumb.html +27 -77
  12. data/_includes/_theme-includes/_page-structure/old-breadcrumb.html +139 -0
  13. data/_includes/_theme-includes/_script-includes/css.html +3 -40
  14. data/_includes/_theme-includes/_script-includes/gtm/gtm-noscript.html +1 -2
  15. data/_includes/_theme-includes/_script-includes/gtm/gtm-script.html +7 -9
  16. data/_includes/_theme-includes/_script-includes/javascript.html +2 -50
  17. data/_includes/_theme-includes/_third-party/disqus.html +1 -1
  18. data/_includes/_theme-includes/_third-party/mailchimp-homepage.html +6 -1
  19. data/_includes/_theme-includes/_third-party/mailchimp-sub-footer.html +40 -0
  20. data/_includes/_theme-includes/members.html +3 -3
  21. data/_includes/image.html +1 -6
  22. data/_includes/media.html +1 -9
  23. data/_layouts/empty-container-page.html +10 -0
  24. data/_layouts/{fluid-no-sub-nav.html → plain-page.html} +2 -2
  25. data/_sass/blog-pages.scss +5 -0
  26. data/_sass/bootstrap/_variables.scss +5 -28
  27. data/_sass/core/blog.scss +25 -36
  28. data/_sass/core/breadcrumb.scss +1 -20
  29. data/_sass/core/cookieconsent.scss +2 -31
  30. data/_sass/core/critical.scss +991 -0
  31. data/_sass/core/fa.scss +2 -7
  32. data/_sass/core/footer.scss +13 -55
  33. data/_sass/core/homepage.scss +1 -25
  34. data/_sass/core/members-sprite.scss +425 -0
  35. data/_sass/core/nav.scss +15 -136
  36. data/_sass/core/owl.carousel.min.scss +1 -1
  37. data/_sass/core/products.scss +1 -1
  38. data/_sass/core/tables.scss +0 -38
  39. data/_sass/core/theme.scss +16 -310
  40. data/_sass/documentation-pages.scss +3 -0
  41. data/_sass/home-page.scss +3 -0
  42. data/{assets/css/main-lightbox.scss → _sass/main.scss} +0 -5
  43. data/_sass/openhours-page.scss +4 -0
  44. data/_sass/products-pages.scss +5 -0
  45. data/_sass/projects-pages.scss +5 -0
  46. data/assets/css/_bootstrap-compass.scss +9 -0
  47. data/assets/css/_bootstrap-mincer.scss +19 -0
  48. data/assets/css/_bootstrap-sprockets.scss +9 -0
  49. data/assets/css/_bootstrap.scss +56 -0
  50. data/assets/css/blog-pages.scss +5 -0
  51. data/assets/css/bootstrap/_alerts.scss +73 -0
  52. data/assets/css/bootstrap/_badges.scss +68 -0
  53. data/assets/css/bootstrap/_breadcrumbs.scss +28 -0
  54. data/assets/css/bootstrap/_button-groups.scss +244 -0
  55. data/assets/css/bootstrap/_buttons.scss +168 -0
  56. data/assets/css/bootstrap/_carousel.scss +270 -0
  57. data/assets/css/bootstrap/_close.scss +36 -0
  58. data/assets/css/bootstrap/_code.scss +69 -0
  59. data/assets/css/bootstrap/_component-animations.scss +37 -0
  60. data/assets/css/bootstrap/_dropdowns.scss +216 -0
  61. data/assets/css/bootstrap/_forms.scss +617 -0
  62. data/assets/css/bootstrap/_glyphicons.scss +307 -0
  63. data/assets/css/bootstrap/_grid.scss +84 -0
  64. data/assets/css/bootstrap/_input-groups.scss +171 -0
  65. data/assets/css/bootstrap/_jumbotron.scss +54 -0
  66. data/assets/css/bootstrap/_labels.scss +66 -0
  67. data/assets/css/bootstrap/_list-group.scss +130 -0
  68. data/assets/css/bootstrap/_media.scss +66 -0
  69. data/assets/css/bootstrap/_mixins.scss +40 -0
  70. data/assets/css/bootstrap/_modals.scss +150 -0
  71. data/assets/css/bootstrap/_navbar.scss +662 -0
  72. data/assets/css/bootstrap/_navs.scss +242 -0
  73. data/assets/css/bootstrap/_normalize.scss +424 -0
  74. data/assets/css/bootstrap/_pager.scss +54 -0
  75. data/assets/css/bootstrap/_pagination.scss +89 -0
  76. data/assets/css/bootstrap/_panels.scss +271 -0
  77. data/assets/css/bootstrap/_popovers.scss +131 -0
  78. data/assets/css/bootstrap/_print.scss +101 -0
  79. data/assets/css/bootstrap/_progress-bars.scss +87 -0
  80. data/assets/css/bootstrap/_responsive-embed.scss +35 -0
  81. data/assets/css/bootstrap/_responsive-utilities.scss +179 -0
  82. data/assets/css/bootstrap/_scaffolding.scss +161 -0
  83. data/assets/css/bootstrap/_tables.scss +234 -0
  84. data/assets/css/bootstrap/_theme.scss +291 -0
  85. data/assets/css/bootstrap/_thumbnails.scss +38 -0
  86. data/assets/css/bootstrap/_tooltip.scss +101 -0
  87. data/assets/css/bootstrap/_type.scss +298 -0
  88. data/assets/css/bootstrap/_utilities.scss +55 -0
  89. data/assets/css/bootstrap/_variables.scss +874 -0
  90. data/assets/css/bootstrap/_wells.scss +29 -0
  91. data/assets/css/bootstrap/mixins/_alerts.scss +14 -0
  92. data/assets/css/bootstrap/mixins/_background-variant.scss +12 -0
  93. data/assets/css/bootstrap/mixins/_border-radius.scss +18 -0
  94. data/assets/css/bootstrap/mixins/_buttons.scss +65 -0
  95. data/assets/css/bootstrap/mixins/_center-block.scss +7 -0
  96. data/assets/css/bootstrap/mixins/_clearfix.scss +22 -0
  97. data/assets/css/bootstrap/mixins/_forms.scss +88 -0
  98. data/assets/css/bootstrap/mixins/_gradients.scss +58 -0
  99. data/assets/css/bootstrap/mixins/_grid-framework.scss +81 -0
  100. data/assets/css/bootstrap/mixins/_grid.scss +122 -0
  101. data/assets/css/bootstrap/mixins/_hide-text.scss +21 -0
  102. data/assets/css/bootstrap/mixins/_image.scss +33 -0
  103. data/assets/css/bootstrap/mixins/_labels.scss +12 -0
  104. data/assets/css/bootstrap/mixins/_list-group.scss +32 -0
  105. data/assets/css/bootstrap/mixins/_nav-divider.scss +10 -0
  106. data/assets/css/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  107. data/assets/css/bootstrap/mixins/_opacity.scss +8 -0
  108. data/assets/css/bootstrap/mixins/_pagination.scss +24 -0
  109. data/assets/css/bootstrap/mixins/_panels.scss +24 -0
  110. data/assets/css/bootstrap/mixins/_progress-bar.scss +10 -0
  111. data/assets/css/bootstrap/mixins/_reset-filter.scss +8 -0
  112. data/assets/css/bootstrap/mixins/_reset-text.scss +18 -0
  113. data/assets/css/bootstrap/mixins/_resize.scss +6 -0
  114. data/assets/css/bootstrap/mixins/_responsive-visibility.scss +21 -0
  115. data/assets/css/bootstrap/mixins/_size.scss +10 -0
  116. data/assets/css/bootstrap/mixins/_tab-focus.scss +9 -0
  117. data/assets/css/bootstrap/mixins/_table-row.scss +28 -0
  118. data/assets/css/bootstrap/mixins/_text-emphasis.scss +12 -0
  119. data/assets/css/bootstrap/mixins/_text-overflow.scss +8 -0
  120. data/assets/css/bootstrap/mixins/_vendor-prefixes.scss +222 -0
  121. data/assets/css/core/animations.scss +125 -0
  122. data/assets/css/core/blog.scss +206 -0
  123. data/assets/css/core/breadcrumb.scss +48 -0
  124. data/assets/css/core/carousel.scss +136 -0
  125. data/assets/css/core/cookieconsent.scss +13 -0
  126. data/assets/css/core/critical.scss +991 -0
  127. data/assets/css/core/fa.scss +2331 -0
  128. data/assets/css/core/flipclock.scss +435 -0
  129. data/assets/css/core/font-awesome.min.scss +4 -0
  130. data/assets/css/core/fonts.scss +7 -0
  131. data/assets/css/core/footer.scss +79 -0
  132. data/assets/css/core/homepage.scss +16 -0
  133. data/assets/css/core/lightbox.scss +213 -0
  134. data/assets/css/core/members-sprite.scss +425 -0
  135. data/assets/css/core/nav.scss +536 -0
  136. data/assets/css/core/openhours.scss +51 -0
  137. data/assets/css/core/owl.carousel.min.scss +6 -0
  138. data/assets/css/core/owl.theme.default.min.scss +6 -0
  139. data/assets/css/core/products.scss +221 -0
  140. data/assets/css/core/projects.scss +32 -0
  141. data/assets/css/core/social-media-icons.scss +71 -0
  142. data/assets/css/core/syntax.scss +65 -0
  143. data/assets/css/core/tables.scss +87 -0
  144. data/assets/css/core/theme.scss +244 -0
  145. data/assets/css/documentation-pages.scss +3 -0
  146. data/assets/css/home-page.scss +3 -0
  147. data/assets/css/main.scss +0 -3
  148. data/assets/css/openhours-page.scss +4 -0
  149. data/assets/css/products-pages.scss +5 -0
  150. data/assets/css/projects-pages.scss +5 -0
  151. data/assets/js/app/{main.js → 96boards.js} +29 -5
  152. data/assets/js/app/app.js +5 -0
  153. data/assets/js/app/mixitup.js +23 -0
  154. data/assets/js/app/{search.js → search-page.js} +1 -1
  155. data/assets/js/app/{sticky.js → sticky-navbar.js} +0 -0
  156. data/assets/js/app.js +2 -0
  157. data/assets/js/sticky-navbar.js +65 -0
  158. data/assets/js/vendor/cookieconsent.min.js +9 -2
  159. data/assets/js/vendor/filtrify.js +11 -0
  160. data/assets/js/vendor/flipclock.min.js +0 -33
  161. data/assets/js/vendor/lightbox.js +519 -0
  162. data/assets/js/vendor/loadCSS.js +35 -0
  163. data/assets/js/vendor/loadCSS.min.js +2 -0
  164. data/assets/js/vendor/picturefill.min.js +5 -0
  165. data/assets/js/vendor/shuffle.js +2004 -0
  166. data/assets/js/vendor/vendor.js +6 -0
  167. data/assets/js/vendor.js +7 -0
  168. data/{_layouts/about.html → assets/vendor.js} +0 -0
  169. metadata +171 -143
  170. data/_data/authors.yml +0 -7
  171. data/_data/company.yml +0 -29
  172. data/_data/members_db.yaml +0 -115
  173. data/_data/nav.yml +0 -62
  174. data/_data/news.yaml +0 -230
  175. data/_data/sub-nav-stacked.yml +0 -67
  176. data/_data/sub-nav.yml +0 -61
  177. data/_includes/_theme-includes/_navigation/stacked-nav.html +0 -20
  178. data/_includes/_theme-includes/_navigation/tabbed-nav.html +0 -35
  179. data/_includes/_theme-includes/_page-structure/home-hero-shape.html +0 -34
  180. data/_includes/_theme-includes/_page-structure/home-hero.html +0 -23
  181. data/_includes/_theme-includes/_page-structure/shape-divider.html +0 -12
  182. data/_includes/_theme-includes/_script-includes/google-analytics/script.html +0 -10
  183. data/_includes/youtube.html +0 -7
  184. data/_layouts/accessory-display-page.html +0 -88
  185. data/_layouts/blog-breadcrumbless.html +0 -49
  186. data/_layouts/blog.html +0 -56
  187. data/_layouts/contact.html +0 -10
  188. data/_layouts/default-empty.html +0 -11
  189. data/_layouts/default-no-sub-nav.html +0 -15
  190. data/_layouts/default-plain.html +0 -16
  191. data/_layouts/default-stacked-breadcrumb.html +0 -23
  192. data/_layouts/default-stacked.html +0 -22
  193. data/_layouts/default.html +0 -20
  194. data/_layouts/empty.html +0 -10
  195. data/_layouts/fluid.html +0 -15
  196. data/_layouts/home-shape.html +0 -18
  197. data/_layouts/home.html +0 -18
  198. data/_layouts/post.html +0 -146
  199. data/_layouts/product-display-page.html +0 -262
  200. data/_layouts/project-display-page.html +0 -28
  201. data/_sass/core/carousel-styles.scss +0 -3
  202. data/_sass/core/custom.scss +0 -3
  203. data/_sass/custom.scss +0 -0
  204. data/assets/css/main-blog.scss +0 -19
  205. data/assets/css/main-home.scss +0 -16
  206. data/assets/css/main-openhours.scss +0 -19
  207. data/assets/css/main-products.scss +0 -20
  208. data/assets/css/main-projects.scss +0 -20
  209. data/assets/fonts/fontawesome-webfont.eot +0 -0
  210. data/assets/fonts/fontawesome-webfont.svg +0 -2671
  211. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  212. data/assets/fonts/fontawesome-webfont.woff +0 -0
  213. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  214. data/assets/fonts/fontello.eot +0 -0
  215. data/assets/fonts/fontello.svg +0 -44
  216. data/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  217. data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  218. data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  219. data/assets/fonts/lato-regular/LICENSE.txt +0 -93
  220. data/assets/fonts/lato-regular/Lato-regular.eot +0 -0
  221. data/assets/fonts/lato-regular/Lato-regular.svg +0 -435
  222. data/assets/fonts/lato-regular/Lato-regular.ttf +0 -0
  223. data/assets/fonts/lato-regular/Lato-regular.woff +0 -0
  224. data/assets/fonts/lato-regular/Lato-regular.woff2 +0 -0
  225. data/assets/images/avatar-placeholder.png +0 -0
  226. data/assets/images/background-image.jpg +0 -0
  227. data/assets/images/close.png +0 -0
  228. data/assets/images/css3.png +0 -0
  229. data/assets/images/favicon.ico +0 -0
  230. data/assets/images/favicon.png +0 -0
  231. data/assets/images/html5.png +0 -0
  232. data/assets/images/jekyll.svg +0 -1
  233. data/assets/images/js.jpeg +0 -0
  234. data/assets/images/loading.gif +0 -0
  235. data/assets/images/next.png +0 -0
  236. data/assets/images/owl.video.play.png +0 -0
  237. data/assets/images/placeholder.png +0 -0
  238. data/assets/images/prev.png +0 -0
  239. data/assets/images/social-media-image.png +0 -0
  240. data/assets/js/app/tables.js +0 -8
  241. data/assets/js/vendor/cognito-forms.js +0 -150
  242. data/assets/js/vendor/lightbox.min.js +0 -14
  243. data/robots.txt +0 -9
@@ -38,4 +38,4 @@ function getAllUrlParams(url) {
38
38
  var searchQuery = getAllUrlParams().q;
39
39
 
40
40
 
41
- $('#searchIframe').attr('src', "https://search.linaro.org/search/?fields.label=OpTee&q=" + searchQuery);
41
+ $('#searchIframe').attr('src', "https://search.linaro.org/search/?fields.label=96Boards&q=" + searchQuery);
File without changes
data/assets/js/app.js ADDED
@@ -0,0 +1,2 @@
1
+ function getAllUrlParams(t){var e=t?t.split("?")[1]:window.location.search.slice(1),i={};if(e){e=e.split("#")[0];for(var a=e.split("&"),n=0;n<a.length;n++){var r=a[n].split("="),s=undefined,o=r[0].replace(/\[\d*\]/,function(t){return s=t.slice(1,-1),""}),l="undefined"==typeof r[1]||r[1];o=o.toLowerCase(),l=l.toLowerCase(),i[o]?("string"==typeof i[o]&&(i[o]=[i[o]]),void 0===s?i[o].push(l):i[o][s]=l):i[o]=l}}return i}$(document).ready(function(){function t(t){var e=new Date;return e.setDate(e.getDate()+(t+(7-e.getDay()))%7),e}navigator.userAgent.match(/.*CPU.*OS 7_\d/i)&&$("html").addClass("ios7");var e=t(4),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),16,0,0)),a=new Date,n=i.getTime()/1e3-a.getTime()/1e3,r=new Date(Date.UTC(1996,e.getMonth(),e.getDate(),16,0,0)),s=new Date,o=r.getTime()/1e3-s.getTime()/1e3;$(".open-hours-clock").FlipClock(n,{clockFace:"DailyCounter",countdown:!0}),$(".expired-clock").FlipClock(o,{clockFace:"DailyCounter",countdown:!0});$("#closeForm").click(function(){$("#searchDropdown").dropdown("toggle")}),$(".main-navbar ul.dropdown-menu [data-toggle=dropdown]").on("click",function(t){t.preventDefault(),t.stopPropagation(),$(this).parent().addClass("open");var e=$(this).parent().find("ul");if(e.offset().left+e.width()+30>$(window).width())var i=-e.width();else var i=$(this).parent().width();e.css({left:i})}),$("#searchDropdown").click(function(){$("#dlDropDown").dropdown("toggle")}),$("body").css("zoom",""),$("a").each(function(){new RegExp("/"+window.location.host+"/").test(this.href)||$(this).attr("target","_blank")}),$("#searchform").show()}),$(".main-navbar > nav").removeClass("no-js-navbar"),$(function(){function t(){var t=$('.navbar-collapse form[role="search"].active');t.removeClass("active"),t.trigger("reset")}$(document).on("click",'.navbar-collapse form[role="search"]:not(.active) button[type="submit"]',function(t){t.preventDefault();var e=$(this).closest("form"),i=e.find("input");$(this).closest('.navbar-collapse form[role="search"]:not(.active) button[type="reset"]');e.addClass("active"),i.focus()}),$(document).on("click",'.navbar-collapse form[role="search"].active button[type="submit"]',function(e){e.preventDefault();var i=$(this).closest("form"),a=i.find("input");$("input[type='hidden']").attr("value","96Boards"),0!==a.val().length&&(i.submit(),t())}),$(document).on("click",'.navbar-collapse form[role="search"].active button[type="reset"]',function(){t()})}),$(document).ready(function(){function t(){var t=$("#tabbed-nav-bar ul.nav-tabs li.active").text();$("#sub-navigation-header").text(t),$("#sub-navigation-header").hide(),$(window).scrollTop()>i?($("#tabbed-nav-bar").addClass("sticky-nav"),$("nav#main-navigation").hide(),$("#main-container").css("margin-top","160px"),$(window).width()<1200?($("#tabbed-nav-bar nav").removeClass("navbar-default"),$("#tabbed-nav-bar nav").addClass("navbar-inverse"),$("#tabbed-nav-bar ul.nav-tabs").addClass("nav-stacked"),$("#sub-navigation-header").show()):($("#tabbed-nav-bar nav").addClass("navbar-default"),$("#tabbed-nav-bar nav").removeClass("navbar-inverse"),$("#tabbed-nav-bar ul.nav-tabs").removeClass("nav-stacked"),$("#sub-navigation-header").hide())):($("#tabbed-nav-bar").removeClass("sticky-nav"),$("#main-container").css("margin-top","80px"),$("nav#main-navigation").show(),$("#tabbed-nav-bar nav").addClass("navbar-default"),$("#tabbed-nav-bar nav").removeClass("navbar-inverse"),$(window).width()<1200?($("#tabbed-nav-bar ul.nav-tabs").addClass("nav-stacked"),$("#sub-navigation-header").show()):($("#tabbed-nav-bar ul.nav-tabs").removeClass("nav-stacked"),$("#sub-navigation-header").hide()))}var e=$("#tabbed-nav-bar");if(e.length){var i=e.offset().top,a=($("nav#main-navigation").height,$("#tabbed-nav-bar ul.nav-tabs li.active").text());$("#sub-navigation-header").text(a),t(),$(window).scroll(function(){t()}),$(window).resize(t)}});var searchQuery=getAllUrlParams().q;$("#searchIframe").attr("src","https://search.linaro.org/search/?fields.label=96Boards&q="+searchQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(t){"use strict";function e(e){var i=e.data;e.isDefaultPrevented()||(e.preventDefault(),t(e.target).ajaxSubmit(i))}function i(e){var i=e.target,a=t(i);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;i=n[0]}var r=this;if(r.clk=i,"image"==i.type)if(void 0!==e.offsetX)r.clk_x=e.offsetX,r.clk_y=e.offsetY;else if("function"==typeof t.fn.offset){var s=a.offset();r.clk_x=e.pageX-s.left,r.clk_y=e.pageY-s.top}else r.clk_x=e.pageX-i.offsetLeft,r.clk_y=e.pageY-i.offsetTop;setTimeout(function(){r.clk=r.clk_x=r.clk_y=null},100)}function a(){if(t.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}var n={};n.fileapi=void 0!==t("<input type='file'/>").get(0).files,n.formdata=void 0!==window.FormData;var r=!!t.fn.prop;t.fn.attr2=function(){if(!r)return this.attr.apply(this,arguments);var t=this.prop.apply(this,arguments);return t&&t.jquery||"string"==typeof t?t:this.attr.apply(this,arguments)},t.fn.ajaxSubmit=function(e){function i(i){var a,n,r=t.param(i,e.traditional).split("&"),s=r.length,o=[];for(a=0;s>a;a++)r[a]=r[a].replace(/\+/g," "),n=r[a].split("="),o.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return o}function s(a){for(var n=new FormData,r=0;r<a.length;r++)n.append(a[r].name,a[r].value);if(e.extraData){var s=i(e.extraData);for(r=0;r<s.length;r++)s[r]&&n.append(s[r][0],s[r][1])}e.data=null;var o=t.extend(!0,{},t.ajaxSettings,e,{contentType:!1,processData:!1,cache:!1,type:l||"POST"});e.uploadProgress&&(o.xhr=function(){var i=t.ajaxSettings.xhr();return i.upload&&i.upload.addEventListener("progress",function(t){var i=0,a=t.loaded||t.position,n=t.total;t.lengthComputable&&(i=Math.ceil(a/n*100)),e.uploadProgress(t,a,n,i)},!1),i}),o.data=null;var d=o.beforeSend;return o.beforeSend=function(t,i){i.data=e.formData?e.formData:n,d&&d.call(this,t,i)},t.ajax(o)}function o(i){function n(t){var e=null;try{t.contentWindow&&(e=t.contentWindow.document)}catch(t){a("cannot get iframe.contentWindow document: "+t)}if(e)return e;try{e=t.contentDocument?t.contentDocument:t.document}catch(i){a("cannot get iframe.contentDocument: "+i),e=t.document}return e}function s(){function e(){try{var t=n(v).readyState;a("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(t){a("Server abort: ",t," (",t.name,")"),o(k),F&&clearTimeout(F),F=void 0}}var i=c.attr2("target"),r=c.attr2("action"),s="multipart/form-data",d=c.attr("enctype")||c.attr("encoding")||s;C.setAttribute("target",f),(!l||/post/i.test(l))&&C.setAttribute("method","POST"),r!=h.url&&C.setAttribute("action",h.url),h.skipEncodingOverride||l&&!/post/i.test(l)||c.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),h.timeout&&(F=setTimeout(function(){w=!0,o($)},h.timeout));var u=[];try{if(h.extraData)for(var m in h.extraData)h.extraData.hasOwnProperty(m)&&u.push(t.isPlainObject(h.extraData[m])&&h.extraData[m].hasOwnProperty("name")&&h.extraData[m].hasOwnProperty("value")?t('<input type="hidden" name="'+h.extraData[m].name+'">').val(h.extraData[m].value).appendTo(C)[0]:t('<input type="hidden" name="'+m+'">').val(h.extraData[m]).appendTo(C)[0]);h.iframeTarget||g.appendTo("body"),v.attachEvent?v.attachEvent("onload",o):v.addEventListener("load",o,!1),setTimeout(e,15);try{C.submit()}catch(t){var p=document.createElement("form").submit;p.apply(C)}}finally{C.setAttribute("action",r),C.setAttribute("enctype",d),i?C.setAttribute("target",i):c.removeAttr("target"),t(u).remove()}}function o(e){if(!b.aborted&&!j){if(S=n(v),S||(a("cannot access response document"),e=k),e===$&&b)return b.abort("timeout"),void D.reject(b,"timeout");if(e==k&&b)return b.abort("server abort"),void D.reject(b,"error","server abort");if(S&&S.location.href!=h.iframeSrc||w){v.detachEvent?v.detachEvent("onload",o):v.removeEventListener("load",o,!1);var i,r="success";try{if(w)throw"timeout";var s="xml"==h.dataType||S.XMLDocument||t.isXMLDoc(S);if(a("isXml="+s),!s&&window.opera&&(null===S.body||!S.body.innerHTML)&&--E)return a("requeing onLoad callback, DOM not available"),void setTimeout(o,250);var l=S.body?S.body:S.documentElement;b.responseText=l?l.innerHTML:null,b.responseXML=S.XMLDocument?S.XMLDocument:S,s&&(h.dataType="xml"),b.getResponseHeader=function(t){return{"content-type":h.dataType}[t.toLowerCase()]},l&&(b.status=+l.getAttribute("status")||b.status,b.statusText=l.getAttribute("statusText")||b.statusText);var d=(h.dataType||"").toLowerCase(),u=/(json|script|text)/.test(d);if(u||h.textarea){var c=S.getElementsByTagName("textarea")[0];if(c)b.responseText=c.value,b.status=+c.getAttribute("status")||b.status,b.statusText=c.getAttribute("statusText")||b.statusText;else if(u){var f=S.getElementsByTagName("pre")[0],p=S.getElementsByTagName("body")[0];f?b.responseText=f.textContent?f.textContent:f.innerText:p&&(b.responseText=p.textContent?p.textContent:p.innerText)}}else"xml"==d&&!b.responseXML&&b.responseText&&(b.responseXML=L(b.responseText));try{T=P(b,d,h)}catch(t){r="parsererror",b.error=i=t||r}}catch(t){a("error caught: ",t),r="error",b.error=i=t||r}b.aborted&&(a("upload aborted"),r=null),b.status&&(r=b.status>=200&&b.status<300||304===b.status?"success":"error"),"success"===r?(h.success&&h.success.call(h.context,T,"success",b),D.resolve(b.responseText,"success",b),m&&t.event.trigger("ajaxSuccess",[b,h])):r&&(void 0===i&&(i=b.statusText),h.error&&h.error.call(h.context,b,r,i),D.reject(b,"error",i),m&&t.event.trigger("ajaxError",[b,h,i])),m&&t.event.trigger("ajaxComplete",[b,h]),m&&!--t.active&&t.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,b,r),j=!0,h.timeout&&clearTimeout(F),setTimeout(function(){h.iframeTarget?g.attr("src",h.iframeSrc):g.remove(),b.responseXML=null},100)}}}var d,u,h,m,f,g,v,b,y,x,w,F,C=c[0],D=t.Deferred();if(D.abort=function(t){b.abort(t)},i)for(u=0;u<p.length;u++)d=t(p[u]),r?d.prop("disabled",!1):d.removeAttr("disabled");if(h=t.extend(!0,{},t.ajaxSettings,e),h.context=h.context||h,f="jqFormIO"+(new Date).getTime(),h.iframeTarget?(g=t(h.iframeTarget),x=g.attr2("name"),x?f=x:g.attr2("name",f)):(g=t('<iframe name="'+f+'" src="'+h.iframeSrc+'" />'),g.css({position:"absolute",top:"-1000px",left:"-1000px"})),v=g[0],b={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var i="timeout"===e?"timeout":"aborted";a("aborting upload... "+i),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand("Stop")}catch(t){}g.attr("src",h.iframeSrc),b.error=i,h.error&&h.error.call(h.context,b,i,e),m&&t.event.trigger("ajaxError",[b,h,i]),h.complete&&h.complete.call(h.context,b,i)}},m=h.global,m&&0==t.active++&&t.event.trigger("ajaxStart"),m&&t.event.trigger("ajaxSend",[b,h]),h.beforeSend&&!1===h.beforeSend.call(h.context,b,h))return h.global&&t.active--,D.reject(),D;if(b.aborted)return D.reject(),D;(y=C.clk)&&(x=y.name)&&!y.disabled&&(h.extraData=h.extraData||{},h.extraData[x]=y.value,"image"==y.type&&(h.extraData[x+".x"]=C.clk_x,h.extraData[x+".y"]=C.clk_y));var $=1,k=2,I=t("meta[name=csrf-token]").attr("content"),A=t("meta[name=csrf-param]").attr("content");A&&I&&(h.extraData=h.extraData||{},h.extraData[A]=I),h.forceSync?s():setTimeout(s,10);var T,S,j,E=50,L=t.parseXML||function(t,e){return window.ActiveXObject?(e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!=e.documentElement.nodeName?e:null},_=t.parseJSON||function(t){return window.eval("("+t+")")},P=function(e,i,a){var n=e.getResponseHeader("content-type")||"",r="xml"===i||!i&&n.indexOf("xml")>=0,s=r?e.responseXML:e.responseText;return r&&"parsererror"===s.documentElement.nodeName&&t.error&&t.error("parsererror"),a&&a.dataFilter&&(s=a.dataFilter(s,i)),"string"==typeof s&&("json"===i||!i&&n.indexOf("json")>=0?s=_(s):("script"===i||!i&&n.indexOf("javascript")>=0)&&t.globalEval(s)),s};return D}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var l,d,u,c=this;"function"==typeof e?e={success:e}:void 0===e&&(e={}),l=e.type||this.attr2("method"),d=e.url||this.attr2("action"),u="string"==typeof d?t.trim(d):"",u=u||window.location.href||"",u&&(u=(u.match(/^([^#]+)/)||[])[1]),e=t.extend(!0,{url:u,success:t.ajaxSettings.success,type:l||t.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},e);var h={};if(this.trigger("form-pre-serialize",[this,e,h]),h.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(e.beforeSerialize&&!1===e.beforeSerialize(this,e))return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var m=e.traditional;void 0===m&&(m=t.ajaxSettings.traditional);var f,p=[],g=this.formToArray(e.semantic,p);if(e.data&&(e.extraData=e.data,f=t.param(e.data,m)),e.beforeSubmit&&!1===e.beforeSubmit(g,this,e))return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[g,this,e,h]),h.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var v=t.param(g,m);f&&(v=v?v+"&"+f:f),"GET"==e.type.toUpperCase()?(e.url+=(e.url.indexOf("?")<0?"?":"&")+v,e.data=null):e.data=v;var b=[];if(e.resetForm&&b.push(function(){c.resetForm()}),e.clearForm&&b.push(function(){c.clearForm(e.includeHidden)}),!e.dataType&&e.target){var y=e.success||function(){};b.push(function(i){var a=e.replaceTarget?"replaceWith":"html";t(e.target)[a](i).each(y,arguments)})}else e.success&&b.push(e.success);if(e.success=function(t,i,a){for(var n=e.context||this,r=0,s=b.length;s>r;r++)b[r].apply(n,[t,i,a||c,c])},e.error){var x=e.error;e.error=function(t,i,a){var n=e.context||this;x.apply(n,[t,i,a,c])}}if(e.complete){var w=e.complete;e.complete=function(t,i){var a=e.context||this;w.apply(a,[t,i,c])}}var F=t("input[type=file]:enabled",this).filter(function(){return""!==t(this).val()}),C=F.length>0,D="multipart/form-data",$=c.attr("enctype")==D||c.attr("encoding")==D,k=n.fileapi&&n.formdata;a("fileAPI :"+k);var I,A=(C||$)&&!k;!1!==e.iframe&&(e.iframe||A)?e.closeKeepAlive?t.get(e.closeKeepAlive,function(){I=o(g)}):I=o(g):I=(C||$)&&k?s(g):t.ajax(e),c.removeData("jqxhr").data("jqxhr",I);for(var T=0;T<p.length;T++)p[T]=null;return this.trigger("form-submit-notify",[this,e]),this},t.fn.ajaxForm=function(n){if(n=n||{},n.delegation=n.delegation&&t.isFunction(t.fn.on),!n.delegation&&0===this.length){var r={s:this.selector,c:this.context};return!t.isReady&&r.s?(a("DOM not ready, queuing ajaxForm"),t(function(){t(r.s,r.c).ajaxForm(n)}),this):(a("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return n.delegation?(t(document).off("submit.form-plugin",this.selector,e).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,n,e).on("click.form-plugin",this.selector,n,i),this):this.ajaxFormUnbind().bind("submit.form-plugin",n,e).bind("click.form-plugin",n,i)},t.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(e,i){var a=[];if(0===this.length)return a;var r,s=this[0],o=this.attr("id"),l=e?s.getElementsByTagName("*"):s.elements;if(l&&!/MSIE [678]/.test(navigator.userAgent)&&(l=t(l).get()),o&&(r=t(':input[form="'+o+'"]').get(),r.length&&(l=(l||[]).concat(r))),!l||!l.length)return a;var d,u,c,h,m,f,p;for(d=0,f=l.length;f>d;d++)if(m=l[d],(c=m.name)&&!m.disabled)if(e&&s.clk&&"image"==m.type)s.clk==m&&(a.push({name:c,value:t(m).val(),type:m.type}),a.push({name:c+".x",value:s.clk_x},{name:c+".y",value:s.clk_y}));else if((h=t.fieldValue(m,!0))&&h.constructor==Array)for(i&&i.push(m),u=0,p=h.length;p>u;u++)a.push({name:c,value:h[u]});else if(n.fileapi&&"file"==m.type){i&&i.push(m);var g=m.files;if(g.length)for(u=0;u<g.length;u++)a.push({name:c,value:g[u],type:m.type});else a.push({name:c,value:"",type:m.type})}else null!==h&&void 0!==h&&(i&&i.push(m),a.push({name:c,value:h,type:m.type,required:m.required}));if(!e&&s.clk){var v=t(s.clk),b=v[0];(c=b.name)&&!b.disabled&&"image"==b.type&&(a.push({name:c,value:v.val()}),a.push({name:c+".x",value:s.clk_x},{name:c+".y",value:s.clk_y}))}return a},t.fn.formSerialize=function(e){return t.param(this.formToArray(e))},t.fn.fieldSerialize=function(e){var i=[];return this.each(function(){var a=this.name;if(a){var n=t.fieldValue(this,e);if(n&&n.constructor==Array)for(var r=0,s=n.length;s>r;r++)i.push({name:a,value:n[r]});else null!==n&&void 0!==n&&i.push({name:this.name,value:n})}}),t.param(i)},t.fn.fieldValue=function(e){for(var i=[],a=0,n=this.length;n>a;a++){var r=this[a],s=t.fieldValue(r,e);null===s||void 0===s||s.constructor==Array&&!s.length||(s.constructor==Array?t.merge(i,s):i.push(s))}return i},t.fieldValue=function(e,i){var a=e.name,n=e.type,r=e.tagName.toLowerCase();if(void 0===i&&(i=!0),i&&(!a||e.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!e.checked||("submit"==n||"image"==n)&&e.form&&e.form.clk!=e||"select"==r&&-1==e.selectedIndex))return null;if("select"==r){var s=e.selectedIndex;if(0>s)return null;for(var o=[],l=e.options,d="select-one"==n,u=d?s+1:l.length,c=d?s:0;u>c;c++){var h=l[c];if(h.selected){var m=h.value;if(m||(m=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value),d)return m;o.push(m)}}return o}return t(e).val()},t.fn.clearForm=function(e){return this.each(function(){t("input,select,textarea",this).clearFields(e)})},t.fn.clearFields=t.fn.clearInputs=function(e){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();i.test(a)||"textarea"==n?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==a?/MSIE/.test(navigator.userAgent)?t(this).replaceWith(t(this).clone(!0)):t(this).val(""):e&&(!0===e&&/hidden/.test(a)||"string"==typeof e&&t(this).is(e))&&(this.value="")})},t.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},t.fn.enable=function(t){return void 0===t&&(t=!0),this.each(function(){this.disabled=!t})},t.fn.selected=function(e){return void 0===e&&(e=!0),this.each(function(){var i=this.type;if("checkbox"==i||"radio"==i)this.checked=e;else if("option"==this.tagName.toLowerCase()){var a=t(this).parent("select");e&&a[0]&&"select-one"==a[0].type&&a.find("option").selected(!1),this.selected=e}})},t.fn.ajaxSubmit.debug=!1}),function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return void(e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=t.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(e.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(e){function a(){var a;return!i.settings.submitHandler||(i.submitButton&&(a=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&a.remove(),!1)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,a()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):a():(i.focusInvalid(),!1)})),i)},valid:function(){var e,i;return t(this[0]).is("form")?e=this.validate().form():(e=!0,i=t(this[0].form).validate(),this.each(function(){e=i.element(this)&&e})),e},removeAttrs:function(e){var i={},a=this;return t.each(e.split(/\s/),function(t,e){i[e]=a.attr(e),a.removeAttr(e)}),i},rules:function(e,i){var a,n,r,s,o,l,d=this[0];if(e)switch(a=t.data(d.form,"validator").settings,n=a.rules,r=t.validator.staticRules(d),e){case"add":t.extend(r,t.validator.normalizeRule(i)),delete r.messages,n[d.name]=r,i.messages&&(a.messages[d.name]=t.extend(a.messages[d.name],i.messages));break;case"remove":return i?(l={},t.each(i.split(/\s/),function(e,i){l[i]=r[i],delete r[i],"required"===i&&t(d).removeAttr("aria-required")}),l):(delete n[d.name],r)}return s=t.validator.normalizeRules(t.extend({},t.validator.classRules(d),t.validator.attributeRules(d),t.validator.dataRules(d),t.validator.staticRules(d)),d),s.required&&(o=s.required,delete s.required,s=t.extend({required:o},s),t(d).attr("aria-required","true")),s.remote&&(o=s.remote,delete s.remote,s=t.extend(s,{remote:o})),s}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){(9!==e.which||""!==this.elementValue(t))&&(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,a){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(a):t(e).addClass(i).removeClass(a)},unhighlight:function(e,i,a){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(a):t(e).removeClass(i).addClass(a)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var i=t.data(this[0].form,"validator"),a="on"+e.type.replace(/^validate/,""),n=i.settings;n[a]&&!this.is(n.ignore)&&n[a].call(i,this[0],e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,a=this.groups={};t.each(this.settings.groups,function(e,i){"string"==typeof i&&(i=i.split(/\s/)),t.each(i,function(t,i){a[i]=e})}),i=this.settings.rules,t.each(i,function(e,a){i[e]=t.validator.normalizeRule(a)}),t(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",e).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",e),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),t(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var i=this.clean(e),a=this.validationTargetFor(i),n=!0;return this.lastElement=a,void 0===a?delete this.invalid[i.name]:(this.prepareElement(a),this.currentElements=t(a),n=!1!==this.check(a),n?delete this.invalid[a.name]:this.invalid[a.name]=!0),t(e).attr("aria-invalid",!n),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n},showErrors:function(e){if(e){t.extend(this.errorMap,e),this.errorList=[];for(var i in e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)i++;return i},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in i||!e.objectLength(t(this).rules()))&&(i[this.name]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i,a=t(e),n=a.attr("type");return"radio"===n||"checkbox"===n?t("input[name='"+a.attr("name")+"']:checked").val():(i=a.val(),"string"==typeof i?i.replace(/\r/g,""):i)},check:function(e){e=this.validationTargetFor(this.clean(e));var i,a,n,r=t(e).rules(),s=t.map(r,function(t,e){return e}).length,o=!1,l=this.elementValue(e);for(a in r){n={method:a,parameters:r[a]};try{if("dependency-mismatch"===(i=t.validator.methods[a].call(this,l,e,n.parameters))&&1===s){o=!0;continue}if(o=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,n),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+n.method+"' method.",t),t}}return o?void 0:(this.objectLength(r)&&this.successList.push(e),!0)},customDataMessage:function(e,i){return t(e).data("msg"+i[0].toUpperCase()+i.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,i){return this.findDefined(this.customMessage(e.name,i),this.customDataMessage(e,i),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,i){var a=this.defaultMessage(e,i.method),n=/\$?\{(\d+)\}/g;"function"==typeof a?a=a.call(this,i.parameters,e):n.test(a)&&(a=t.validator.format(a.replace(n,"{$1}"),i.parameters)),this.errorList.push({message:a,element:e,method:i.method}),this.errorMap[e.name]=a,this.submitted[e.name]=a},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var a=this.errorsFor(e);a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(i)):(a=t("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(a=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(a).length||(this.settings.errorPlacement?this.settings.errorPlacement(a,t(e)):a.insertAfter(e))),!i&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var i=this.idOrName(e);return this.errors().filter(function(){return t(this).attr("for")===i})},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{"boolean":function(t){return t},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{
2
+ email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},a=t(e).attr("class");return a&&t.each(a.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},attributeRules:function(e){var i,a,n={},r=t(e),s=e.getAttribute("type");for(i in t.validator.methods)"required"===i?(a=e.getAttribute(i),""===a&&(a=!0),a=!!a):a=r.attr(i),/min|max/.test(i)&&(null===s||/number|range|text/.test(s))&&(a=+a),a||0===a?n[i]=a:s===i&&"range"!==s&&(n[i]=!0);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(e){var i,a,n={},r=t(e);for(i in t.validator.methods)void 0!==(a=r.data("rule"+i[0].toUpperCase()+i.substring(1).toLowerCase()))&&(n[i]=a);return n},staticRules:function(e){var i={},a=t.data(e.form,"validator");return a.settings.rules&&(i=t.validator.normalizeRule(a.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(a,n){if(!1===n)return void delete e[a];if(n.param||n.depends){var r=!0;switch(typeof n.depends){case"string":r=!!t(n.depends,i.form).length;break;case"function":r=n.depends.call(i,i)}r?e[a]=void 0===n.param||n.param:delete e[a]}}),t.each(e,function(a,n){e[a]=t.isFunction(n)?n(i):n}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=+e[this])}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[+e[this][0],+e[this][1]]:"string"==typeof e[this]&&(i=e[this].split(/[\s,]+/),e[this]=[+i[0],+i[1]]))}),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,a){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==a?a:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,a){if(!this.depend(a,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var n=t(i).val();return n&&n.length>0}return this.checkable(i)?this.getLength(e,i)>0:t.trim(e).length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(""+new Date(t))},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i,a,n=0,r=0,s=!1;if(t=t.replace(/\D/g,""),t.length<13||t.length>19)return!1;for(i=t.length-1;i>=0;i--)a=t.charAt(i),r=parseInt(a,10),s&&(r*=2)>9&&(r-=9),n+=r,s=!s;return n%10==0},minlength:function(e,i,a){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n>=a},maxlength:function(e,i,a){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||a>=n},rangelength:function(e,i,a){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n>=a[0]&&n<=a[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||i>=t},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},equalTo:function(e,i,a){var n=t(a);return this.settings.onfocusout&&n.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){t(i).valid()}),e===n.val()},remote:function(e,i,a){if(this.optional(i))return"dependency-mismatch";var n,r,s=this.previousValue(i);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),s.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=s.message,a="string"==typeof a&&{url:a}||a,s.old===e?s.valid:(s.old=e,n=this,this.startRequest(i),r={},r[i.name]=e,t.ajax(t.extend(!0,{url:a,mode:"abort",port:"validate"+i.name,dataType:"json",data:r,context:n.currentForm,success:function(a){var r,o,l,d=!0===a||"true"===a;n.settings.messages[i.name].remote=s.originalMessage,d?(l=n.formSubmitted,n.prepareElement(i),n.formSubmitted=l,n.successList.push(i),delete n.invalid[i.name],n.showErrors()):(r={},o=a||n.defaultMessage(i,"remote"),r[i.name]=s.message=t.isFunction(o)?o(e):o,n.invalid[i.name]=!0,n.showErrors(r)),s.valid=d,n.stopRequest(i,d)}},a)),"pending")}}}),t.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."}}(jQuery),function(t){var e,i={};t.ajaxPrefilter?t.ajaxPrefilter(function(t,e,a){var n=t.port;"abort"===t.mode&&(i[n]&&i[n].abort(),i[n]=a)}):(e=t.ajax,t.ajax=function(a){var n=("mode"in a?a:t.ajaxSettings).mode,r=("port"in a?a:t.ajaxSettings).port;return"abort"===n?(i[r]&&i[r].abort(),i[r]=e.apply(this,arguments),i[r]):e.apply(this,arguments)})}(jQuery),function(t){t.extend(t.fn,{validateDelegate:function(e,i,a){return this.bind(i,function(i){var n=t(i.target);return n.is(e)?a.apply(n,arguments):void 0})}})}(jQuery),function(t){t.validator.addMethod("mc_birthday",function(e,i,a){var n=!1,r=t("input:not(:hidden)",t(i).closest(a));if(0==r.filter(":filled").length&&this.optional(i))n=!0;else{var s=[];s.month=r.filter("input[name*='[month]']").val(),s.day=r.filter("input[name*='[day]']").val(),s.month=s.month-1;var o=new Date(1970,s.month,s.day);n=o.getDate()==s.day&&o.getMonth()==s.month}return n},"Please enter a valid month and day."),t.validator.addMethod("mc_date",function(e,i,a){var n=!1,r=t("input:not(:hidden)",t(i).closest(a));if(0==r.filter(":filled").length&&this.optional(i))n=!0;else{var s=[];s.month=r.filter("input[name*='[month]']").val(),s.day=r.filter("input[name*='[day]']").val(),s.year=r.filter("input[name*='[year]']").val(),s.month=s.month-1,s.year.length<4&&(s.year=parseInt(s.year)<50?2e3+parseInt(s.year):1900+parseInt(s.year));var o=new Date(s.year,s.month,s.day);n=o.getDate()==s.day&&o.getMonth()==s.month&&o.getFullYear()==s.year}return n},"Please enter a valid date"),t.validator.addMethod("mc_phone",function(e,i,a){var n=!1,r=t("input:filled:not(:hidden)",t(i).closest(a));return 0==r.length&&this.optional(i)?n=!0:(e=r.eq(0).val()+r.eq(1).val()+r.eq(2).val(),n=10==e.length&&e.match(/[0-9]{9}/)),n},"Please specify a valid phone number"),t.validator.addMethod("skip_or_complete_group",function(e,i,a){var n=t("input:not(:hidden)",t(i).closest(a)),r=n.eq(0),s=r.data("valid_skip")?r.data("valid_skip"):t.extend({},this),o=n.filter(function(){return s.elementValue(this)}).length,l=0===o||o===n.length;return r.data("valid_skip",s),t(i).data("being_validated")||(n.data("being_validated",!0),n.each(function(){s.element(this)}),n.data("being_validated",!1)),l},t.validator.format("Please supply missing fields.")),t.validator.addMethod("skip_or_fill_minimum",function(e,i,a){var n=t(a[1],i.form),r=n.eq(0),s=r.data("valid_skip")?r.data("valid_skip"):t.extend({},this),o=n.filter(function(){return s.elementValue(this)}).length,l=0===o||o>=a[0];return console.log(n.eq(0)),r.data("valid_skip",s),t(i).data("being_validated")||(n.data("being_validated",!0),n.each(function(){s.element(this)}),n.data("being_validated",!1)),l},t.validator.format("Please either skip these fields or fill at least {0} of them.")),t.validator.addMethod("zipcodeUS",function(t,e){return this.optional(e)||/^\d{5}-\d{4}$|^\d{5}$/.test(t)},"The specified US ZIP Code is invalid")}(jQuery),function(t){var e="";try{e=mc_custom_error_style}catch(t){e="#mc_embed_signup input.mce_inline_error { border-color:#6B0505; } #mc_embed_signup div.mce_inline_error { margin: 0 0 1em 0; padding: 5px 10px; background-color:#6B0505; font-weight: bold; z-index: 1; color:#fff; }"}var a=document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),a.appendChild(n),window.mc={openPopup:function(){t("#mc_embed_signup a.mc_embed_close").show(),setTimeout(function(){t("#mc_embed_signup").fadeIn()},mc.delayPopup)},closePopup:function(){t("#mc_embed_signup").hide();var e=new Date,i=new Date(e.getTime()+31536e6);document.cookie="MCEvilPopupClosed=yes;expires="+i.toGMTString()+";path=/"},evalPopup:function(){for(t("#mc_embed_signup").hide(),cks=document.cookie.split(";"),i=0;i<cks.length;i++)parts=cks[i].split("="),-1!=parts[0].indexOf("MCEvilPopupClosed")&&(mc.showPopup=!1);mc.showPopup&&mc.openPopup()},getAjaxSubmitUrl:function(){var e=t("form#mc-embedded-subscribe-form").attr("action");return e=e.replace("/post?u=","/post-json?u="),e+="&c=?"},getGroups:function(){var e={};return t(".mc-field-group").each(function(){var i=t(this).find("input:text:not(:hidden)");if(i.length>1){var a=i.first().attr("name"),n=t.map(i,function(t){return t.name});e[a.substring(0,a.indexOf("["))]=n.join(" ")}}),e},isMultiPartField:function(e){return t("input:not(:hidden)",t(e).closest(".mc-field-group")).length>1},isTooEarly:function(e){var i=t("input:not(:hidden)",t(e).closest(".mc-field-group"));return t(i).eq(-1).attr("id")!=t(e).attr("id")},mce_success_cb:function(e){if(t("#mce-success-response").hide(),t("#mce-error-response").hide(),"success"==e.result)t("#mce-"+e.result+"-response").show(),t("#mce-"+e.result+"-response").html(e.msg),t("#mc-embedded-subscribe-form").each(function(){this.reset()});else{var a,n=-1;try{var r=e.msg.split(" - ",2);void 0==r[1]?a=e.msg:(i=parseInt(r[0]),""+i==r[0]?(n=r[0],a=r[1]):(n=-1,a=e.msg))}catch(t){n=-1,a=e.msg}try{if(-1==n)t("#mce-"+e.result+"-response").show(),t("#mce-"+e.result+"-response").html(a);else{var s=t("input[name*='"+fnames[n]+"']").attr("name"),o={};o[s]=a,mc.mce_validator.showErrors(o)}}catch(i){t("#mce-"+e.result+"-response").show(),t("#mce-"+e.result+"-response").html(a)}}}},window.mc.mce_validator=t("#mc-embedded-subscribe-form").validate({errorClass:"mce_inline_error",errorElement:"div",onkeyup:!1,onfocusout:function(e){mc.isTooEarly(e)||t(e).valid()},onblur:function(e){mc.isTooEarly(e)||t(e).valid()},groups:mc.getGroups(),errorPlacement:function(t,e){e.closest(".mc-field-group").append(t)},submitHandler:function(e){t(e).ajaxSubmit(mc.ajaxOptions)}}),window.mc.ajaxOptions={url:mc.getAjaxSubmitUrl(),type:"GET",dataType:"json",contentType:"application/json; charset=utf-8",success:mc.mce_success_cb},t.validator.addClassRules("birthday",{digits:!0,mc_birthday:".datefield"}),t.validator.addClassRules("datepart",{digits:!0,mc_date:".datefield"}),t.validator.addClassRules("phonepart",{digits:!0,mc_phone:".phonefield"}),t("#mc_embed_signup a.mc_embed_close").click(function(){mc.closePopup()}),t(document).keydown(function(t){keycode=null==t?event.keyCode:t.which,27==keycode&&void 0!==mc.showPopup&&mc.closePopup()})}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.lightbox=e(t.jQuery)}(this,function(t){function e(e){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=t.extend({},this.constructor.defaults),this.option(e)}return e.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},e.prototype.option=function(e){t.extend(this.options,e)},e.prototype.imageCountLabel=function(t,e){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,e)},e.prototype.init=function(){var e=this;t(document).ready(function(){e.enable(),e.build()})},e.prototype.enable=function(){var e=this;t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(i){return e.start(t(i.currentTarget)),!1})},e.prototype.build=function(){var e=this;t('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return e.end(),!1}),this.$lightbox.hide().on("click",function(i){return"lightbox"===t(i.target).attr("id")&&e.end(),!1}),this.$outerContainer.on("click",function(i){return"lightbox"===t(i.target).attr("id")&&e.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===e.currentImageIndex?e.changeImage(e.album.length-1):e.changeImage(e.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return e.currentImageIndex===e.album.length-1?e.changeImage(0):e.changeImage(e.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(t){3===t.which&&(e.$nav.css("pointer-events","none"),e.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(e),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return e.end(),!1})},e.prototype.start=function(e){function i(t){a.album.push({link:t.attr("href"),title:t.attr("data-title")||t.attr("title")})}var a=this,n=t(window);n.on("resize",t.proxy(this.sizeOverlay,this)),t("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var r,s=0,o=e.attr("data-lightbox");if(o){r=t(e.prop("tagName")+'[data-lightbox="'+o+'"]');for(var l=0;l<r.length;l=++l)i(t(r[l])),r[l]===e[0]&&(s=l)}else if("lightbox"===e.attr("rel"))i(e);else{r=t(e.prop("tagName")+'[rel="'+e.attr("rel")+'"]');for(var d=0;d<r.length;d=++d)i(t(r[d])),r[d]===e[0]&&(s=d)}var u=n.scrollTop()+this.options.positionFromTop,c=n.scrollLeft();this.$lightbox.css({top:u+"px",left:c+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&t("body").addClass("lb-disable-scrolling"),this.changeImage(s)},e.prototype.changeImage=function(e){var i=this;this.disableKeyboardNav();var a=this.$lightbox.find(".lb-image");this.$overlay.fadeIn(this.options.fadeDuration),t(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var n=new Image;n.onload=function(){var r,s,o,l,d,u;a.attr("src",i.album[e].link),t(n),a.width(n.width),a.height(n.height),i.options.fitImagesInViewport&&(u=t(window).width(),d=t(window).height(),l=u-i.containerPadding.left-i.containerPadding.right-i.imageBorderWidth.left-i.imageBorderWidth.right-20,o=d-i.containerPadding.top-i.containerPadding.bottom-i.imageBorderWidth.top-i.imageBorderWidth.bottom-120,i.options.maxWidth&&i.options.maxWidth<l&&(l=i.options.maxWidth),i.options.maxHeight&&i.options.maxHeight<l&&(o=i.options.maxHeight),(n.width>l||n.height>o)&&(n.width/l>n.height/o?(s=l,r=parseInt(n.height/(n.width/s),10),a.width(s),a.height(r)):(r=o,s=parseInt(n.width/(n.height/r),10),a.width(s),a.height(r)))),i.sizeContainer(a.width(),a.height())},n.src=this.album[e].link,this.currentImageIndex=e},e.prototype.sizeOverlay=function(){this.$overlay.width(t(document).width()).height(t(document).height())},e.prototype.sizeContainer=function(t,e){function i(){a.$lightbox.find(".lb-dataContainer").width(s),a.$lightbox.find(".lb-prevLink").height(o),a.$lightbox.find(".lb-nextLink").height(o),a.showImage()}var a=this,n=this.$outerContainer.outerWidth(),r=this.$outerContainer.outerHeight(),s=t+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,o=e+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;n!==s||r!==o?this.$outerContainer.animate({width:s,height:o},this.options.resizeDuration,"swing",function(){i()}):i()},e.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},e.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(t&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),t&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),t&&this.$lightbox.find(".lb-next").css("opacity","1"))))},e.prototype.updateDetails=function(){var e=this;if("undefined"!=typeof this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var i=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?i.text(this.album[this.currentImageIndex].title):i.html(this.album[this.currentImageIndex].title),i.fadeIn("fast").find("a").on("click",function(){t(this).attr("target")!==undefined?window.open(t(this).attr("href"),t(this).attr("target")):location.href=t(this).attr("href")})}if(this.album.length>1&&this.options.showImageNumberLabel){var a=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(a).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return e.sizeOverlay()})},e.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){(new Image).src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){(new Image).src=this.album[this.currentImageIndex-1].link}},e.prototype.enableKeyboardNav=function(){t(document).on("keyup.keyboard",t.proxy(this.keyboardAction,this))},e.prototype.disableKeyboardNav=function(){t(document).off(".keyboard")},e.prototype.keyboardAction=function(t){var e=t.keyCode,i=String.fromCharCode(e).toLowerCase();27===e||i.match(/x|o|c/)?this.end():"p"===i||37===e?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):"n"!==i&&39!==e||(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},e.prototype.end=function(){this.disableKeyboardNav(),t(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),t("select, object, embed").css({visibility:"visible"}),this.options.disableScrolling&&t("body").removeClass("lb-disable-scrolling")},new e}),$(document).ready(function(){lightbox.option({disableScrolling:!0,albumLabel:""})});
@@ -0,0 +1,65 @@
1
+ $(document).ready(function(){
2
+
3
+ var menu = $('#tabbed-nav-bar');
4
+
5
+ if(menu.length){
6
+
7
+ var origOffsetY = menu.offset().top;
8
+ var navHeight = $("nav#main-navigation").height;
9
+
10
+ var text = $('#tabbed-nav-bar ul.nav-tabs li.active').text();
11
+ $('#sub-navigation-header').text(text);
12
+
13
+ function scroll() {
14
+ var text = $('#tabbed-nav-bar ul.nav-tabs li.active').text();
15
+ $('#sub-navigation-header').text(text);
16
+ $('#sub-navigation-header').hide();
17
+
18
+
19
+ if ( $(window).scrollTop() > origOffsetY) {
20
+ $('#tabbed-nav-bar').addClass('sticky-nav');
21
+ $("nav#main-navigation").hide();
22
+ $('#main-container').css('margin-top','0px');
23
+ if ($(window).width() < 1200) {
24
+ $('#tabbed-nav-bar nav').removeClass('navbar-default');
25
+ $('#tabbed-nav-bar nav').addClass('navbar-inverse');
26
+
27
+
28
+ $('#tabbed-nav-bar ul.nav-tabs').addClass('nav-stacked');
29
+ $('#sub-navigation-header').show();
30
+ }
31
+ else {
32
+ $('#tabbed-nav-bar nav').addClass('navbar-default');
33
+ $('#tabbed-nav-bar nav').removeClass('navbar-inverse');
34
+
35
+ $('#tabbed-nav-bar ul.nav-tabs').removeClass('nav-stacked');
36
+ $('#sub-navigation-header').hide();
37
+ }
38
+ }
39
+ else {
40
+ $('#tabbed-nav-bar').removeClass('sticky-nav');
41
+ $('#main-container').css('margin-top','-100px');
42
+ $("nav#main-navigation").show();
43
+
44
+ $('#tabbed-nav-bar nav').addClass('navbar-default');
45
+ $('#tabbed-nav-bar nav').removeClass('navbar-inverse');
46
+
47
+ if ($(window).width() < 1200) {
48
+ $('#tabbed-nav-bar ul.nav-tabs').addClass('nav-stacked');
49
+ $('#sub-navigation-header').show();
50
+ }
51
+ else {
52
+ $('#tabbed-nav-bar ul.nav-tabs').removeClass('nav-stacked');
53
+ $('#sub-navigation-header').hide();
54
+ }
55
+
56
+
57
+ }
58
+ }
59
+ scroll();
60
+ $(window).scroll(function(){
61
+ scroll();
62
+ });
63
+ $(window).resize(scroll);
64
+ }
65
+ });
@@ -2,7 +2,14 @@
2
2
  window.addEventListener("load", function(){
3
3
  window.cookieconsent.initialise({
4
4
  "palette": {
5
+ "popup": {
6
+ "background": "#000000",
7
+ "text": "#ffdf84"
8
+ },
9
+ "button": {
10
+ "background": "#19947b",
11
+ "text": "#ffffff"
12
+ }
5
13
  },
6
- "theme": "classic",
7
- "position": "bottom-right"
14
+ "position": "bottom-left"
8
15
  })});
@@ -0,0 +1,11 @@
1
+ /**
2
+ * jQuery Filtrify v0.2
3
+ * Beautiful advanced tag filtering with HTML5 and jQuery
4
+ * http://luis-almeida.github.com/filtrify
5
+ *
6
+ * Licensed under the MIT license.
7
+ * Copyright 2012 Luís Almeida
8
+ * https://github.com/luis-almeida
9
+ */
10
+
11
+ ;(function($,window,document,undefined){var defaults={noresults:"No results match",hide:true,block:[],close:false,query:undefined,callback:undefined};function Filtrify(containerID,placeholderID,options){this.options=$.extend({},defaults,options);this._container=$("#"+containerID);this._holder=$("#"+placeholderID);this._items=this._container.children();this._matrix=[];this._fields={};this._order=[];this._menu={};this._query={};this._match=[];this._mismatch=[];this._z=9999;this._bind=function(fn,me){return function(){return fn.apply(me,arguments);};};this.init();};Filtrify.prototype.init=function(){this.load();this.set();if(this.options.query!==undefined){this.trigger(this.options.query);};};Filtrify.prototype.load=function(){var attr,i,name,field,tags,data,t;this._items.each(this._bind(function(index,element){attr=element.attributes;data={};for(i=0;i<attr.length;i++){name=attr[i].name;if(name.indexOf("data-")===0&&$.inArray(name,this.options.block)===-1){field=name.replace(/data-/gi,"").replace(/-/gi," ");tags=element.getAttribute(name).split(", ");data[field]=tags;if(this._fields[field]===undefined){this._order.push(field);this._fields[field]={};};for(t=0;t<tags.length;t++){if(tags[t].length){tags[t]=tags[t].replace(/\\/g,"");this._fields[field][tags[t]]=this._fields[field][tags[t]]===undefined?1:this._fields[field][tags[t]]+1;};};};};this._matrix.push(data);},this));};Filtrify.prototype.set=function(){var f=0,field,browser=$.browser;this._menu.list=$("<ul class='ft-menu' />");for(f;f<this._order.length;f++){field=browser.webkit||browser.opera?this._order[f]:this._order[this._order.length-f-1];this._menu[field]={};this.build(field);this.cache(field);this.events(field);this.append(field);this.query(field);};this._holder.html(this._menu.list);};Filtrify.prototype.build=function(f){var html,t,tag,tags=[];html="<li class='ft-field'>"+"<span class='ft-label'>"+f+"</span>"+"<div class='ft-panel ft-hidden'>"+"<ul class='ft-selected' style='display:none;'></ul>"+"<fieldset class='ft-search'><input type='text' placeholder='Search' /></fieldset>"+"<ul class='ft-tags'>";for(tag in this._fields[f]){tags.push(tag);};tags.sort();for(t=0;t<tags.length;t++){tag=tags[t];html+="<li data-count='"+this._fields[f][tag]+"' >"+tag+"</li>";};html+="</ul><div class='ft-mismatch ft-hidden'></div></div></li>";this._menu[f].item=$(html);};Filtrify.prototype.cache=function(f){this._menu[f].label=this._menu[f].item.find("span.ft-label");this._menu[f].panel=this._menu[f].item.find("div.ft-panel");this._menu[f].selected=this._menu[f].item.find("ul.ft-selected");this._menu[f].search=this._menu[f].item.find("fieldset.ft-search");this._menu[f].tags=this._menu[f].item.find("ul.ft-tags");this._menu[f].mismatch=this._menu[f].item.find("div.ft-mismatch");this._menu[f].highlight=$([]);this._menu[f].active=$([]);};Filtrify.prototype.append=function(f){this._menu.list.append(this._menu[f].item);};Filtrify.prototype.query=function(f){this._query[f]=[];};Filtrify.prototype.events=function(f){$(document).on("click",this._bind(function(){this.closePanel(f);},this));this._menu[f].panel.on("click",this._bind(function(event){event.stopPropagation();},this));this._menu[f].panel.on("mouseenter",this._bind(function(){this.bringToFront(f);},this));this._menu[f].label.on("click",this._bind(function(event){this.openPanel(f);this.bringToFront(f);event.stopPropagation();},this));this._menu[f].search.on("keyup","input",this._bind(function(event){if(event.which===38||event.which===40){return false;}else if(event.which===13){if(this._menu[f].highlight.length){this.select(f);this.filter();};}else{this.search(f,event.target.value);};},this));this._menu[f].search.on("keydown","input",this._bind(function(event){if(event.which===40){this.moveHighlight(f,"down");event.preventDefault();}else if(event.which===38){this.moveHighlight(f,"up");event.preventDefault();};},this));this._menu[f].tags.on("mouseenter","li",this._bind(function(event){this.highlight(f,$(event.target));},this));this._menu[f].tags.on("mouseleave","li",this._bind(function(){this.clearHighlight(f);},this));this._menu[f].tags.on("click","li",this._bind(function(){this.select(f);this.filter();},this));this._menu[f].selected.on("click","li",this._bind(function(event){this.unselect(f,$(event.target).text());this.filter();},this));};Filtrify.prototype.bringToFront=function(f){this._z=this._z+1;this._menu[f].panel.css("z-index",this._z);this._menu[f].search.find("input").focus();};Filtrify.prototype.openPanel=function(f){this._menu[f].label.toggleClass("ft-opened");this._menu[f].panel.toggleClass("ft-hidden");this._menu[f].search.find("input").focus();};Filtrify.prototype.closePanel=function(f){this.resetSearch(f);this._menu[f].panel.addClass("ft-hidden");this._menu[f].label.removeClass("ft-opened");};Filtrify.prototype.preventOverflow=function(f){var high_bottom,high_top,maxHeight,visible_bottom,visible_top;maxHeight=parseInt(this._menu[f].tags.css("maxHeight"),10);visible_top=this._menu[f].tags.scrollTop();visible_bottom=maxHeight+visible_top;high_top=this._menu[f].highlight.position().top+this._menu[f].tags.scrollTop();high_bottom=high_top+this._menu[f].highlight.outerHeight();if(high_bottom>=visible_bottom){return this._menu[f].tags.scrollTop((high_bottom-maxHeight)>0?high_bottom-maxHeight:0);}else if(high_top<visible_top){return this._menu[f].tags.scrollTop(high_top);}};Filtrify.prototype.moveHighlight=function(f,direction){if(this._menu[f].highlight.length){var method=direction==="down"?"nextAll":"prevAll",next=this._menu[f].highlight[method](":visible:first");if(next.length){this.clearHighlight(f);this.highlight(f,next);this.preventOverflow(f);};}else{this.highlight(f,this._menu[f].tags.children(":visible:first"));this.preventOverflow(f);};};Filtrify.prototype.highlight=function(f,elem){this._menu[f].highlight=elem;this._menu[f].highlight.addClass("ft-highlight");};Filtrify.prototype.removeHighlight=function(f){this._menu[f].highlight.removeClass("ft-highlight");};Filtrify.prototype.hideHighlight=function(f){this._menu[f].highlight.addClass("ft-hidden");};Filtrify.prototype.resetHighlight=function(f){this._menu[f].highlight=$([]);};Filtrify.prototype.clearHighlight=function(f){this.removeHighlight(f);this.resetHighlight(f);};Filtrify.prototype.showMismatch=function(f,txt){this._menu[f].mismatch.html(this.options.noresults+" \"<b>"+txt+"</b>\"").removeClass("ft-hidden");};Filtrify.prototype.hideMismatch=function(f){this._menu[f].mismatch.addClass("ft-hidden");};Filtrify.prototype.search=function(f,txt){this.clearHighlight(f);this.showResults(f,txt);this.highlight(f,this._menu[f].tags.children(":visible:first"));};Filtrify.prototype.resetSearch=function(f){this._menu[f].search.find("input").val("");this._menu[f].tags.children().not(this._menu[f].active).removeClass("ft-hidden");this.hideMismatch(f);};Filtrify.prototype.showResults=function(f,txt){var results=0;this.hideMismatch(f);this._menu[f].tags.children().not(this._menu[f].active).each(function(){if((this.textContent||this.innerText).toUpperCase().indexOf(txt.toUpperCase())>=0){$(this).removeClass("ft-hidden");results=results+1;}else{$(this).addClass("ft-hidden");};});if(!results){this.showMismatch(f,txt);};};Filtrify.prototype.select=function(f){this.updateQueryTags(f,this._menu[f].highlight.text());this.updateActiveClass(f);this.removeHighlight(f);this.appendToSelected(f);this.addToActive(f);this.hideHighlight(f);this.resetHighlight(f);this.resetSearch(f);if(this.options.close){this.closePanel(f);};};Filtrify.prototype.updateQueryTags=function(f,tag){var index=$.inArray(tag,this._query[f]);if(index===-1){this._query[f].push(tag);}else{this._query[f].splice(index,1);};};Filtrify.prototype.updateActiveClass=function(f){if(this._query[f].length){this._menu[f].label.addClass("ft-active");}else{this._menu[f].label.removeClass("ft-active");};};Filtrify.prototype.appendToSelected=function(f){this._menu[f].selected.append(this._menu[f].highlight.clone());this.slideSelected(f);};Filtrify.prototype.addToActive=function(f){this._menu[f].active=this._menu[f].active.add(this._menu[f].highlight);};Filtrify.prototype.unselect=function(f,tag){this.updateQueryTags(f,tag);this.removeFromSelected(f,tag);this.removeFromActive(f,tag);this.updateActiveClass(f);this.resetSearch(f);};Filtrify.prototype.removeFromSelected=function(f,tag){this._menu[f].selected.children().filter(function(){return(this.textContent||this.innerText)===tag;}).remove();this.slideSelected(f);};Filtrify.prototype.removeFromActive=function(f,tag){this._menu[f].active=this._menu[f].active.filter(function(){return(this.textContent||this.innerText)!==tag;});};Filtrify.prototype.slideSelected=function(f){if(this._menu[f].selected.children().length){this._menu[f].selected.slideDown("fast");}else{this._menu[f].selected.slideUp("fast");};};Filtrify.prototype.filter=function(){var f,r,t,c,m;this.resetCachedMatch();for(r=this._matrix.length-1;r>=0;r--){m=true;for(f in this._query){c=0;for(t=this._query[f].length-1;t>=0;t--){if($.inArray(this._query[f][t],this._matrix[r][f])!==-1){c=c+1;};};if(!this._query[f].length||c>=this._query[f].length){}else{m=false;};};this.updateFields(r,m);this.cacheMatch(r,m);this.showMatch(r,m);};this.rewriteFields();this.callback();};Filtrify.prototype.updateFields=function(row,match){var field,tags,t;for(field in this._fields){if(row===this._matrix.length-1){this._fields[field]={};};tags=this._matrix[row][field];if(match&&tags){for(t=0;t<tags.length;t++){if(tags[t].length){this._fields[field][tags[t]]=this._fields[field][tags[t]]===undefined?1:this._fields[field][tags[t]]+1;};};};};};Filtrify.prototype.rewriteFields=function(){var field;for(field in this._fields){this._menu[field].tags.children().each(this._bind(function(index,element){var tag=(element.textContent||element.innerText),count=this._fields[field][tag]===undefined?0:this._fields[field][tag];element.setAttribute("data-count",count);},this));};};Filtrify.prototype.resetCachedMatch=function(){this._match=[];this._mismatch=[];};Filtrify.prototype.cacheMatch=function(row,match){if(match){this._match.unshift(this._items[row]);}else{this._mismatch.unshift(this._items[row]);};};Filtrify.prototype.showMatch=function(row,match){if(this.options.hide){var hidden=this._items[row].className.indexOf("ft-hidden")!==-1;if(match){if(hidden)this._items[row].className=this._items[row].className.replace(/ft-hidden/g,"");}else{if(!hidden)this._items[row].className=this._items[row].className+" ft-hidden";};};};Filtrify.prototype.callback=function(){if(this.options.callback!==undefined&&$.isFunction(this.options.callback)){this.options.callback(this._query,this._match,this._mismatch);};};Filtrify.prototype.trigger=function(query){var f;for(f in this._fields){this.clearSearch(f);this.updateQueryField(f,query);this.updateActiveClass(f);this.updatePanel(f);this.toggleSelected(f);};this.filter();};Filtrify.prototype.clearSearch=function(f){this.clearHighlight(f);this.resetSearch(f);this.clearSelected(f);};Filtrify.prototype.clearSelected=function(f){this._menu[f].selected.empty();this._menu[f].active=$([]);};Filtrify.prototype.updateQueryField=function(f,query){this._query[f]=query[f]!==undefined?query[f]:[];};Filtrify.prototype.updatePanel=function(f){var t=0,tag,tags=this._menu[f].tags.children().removeClass("ft-hidden");for(t;t<this._query[f].length;t++){tag=tags.filter(this._bind(function(index){return(tags[index].textContent||tags[index].innerText)===this._query[f][t];},this));this._menu[f].selected.append(tag.clone());this._menu[f].active=this._menu[f].active.add(tag);tag.addClass("ft-hidden");};};Filtrify.prototype.toggleSelected=function(f){if(this._menu[f].selected.children().length){this._menu[f].selected.show();}else{this._menu[f].selected.hide();};};Filtrify.prototype.reset=function(){this.trigger({});};$.filtrify=function(containerID,placeholderID,options){return new Filtrify(containerID,placeholderID,options);};})(jQuery,window,document);
@@ -1,35 +1,2 @@
1
1
  /*! flipclock 2015-08-31 */
2
2
  var Base=function(){};Base.extend=function(a,b){"use strict";var c=Base.prototype.extend;Base._prototyping=!0;var d=new this;c.call(d,a),d.base=function(){},delete Base._prototyping;var e=d.constructor,f=d.constructor=function(){if(!Base._prototyping)if(this._constructing||this.constructor==f)this._constructing=!0,e.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||c).call(arguments[0],d)};return f.ancestor=this,f.extend=this.extend,f.forEach=this.forEach,f.implement=this.implement,f.prototype=d,f.toString=this.toString,f.valueOf=function(a){return"object"==a?f:e.valueOf()},c.call(f,b),"function"==typeof f.init&&f.init(),f},Base.prototype={extend:function(a,b){if(arguments.length>1){var c=this[a];if(c&&"function"==typeof b&&(!c.valueOf||c.valueOf()!=b.valueOf())&&/\bbase\b/.test(b)){var d=b.valueOf();b=function(){var a=this.base||Base.prototype.base;this.base=c;var b=d.apply(this,arguments);return this.base=a,b},b.valueOf=function(a){return"object"==a?b:d},b.toString=Base.toString}this[a]=b}else if(a){var e=Base.prototype.extend;Base._prototyping||"function"==typeof this||(e=this.extend||e);for(var f={toSource:null},g=["constructor","toString","valueOf"],h=Base._prototyping?0:1;i=g[h++];)a[i]!=f[i]&&e.call(this,i,a[i]);for(var i in a)f[i]||e.call(this,i,a[i])}return this}},Base=Base.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(a,b,c){for(var d in a)void 0===this.prototype[d]&&b.call(c,a[d],d,a)},implement:function(){for(var a=0;a<arguments.length;a++)"function"==typeof arguments[a]?arguments[a](this.prototype):this.prototype.extend(arguments[a]);return this},toString:function(){return String(this.valueOf())}});var FlipClock;!function(a){"use strict";FlipClock=function(a,b,c){return b instanceof Object&&b instanceof Date==!1&&(c=b,b=0),new FlipClock.Factory(a,b,c)},FlipClock.Lang={},FlipClock.Base=Base.extend({buildDate:"2014-12-12",version:"0.7.7",constructor:function(b,c){"object"!=typeof b&&(b={}),"object"!=typeof c&&(c={}),this.setOptions(a.extend(!0,{},b,c))},callback:function(a){if("function"==typeof a){for(var b=[],c=1;c<=arguments.length;c++)arguments[c]&&b.push(arguments[c]);a.apply(this,b)}},log:function(a){window.console&&console.log&&console.log(a)},getOption:function(a){return this[a]?this[a]:!1},getOptions:function(){return this},setOption:function(a,b){this[a]=b},setOptions:function(a){for(var b in a)"undefined"!=typeof a[b]&&this.setOption(b,a[b])}})}(jQuery),function(a){"use strict";FlipClock.Face=FlipClock.Base.extend({autoStart:!0,dividers:[],factory:!1,lists:[],constructor:function(a,b){this.dividers=[],this.lists=[],this.base(b),this.factory=a},build:function(){this.autoStart&&this.start()},createDivider:function(b,c,d){"boolean"!=typeof c&&c||(d=c,c=b);var e=['<span class="'+this.factory.classes.dot+' top"></span>','<span class="'+this.factory.classes.dot+' bottom"></span>'].join("");d&&(e=""),b=this.factory.localize(b);var f=['<span class="'+this.factory.classes.divider+" "+(c?c:"").toLowerCase()+'">','<span class="'+this.factory.classes.label+'">'+(b?b:"")+"</span>",e,"</span>"],g=a(f.join(""));return this.dividers.push(g),g},createList:function(a,b){"object"==typeof a&&(b=a,a=0);var c=new FlipClock.List(this.factory,a,b);return this.lists.push(c),c},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0,{minimumDigits:this.factory.minimumDigits}),this.flip(this.factory.original,!1)},appendDigitToClock:function(a){a.$el.append(!1)},addDigit:function(a){var b=this.createList(a,{classes:{active:this.factory.classes.active,before:this.factory.classes.before,flip:this.factory.classes.flip}});this.appendDigitToClock(b)},start:function(){},stop:function(){},autoIncrement:function(){this.factory.countdown?this.decrement():this.increment()},increment:function(){this.factory.time.addSecond()},decrement:function(){0==this.factory.time.getTimeSeconds()?this.factory.stop():this.factory.time.subSecond()},flip:function(b,c){var d=this;a.each(b,function(a,b){var e=d.lists[a];e?(c||b==e.digit||e.play(),e.select(b)):d.addDigit(b)})}})}(jQuery),function(a){"use strict";FlipClock.Factory=FlipClock.Base.extend({animationRate:1e3,autoStart:!0,callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},classes:{active:"flip-clock-active",before:"flip-clock-before",divider:"flip-clock-divider",dot:"flip-clock-dot",label:"flip-clock-label",flip:"flip",play:"play",wrapper:"flip-clock-wrapper"},clockFace:"HourlyCounter",countdown:!1,defaultClockFace:"HourlyCounter",defaultLanguage:"english",$el:!1,face:!0,lang:!1,language:"english",minimumDigits:0,original:!1,running:!1,time:!1,timer:!1,$wrapper:!1,constructor:function(b,c,d){d||(d={}),this.lists=[],this.running=!1,this.base(d),this.$el=a(b).addClass(this.classes.wrapper),this.$wrapper=this.$el,this.original=c instanceof Date?c:c?Math.round(c):0,this.time=new FlipClock.Time(this,this.original,{minimumDigits:this.minimumDigits,animationRate:this.animationRate}),this.timer=new FlipClock.Timer(this,d),this.loadLanguage(this.language),this.loadClockFace(this.clockFace,d),this.autoStart&&this.start()},loadClockFace:function(a,b){var c,d="Face",e=!1;return a=a.ucfirst()+d,this.face.stop&&(this.stop(),e=!0),this.$el.html(""),this.time.minimumDigits=this.minimumDigits,c=FlipClock[a]?new FlipClock[a](this,b):new FlipClock[this.defaultClockFace+d](this,b),c.build(),this.face=c,e&&this.start(),this.face},loadLanguage:function(a){var b;return b=FlipClock.Lang[a.ucfirst()]?FlipClock.Lang[a.ucfirst()]:FlipClock.Lang[a]?FlipClock.Lang[a]:FlipClock.Lang[this.defaultLanguage],this.lang=b},localize:function(a,b){var c=this.lang;if(!a)return null;var d=a.toLowerCase();return"object"==typeof b&&(c=b),c&&c[d]?c[d]:a},start:function(a){var b=this;b.running||b.countdown&&!(b.countdown&&b.time.time>0)?b.log("Trying to start timer when countdown already at 0"):(b.face.start(b.time),b.timer.start(function(){b.flip(),"function"==typeof a&&a()}))},stop:function(a){this.face.stop(),this.timer.stop(a);for(var b in this.lists)this.lists.hasOwnProperty(b)&&this.lists[b].stop()},reset:function(a){this.timer.reset(a),this.face.reset()},setTime:function(a){this.time.time=a,this.flip(!0)},getTime:function(a){return this.time},setCountdown:function(a){var b=this.running;this.countdown=a?!0:!1,b&&(this.stop(),this.start())},flip:function(a){this.face.flip(!1,a)}})}(jQuery),function(a){"use strict";FlipClock.List=FlipClock.Base.extend({digit:0,classes:{active:"flip-clock-active",before:"flip-clock-before",flip:"flip"},factory:!1,$el:!1,$obj:!1,items:[],lastDigit:0,constructor:function(a,b,c){this.factory=a,this.digit=b,this.lastDigit=b,this.$el=this.createList(),this.$obj=this.$el,b>0&&this.select(b),this.factory.$el.append(this.$el)},select:function(a){if("undefined"==typeof a?a=this.digit:this.digit=a,this.digit!=this.lastDigit){var b=this.$el.find("."+this.classes.before).removeClass(this.classes.before);this.$el.find("."+this.classes.active).removeClass(this.classes.active).addClass(this.classes.before),this.appendListItem(this.classes.active,this.digit),b.remove(),this.lastDigit=this.digit}},play:function(){this.$el.addClass(this.factory.classes.play)},stop:function(){var a=this;setTimeout(function(){a.$el.removeClass(a.factory.classes.play)},this.factory.timer.interval)},createListItem:function(a,b){return['<li class="'+(a?a:"")+'">','<a href="#">','<div class="up">','<div class="shadow"></div>','<div class="inn">'+(b?b:"")+"</div>","</div>",'<div class="down">','<div class="shadow"></div>','<div class="inn">'+(b?b:"")+"</div>","</div>","</a>","</li>"].join("")},appendListItem:function(a,b){var c=this.createListItem(a,b);this.$el.append(c)},createList:function(){var b=this.getPrevDigit()?this.getPrevDigit():this.digit,c=a(['<ul class="'+this.classes.flip+" "+(this.factory.running?this.factory.classes.play:"")+'">',this.createListItem(this.classes.before,b),this.createListItem(this.classes.active,this.digit),"</ul>"].join(""));return c},getNextDigit:function(){return 9==this.digit?0:this.digit+1},getPrevDigit:function(){return 0==this.digit?9:this.digit-1}})}(jQuery),function(a){"use strict";String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)},a.fn.FlipClock=function(b,c){return new FlipClock(a(this),b,c)},a.fn.flipClock=function(b,c){return a.fn.FlipClock(b,c)}}(jQuery),function(a){"use strict";FlipClock.Time=FlipClock.Base.extend({time:0,factory:!1,minimumDigits:0,constructor:function(a,b,c){"object"!=typeof c&&(c={}),c.minimumDigits||(c.minimumDigits=a.minimumDigits),this.base(c),this.factory=a,b&&(this.time=b)},convertDigitsToArray:function(a){var b=[];a=a.toString();for(var c=0;c<a.length;c++)a[c].match(/^\d*$/g)&&b.push(a[c]);return b},digit:function(a){var b=this.toString(),c=b.length;return b[c-a]?b[c-a]:!1},digitize:function(b){var c=[];if(a.each(b,function(a,b){b=b.toString(),1==b.length&&(b="0"+b);for(var d=0;d<b.length;d++)c.push(b.charAt(d))}),c.length>this.minimumDigits&&(this.minimumDigits=c.length),this.minimumDigits>c.length)for(var d=c.length;d<this.minimumDigits;d++)c.unshift("0");return c},getDateObject:function(){return this.time instanceof Date?this.time:new Date((new Date).getTime()+1e3*this.getTimeSeconds())},getDayCounter:function(a){var b=[this.getDays(),this.getHours(!0),this.getMinutes(!0)];return a&&b.push(this.getSeconds(!0)),this.digitize(b)},getDays:function(a){var b=this.getTimeSeconds()/60/60/24;return a&&(b%=7),Math.floor(b)},getHourCounter:function(){var a=this.digitize([this.getHours(),this.getMinutes(!0),this.getSeconds(!0)]);return a},getHourly:function(){return this.getHourCounter()},getHours:function(a){var b=this.getTimeSeconds()/60/60;return a&&(b%=24),Math.floor(b)},getMilitaryTime:function(a,b){"undefined"==typeof b&&(b=!0),a||(a=this.getDateObject());var c=[a.getHours(),a.getMinutes()];return b===!0&&c.push(a.getSeconds()),this.digitize(c)},getMinutes:function(a){var b=this.getTimeSeconds()/60;return a&&(b%=60),Math.floor(b)},getMinuteCounter:function(){var a=this.digitize([this.getMinutes(),this.getSeconds(!0)]);return a},getTimeSeconds:function(a){return a||(a=new Date),this.time instanceof Date?this.factory.countdown?Math.max(this.time.getTime()/1e3-a.getTime()/1e3,0):a.getTime()/1e3-this.time.getTime()/1e3:this.time},getTime:function(a,b){"undefined"==typeof b&&(b=!0),a||(a=this.getDateObject()),console.log(a);var c=a.getHours(),d=[c>12?c-12:0===c?12:c,a.getMinutes()];return b===!0&&d.push(a.getSeconds()),this.digitize(d)},getSeconds:function(a){var b=this.getTimeSeconds();return a&&(60==b?b=0:b%=60),Math.ceil(b)},getWeeks:function(a){var b=this.getTimeSeconds()/60/60/24/7;return a&&(b%=52),Math.floor(b)},removeLeadingZeros:function(b,c){var d=0,e=[];return a.each(c,function(a,f){b>a?d+=parseInt(c[a],10):e.push(c[a])}),0===d?e:c},addSeconds:function(a){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()+a):this.time+=a},addSecond:function(){this.addSeconds(1)},subSeconds:function(a){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()-a):this.time-=a},subSecond:function(){this.subSeconds(1)},toString:function(){return this.getTimeSeconds().toString()}})}(jQuery),function(a){"use strict";FlipClock.Timer=FlipClock.Base.extend({callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},count:0,factory:!1,interval:1e3,animationRate:1e3,constructor:function(a,b){this.base(b),this.factory=a,this.callback(this.callbacks.init),this.callback(this.callbacks.create)},getElapsed:function(){return this.count*this.interval},getElapsedTime:function(){return new Date(this.time+this.getElapsed())},reset:function(a){clearInterval(this.timer),this.count=0,this._setInterval(a),this.callback(this.callbacks.reset)},start:function(a){this.factory.running=!0,this._createTimer(a),this.callback(this.callbacks.start)},stop:function(a){this.factory.running=!1,this._clearInterval(a),this.callback(this.callbacks.stop),this.callback(a)},_clearInterval:function(){clearInterval(this.timer)},_createTimer:function(a){this._setInterval(a)},_destroyTimer:function(a){this._clearInterval(),this.timer=!1,this.callback(a),this.callback(this.callbacks.destroy)},_interval:function(a){this.callback(this.callbacks.interval),this.callback(a),this.count++},_setInterval:function(a){var b=this;b._interval(a),b.timer=setInterval(function(){b._interval(a)},this.interval)}})}(jQuery),function(a){FlipClock.TwentyFourHourClockFace=FlipClock.Face.extend({constructor:function(a,b){this.base(a,b)},build:function(b){var c=this,d=this.factory.$el.find("ul");this.factory.time.time||(this.factory.original=new Date,this.factory.time=new FlipClock.Time(this.factory,this.factory.original));var b=b?b:this.factory.time.getMilitaryTime(!1,this.showSeconds);b.length>d.length&&a.each(b,function(a,b){c.createList(b)}),this.createDivider(),this.createDivider(),a(this.dividers[0]).insertBefore(this.lists[this.lists.length-2].$el),a(this.dividers[1]).insertBefore(this.lists[this.lists.length-4].$el),this.base()},flip:function(a,b){this.autoIncrement(),a=a?a:this.factory.time.getMilitaryTime(!1,this.showSeconds),this.base(a,b)}})}(jQuery),function(a){FlipClock.CounterFace=FlipClock.Face.extend({shouldAutoIncrement:!1,constructor:function(a,b){"object"!=typeof b&&(b={}),a.autoStart=b.autoStart?!0:!1,b.autoStart&&(this.shouldAutoIncrement=!0),a.increment=function(){a.countdown=!1,a.setTime(a.getTime().getTimeSeconds()+1)},a.decrement=function(){a.countdown=!0;var b=a.getTime().getTimeSeconds();b>0&&a.setTime(b-1)},a.setValue=function(b){a.setTime(b)},a.setCounter=function(b){a.setTime(b)},this.base(a,b)},build:function(){var b=this,c=this.factory.$el.find("ul"),d=this.factory.getTime().digitize([this.factory.getTime().time]);d.length>c.length&&a.each(d,function(a,c){var d=b.createList(c);d.select(c)}),a.each(this.lists,function(a,b){b.play()}),this.base()},flip:function(a,b){this.shouldAutoIncrement&&this.autoIncrement(),a||(a=this.factory.getTime().digitize([this.factory.getTime().time])),this.base(a,b)},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0),this.flip()}})}(jQuery),function(a){FlipClock.DailyCounterFace=FlipClock.Face.extend({showSeconds:!0,constructor:function(a,b){this.base(a,b)},build:function(b){var c=this,d=this.factory.$el.find("ul"),e=0;b=b?b:this.factory.time.getDayCounter(this.showSeconds),b.length>d.length&&a.each(b,function(a,b){c.createList(b)}),this.showSeconds?a(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el):e=2,a(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4+e].$el),a(this.createDivider("Hours")).insertBefore(this.lists[this.lists.length-6+e].$el),a(this.createDivider("Days",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(a,b){a||(a=this.factory.time.getDayCounter(this.showSeconds)),this.autoIncrement(),this.base(a,b)}})}(jQuery),function(a){FlipClock.HourlyCounterFace=FlipClock.Face.extend({constructor:function(a,b){this.base(a,b)},build:function(b,c){var d=this,e=this.factory.$el.find("ul");c=c?c:this.factory.time.getHourCounter(),c.length>e.length&&a.each(c,function(a,b){d.createList(b)}),a(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el),a(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4].$el),b||a(this.createDivider("Hours",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(a,b){a||(a=this.factory.time.getHourCounter()),this.autoIncrement(),this.base(a,b)},appendDigitToClock:function(a){this.base(a),this.dividers[0].insertAfter(this.dividers[0].next())}})}(jQuery),function(a){FlipClock.MinuteCounterFace=FlipClock.HourlyCounterFace.extend({clearExcessDigits:!1,constructor:function(a,b){this.base(a,b)},build:function(){this.base(!0,this.factory.time.getMinuteCounter())},flip:function(a,b){a||(a=this.factory.time.getMinuteCounter()),this.base(a,b)}})}(jQuery),function(a){FlipClock.TwelveHourClockFace=FlipClock.TwentyFourHourClockFace.extend({meridium:!1,meridiumText:"AM",build:function(){var b=this.factory.time.getTime(!1,this.showSeconds);this.base(b),this.meridiumText=this.getMeridium(),this.meridium=a(['<ul class="flip-clock-meridium">',"<li>",'<a href="#">'+this.meridiumText+"</a>","</li>","</ul>"].join("")),this.meridium.insertAfter(this.lists[this.lists.length-1].$el)},flip:function(a,b){this.meridiumText!=this.getMeridium()&&(this.meridiumText=this.getMeridium(),this.meridium.find("a").html(this.meridiumText)),this.base(this.factory.time.getTime(!1,this.showSeconds),b)},getMeridium:function(){return(new Date).getHours()>=12?"PM":"AM"},isPM:function(){return"PM"==this.getMeridium()?!0:!1},isAM:function(){return"AM"==this.getMeridium()?!0:!1}})}(jQuery),function(a){FlipClock.Lang.Arabic={years:"سنوات",months:"شهور",days:"أيام",hours:"ساعات",minutes:"دقائق",seconds:"ثواني"},FlipClock.Lang.ar=FlipClock.Lang.Arabic,FlipClock.Lang["ar-ar"]=FlipClock.Lang.Arabic,FlipClock.Lang.arabic=FlipClock.Lang.Arabic}(jQuery),function(a){FlipClock.Lang.Danish={years:"År",months:"Måneder",days:"Dage",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.da=FlipClock.Lang.Danish,FlipClock.Lang["da-dk"]=FlipClock.Lang.Danish,FlipClock.Lang.danish=FlipClock.Lang.Danish}(jQuery),function(a){FlipClock.Lang.German={years:"Jahre",months:"Monate",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},FlipClock.Lang.de=FlipClock.Lang.German,FlipClock.Lang["de-de"]=FlipClock.Lang.German,FlipClock.Lang.german=FlipClock.Lang.German}(jQuery),function(a){FlipClock.Lang.English={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},FlipClock.Lang.en=FlipClock.Lang.English,FlipClock.Lang["en-us"]=FlipClock.Lang.English,FlipClock.Lang.english=FlipClock.Lang.English}(jQuery),function(a){FlipClock.Lang.Spanish={years:"Años",months:"Meses",days:"Días",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.es=FlipClock.Lang.Spanish,FlipClock.Lang["es-es"]=FlipClock.Lang.Spanish,FlipClock.Lang.spanish=FlipClock.Lang.Spanish}(jQuery),function(a){FlipClock.Lang.Finnish={years:"Vuotta",months:"Kuukautta",days:"Päivää",hours:"Tuntia",minutes:"Minuuttia",seconds:"Sekuntia"},FlipClock.Lang.fi=FlipClock.Lang.Finnish,FlipClock.Lang["fi-fi"]=FlipClock.Lang.Finnish,FlipClock.Lang.finnish=FlipClock.Lang.Finnish}(jQuery),function(a){FlipClock.Lang.French={years:"Ans",months:"Mois",days:"Jours",hours:"Heures",minutes:"Minutes",seconds:"Secondes"},FlipClock.Lang.fr=FlipClock.Lang.French,FlipClock.Lang["fr-ca"]=FlipClock.Lang.French,FlipClock.Lang.french=FlipClock.Lang.French}(jQuery),function(a){FlipClock.Lang.Italian={years:"Anni",months:"Mesi",days:"Giorni",hours:"Ore",minutes:"Minuti",seconds:"Secondi"},FlipClock.Lang.it=FlipClock.Lang.Italian,FlipClock.Lang["it-it"]=FlipClock.Lang.Italian,FlipClock.Lang.italian=FlipClock.Lang.Italian}(jQuery),function(a){FlipClock.Lang.Latvian={years:"Gadi",months:"Mēneši",days:"Dienas",hours:"Stundas",minutes:"Minūtes",seconds:"Sekundes"},FlipClock.Lang.lv=FlipClock.Lang.Latvian,FlipClock.Lang["lv-lv"]=FlipClock.Lang.Latvian,FlipClock.Lang.latvian=FlipClock.Lang.Latvian}(jQuery),function(a){FlipClock.Lang.Dutch={years:"Jaren",months:"Maanden",days:"Dagen",hours:"Uren",minutes:"Minuten",seconds:"Seconden"},FlipClock.Lang.nl=FlipClock.Lang.Dutch,FlipClock.Lang["nl-be"]=FlipClock.Lang.Dutch,FlipClock.Lang.dutch=FlipClock.Lang.Dutch}(jQuery),function(a){FlipClock.Lang.Norwegian={years:"År",months:"Måneder",days:"Dager",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.no=FlipClock.Lang.Norwegian,FlipClock.Lang.nb=FlipClock.Lang.Norwegian,FlipClock.Lang["no-nb"]=FlipClock.Lang.Norwegian,FlipClock.Lang.norwegian=FlipClock.Lang.Norwegian}(jQuery),function(a){FlipClock.Lang.Portuguese={years:"Anos",months:"Meses",days:"Dias",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.pt=FlipClock.Lang.Portuguese,FlipClock.Lang["pt-br"]=FlipClock.Lang.Portuguese,FlipClock.Lang.portuguese=FlipClock.Lang.Portuguese}(jQuery),function(a){FlipClock.Lang.Russian={years:"лет",months:"месяцев",days:"дней",hours:"часов",minutes:"минут",seconds:"секунд"},FlipClock.Lang.ru=FlipClock.Lang.Russian,FlipClock.Lang["ru-ru"]=FlipClock.Lang.Russian,FlipClock.Lang.russian=FlipClock.Lang.Russian}(jQuery),function(a){FlipClock.Lang.Swedish={years:"År",months:"Månader",days:"Dagar",hours:"Timmar",minutes:"Minuter",seconds:"Sekunder"},FlipClock.Lang.sv=FlipClock.Lang.Swedish,FlipClock.Lang["sv-se"]=FlipClock.Lang.Swedish,FlipClock.Lang.swedish=FlipClock.Lang.Swedish}(jQuery),function(a){FlipClock.Lang.Chinese={years:"年",months:"月",days:"日",hours:"时",minutes:"分",seconds:"秒"},FlipClock.Lang.zh=FlipClock.Lang.Chinese,FlipClock.Lang["zh-cn"]=FlipClock.Lang.Chinese,FlipClock.Lang.chinese=FlipClock.Lang.Chinese}(jQuery);
3
-
4
- $(document).ready(function(){
5
-
6
- //Open Hours CountDown using FlipClick http://flipclockjs.com/
7
-
8
- function nextDay(x){
9
- var now = new Date();
10
- now.setDate(now.getDate() + (x+(7-now.getDay())) % 7);
11
- return now;
12
- }
13
-
14
- var nextOpenHours = nextDay(4);
15
-
16
- //The date of the open hours
17
- var openhours = new Date(Date.UTC(2017, 06, 27, 16, 0, 0));
18
- var now = new Date();
19
- var diff = openhours.getTime()/1000 - now.getTime()/1000;
20
-
21
- var date2 = new Date(Date.UTC(1996, nextOpenHours.getMonth(), nextOpenHours.getDate(), 16, 0, 0));
22
- var now2 = new Date();
23
- var diff2 = date2.getTime()/1000 - now2.getTime()/1000;
24
-
25
- var clock = $('.open-hours-clock').FlipClock(diff, {
26
- clockFace: 'DailyCounter',
27
- countdown: true
28
- });
29
-
30
- var clock2 = $('.expired-clock').FlipClock(diff2, {
31
- clockFace: 'DailyCounter',
32
- countdown: true
33
- });
34
-
35
- }));
@@ -0,0 +1,519 @@
1
+ /*!
2
+ * Lightbox v2.9.0
3
+ * by Lokesh Dhakar
4
+ *
5
+ * More info:
6
+ * http://lokeshdhakar.com/projects/lightbox2/
7
+ *
8
+ * Copyright 2007, 2015 Lokesh Dhakar
9
+ * Released under the MIT license
10
+ * https://github.com/lokesh/lightbox2/blob/master/LICENSE
11
+ *
12
+ * @preserve
13
+ */
14
+
15
+ // Uses Node, AMD or browser globals to create a module.
16
+ (function (root, factory) {
17
+ if (typeof define === 'function' && define.amd) {
18
+ // AMD. Register as an anonymous module.
19
+ define(['jquery'], factory);
20
+ } else if (typeof exports === 'object') {
21
+ // Node. Does not work with strict CommonJS, but
22
+ // only CommonJS-like environments that support module.exports,
23
+ // like Node.
24
+ module.exports = factory(require('jquery'));
25
+ } else {
26
+ // Browser globals (root is window)
27
+ root.lightbox = factory(root.jQuery);
28
+ }
29
+ }(this, function ($) {
30
+
31
+ function Lightbox(options) {
32
+ this.album = [];
33
+ this.currentImageIndex = void 0;
34
+ this.init();
35
+
36
+ // options
37
+ this.options = $.extend({}, this.constructor.defaults);
38
+ this.option(options);
39
+ }
40
+
41
+ // Descriptions of all options available on the demo site:
42
+ // http://lokeshdhakar.com/projects/lightbox2/index.html#options
43
+ Lightbox.defaults = {
44
+ albumLabel: 'Image %1 of %2',
45
+ alwaysShowNavOnTouchDevices: false,
46
+ fadeDuration: 600,
47
+ fitImagesInViewport: true,
48
+ imageFadeDuration: 600,
49
+ // maxWidth: 800,
50
+ // maxHeight: 600,
51
+ positionFromTop: 50,
52
+ resizeDuration: 700,
53
+ showImageNumberLabel: true,
54
+ wrapAround: false,
55
+ disableScrolling: false,
56
+ /*
57
+ Sanitize Title
58
+ If the caption data is trusted, for example you are hardcoding it in, then leave this to false.
59
+ This will free you to add html tags, such as links, in the caption.
60
+
61
+ If the caption data is user submitted or from some other untrusted source, then set this to true
62
+ to prevent xss and other injection attacks.
63
+ */
64
+ sanitizeTitle: false
65
+ };
66
+
67
+ Lightbox.prototype.option = function(options) {
68
+ $.extend(this.options, options);
69
+ };
70
+
71
+ Lightbox.prototype.imageCountLabel = function(currentImageNum, totalImages) {
72
+ return this.options.albumLabel.replace(/%1/g, currentImageNum).replace(/%2/g, totalImages);
73
+ };
74
+
75
+ Lightbox.prototype.init = function() {
76
+ var self = this;
77
+ // Both enable and build methods require the body tag to be in the DOM.
78
+ $(document).ready(function() {
79
+ self.enable();
80
+ self.build();
81
+ });
82
+ };
83
+
84
+ // Loop through anchors and areamaps looking for either data-lightbox attributes or rel attributes
85
+ // that contain 'lightbox'. When these are clicked, start lightbox.
86
+ Lightbox.prototype.enable = function() {
87
+ var self = this;
88
+ $('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]', function(event) {
89
+ self.start($(event.currentTarget));
90
+ return false;
91
+ });
92
+ };
93
+
94
+ // Build html for the lightbox and the overlay.
95
+ // Attach event handlers to the new DOM elements. click click click
96
+ Lightbox.prototype.build = function() {
97
+ var self = this;
98
+ $('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo($('body'));
99
+
100
+ // Cache jQuery objects
101
+ this.$lightbox = $('#lightbox');
102
+ this.$overlay = $('#lightboxOverlay');
103
+ this.$outerContainer = this.$lightbox.find('.lb-outerContainer');
104
+ this.$container = this.$lightbox.find('.lb-container');
105
+ this.$image = this.$lightbox.find('.lb-image');
106
+ this.$nav = this.$lightbox.find('.lb-nav');
107
+
108
+ // Store css values for future lookup
109
+ this.containerPadding = {
110
+ top: parseInt(this.$container.css('padding-top'), 10),
111
+ right: parseInt(this.$container.css('padding-right'), 10),
112
+ bottom: parseInt(this.$container.css('padding-bottom'), 10),
113
+ left: parseInt(this.$container.css('padding-left'), 10)
114
+ };
115
+
116
+ this.imageBorderWidth = {
117
+ top: parseInt(this.$image.css('border-top-width'), 10),
118
+ right: parseInt(this.$image.css('border-right-width'), 10),
119
+ bottom: parseInt(this.$image.css('border-bottom-width'), 10),
120
+ left: parseInt(this.$image.css('border-left-width'), 10)
121
+ };
122
+
123
+ // Attach event handlers to the newly minted DOM elements
124
+ this.$overlay.hide().on('click', function() {
125
+ self.end();
126
+ return false;
127
+ });
128
+
129
+ this.$lightbox.hide().on('click', function(event) {
130
+ if ($(event.target).attr('id') === 'lightbox') {
131
+ self.end();
132
+ }
133
+ return false;
134
+ });
135
+
136
+ this.$outerContainer.on('click', function(event) {
137
+ if ($(event.target).attr('id') === 'lightbox') {
138
+ self.end();
139
+ }
140
+ return false;
141
+ });
142
+
143
+ this.$lightbox.find('.lb-prev').on('click', function() {
144
+ if (self.currentImageIndex === 0) {
145
+ self.changeImage(self.album.length - 1);
146
+ } else {
147
+ self.changeImage(self.currentImageIndex - 1);
148
+ }
149
+ return false;
150
+ });
151
+
152
+ this.$lightbox.find('.lb-next').on('click', function() {
153
+ if (self.currentImageIndex === self.album.length - 1) {
154
+ self.changeImage(0);
155
+ } else {
156
+ self.changeImage(self.currentImageIndex + 1);
157
+ }
158
+ return false;
159
+ });
160
+
161
+ /*
162
+ Show context menu for image on right-click
163
+
164
+ There is a div containing the navigation that spans the entire image and lives above of it. If
165
+ you right-click, you are right clicking this div and not the image. This prevents users from
166
+ saving the image or using other context menu actions with the image.
167
+
168
+ To fix this, when we detect the right mouse button is pressed down, but not yet clicked, we
169
+ set pointer-events to none on the nav div. This is so that the upcoming right-click event on
170
+ the next mouseup will bubble down to the image. Once the right-click/contextmenu event occurs
171
+ we set the pointer events back to auto for the nav div so it can capture hover and left-click
172
+ events as usual.
173
+ */
174
+ this.$nav.on('mousedown', function(event) {
175
+ if (event.which === 3) {
176
+ self.$nav.css('pointer-events', 'none');
177
+
178
+ self.$lightbox.one('contextmenu', function() {
179
+ setTimeout(function() {
180
+ this.$nav.css('pointer-events', 'auto');
181
+ }.bind(self), 0);
182
+ });
183
+ }
184
+ });
185
+
186
+
187
+ this.$lightbox.find('.lb-loader, .lb-close').on('click', function() {
188
+ self.end();
189
+ return false;
190
+ });
191
+ };
192
+
193
+ // Show overlay and lightbox. If the image is part of a set, add siblings to album array.
194
+ Lightbox.prototype.start = function($link) {
195
+ var self = this;
196
+ var $window = $(window);
197
+
198
+ $window.on('resize', $.proxy(this.sizeOverlay, this));
199
+
200
+ $('select, object, embed').css({
201
+ visibility: 'hidden'
202
+ });
203
+
204
+ this.sizeOverlay();
205
+
206
+ this.album = [];
207
+ var imageNumber = 0;
208
+
209
+ function addToAlbum($link) {
210
+ self.album.push({
211
+ link: $link.attr('href'),
212
+ title: $link.attr('data-title') || $link.attr('title')
213
+ });
214
+ }
215
+
216
+ // Support both data-lightbox attribute and rel attribute implementations
217
+ var dataLightboxValue = $link.attr('data-lightbox');
218
+ var $links;
219
+
220
+ if (dataLightboxValue) {
221
+ $links = $($link.prop('tagName') + '[data-lightbox="' + dataLightboxValue + '"]');
222
+ for (var i = 0; i < $links.length; i = ++i) {
223
+ addToAlbum($($links[i]));
224
+ if ($links[i] === $link[0]) {
225
+ imageNumber = i;
226
+ }
227
+ }
228
+ } else {
229
+ if ($link.attr('rel') === 'lightbox') {
230
+ // If image is not part of a set
231
+ addToAlbum($link);
232
+ } else {
233
+ // If image is part of a set
234
+ $links = $($link.prop('tagName') + '[rel="' + $link.attr('rel') + '"]');
235
+ for (var j = 0; j < $links.length; j = ++j) {
236
+ addToAlbum($($links[j]));
237
+ if ($links[j] === $link[0]) {
238
+ imageNumber = j;
239
+ }
240
+ }
241
+ }
242
+ }
243
+
244
+ // Position Lightbox
245
+ var top = $window.scrollTop() + this.options.positionFromTop;
246
+ var left = $window.scrollLeft();
247
+ this.$lightbox.css({
248
+ top: top + 'px',
249
+ left: left + 'px'
250
+ }).fadeIn(this.options.fadeDuration);
251
+
252
+ // Disable scrolling of the page while open
253
+ if (this.options.disableScrolling) {
254
+ $('body').addClass('lb-disable-scrolling');
255
+ }
256
+
257
+ this.changeImage(imageNumber);
258
+ };
259
+
260
+ // Hide most UI elements in preparation for the animated resizing of the lightbox.
261
+ Lightbox.prototype.changeImage = function(imageNumber) {
262
+ var self = this;
263
+
264
+ this.disableKeyboardNav();
265
+ var $image = this.$lightbox.find('.lb-image');
266
+
267
+ this.$overlay.fadeIn(this.options.fadeDuration);
268
+
269
+ $('.lb-loader').fadeIn('slow');
270
+ this.$lightbox.find('.lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption').hide();
271
+
272
+ this.$outerContainer.addClass('animating');
273
+
274
+ // When image to show is preloaded, we send the width and height to sizeContainer()
275
+ var preloader = new Image();
276
+ preloader.onload = function() {
277
+ var $preloader;
278
+ var imageHeight;
279
+ var imageWidth;
280
+ var maxImageHeight;
281
+ var maxImageWidth;
282
+ var windowHeight;
283
+ var windowWidth;
284
+
285
+ $image.attr('src', self.album[imageNumber].link);
286
+
287
+ $preloader = $(preloader);
288
+
289
+ $image.width(preloader.width);
290
+ $image.height(preloader.height);
291
+
292
+ if (self.options.fitImagesInViewport) {
293
+ // Fit image inside the viewport.
294
+ // Take into account the border around the image and an additional 10px gutter on each side.
295
+
296
+ windowWidth = $(window).width();
297
+ windowHeight = $(window).height();
298
+ maxImageWidth = windowWidth - self.containerPadding.left - self.containerPadding.right - self.imageBorderWidth.left - self.imageBorderWidth.right - 20;
299
+ maxImageHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.imageBorderWidth.top - self.imageBorderWidth.bottom - 120;
300
+
301
+ // Check if image size is larger then maxWidth|maxHeight in settings
302
+ if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) {
303
+ maxImageWidth = self.options.maxWidth;
304
+ }
305
+ if (self.options.maxHeight && self.options.maxHeight < maxImageWidth) {
306
+ maxImageHeight = self.options.maxHeight;
307
+ }
308
+
309
+ // Is the current image's width or height is greater than the maxImageWidth or maxImageHeight
310
+ // option than we need to size down while maintaining the aspect ratio.
311
+ if ((preloader.width > maxImageWidth) || (preloader.height > maxImageHeight)) {
312
+ if ((preloader.width / maxImageWidth) > (preloader.height / maxImageHeight)) {
313
+ imageWidth = maxImageWidth;
314
+ imageHeight = parseInt(preloader.height / (preloader.width / imageWidth), 10);
315
+ $image.width(imageWidth);
316
+ $image.height(imageHeight);
317
+ } else {
318
+ imageHeight = maxImageHeight;
319
+ imageWidth = parseInt(preloader.width / (preloader.height / imageHeight), 10);
320
+ $image.width(imageWidth);
321
+ $image.height(imageHeight);
322
+ }
323
+ }
324
+ }
325
+ self.sizeContainer($image.width(), $image.height());
326
+ };
327
+
328
+ preloader.src = this.album[imageNumber].link;
329
+ this.currentImageIndex = imageNumber;
330
+ };
331
+
332
+ // Stretch overlay to fit the viewport
333
+ Lightbox.prototype.sizeOverlay = function() {
334
+ this.$overlay
335
+ .width($(document).width())
336
+ .height($(document).height());
337
+ };
338
+
339
+ // Animate the size of the lightbox to fit the image we are showing
340
+ Lightbox.prototype.sizeContainer = function(imageWidth, imageHeight) {
341
+ var self = this;
342
+
343
+ var oldWidth = this.$outerContainer.outerWidth();
344
+ var oldHeight = this.$outerContainer.outerHeight();
345
+ var newWidth = imageWidth + this.containerPadding.left + this.containerPadding.right + this.imageBorderWidth.left + this.imageBorderWidth.right;
346
+ var newHeight = imageHeight + this.containerPadding.top + this.containerPadding.bottom + this.imageBorderWidth.top + this.imageBorderWidth.bottom;
347
+
348
+ function postResize() {
349
+ self.$lightbox.find('.lb-dataContainer').width(newWidth);
350
+ self.$lightbox.find('.lb-prevLink').height(newHeight);
351
+ self.$lightbox.find('.lb-nextLink').height(newHeight);
352
+ self.showImage();
353
+ }
354
+
355
+ if (oldWidth !== newWidth || oldHeight !== newHeight) {
356
+ this.$outerContainer.animate({
357
+ width: newWidth,
358
+ height: newHeight
359
+ }, this.options.resizeDuration, 'swing', function() {
360
+ postResize();
361
+ });
362
+ } else {
363
+ postResize();
364
+ }
365
+ };
366
+
367
+ // Display the image and its details and begin preload neighboring images.
368
+ Lightbox.prototype.showImage = function() {
369
+ this.$lightbox.find('.lb-loader').stop(true).hide();
370
+ this.$lightbox.find('.lb-image').fadeIn(this.options.imageFadeDuration);
371
+
372
+ this.updateNav();
373
+ this.updateDetails();
374
+ this.preloadNeighboringImages();
375
+ this.enableKeyboardNav();
376
+ };
377
+
378
+ // Display previous and next navigation if appropriate.
379
+ Lightbox.prototype.updateNav = function() {
380
+ // Check to see if the browser supports touch events. If so, we take the conservative approach
381
+ // and assume that mouse hover events are not supported and always show prev/next navigation
382
+ // arrows in image sets.
383
+ var alwaysShowNav = false;
384
+ try {
385
+ document.createEvent('TouchEvent');
386
+ alwaysShowNav = (this.options.alwaysShowNavOnTouchDevices) ? true : false;
387
+ } catch (e) {}
388
+
389
+ this.$lightbox.find('.lb-nav').show();
390
+
391
+ if (this.album.length > 1) {
392
+ if (this.options.wrapAround) {
393
+ if (alwaysShowNav) {
394
+ this.$lightbox.find('.lb-prev, .lb-next').css('opacity', '1');
395
+ }
396
+ this.$lightbox.find('.lb-prev, .lb-next').show();
397
+ } else {
398
+ if (this.currentImageIndex > 0) {
399
+ this.$lightbox.find('.lb-prev').show();
400
+ if (alwaysShowNav) {
401
+ this.$lightbox.find('.lb-prev').css('opacity', '1');
402
+ }
403
+ }
404
+ if (this.currentImageIndex < this.album.length - 1) {
405
+ this.$lightbox.find('.lb-next').show();
406
+ if (alwaysShowNav) {
407
+ this.$lightbox.find('.lb-next').css('opacity', '1');
408
+ }
409
+ }
410
+ }
411
+ }
412
+ };
413
+
414
+ // Display caption, image number, and closing button.
415
+ Lightbox.prototype.updateDetails = function() {
416
+ var self = this;
417
+
418
+ // Enable anchor clicks in the injected caption html.
419
+ // Thanks Nate Wright for the fix. @https://github.com/NateWr
420
+ if (typeof this.album[this.currentImageIndex].title !== 'undefined' &&
421
+ this.album[this.currentImageIndex].title !== '') {
422
+ var $caption = this.$lightbox.find('.lb-caption');
423
+ if (this.options.sanitizeTitle) {
424
+ $caption.text(this.album[this.currentImageIndex].title);
425
+ } else {
426
+ $caption.html(this.album[this.currentImageIndex].title);
427
+ }
428
+ $caption.fadeIn('fast')
429
+ .find('a').on('click', function(event) {
430
+ if ($(this).attr('target') !== undefined) {
431
+ window.open($(this).attr('href'), $(this).attr('target'));
432
+ } else {
433
+ location.href = $(this).attr('href');
434
+ }
435
+ });
436
+ }
437
+
438
+ if (this.album.length > 1 && this.options.showImageNumberLabel) {
439
+ var labelText = this.imageCountLabel(this.currentImageIndex + 1, this.album.length);
440
+ this.$lightbox.find('.lb-number').text(labelText).fadeIn('fast');
441
+ } else {
442
+ this.$lightbox.find('.lb-number').hide();
443
+ }
444
+
445
+ this.$outerContainer.removeClass('animating');
446
+
447
+ this.$lightbox.find('.lb-dataContainer').fadeIn(this.options.resizeDuration, function() {
448
+ return self.sizeOverlay();
449
+ });
450
+ };
451
+
452
+ // Preload previous and next images in set.
453
+ Lightbox.prototype.preloadNeighboringImages = function() {
454
+ if (this.album.length > this.currentImageIndex + 1) {
455
+ var preloadNext = new Image();
456
+ preloadNext.src = this.album[this.currentImageIndex + 1].link;
457
+ }
458
+ if (this.currentImageIndex > 0) {
459
+ var preloadPrev = new Image();
460
+ preloadPrev.src = this.album[this.currentImageIndex - 1].link;
461
+ }
462
+ };
463
+
464
+ Lightbox.prototype.enableKeyboardNav = function() {
465
+ $(document).on('keyup.keyboard', $.proxy(this.keyboardAction, this));
466
+ };
467
+
468
+ Lightbox.prototype.disableKeyboardNav = function() {
469
+ $(document).off('.keyboard');
470
+ };
471
+
472
+ Lightbox.prototype.keyboardAction = function(event) {
473
+ var KEYCODE_ESC = 27;
474
+ var KEYCODE_LEFTARROW = 37;
475
+ var KEYCODE_RIGHTARROW = 39;
476
+
477
+ var keycode = event.keyCode;
478
+ var key = String.fromCharCode(keycode).toLowerCase();
479
+ if (keycode === KEYCODE_ESC || key.match(/x|o|c/)) {
480
+ this.end();
481
+ } else if (key === 'p' || keycode === KEYCODE_LEFTARROW) {
482
+ if (this.currentImageIndex !== 0) {
483
+ this.changeImage(this.currentImageIndex - 1);
484
+ } else if (this.options.wrapAround && this.album.length > 1) {
485
+ this.changeImage(this.album.length - 1);
486
+ }
487
+ } else if (key === 'n' || keycode === KEYCODE_RIGHTARROW) {
488
+ if (this.currentImageIndex !== this.album.length - 1) {
489
+ this.changeImage(this.currentImageIndex + 1);
490
+ } else if (this.options.wrapAround && this.album.length > 1) {
491
+ this.changeImage(0);
492
+ }
493
+ }
494
+ };
495
+
496
+ // Closing time. :-(
497
+ Lightbox.prototype.end = function() {
498
+ this.disableKeyboardNav();
499
+ $(window).off('resize', this.sizeOverlay);
500
+ this.$lightbox.fadeOut(this.options.fadeDuration);
501
+ this.$overlay.fadeOut(this.options.fadeDuration);
502
+ $('select, object, embed').css({
503
+ visibility: 'visible'
504
+ });
505
+ if (this.options.disableScrolling) {
506
+ $('body').removeClass('lb-disable-scrolling');
507
+ }
508
+ };
509
+
510
+ return new Lightbox();
511
+ }));
512
+
513
+
514
+ $(document).ready(function(){
515
+ lightbox.option({
516
+ 'disableScrolling': true,
517
+ 'albumLabel': ''
518
+ })
519
+ });