jekyll-theme-ici3d 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +50 -0
  4. data/_data/publications/pulliam2012.yml +12 -0
  5. data/_data/team/ackley.yml +25 -0
  6. data/_data/team/are.yml +22 -0
  7. data/_data/team/beauclair.yml +14 -0
  8. data/_data/team/bekele.yml +14 -0
  9. data/_data/team/bellan.yml +46 -0
  10. data/_data/team/bolton.yml +33 -0
  11. data/_data/team/borchering.yml +65 -0
  12. data/_data/team/brook.yml +15 -0
  13. data/_data/team/brown.yml +18 -0
  14. data/_data/team/bruce.yml +26 -0
  15. data/_data/team/brucePA.yml +9 -0
  16. data/_data/team/deleo.yml +49 -0
  17. data/_data/team/delva.yml +15 -0
  18. data/_data/team/dushoff.yml +52 -0
  19. data/_data/team/ervin.yml +10 -0
  20. data/_data/team/faikah.yml +26 -0
  21. data/_data/team/grebe.yml +36 -0
  22. data/_data/team/hargrove.yml +36 -0
  23. data/_data/team/hitchcock.yml +10 -0
  24. data/_data/team/hladish.yml +45 -0
  25. data/_data/team/january.yml +9 -0
  26. data/_data/team/kassanjee.yml +20 -0
  27. data/_data/team/li.yml +45 -0
  28. data/_data/team/lord.yml +20 -0
  29. data/_data/team/marx.yml +14 -0
  30. data/_data/team/mcintosh.yml +20 -0
  31. data/_data/team/mhlanga.yml +22 -0
  32. data/_data/team/mthombothi.yml +23 -0
  33. data/_data/team/mugwagwa.yml +18 -0
  34. data/_data/team/mwangi.yml +24 -0
  35. data/_data/team/mwebaze.yml +20 -0
  36. data/_data/team/ndifon.yml +18 -0
  37. data/_data/team/ngonghala.yml +30 -0
  38. data/_data/team/nondi.yml +14 -0
  39. data/_data/team/nyamai.yml +18 -0
  40. data/_data/team/october.yml +9 -0
  41. data/_data/team/paradza.yml +19 -0
  42. data/_data/team/pearson.yml +58 -0
  43. data/_data/team/porco.yml +14 -0
  44. data/_data/team/pulliam.yml +51 -0
  45. data/_data/team/reiner.yml +18 -0
  46. data/_data/team/scheepers.yml +9 -0
  47. data/_data/team/scott.yml +51 -0
  48. data/_data/team/sempa.yml +32 -0
  49. data/_data/team/sikhondze.yml +14 -0
  50. data/_data/team/template.yml +18 -0
  51. data/_data/team/ujeneza.yml +38 -0
  52. data/_data/team/vanschalkwyk.yml +32 -0
  53. data/_data/team/welte.yml +18 -0
  54. data/_data/team/williams.yml +28 -0
  55. data/_data/team/ying.yml +21 -0
  56. data/_includes/MedPH/.DS_Store +0 -0
  57. data/_includes/MedPH/assignments.md +42 -0
  58. data/_includes/MedPH/assignmentsStandard.md +74 -0
  59. data/_includes/MedPH/computerlabs.md +38 -0
  60. data/_includes/MedPH/computerlabsStandard.md +38 -0
  61. data/_includes/MedPH/lectures.md +12 -0
  62. data/_includes/MedPH/references.md +71 -0
  63. data/_includes/MedPH/schedule.md +85 -0
  64. data/_includes/MedPH/scheduleStandard.md +93 -0
  65. data/_includes/bottomTable.html +5 -0
  66. data/_includes/centerTable.html +5 -0
  67. data/_includes/clinicNavbar.html +46 -0
  68. data/_includes/contact.html +12 -0
  69. data/_includes/directors.html +47 -0
  70. data/_includes/footer.html +23 -0
  71. data/_includes/head.html +28 -0
  72. data/_includes/header.html +31 -0
  73. data/_includes/hero.html +14 -0
  74. data/_includes/index.md +9 -0
  75. data/_includes/mission.html +13 -0
  76. data/_includes/navStructure.html +70 -0
  77. data/_includes/navbar.html +65 -0
  78. data/_includes/outputs.html +74 -0
  79. data/_includes/partners.html +75 -0
  80. data/_includes/profile.html +67 -0
  81. data/_includes/publications/faculty.md +13 -0
  82. data/_includes/publications/instructional.md +5 -0
  83. data/_includes/publications/participant.md +33 -0
  84. data/_includes/talk.html +12 -0
  85. data/_includes/topTable.html +6 -0
  86. data/_includes/upcoming.html +43 -0
  87. data/_layouts/clinic.liquid +43 -0
  88. data/_layouts/example.liquid +601 -0
  89. data/_layouts/main.liquid +34 -0
  90. data/_layouts/medph.page.liquid +60 -0
  91. data/_layouts/page.liquid +41 -0
  92. data/_layouts/people.page.liquid +27 -0
  93. data/_layouts/profile.liquid +44 -0
  94. data/_layouts/redirect.liquid +15 -0
  95. data/_layouts/talk.liquid +42 -0
  96. data/assets/css/academicons.css +249 -0
  97. data/assets/css/academicons.min.css +1 -0
  98. data/assets/css/bootstrap.css +6760 -0
  99. data/assets/css/bootstrap.css.map +1 -0
  100. data/assets/css/bootstrap.min.css +6 -0
  101. data/assets/css/font-awesome.css +2086 -0
  102. data/assets/css/font-awesome.min.css +4 -0
  103. data/assets/css/ie.css +5 -0
  104. data/assets/css/main-one-page.css +6433 -0
  105. data/assets/css/main.css +7160 -0
  106. data/assets/css/my-custom-styles.css +14 -0
  107. data/assets/css/shop-main.css +3117 -0
  108. data/assets/css/skins/brown.css +299 -0
  109. data/assets/css/skins/deepskyblue.css +299 -0
  110. data/assets/css/skins/goldenrod.css +299 -0
  111. data/assets/css/skins/ici3dBlue.css +229 -0
  112. data/assets/css/skins/ici3dBlue.css.map +7 -0
  113. data/assets/css/skins/ici3dIndigo.css +229 -0
  114. data/assets/css/skins/ici3dIndigo.css.map +7 -0
  115. data/assets/css/skins/indianred.css +299 -0
  116. data/assets/css/skins/lightgreen.css +299 -0
  117. data/assets/css/skins/orange.css +299 -0
  118. data/assets/css/skins/seagreen.css +299 -0
  119. data/assets/css/skins/slategray.css +299 -0
  120. data/assets/fonts/academicons.eot +0 -0
  121. data/assets/fonts/academicons.svg +66 -0
  122. data/assets/fonts/academicons.ttf +0 -0
  123. data/assets/fonts/academicons.woff +0 -0
  124. data/assets/fonts/fontawesome-webfont.eot +0 -0
  125. data/assets/fonts/fontawesome-webfont.svg +655 -0
  126. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  127. data/assets/fonts/fontawesome-webfont.woff +0 -0
  128. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  129. data/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  130. data/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  131. data/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  132. data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  133. data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  134. data/assets/ico/favicon.ico +0 -0
  135. data/assets/ico/favicon.png +0 -0
  136. data/assets/ico/ici3d114x114.png +0 -0
  137. data/assets/ico/ici3d144x144.png +0 -0
  138. data/assets/ico/ici3d57x57.png +0 -0
  139. data/assets/ico/ici3d72x72.png +0 -0
  140. data/assets/img/8hearts.png +0 -0
  141. data/assets/img/MMED2015_tutorials.jpg +0 -0
  142. data/assets/img/badge.png +0 -0
  143. data/assets/img/blog/balloon-med.jpg +0 -0
  144. data/assets/img/blog/balloon.jpg +0 -0
  145. data/assets/img/blog/buildings-med.jpg +0 -0
  146. data/assets/img/blog/buildings.jpg +0 -0
  147. data/assets/img/blog/people-med.jpg +0 -0
  148. data/assets/img/blog/people.jpg +0 -0
  149. data/assets/img/bx_loader.gif +0 -0
  150. data/assets/img/clients/logo1.png +0 -0
  151. data/assets/img/clients/logo2.png +0 -0
  152. data/assets/img/clients/logo3.png +0 -0
  153. data/assets/img/clients/logo4.png +0 -0
  154. data/assets/img/clients/logo5.png +0 -0
  155. data/assets/img/flags/China.png +0 -0
  156. data/assets/img/flags/Germany.png +0 -0
  157. data/assets/img/flags/Japan.png +0 -0
  158. data/assets/img/flags/South-Africa.png +0 -0
  159. data/assets/img/flags/United-Kingdom.png +0 -0
  160. data/assets/img/flags/United-States.png +0 -0
  161. data/assets/img/free.png +0 -0
  162. data/assets/img/fullscreen-bg.jpg +0 -0
  163. data/assets/img/gray_jean.png +0 -0
  164. data/assets/img/hero-unit-bg.png +0 -0
  165. data/assets/img/hero-unit-obj.png +0 -0
  166. data/assets/img/hero-unit-obj2.png +0 -0
  167. data/assets/img/hero-unit-obj3.png +0 -0
  168. data/assets/img/intro-img.png +0 -0
  169. data/assets/img/location-pin.png +0 -0
  170. data/assets/img/logo/ici3d-logo-light.png +0 -0
  171. data/assets/img/logo/ici3d-logo-nav.png +0 -0
  172. data/assets/img/logo/ici3d-logo-white.png +0 -0
  173. data/assets/img/logo/ici3d-logo-white_v2.png +0 -0
  174. data/assets/img/logo/ici3d-logo-white_v3.png +0 -0
  175. data/assets/img/logo/repute-logo-light-brown.png +0 -0
  176. data/assets/img/logo/repute-logo-light-deepskyblue.png +0 -0
  177. data/assets/img/logo/repute-logo-light-goldenrod.png +0 -0
  178. data/assets/img/logo/repute-logo-light-indianred.png +0 -0
  179. data/assets/img/logo/repute-logo-light-lightgreen.png +0 -0
  180. data/assets/img/logo/repute-logo-light-orange.png +0 -0
  181. data/assets/img/logo/repute-logo-light-seagreen.png +0 -0
  182. data/assets/img/logo/repute-logo-light-slategray.png +0 -0
  183. data/assets/img/logo/repute-logo-light.png +0 -0
  184. data/assets/img/logo/repute-logo-nav-brown.png +0 -0
  185. data/assets/img/logo/repute-logo-nav-deepskyblue.png +0 -0
  186. data/assets/img/logo/repute-logo-nav-goldenrod.png +0 -0
  187. data/assets/img/logo/repute-logo-nav-indianred.png +0 -0
  188. data/assets/img/logo/repute-logo-nav-light.png +0 -0
  189. data/assets/img/logo/repute-logo-nav-lightgreen.png +0 -0
  190. data/assets/img/logo/repute-logo-nav-orange.png +0 -0
  191. data/assets/img/logo/repute-logo-nav-seagreen.png +0 -0
  192. data/assets/img/logo/repute-logo-nav-slategray.png +0 -0
  193. data/assets/img/logo/repute-logo-nav.png +0 -0
  194. data/assets/img/mentors/are.jpg +0 -0
  195. data/assets/img/mentors/bolton.jpg +0 -0
  196. data/assets/img/mentors/brown.jpg +0 -0
  197. data/assets/img/mentors/kassanjee.jpg +0 -0
  198. data/assets/img/mentors/mhlanga.jpg +0 -0
  199. data/assets/img/mentors/nyamai.png +0 -0
  200. data/assets/img/news/featured-news.png +0 -0
  201. data/assets/img/news/news1.png +0 -0
  202. data/assets/img/news/news2.png +0 -0
  203. data/assets/img/news/news3.png +0 -0
  204. data/assets/img/news/news4.png +0 -0
  205. data/assets/img/news/news5.png +0 -0
  206. data/assets/img/other/snoep.jpg +0 -0
  207. data/assets/img/page-header-bg.png +0 -0
  208. data/assets/img/participants/SempaJB.jpg +0 -0
  209. data/assets/img/partners/AIMS-SA.jpg +0 -0
  210. data/assets/img/partners/CEMA_UN.pdf +0 -0
  211. data/assets/img/partners/CEMA_UN.png +0 -0
  212. data/assets/img/partners/CIDID.png +0 -0
  213. data/assets/img/partners/CIDID_long.png +0 -0
  214. data/assets/img/partners/Colby.png +0 -0
  215. data/assets/img/partners/MIDAS.png +0 -0
  216. data/assets/img/partners/McMaster.jpg +0 -0
  217. data/assets/img/partners/PSU.png +0 -0
  218. data/assets/img/partners/Proctor.png +0 -0
  219. data/assets/img/partners/SACEMA_228.png +0 -0
  220. data/assets/img/partners/UCSF.png +0 -0
  221. data/assets/img/partners/UF.png +0 -0
  222. data/assets/img/partners/UGA_228.png +0 -0
  223. data/assets/img/pattern-geometry.png +0 -0
  224. data/assets/img/portfolio/800x500/work1.png +0 -0
  225. data/assets/img/portfolio/800x500/work2.png +0 -0
  226. data/assets/img/portfolio/800x500/work3.png +0 -0
  227. data/assets/img/portfolio/800x500/work4.png +0 -0
  228. data/assets/img/portfolio/800x500/work5.png +0 -0
  229. data/assets/img/portfolio/800x500/work6.png +0 -0
  230. data/assets/img/portfolio/800x500/work7.png +0 -0
  231. data/assets/img/portfolio/800x500/work8.png +0 -0
  232. data/assets/img/portfolio/800x800/work1.png +0 -0
  233. data/assets/img/portfolio/800x800/work2.png +0 -0
  234. data/assets/img/portfolio/800x800/work3.png +0 -0
  235. data/assets/img/portfolio/800x800/work4.png +0 -0
  236. data/assets/img/portfolio/800x800/work5.png +0 -0
  237. data/assets/img/portfolio/800x800/work6.png +0 -0
  238. data/assets/img/portfolio/800x800/work7.png +0 -0
  239. data/assets/img/portfolio/800x800/work8.png +0 -0
  240. data/assets/img/portfolio/single/bicycle.jpg +0 -0
  241. data/assets/img/portfolio/single/blurred_lines.jpg +0 -0
  242. data/assets/img/portfolio/single/edge.jpg +0 -0
  243. data/assets/img/scholars/ackley.jpg +0 -0
  244. data/assets/img/scholars/beauclair.jpg +0 -0
  245. data/assets/img/scholars/beauclair.png +0 -0
  246. data/assets/img/scholars/bekele.jpg +0 -0
  247. data/assets/img/scholars/lord.jpg +0 -0
  248. data/assets/img/scholars/marx.jpg +0 -0
  249. data/assets/img/scholars/mcintosh.jpg +0 -0
  250. data/assets/img/scholars/mwebaze.jpg +0 -0
  251. data/assets/img/scholars/nondi.jpg +0 -0
  252. data/assets/img/scholars/sempa.jpg +0 -0
  253. data/assets/img/scholars/ying.jpg +0 -0
  254. data/assets/img/sliders/full-slide-color.jpg +0 -0
  255. data/assets/img/sliders/full-slide-color2.jpg +0 -0
  256. data/assets/img/sliders/full-slide-color3.jpg +0 -0
  257. data/assets/img/sliders/full-slide.jpg +0 -0
  258. data/assets/img/sliders/full-slide2.jpg +0 -0
  259. data/assets/img/sliders/full-slide3.jpg +0 -0
  260. data/assets/img/sliders/slider1-h500.png +0 -0
  261. data/assets/img/sliders/slider2-h500.png +0 -0
  262. data/assets/img/sliders/slider3-h500.png +0 -0
  263. data/assets/img/team/bellan.jpg +0 -0
  264. data/assets/img/team/borchering.jpg +0 -0
  265. data/assets/img/team/brook.jpg +0 -0
  266. data/assets/img/team/bruce.jpg +0 -0
  267. data/assets/img/team/deleo.jpg +0 -0
  268. data/assets/img/team/delva.jpg +0 -0
  269. data/assets/img/team/dushoff.jpg +0 -0
  270. data/assets/img/team/ervin.jpg +0 -0
  271. data/assets/img/team/grebe.jpg +0 -0
  272. data/assets/img/team/hargrove.jpg +0 -0
  273. data/assets/img/team/hitchcock.jpg +0 -0
  274. data/assets/img/team/hladish.jpg +0 -0
  275. data/assets/img/team/january.jpg +0 -0
  276. data/assets/img/team/li.jpg +0 -0
  277. data/assets/img/team/mthombothi.jpg +0 -0
  278. data/assets/img/team/mugwagwa.jpg +0 -0
  279. data/assets/img/team/mwangi.png +0 -0
  280. data/assets/img/team/ndifon.jpg +0 -0
  281. data/assets/img/team/ngonghala.jpg +0 -0
  282. data/assets/img/team/october.jpg +0 -0
  283. data/assets/img/team/paradza.jpg +0 -0
  284. data/assets/img/team/pearson.jpg +0 -0
  285. data/assets/img/team/porco.jpg +0 -0
  286. data/assets/img/team/pulliam.jpg +0 -0
  287. data/assets/img/team/reiner.jpg +0 -0
  288. data/assets/img/team/scheepers.jpg +0 -0
  289. data/assets/img/team/scott.jpg +0 -0
  290. data/assets/img/team/ujeneza.jpg +0 -0
  291. data/assets/img/team/vanschalkwyk.jpg +0 -0
  292. data/assets/img/team/welte.jpg +0 -0
  293. data/assets/img/team/williams.jpg +0 -0
  294. data/assets/img/testimonial-bg.png +0 -0
  295. data/assets/img/transmission.png +0 -0
  296. data/assets/js/bootstrap.js +2363 -0
  297. data/assets/js/bootstrap.min.js +7 -0
  298. data/assets/js/jquery-2.1.1.min.js +4 -0
  299. data/assets/js/plugins/autohidingnavbar/jquery.bootstrap-autohidingnavbar.js +213 -0
  300. data/assets/js/plugins/autohidingnavbar/jquery.bootstrap-autohidingnavbar.min.js +9 -0
  301. data/assets/js/plugins/bootstrap-datepicker/bootstrap-datepicker.js +474 -0
  302. data/assets/js/plugins/bootstrap-multiselect/bootstrap-multiselect.js +994 -0
  303. data/assets/js/plugins/daterangepicker/daterangepicker.js +868 -0
  304. data/assets/js/plugins/easing/jquery.easing.js +205 -0
  305. data/assets/js/plugins/easing/jquery.easing.min.js +71 -0
  306. data/assets/js/plugins/fitvids/jquery.fitvids.js +83 -0
  307. data/assets/js/plugins/google-map/google-map.js +160 -0
  308. data/assets/js/plugins/isotope/isotope.pkgd.js +4049 -0
  309. data/assets/js/plugins/isotope/isotope.pkgd.min.js +8 -0
  310. data/assets/js/plugins/jquery-cycle/jquery.cycle.all.js +1543 -0
  311. data/assets/js/plugins/jquery-easypiechart/jquery.easypiechart.js +359 -0
  312. data/assets/js/plugins/jquery-easypiechart/jquery.easypiechart.min.js +9 -0
  313. data/assets/js/plugins/jquery-maskedinput/jquery.masked-input.js +338 -0
  314. data/assets/js/plugins/jquery-maskedinput/jquery.masked-input.min.js +7 -0
  315. data/assets/js/plugins/maximage/jquery.maximage.js +697 -0
  316. data/assets/js/plugins/maximage/jquery.maximage.min.js +4 -0
  317. data/assets/js/plugins/moment/moment.js +1662 -0
  318. data/assets/js/plugins/moment/moment.min.js +6 -0
  319. data/assets/js/plugins/parsley-validation/parsley.js +2074 -0
  320. data/assets/js/plugins/parsley-validation/parsley.min.js +9 -0
  321. data/assets/js/plugins/scrollto/jquery.localscroll-1.2.7-min.js +9 -0
  322. data/assets/js/plugins/scrollto/jquery.localscroll-1.2.7.js +133 -0
  323. data/assets/js/plugins/scrollto/jquery.scrollTo-1.4.3.1-min.js +7 -0
  324. data/assets/js/plugins/scrollto/jquery.scrollTo-1.4.3.1.js +218 -0
  325. data/assets/js/plugins/slick/slick.js +2643 -0
  326. data/assets/js/plugins/slick/slick.min.js +18 -0
  327. data/assets/js/plugins/stellar/jquery.stellar.js +660 -0
  328. data/assets/js/plugins/stellar/jquery.stellar.min.js +2 -0
  329. data/assets/js/repute-scripts.js +539 -0
  330. metadata +385 -0
@@ -0,0 +1,7 @@
1
+ /*
2
+ Masked Input plugin for jQuery
3
+ Copyright (c) 2007-2013 Josh Bush (digitalbush.com)
4
+ Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
5
+ Version: 1.3.1
6
+ */
7
+ (function(e){function t(){var e=document.createElement("input"),t="onpaste";return e.setAttribute(t,""),"function"==typeof e[t]?"paste":"input"}var n,a=t()+".mask",r=navigator.userAgent,i=/iphone/i.test(r),o=/android/i.test(r);e.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},dataName:"rawMaskFn",placeholder:"_"},e.fn.extend({caret:function(e,t){var n;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof e?(t="number"==typeof t?t:e,this.each(function(){this.setSelectionRange?this.setSelectionRange(e,t):this.createTextRange&&(n=this.createTextRange(),n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select())})):(this[0].setSelectionRange?(e=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(n=document.selection.createRange(),e=0-n.duplicate().moveStart("character",-1e5),t=e+n.text.length),{begin:e,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(t,r){var c,l,s,u,f,h;return!t&&this.length>0?(c=e(this[0]),c.data(e.mask.dataName)()):(r=e.extend({placeholder:e.mask.placeholder,completed:null},r),l=e.mask.definitions,s=[],u=h=t.length,f=null,e.each(t.split(""),function(e,t){"?"==t?(h--,u=e):l[t]?(s.push(RegExp(l[t])),null===f&&(f=s.length-1)):s.push(null)}),this.trigger("unmask").each(function(){function c(e){for(;h>++e&&!s[e];);return e}function d(e){for(;--e>=0&&!s[e];);return e}function m(e,t){var n,a;if(!(0>e)){for(n=e,a=c(t);h>n;n++)if(s[n]){if(!(h>a&&s[n].test(R[a])))break;R[n]=R[a],R[a]=r.placeholder,a=c(a)}b(),x.caret(Math.max(f,e))}}function p(e){var t,n,a,i;for(t=e,n=r.placeholder;h>t;t++)if(s[t]){if(a=c(t),i=R[t],R[t]=n,!(h>a&&s[a].test(i)))break;n=i}}function g(e){var t,n,a,r=e.which;8===r||46===r||i&&127===r?(t=x.caret(),n=t.begin,a=t.end,0===a-n&&(n=46!==r?d(n):a=c(n-1),a=46===r?c(a):a),k(n,a),m(n,a-1),e.preventDefault()):27==r&&(x.val(S),x.caret(0,y()),e.preventDefault())}function v(t){var n,a,i,l=t.which,u=x.caret();t.ctrlKey||t.altKey||t.metaKey||32>l||l&&(0!==u.end-u.begin&&(k(u.begin,u.end),m(u.begin,u.end-1)),n=c(u.begin-1),h>n&&(a=String.fromCharCode(l),s[n].test(a)&&(p(n),R[n]=a,b(),i=c(n),o?setTimeout(e.proxy(e.fn.caret,x,i),0):x.caret(i),r.completed&&i>=h&&r.completed.call(x))),t.preventDefault())}function k(e,t){var n;for(n=e;t>n&&h>n;n++)s[n]&&(R[n]=r.placeholder)}function b(){x.val(R.join(""))}function y(e){var t,n,a=x.val(),i=-1;for(t=0,pos=0;h>t;t++)if(s[t]){for(R[t]=r.placeholder;pos++<a.length;)if(n=a.charAt(pos-1),s[t].test(n)){R[t]=n,i=t;break}if(pos>a.length)break}else R[t]===a.charAt(pos)&&t!==u&&(pos++,i=t);return e?b():u>i+1?(x.val(""),k(0,h)):(b(),x.val(x.val().substring(0,i+1))),u?t:f}var x=e(this),R=e.map(t.split(""),function(e){return"?"!=e?l[e]?r.placeholder:e:void 0}),S=x.val();x.data(e.mask.dataName,function(){return e.map(R,function(e,t){return s[t]&&e!=r.placeholder?e:null}).join("")}),x.attr("readonly")||x.one("unmask",function(){x.unbind(".mask").removeData(e.mask.dataName)}).bind("focus.mask",function(){clearTimeout(n);var e;S=x.val(),e=y(),n=setTimeout(function(){b(),e==t.length?x.caret(0,e):x.caret(e)},10)}).bind("blur.mask",function(){y(),x.val()!=S&&x.change()}).bind("keydown.mask",g).bind("keypress.mask",v).bind(a,function(){setTimeout(function(){var e=y(!0);x.caret(e),r.completed&&e==x.val().length&&r.completed.call(x)},0)}),y()}))}})})(jQuery);
@@ -0,0 +1,697 @@
1
+ /* --------------------------------------------------------------------
2
+ MaxImage 2.0 (Fullscreen Slideshow for use with jQuery Cycle Plugin)
3
+ --------------------------------------------------------------------
4
+
5
+ Examples and documentation at: http://www.aaronvanderzwan.com/maximage/2.0/
6
+ Copyright (c) 2007-2012 Aaron Vanderzwan
7
+ Dual licensed under the MIT and GPL licenses.
8
+
9
+ NOTES:
10
+ This plugin is intended to simplify the creation of fullscreen
11
+ background slideshows. It is intended to be used alongside the
12
+ jQuery Cycle plugin:
13
+ http://jquery.malsup.com/cycle/
14
+
15
+ If you simply need a fullscreen background image, please
16
+ refer to the following document for ways to do this that
17
+ are much more simple:
18
+ http://css-tricks.com/perfect-full-page-background-image/
19
+
20
+ If you have any questions please contact Aaron Vanderzwan
21
+ at http://www.aaronvanderzwan.com/blog/
22
+ Documentation at:
23
+ http://blog.aaronvanderzwan.com/2012/07/maximage-2-0/
24
+
25
+ HISTORY:
26
+ MaxImage 2.0 is a project first built as jQuery MaxImage Plugin
27
+ (http://www.aaronvanderzwan.com/maximage/). Once CSS3 came along,
28
+ the background-size:cover solved the problem MaxImage
29
+ was intended to solve. However, fully customizable
30
+ fullscreen slideshows is still fairly complex and I have not
31
+ found any helpers for integrating with the jQuery Cycle Plugin.
32
+ MaxCycle is intended to solve this problem.
33
+
34
+ TABLE OF CONTENTS:
35
+ @Modern
36
+ @setup
37
+ @resize
38
+ @preload
39
+ @Old
40
+ @setup
41
+ @preload
42
+ @onceloaded
43
+ @maximage
44
+ @windowresize
45
+ @doneresizing
46
+ @Cycle
47
+ @setup
48
+ @Adjust
49
+ @center
50
+ @fill
51
+ @maxcover
52
+ @maxcontain
53
+ @Utils
54
+ @browser_tests
55
+ @construct_slide_object
56
+ @sizes
57
+ @modern_browser
58
+ @debug
59
+
60
+ */
61
+ /*!
62
+ * Maximage Version: 2.0.8 (16-Jan-2012) - http://www.aaronvanderzwan.com/maximage/2.0/
63
+ */
64
+
65
+
66
+
67
+ (function ($) {
68
+ "use strict";
69
+ $.fn.maximage = function (settings, helperSettings) {
70
+
71
+ var config;
72
+
73
+ if (typeof settings == 'object' || settings === undefined) config = $.extend( $.fn.maximage.defaults, settings || {} );
74
+ if (typeof settings == 'string') config = $.fn.maximage.defaults;
75
+
76
+ /*jslint browser: true*/
77
+ $.Body = $('body');
78
+ $.Window = $(window);
79
+ $.Scroll = $('html, body');
80
+ $.Events = {
81
+ RESIZE: 'resize'
82
+ };
83
+
84
+ this.each(function() {
85
+ var $self = $(this),
86
+ preload_count = 0,
87
+ imageCache = [];
88
+
89
+ /* --------------------- */
90
+
91
+ // @Modern
92
+
93
+ /*
94
+ MODERN BROWSER NOTES:
95
+ Modern browsers have CSS3 background-size option so we setup the DOM to be the following structure for cycle plugin:
96
+ div = cycle
97
+ div = slide with background-size:cover
98
+ div = slide with background-size:cover
99
+ etc.
100
+ */
101
+
102
+ var Modern = {
103
+ setup: function(){
104
+ if($.Slides.length > 0){
105
+ var i,
106
+ len = $.Slides.length;
107
+
108
+ // Setup images
109
+ for(i=0; i < len; i++) {
110
+ // Set our image
111
+ var $img = $.Slides[i];
112
+
113
+ // Create a div with a background image so we can use CSS3's position cover (for modern browsers)
114
+ $self.append('<div class="mc-image ' + $img.theclass + '" title="' + $img.alt + '" style="background-image:url(\'' + $img.url + '\');' + $img.style + '" data-href="'+ $img.datahref +'">'+ $img.content +'</div>');
115
+ }
116
+
117
+ // Begin our preload process (increments itself after load)
118
+ Modern.preload(0);
119
+
120
+ // If using Cycle, this resets the height and width of each div to always fill the window; otherwise can be done with CSS
121
+ Modern.resize();
122
+ }
123
+ },
124
+ preload: function(n){
125
+ // Preload all of the images but never show them, just use their completion so we know that they are done
126
+ // and so that the browser can cache them / fade them in smoothly
127
+
128
+ // Create new image object
129
+ var $img = $('<img/>');
130
+ $img.load(function() {
131
+ // Once the first image has completed loading, start the slideshow, etc.
132
+ if(preload_count==0) {
133
+ // Only start cycle after first image has loaded
134
+ Cycle.setup();
135
+
136
+ // Run user defined onFirstImageLoaded() function
137
+ config.onFirstImageLoaded();
138
+ }
139
+
140
+ // preload_count starts with 0, $.Slides.length starts with 1
141
+ if(preload_count==($.Slides.length-1)) {
142
+ // If we have just loaded the final image, run the user defined function onImagesLoaded()
143
+ config.onImagesLoaded( $self );
144
+ }else{
145
+ // Increment the counter
146
+ preload_count++;
147
+
148
+ // Load the next image
149
+ Modern.preload(preload_count);
150
+ }
151
+ });
152
+
153
+ // Set the src... this triggers begin of load
154
+ $img[0].src = $.Slides[n].url;
155
+
156
+ // Push to external array to avoid cleanup by aggressive garbage collectors
157
+ imageCache.push($img[0]);
158
+ },
159
+ resize: function(){
160
+ // Cycle sets the height of each slide so when we resize our browser window this becomes a problem.
161
+ // - the cycle option 'slideResize' has to be set to false otherwise it will trump our resize
162
+ $.Window
163
+ .bind($.Events.RESIZE,
164
+ function(){
165
+ // Remove scrollbars so we can take propper measurements
166
+ $.Scroll.addClass('mc-hide-scrolls');
167
+
168
+ // Set vars so we don't have to constantly check it
169
+ $.Window
170
+ .data('h', Utils.sizes().h)
171
+ .data('w', Utils.sizes().w);
172
+
173
+ // Set container and slides height and width to match the window size
174
+ $self
175
+ .height($.Window.data('h')).width($.Window.data('w'))
176
+ .children()
177
+ .height($.Window.data('h')).width($.Window.data('w'));
178
+
179
+ // This is special noise for cycle (cycle has separate height and width for each slide)
180
+ $self.children().each(function(){
181
+ this.cycleH = $.Window.data('h');
182
+ this.cycleW = $.Window.data('w');
183
+ });
184
+
185
+ // Put the scrollbars back to how they were
186
+ $($.Scroll).removeClass('mc-hide-scrolls');
187
+ });
188
+ }
189
+ }
190
+
191
+
192
+
193
+ /* --------------------- */
194
+
195
+ // @Old
196
+
197
+ /*
198
+ OLD BROWSER NOTES:
199
+ We setup the dom to be the following structure for cycle plugin on old browsers:
200
+ div = cycle
201
+ div = slide
202
+ img = full screen size image
203
+ div = slide
204
+ img = full screen size image
205
+ etc.
206
+ */
207
+
208
+ var Old = {
209
+ setup: function(){
210
+ var c, t, $div, j, slideLen = $.Slides.length;
211
+
212
+ // Clear container
213
+ if($.BrowserTests.msie && !config.overrideMSIEStop){
214
+ // Stop IE from continually trying to preload images that we already removed
215
+ document.execCommand("Stop", false);
216
+ }
217
+ $self.html('');
218
+
219
+ $.Body.addClass('mc-old-browser');
220
+
221
+ if($.Slides.length > 0){
222
+ // Remove scrollbars so we can take propper measurements
223
+ $.Scroll.addClass('mc-hide-scrolls');
224
+
225
+ // Cache our new dimensions
226
+ $.Window
227
+ .data('h', Utils.sizes().h)
228
+ .data('w', Utils.sizes().w);
229
+
230
+ // Add our loading div to the DOM
231
+ $('body').append($("<div></div>").attr("class", "mc-loader").css({'position':'absolute','left':'-9999px'}));
232
+
233
+ // Loop through slides
234
+ for(j = 0; j < slideLen; j++) {
235
+ // Determine content (if container or image)
236
+ if($.Slides[j].content.length == 0){
237
+ c = '<img src="' + $.Slides[j].url + '" />';
238
+ }else{
239
+ c = $.Slides[j].content;
240
+ }
241
+
242
+ // Create Div
243
+ $div = $("<div>" + c + "</div>").attr("class", "mc-image mc-image-n" + j + " " + $.Slides[j].theclass);
244
+
245
+ // Add new container div to the DOM
246
+ $self.append( $div );
247
+
248
+ // Account for slides without images
249
+ if($('.mc-image-n' + j).children('img').length == 0){
250
+ }else{
251
+ // Add first image to loader to get that started
252
+ $('div.mc-loader').append( $('.mc-image-n' + j).children('img').first().clone().addClass('not-loaded') );
253
+ }
254
+ }
255
+
256
+ // Begin preloading
257
+ Old.preload();
258
+
259
+ // Setup the resize function to listen for window changes
260
+ Old.windowResize();
261
+ }
262
+ },
263
+ preload: function(){
264
+ // Intervals to tell if an images have loaded
265
+ var t = setInterval(function() {
266
+ $('.mc-loader').children('img').each(function(i){
267
+ // Check if image is loaded
268
+ var $img = $(this);
269
+
270
+ // Loop through not-loaded images
271
+ if($img.hasClass('not-loaded')){
272
+ if( $img.height() > 0 ){
273
+ // Remove Dom notice
274
+ $(this).removeClass('not-loaded');
275
+
276
+ // Set the dimensions
277
+ var $img1 = $('div.mc-image-n' + i).children('img').first();
278
+
279
+ $img1
280
+ .data('h', $img.height())
281
+ .data('w', $img.width())
282
+ .data('ar', ($img.width() / $img.height()));
283
+
284
+ // Go on
285
+ Old.onceLoaded(i)
286
+ }
287
+ }
288
+ });
289
+
290
+ if( $('.not-loaded').length == 0){
291
+ // Remove our loader element because all of our images are now loaded
292
+ $('.mc-loader').remove();
293
+
294
+ // Clear interval when all images are loaded
295
+ clearInterval(t);
296
+ }
297
+ }, 1000);
298
+ },
299
+ onceLoaded: function(m){
300
+ // Do maximage magic
301
+ Old.maximage(m);
302
+
303
+ // Once the first image has completed loading, start the slideshow, etc.
304
+ if(m == 0) {
305
+ // If we changed the visibility before, make sure it is back on
306
+ $self.css({'visibility':'visible'});
307
+
308
+ // Run user defined onFirstImageLoaded() function
309
+ config.onFirstImageLoaded();
310
+
311
+ // After everything is done loading, clean up
312
+ }else if(m == $.Slides.length - 1){
313
+ // Only start cycle after the first image has loaded
314
+ Cycle.setup();
315
+
316
+ // Put the scrollbars back to how they were
317
+ $($.Scroll).removeClass('mc-hide-scrolls');
318
+
319
+ // If we have just loaded the final image, run the user defined function onImagesLoaded()
320
+ config.onImagesLoaded( $self );
321
+
322
+ if(config.debug) {
323
+ debug(' - Final Maximage - ');debug($self);
324
+ }
325
+ }
326
+ },
327
+ maximage: function(p){
328
+ // Cycle sets the height of each slide so when we resize our browser window this becomes a problem.
329
+ // - the cycle option 'slideResize' has to be set to false otherwise it will trump our resize
330
+ $('div.mc-image-n' + p)
331
+ .height($.Window.data('h'))
332
+ .width($.Window.data('w'))
333
+ .children('img')
334
+ .first()
335
+ .each(function(){
336
+ Adjust.maxcover($(this));
337
+ });
338
+ },
339
+ windowResize: function(){
340
+ $.Window
341
+ .bind($.Events.RESIZE,
342
+ function(){
343
+ clearTimeout(this.id);
344
+
345
+ if($('.mc-image').length >= 1){
346
+ this.id = setTimeout(Old.doneResizing, 200);
347
+ }
348
+ });
349
+ },
350
+ doneResizing: function(){
351
+ // The final resize (on finish)
352
+ // Remove scrollbars so we can take propper measurements
353
+ $($.Scroll).addClass('mc-hide-scrolls');
354
+
355
+ // Cache our window's new dimensions
356
+ $.Window
357
+ .data('h', Utils.sizes().h)
358
+ .data('w', Utils.sizes().w);
359
+
360
+ // Set the container's height and width
361
+ $self.height($.Window.data('h')).width($.Window.data('w'))
362
+
363
+ // Set slide's height and width to match the window size
364
+ $self.find('.mc-image').each(function(n){
365
+ Old.maximage(n);
366
+ });
367
+
368
+ // Update cycle's ideas of what our slide's height and width should be
369
+ var curr_opts = $self.data('cycle.opts');
370
+ if(curr_opts != undefined){
371
+ curr_opts.height = $.Window.data('h');
372
+ curr_opts.width = $.Window.data('w');
373
+ jQuery.each(curr_opts.elements, function(index, item) {
374
+ item.cycleW = $.Window.data('w');
375
+ item.cycleH = $.Window.data('h');
376
+ });
377
+ }
378
+
379
+ // Put the scrollbars back to how they were
380
+ $($.Scroll).removeClass('mc-hide-scrolls');
381
+ }
382
+ }
383
+
384
+
385
+ /* --------------------- */
386
+
387
+ // @Cycle
388
+
389
+ var Cycle = {
390
+ setup: function(){
391
+ var h,w;
392
+
393
+ $self.addClass('mc-cycle');
394
+
395
+ // Container sizes (if not set)
396
+ $.Window
397
+ .data('h', Utils.sizes().h)
398
+ .data('w', Utils.sizes().w);
399
+
400
+ // Prefer CSS Transitions
401
+ jQuery.easing.easeForCSSTransition = function(x, t, b, c, d, s) {
402
+ return b+c;
403
+ };
404
+
405
+ var cycleOptions = $.extend({
406
+ fit:1,
407
+ containerResize:0,
408
+ height:$.Window.data('h'),
409
+ width:$.Window.data('w'),
410
+ slideResize: false,
411
+ easing: ($.BrowserTests.cssTransitions && config.cssTransitions ? 'easeForCSSTransition' : 'swing')
412
+ }, config.cycleOptions);
413
+
414
+ $self.cycle( cycleOptions );
415
+ }
416
+ }
417
+
418
+
419
+
420
+ /* --------------------- */
421
+
422
+ // @Adjust = Math to center and fill all elements
423
+
424
+ var Adjust = {
425
+ center: function($item){
426
+ // Note: if alignment is 'left' or 'right' it can be controlled with CSS once verticalCenter
427
+ // and horizontal center are set to false in the plugin options
428
+ if(config.verticalCenter){
429
+ $item.css({marginTop:(($item.height() - $.Window.data('h'))/2) * -1})
430
+ }
431
+ if(config.horizontalCenter){
432
+ $item.css({marginLeft:(($item.width() - $.Window.data('w'))/2) * -1});
433
+ }
434
+ },
435
+ fill: function($item){
436
+ var $storageEl = $item.is('object') ? $item.parent().first() : $item;
437
+
438
+ if(typeof config.backgroundSize == 'function'){
439
+ // If someone wants to write their own fill() function, they can: example customBackgroundSize.html
440
+ config.backgroundSize( $item );
441
+ }else if(config.backgroundSize == 'cover'){
442
+ if($.Window.data('w') / $.Window.data('h') < $storageEl.data('ar')){
443
+ $item
444
+ .height($.Window.data('h'))
445
+ .width(($.Window.data('h') * $storageEl.data('ar')).toFixed(0));
446
+ }else{
447
+ $item
448
+ .height(($.Window.data('w') / $storageEl.data('ar')).toFixed(0))
449
+ .width($.Window.data('w'));
450
+ }
451
+ }else if(config.backgroundSize == 'contain'){
452
+ if($.Window.data('w') / $.Window.data('h') < $storageEl.data('ar')){
453
+ $item
454
+ .height(($.Window.data('w') / $storageEl.data('ar')).toFixed(0))
455
+ .width($.Window.data('w'));
456
+ }else{
457
+ $item
458
+ .height($.Window.data('h'))
459
+ .width(($.Window.data('h') * $storageEl.data('ar')).toFixed(0));
460
+ }
461
+ }else{
462
+ debug('The backgroundSize option was not recognized for older browsers.');
463
+ }
464
+ },
465
+ maxcover: function($item){
466
+ Adjust.fill($item);
467
+ Adjust.center($item);
468
+ },
469
+ maxcontain: function($item){
470
+ Adjust.fill($item);
471
+ Adjust.center($item);
472
+ }
473
+ }
474
+
475
+
476
+
477
+ /* --------------------- */
478
+
479
+ // @Utils = General utilities for the plugin
480
+
481
+ var Utils = {
482
+ browser_tests: function(){
483
+ var $div = $('<div />')[0],
484
+ vendor = ['Moz', 'Webkit', 'Khtml', 'O', 'ms'],
485
+ p = 'transition',
486
+ obj = {
487
+ cssTransitions: false,
488
+ cssBackgroundSize: ( "backgroundSize" in $div.style && config.cssBackgroundSize ), // Can override cssBackgroundSize in options
489
+ html5Video: false,
490
+ msie: false
491
+ };
492
+
493
+ // Test for CSS Transitions
494
+ if(config.cssTransitions){
495
+ if(typeof $div.style[p] == 'string') { obj.cssTransitions = true }
496
+
497
+ // Tests for vendor specific prop
498
+ p = p.charAt(0).toUpperCase() + p.substr(1);
499
+ for(var i=0; i<vendor.length; i++) {
500
+ if(vendor[i] + p in $div.style) { obj.cssTransitions = true; }
501
+ }
502
+ }
503
+
504
+ // Check if we can play html5 videos
505
+ if( !!document.createElement('video').canPlayType ) {
506
+ obj.html5Video = true;
507
+ }
508
+
509
+ // Check for MSIE since we lost $.browser in jQuery
510
+ obj.msie = (Utils.msie() !== undefined);
511
+
512
+
513
+ if(config.debug) {
514
+ debug(' - Browser Test - ');debug(obj);
515
+ }
516
+
517
+ return obj;
518
+ },
519
+ construct_slide_object: function(){
520
+ var obj = new Object(),
521
+ arr = new Array(),
522
+ temp = '';
523
+
524
+ $self.children().each(function(i){
525
+ var $img = $(this).is('img') ? $(this).clone() : $(this).find('img').first().clone();
526
+
527
+ // reset obj
528
+ obj = {};
529
+
530
+ // set attributes to obj
531
+ obj.url = $img.attr('src');
532
+ obj.title = $img.attr('title') != undefined ? $img.attr('title') : '';
533
+ obj.alt = $img.attr('alt') != undefined ? $img.attr('alt') : '';
534
+ obj.theclass = $img.attr('class') != undefined ? $img.attr('class') : '';
535
+ obj.styles = $img.attr('style') != undefined ? $img.attr('style') : '';
536
+ obj.orig = $img.clone();
537
+ obj.datahref = $img.attr('data-href') != undefined ? $img.attr('data-href') : '';
538
+ obj.content = "";
539
+
540
+ // Setup content for within container
541
+ if($(this).find('img').length > 0){
542
+ if($.BrowserTests.cssBackgroundSize){
543
+ $(this).find('img').first().remove();
544
+ }
545
+ obj.content = $(this).html();
546
+ }
547
+
548
+ // Stop loading image so we can load them sequentiallyelse{
549
+ $img[0].src = "";
550
+
551
+ // Remove original object (only on nonIE. IE hangs if you remove an image during load)
552
+ if($.BrowserTests.cssBackgroundSize){
553
+ $(this).remove();
554
+ }
555
+
556
+ // attach obj to arr
557
+ arr.push(obj);
558
+ });
559
+
560
+
561
+ if(config.debug) {
562
+ debug(' - Slide Object - ');debug(arr);
563
+ }
564
+ return arr;
565
+ },
566
+ msie: function(){
567
+ var undef,
568
+ v = 3,
569
+ div = document.createElement('div'),
570
+ all = div.getElementsByTagName('i');
571
+
572
+ while (
573
+ div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
574
+ all[0]
575
+ );
576
+
577
+ return v > 4 ? v : undef;
578
+ },
579
+ sizes: function(){
580
+ var sizes = {h:0,w:0};
581
+
582
+ if(config.fillElement == "window"){
583
+ sizes.h = $.Window.height();
584
+ sizes.w = $.Window.width();
585
+ }else{
586
+ var $fillElement = $self.parents(config.fillElement).first();
587
+
588
+ // Height
589
+ if($fillElement.height() == 0 || $fillElement.data('windowHeight') == true){
590
+ $fillElement.data('windowHeight',true);
591
+ sizes.h = $.Window.height();
592
+ }else{
593
+ sizes.h = $fillElement.height();
594
+ }
595
+
596
+ // Width
597
+ if($fillElement.width() == 0 || $fillElement.data('windowWidth') == true){
598
+ $fillElement.data('windowWidth',true);
599
+ sizes.w = $.Window.width();
600
+ }else{
601
+ sizes.w = $fillElement.width();
602
+ }
603
+ }
604
+
605
+ return sizes;
606
+ }
607
+ }
608
+
609
+
610
+
611
+ /* --------------------- */
612
+
613
+ // @Instantiation
614
+
615
+ // Helper Function
616
+ // Run tests to see what our browser can handle
617
+ $.BrowserTests = Utils.browser_tests();
618
+
619
+ if(typeof settings == 'string'){
620
+ // TODO: Resize object fallback for old browsers, If we are trying to size an HTML5 video and our browser doesn't support it
621
+ if($.BrowserTests.html5Video || !$self.is('video')) {
622
+ var to,
623
+ $storageEl = $self.is('object') ? $self.parent().first() : $self; // Can't assign .data() to '<object>'
624
+
625
+ if( !$.Body.hasClass('mc-old-browser') )
626
+ $.Body.addClass('mc-old-browser');
627
+
628
+ // Cache our window's new dimensions
629
+ $.Window
630
+ .data('h', Utils.sizes().h)
631
+ .data('w', Utils.sizes().w);
632
+
633
+ // Please include height and width attributes on your html elements
634
+ $storageEl
635
+ .data('h', $self.height())
636
+ .data('w', $self.width())
637
+ .data('ar', $self.width() / $self.height());
638
+
639
+ // We want to resize these elements with the window
640
+ $.Window
641
+ .bind($.Events.RESIZE,
642
+ function(){
643
+ // Cache our window's new dimensions
644
+ $.Window
645
+ .data('h', Utils.sizes().h)
646
+ .data('w', Utils.sizes().w);
647
+
648
+ // Limit resize runs
649
+ to = $self.data('resizer');
650
+ clearTimeout(to);
651
+ to = setTimeout( Adjust[settings]($self), 200 );
652
+ $self.data('resizer', to);
653
+ });
654
+
655
+ // Initial run
656
+ Adjust[settings]($self);
657
+ }
658
+ }else{
659
+ // Construct array of image objects for us to use
660
+ $.Slides = Utils.construct_slide_object();
661
+
662
+ // If we are allowing background-size:cover run Modern
663
+ if($.BrowserTests.cssBackgroundSize){
664
+ if(config.debug) debug(' - Using Modern - ');
665
+ Modern.setup();
666
+ }else{
667
+ if(config.debug) debug(' - Using Old - ');
668
+ Old.setup();
669
+ }
670
+ }
671
+ });
672
+
673
+ // private function for debugging
674
+ function debug($obj) {
675
+ if (window.console && window.console.log) {
676
+ window.console.log($obj);
677
+ }
678
+ }
679
+ }
680
+
681
+ // Default options
682
+ $.fn.maximage.defaults = {
683
+ debug: false,
684
+ cssBackgroundSize: true, // Force run the functionality used for newer browsers
685
+ cssTransitions: true, // Force run the functionality used for old browsers
686
+ verticalCenter: true, // Only necessary for old browsers
687
+ horizontalCenter: true, // Only necessary for old browsers
688
+ scaleInterval: 20, // Only necessary for old browsers
689
+ backgroundSize: 'cover', // Only necessary for old browsers (this can be function)
690
+ fillElement: 'window', // Either 'window' or a CSS selector for a parent element
691
+ overrideMSIEStop: false, // This gives the option to not 'stop' load for MSIE (stops coded background images from loading so we can preload)...
692
+ // If setting this option to true, please beware of IE7/8 "Stack Overflow" error but if there are more than 13 slides
693
+ // The description of the bug: http://blog.aaronvanderzwan.com/forums/topic/stack-overflow-in-ie-7-8/#post-33038
694
+ onFirstImageLoaded: function(){},
695
+ onImagesLoaded: function(){}
696
+ }
697
+ })(jQuery);