phcthemes_admin_panel_pack 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +0 -0
  4. data/Rakefile +32 -0
  5. data/app/assets/config/phcthemes_admin_panel_pack_manifest.js +3 -0
  6. data/app/assets/javascripts/common/backstretch/jquery.backstretch.js +1602 -0
  7. data/app/assets/javascripts/common/bootstrap-datepicker/bootstrap-datepicker.js +2039 -0
  8. data/app/assets/javascripts/common/bootstrap-markdown/bootstrap-markdown.js +1390 -0
  9. data/app/assets/javascripts/common/bootstrap-select/bootstrap-select.js +3139 -0
  10. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js +46 -0
  11. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js.map +1 -0
  12. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.min.js +8 -0
  13. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js +51 -0
  14. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js.map +1 -0
  15. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.min.js +8 -0
  16. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js +46 -0
  17. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js.map +1 -0
  18. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.min.js +8 -0
  19. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js +39 -0
  20. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js.map +1 -0
  21. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.min.js +8 -0
  22. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js +46 -0
  23. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js.map +1 -0
  24. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.min.js +8 -0
  25. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js +46 -0
  26. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js.map +1 -0
  27. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.min.js +8 -0
  28. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js +46 -0
  29. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js.map +1 -0
  30. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.min.js +8 -0
  31. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js +39 -0
  32. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js.map +1 -0
  33. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.min.js +8 -0
  34. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js +39 -0
  35. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js.map +1 -0
  36. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.min.js +8 -0
  37. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js +46 -0
  38. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js.map +1 -0
  39. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.min.js +8 -0
  40. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js +39 -0
  41. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js.map +1 -0
  42. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.min.js +8 -0
  43. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js +39 -0
  44. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js.map +1 -0
  45. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.min.js +8 -0
  46. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js +46 -0
  47. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js.map +1 -0
  48. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.min.js +8 -0
  49. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js +46 -0
  50. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js.map +1 -0
  51. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.min.js +8 -0
  52. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js +46 -0
  53. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js.map +1 -0
  54. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.min.js +8 -0
  55. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js +46 -0
  56. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js.map +1 -0
  57. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.min.js +8 -0
  58. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js +39 -0
  59. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js.map +1 -0
  60. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.min.js +8 -0
  61. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js +41 -0
  62. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js.map +1 -0
  63. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.min.js +8 -0
  64. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js +39 -0
  65. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js.map +1 -0
  66. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.min.js +8 -0
  67. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js +46 -0
  68. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js.map +1 -0
  69. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.min.js +8 -0
  70. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js +46 -0
  71. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js.map +1 -0
  72. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.min.js +8 -0
  73. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js +46 -0
  74. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js.map +1 -0
  75. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.min.js +8 -0
  76. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js +46 -0
  77. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js.map +1 -0
  78. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.min.js +8 -0
  79. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js +46 -0
  80. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js.map +1 -0
  81. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.min.js +8 -0
  82. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js +39 -0
  83. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js.map +1 -0
  84. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.min.js +8 -0
  85. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js +39 -0
  86. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js.map +1 -0
  87. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.min.js +8 -0
  88. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js +39 -0
  89. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js.map +1 -0
  90. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.min.js +8 -0
  91. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js +39 -0
  92. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js.map +1 -0
  93. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.min.js +8 -0
  94. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js +40 -0
  95. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js.map +1 -0
  96. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.min.js +8 -0
  97. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js +40 -0
  98. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js.map +1 -0
  99. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.min.js +8 -0
  100. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js +39 -0
  101. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js.map +1 -0
  102. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.min.js +8 -0
  103. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js +44 -0
  104. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js.map +1 -0
  105. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.min.js +8 -0
  106. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js +46 -0
  107. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js.map +1 -0
  108. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.min.js +8 -0
  109. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js +46 -0
  110. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js.map +1 -0
  111. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.min.js +8 -0
  112. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js +39 -0
  113. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js.map +1 -0
  114. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.min.js +8 -0
  115. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js +46 -0
  116. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js.map +1 -0
  117. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.min.js +8 -0
  118. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js +39 -0
  119. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js.map +1 -0
  120. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.min.js +8 -0
  121. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js +39 -0
  122. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js.map +1 -0
  123. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.min.js +8 -0
  124. data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +7013 -0
  125. data/app/assets/javascripts/common/bootstrap/bootstrap.three.js +2377 -0
  126. data/app/assets/javascripts/common/chartjs/chart.js +14680 -0
  127. data/app/assets/javascripts/common/custom/custom.js +0 -0
  128. data/app/assets/javascripts/common/daterangepicker/daterangepicker.js +1565 -0
  129. data/app/assets/javascripts/common/fastclick/fastclick.js +841 -0
  130. data/app/assets/javascripts/common/flexslider/jquery.flexslider.js +1252 -0
  131. data/app/assets/javascripts/common/greenstock/greensock.js +36 -0
  132. data/app/assets/javascripts/common/icheck/icheck.js +509 -0
  133. data/app/assets/javascripts/common/imagesloaded/imagesloaded.pkgd.js +497 -0
  134. data/app/assets/javascripts/common/isotope/isotope.pkgd.js +3563 -0
  135. data/app/assets/javascripts/common/jquery-countdown/jquery.countdown.js +246 -0
  136. data/app/assets/javascripts/common/jquery-filterizer/jquery.filterizr.min.js +1 -0
  137. data/app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js +44 -0
  138. data/app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js +281 -0
  139. data/app/assets/javascripts/common/jquery-slimscroll/jquery.slimscroll.js +474 -0
  140. data/app/assets/javascripts/common/jquery-sparkline/jquery.sparkline.js +3054 -0
  141. data/app/assets/javascripts/common/jquery-validation/jquery.validate.js +1650 -0
  142. data/app/assets/javascripts/common/jqvmap/jquery.vmap.js +1281 -0
  143. data/app/assets/javascripts/common/jqvmap/jquery.vmap.min.js +10 -0
  144. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js +2 -0
  145. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.asia.js +2 -0
  146. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.australia.js +2 -0
  147. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.europe.js +2 -0
  148. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.north-america.js +2 -0
  149. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.south-america.js +2 -0
  150. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.algeria.js +2 -0
  151. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.argentina.js +1 -0
  152. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.brazil.js +2 -0
  153. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.canada.js +2 -0
  154. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.europe.js +2 -0
  155. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.france.js +1 -0
  156. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.germany.js +2 -0
  157. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.greece.js +1 -0
  158. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iran.js +6 -0
  159. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iraq.js +1 -0
  160. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.russia.js +2 -0
  161. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.tunisia.js +2 -0
  162. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.turkey.js +11 -0
  163. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.usa.js +2 -0
  164. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.world.js +2 -0
  165. data/app/assets/javascripts/common/js-cookie/js.cookie.js +165 -0
  166. data/app/assets/javascripts/common/layerslider/layerslider.kreaturamedia.jquery.js +13 -0
  167. data/app/assets/javascripts/common/layerslider/layerslider.origami.js +13 -0
  168. data/app/assets/javascripts/common/layerslider/layerslider.timeline.js +13 -0
  169. data/app/assets/javascripts/common/layerslider/layerslider.transitions.js +13 -0
  170. data/app/assets/javascripts/common/leaflet/leaflet.js +5 -0
  171. data/app/assets/javascripts/common/magnific-popup/jquery.magnific-popup.js +1860 -0
  172. data/app/assets/javascripts/common/mapbox/mapbox.js +51 -0
  173. data/app/assets/javascripts/common/metismenu/metisMenu.js +340 -0
  174. data/app/assets/javascripts/common/moderizer/modernizr.js +11 -0
  175. data/app/assets/javascripts/common/owl-carousel/owl.carousel.js +3448 -0
  176. data/app/assets/javascripts/common/pace/pace.js +935 -0
  177. data/app/assets/javascripts/common/paroller/jquery.paroller.js +228 -0
  178. data/app/assets/javascripts/common/particlejs/particles.js +1541 -0
  179. data/app/assets/javascripts/common/plyr/plyr.js +9137 -0
  180. data/app/assets/javascripts/common/rangeslider/rangeslider.js +498 -0
  181. data/app/assets/javascripts/common/retina/retina.js +100 -0
  182. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.actions.js +386 -0
  183. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.carousel.js +365 -0
  184. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.kenburn.js +199 -0
  185. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.layeranimation.js +2524 -0
  186. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.migration.js +260 -0
  187. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.navigation.js +1156 -0
  188. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.parallax.js +465 -0
  189. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.slideanims.js +1447 -0
  190. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.video.js +1464 -0
  191. data/app/assets/javascripts/common/rev-slider/jquery.themepunch.revolution.js +3286 -0
  192. data/app/assets/javascripts/common/rev-slider/jquery.themepunch.tools.min.js +8710 -0
  193. data/app/assets/javascripts/common/scrollup/jquery.scrollUp.js +168 -0
  194. data/app/assets/javascripts/common/select2/select2.full.js +6597 -0
  195. data/app/assets/javascripts/common/selectbox/jquery.selectBox.js +1092 -0
  196. data/app/assets/javascripts/common/smooth-scroll/SmoothScroll.js +788 -0
  197. data/app/assets/javascripts/common/spectrum/spectrum.js +2323 -0
  198. data/app/assets/javascripts/common/stepper/jquery.fs.stepper.js +339 -0
  199. data/app/assets/javascripts/common/swiper/swiper.js +8124 -0
  200. data/app/assets/javascripts/common/toaster/toastr.js +476 -0
  201. data/app/assets/javascripts/common/typed/typed.js +1045 -0
  202. data/app/assets/javascripts/common/visable/jquery.visible.js +68 -0
  203. data/app/assets/javascripts/common/waypoints/jquery.waypoints.js +662 -0
  204. data/app/assets/javascripts/phcthemes_admin_panel_pack_adminlte.js +13 -0
  205. data/app/assets/javascripts/phcthemes_admin_panel_pack_basic.js +6 -0
  206. data/app/assets/javascripts/phcthemes_admin_panel_pack_boomerang.js +0 -0
  207. data/app/assets/javascripts/phcthemes_admin_panel_pack_coloradmin.js +11 -0
  208. data/app/assets/javascripts/phcthemes_admin_panel_pack_inspinia.js +11 -0
  209. data/app/assets/javascripts/phcthemes_admin_panel_pack_metronic.js +4 -0
  210. data/app/assets/javascripts/phcthemes_admin_panel_pack_quilpro.js +6 -0
  211. data/app/assets/javascripts/phcthemes_admin_panel_pack_starlight.js +6 -0
  212. data/app/assets/javascripts/themes/adminlte/custom/custom.js +0 -0
  213. data/app/assets/javascripts/themes/adminlte/theme/adminlte.js +1141 -0
  214. data/app/assets/javascripts/themes/boomerang/custom/custom.1.js +0 -0
  215. data/app/assets/javascripts/themes/boomerang/custom/custom.js +0 -0
  216. data/app/assets/javascripts/themes/coloradmin/custom/custom.js +0 -0
  217. data/app/assets/javascripts/themes/coloradmin/theme/apps.js +1650 -0
  218. data/app/assets/javascripts/themes/coloradmin/theme/default.js +152 -0
  219. data/app/assets/javascripts/themes/inspinia/custom/custom.js +0 -0
  220. data/app/assets/javascripts/themes/inspinia/theme/inspinia.js +279 -0
  221. data/app/assets/javascripts/themes/metronic/theme/scripts.bundle.js +9970 -0
  222. data/app/assets/javascripts/themes/metronic/theme/vendors.bundle.js +91352 -0
  223. data/app/assets/stylesheets/common/custom/custom.scss +0 -0
  224. data/app/assets/stylesheets/phcthemes_admin_panel_pack_adminlte.scss +0 -0
  225. data/app/assets/stylesheets/phcthemes_admin_panel_pack_basic.scss +0 -0
  226. data/app/assets/stylesheets/phcthemes_admin_panel_pack_boomerang.scss +0 -0
  227. data/app/assets/stylesheets/phcthemes_admin_panel_pack_coloradmin.scss +0 -0
  228. data/app/assets/stylesheets/phcthemes_admin_panel_pack_inspinia.scss +0 -0
  229. data/app/assets/stylesheets/phcthemes_admin_panel_pack_metronic.scss +0 -0
  230. data/app/assets/stylesheets/phcthemes_admin_panel_pack_quilpro.scss +0 -0
  231. data/app/assets/stylesheets/phcthemes_admin_panel_pack_starlight.scss +0 -0
  232. data/app/assets/stylesheets/themes/adminlte/custom/custom.scss +0 -0
  233. data/app/assets/stylesheets/themes/boomerang/custom/custom.scss +0 -0
  234. data/app/assets/stylesheets/themes/coloradmin/custom/custom.scss +0 -0
  235. data/lib/phcthemes_admin_panel_pack.rb +5 -0
  236. data/lib/phcthemes_admin_panel_pack/engine.rb +13 -0
  237. data/lib/phcthemes_admin_panel_pack/version.rb +3 -0
  238. data/lib/tasks/phcthemes_admin_panel_pack_tasks.rake +4 -0
  239. metadata +364 -0
@@ -0,0 +1,3286 @@
1
+ /**************************************************************************
2
+ * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider
3
+ * @version: 5.4.8 (10.06.2018)
4
+ * @requires jQuery v1.7 or later (tested on 1.9)
5
+ * @author ThemePunch
6
+ **************************************************************************/
7
+ ;(function(jQuery,undefined){
8
+ "use strict";
9
+
10
+ var version = {
11
+ core : "5.4.8",
12
+ "revolution.extensions.actions.min.js":"2.1.0",
13
+ "revolution.extensions.carousel.min.js":"1.2.1",
14
+ "revolution.extensions.kenburn.min.js":"1.3.1",
15
+ "revolution.extensions.layeranimation.min.js":"3.6.5",
16
+ "revolution.extensions.navigation.min.js":"1.3.5",
17
+ "revolution.extensions.parallax.min.js":"2.2.3",
18
+ "revolution.extensions.slideanims.min.js":"1.8",
19
+ "revolution.extensions.video.min.js":"2.2.2"
20
+ };
21
+
22
+ jQuery.fn.extend({
23
+
24
+ revolution: function(options) {
25
+
26
+ // SET DEFAULT VALUES OF ITEM //
27
+ var defaults = {
28
+ delay:9000,
29
+ responsiveLevels:4064, // Single or Array for Responsive Levels i.e.: 4064 or i.e. [2048, 1024, 768, 480]
30
+ visibilityLevels:[2048,1024,778,480], // Single or Array for Responsive Visibility Levels i.e.: 4064 or i.e. [2048, 1024, 768, 480]
31
+ gridwidth:960, // Single or Array i.e. 960 or [960, 840,760,460]
32
+ gridheight:500, // Single or Array i.e. 500 or [500, 450,400,350]
33
+ minHeight:0,
34
+ autoHeight:"off",
35
+ sliderType : "standard", // standard, carousel, hero
36
+ sliderLayout : "auto", // auto, fullwidth, fullscreen
37
+
38
+ fullScreenAutoWidth:"off", // Turns the FullScreen Slider to be a FullHeight but auto Width Slider
39
+ fullScreenAlignForce:"off",
40
+ fullScreenOffsetContainer:"", // Size for FullScreen Slider minimising Calculated on the Container sizes
41
+ fullScreenOffset:"0", // Size for FullScreen Slider minimising
42
+
43
+ hideCaptionAtLimit:0, // It Defines if a caption should be shown under a Screen Resolution ( Basod on The Width of Browser)
44
+ hideAllCaptionAtLimit:0, // Hide all The Captions if Width of Browser is less then this value
45
+ hideSliderAtLimit:0, // Hide the whole slider, and stop also functions if Width of Browser is less than this value
46
+ disableProgressBar:"off", // Hides Progress Bar if is set to "on"
47
+ stopAtSlide:-1, // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case.
48
+ stopAfterLoops:-1, // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic
49
+ shadow:0, //0 = no Shadow, 1,2,3 = 3 Different Art of Shadows (No Shadow in Fullwidth Version !)
50
+ dottedOverlay:"none", //twoxtwo, threexthree, twoxtwowhite, threexthreewhite
51
+ startDelay:0, // Delay before the first Animation starts.
52
+ lazyType : "smart", //full, smart, single
53
+ spinner:"spinner0",
54
+ shuffle:"off", // Random Order of Slides,
55
+
56
+
57
+ viewPort:{
58
+ enable:false, // if enabled, slider wait with start or wait at first slide.
59
+ outof:"wait", // wait,pause
60
+ visible_area:"60%", // Start Animation when 60% of Slider is visible
61
+ presize:false // Presize the Height of the Slider Container for Internal Link Positions
62
+ },
63
+
64
+ fallbacks:{
65
+ isJoomla:false,
66
+ panZoomDisableOnMobile:"off",
67
+ simplifyAll:"on",
68
+ nextSlideOnWindowFocus:"off",
69
+ disableFocusListener:true,
70
+ ignoreHeightChanges:"off", // off, mobile, always
71
+ ignoreHeightChangesSize:0,
72
+ allowHTML5AutoPlayOnAndroid:true
73
+
74
+ },
75
+
76
+ parallax : {
77
+ type : "off", // off, mouse, scroll, mouse+scroll
78
+ levels: [10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],
79
+ origo:"enterpoint", // slidercenter or enterpoint
80
+ speed:400,
81
+ bgparallax : "off",
82
+ opacity:"on",
83
+ disable_onmobile:"off",
84
+ ddd_shadow:"on",
85
+ ddd_bgfreeze:"off",
86
+ ddd_overflow:"visible",
87
+ ddd_layer_overflow:"visible",
88
+ ddd_z_correction:65,
89
+ ddd_path:"mouse"
90
+ },
91
+
92
+ scrolleffect: {
93
+ fade:"off",
94
+ blur:"off",
95
+ scale:"off",
96
+ grayscale:"off",
97
+ maxblur:10,
98
+ on_layers:"off",
99
+ on_slidebg:"off",
100
+ on_static_layers:"off",
101
+ on_parallax_layers:"off",
102
+ on_parallax_static_layers:"off",
103
+ direction:"both",
104
+ multiplicator:1.35,
105
+ multiplicator_layers:0.5,
106
+ tilt:30,
107
+ disable_on_mobile:"on"
108
+ },
109
+
110
+ carousel : {
111
+ easing:punchgs.Power3.easeInOut,
112
+ speed:800,
113
+ showLayersAllTime : "off",
114
+ horizontal_align : "center",
115
+ vertical_align : "center",
116
+ infinity : "on",
117
+ space : 0,
118
+ maxVisibleItems : 3,
119
+ stretch:"off",
120
+ fadeout:"on",
121
+ maxRotation:0,
122
+ minScale:0,
123
+ vary_fade:"off",
124
+ vary_rotation:"on",
125
+ vary_scale:"off",
126
+ border_radius:"0px",
127
+ padding_top:0,
128
+ padding_bottom:0
129
+ },
130
+
131
+ navigation : {
132
+ keyboardNavigation:"off",
133
+ keyboard_direction:"horizontal", // horizontal - left/right arrows, vertical - top/bottom arrows
134
+ mouseScrollNavigation:"off", // on, off, carousel
135
+ onHoverStop:"on", // Stop Banner Timet at Hover on Slide on/off
136
+
137
+ touch:{
138
+ touchenabled:"off", // Enable Swipe Function : on/off
139
+ touchOnDesktop:"off", // Enable Tuoch on Desktop Systems also
140
+ swipe_treshold : 75, // The number of pixels that the user must move their finger by before it is considered a swipe.
141
+ swipe_min_touches : 1, // Min Finger (touch) used for swipe
142
+ drag_block_vertical:false, // Prevent Vertical Scroll during Swipe
143
+ swipe_direction:"horizontal"
144
+ },
145
+ arrows: {
146
+ style:"",
147
+ enable:false,
148
+ hide_onmobile:false,
149
+ hide_onleave:true,
150
+ hide_delay:200,
151
+ hide_delay_mobile:1200,
152
+ hide_under:0,
153
+ hide_over:9999,
154
+ tmp:'',
155
+ rtl:false,
156
+ left : {
157
+ h_align:"left",
158
+ v_align:"center",
159
+ h_offset:20,
160
+ v_offset:0,
161
+ container:"slider",
162
+ },
163
+ right : {
164
+ h_align:"right",
165
+ v_align:"center",
166
+ h_offset:20,
167
+ v_offset:0,
168
+ container:"slider",
169
+ }
170
+ },
171
+ bullets: {
172
+ container:"slider",
173
+ rtl:false,
174
+ style:"",
175
+ enable:false,
176
+ hide_onmobile:false,
177
+ hide_onleave:true,
178
+ hide_delay:200,
179
+ hide_delay_mobile:1200,
180
+ hide_under:0,
181
+ hide_over:9999,
182
+ direction:"horizontal",
183
+ h_align:"left",
184
+ v_align:"center",
185
+ space:0,
186
+ h_offset:20,
187
+ v_offset:0,
188
+ tmp:'<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>'
189
+ },
190
+ thumbnails: {
191
+ container:"slider",
192
+ rtl:false,
193
+ style:"",
194
+ enable:false,
195
+ width:100,
196
+ height:50,
197
+ min_width:100,
198
+ wrapper_padding:2,
199
+ wrapper_color:"#f5f5f5",
200
+ wrapper_opacity:1,
201
+ tmp:'<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>',
202
+ visibleAmount:5,
203
+ hide_onmobile:false,
204
+ hide_onleave:true,
205
+ hide_delay:200,
206
+ hide_delay_mobile:1200,
207
+ hide_under:0,
208
+ hide_over:9999,
209
+ direction:"horizontal",
210
+ span:false,
211
+ position:"inner",
212
+ space:2,
213
+ h_align:"left",
214
+ v_align:"center",
215
+ h_offset:20,
216
+ v_offset:0
217
+ },
218
+ tabs: {
219
+ container:"slider",
220
+ rtl:false,
221
+ style:"",
222
+ enable:false,
223
+ width:100,
224
+ min_width:100,
225
+ height:50,
226
+ wrapper_padding:10,
227
+ wrapper_color:"#f5f5f5",
228
+ wrapper_opacity:1,
229
+ tmp:'<span class="tp-tab-image"></span>',
230
+ visibleAmount:5,
231
+ hide_onmobile:false,
232
+ hide_onleave:true,
233
+ hide_delay:200,
234
+ hide_delay_mobile:1200,
235
+ hide_under:0,
236
+ hide_over:9999,
237
+ direction:"horizontal",
238
+ span:false,
239
+ space:0,
240
+ position:"inner",
241
+ h_align:"left",
242
+ v_align:"center",
243
+ h_offset:20,
244
+ v_offset:0
245
+ }
246
+ },
247
+ extensions:"extensions/", //example extensions/ or extensions/source/
248
+ extensions_suffix:".min.js",
249
+ //addons:[{fileprefix:"revolution.addon.whiteboard",init:"initWhiteBoard",params:"opt",handel:"whiteboard"}],
250
+ debugMode:false
251
+ };
252
+
253
+ // Merge of Defaults
254
+ options = jQuery.extend(true,{},defaults, options);
255
+
256
+ return this.each(function() {
257
+
258
+
259
+ var c = jQuery(this);
260
+
261
+ // Prepare maxHeight
262
+ options.minHeight = options.minHeight!=undefined ? parseInt(options.minHeight,0) : options.minHeight;
263
+ options.scrolleffect.on = options.scrolleffect.fade==="on" || options.scrolleffect.scale==="on" || options.scrolleffect.blur==="on" || options.scrolleffect.grayscale==="on";
264
+
265
+
266
+
267
+ //REMOVE SLIDES IF SLIDER IS HERO
268
+ if (options.sliderType=="hero") {
269
+ c.find('>ul>li').each(function(i) {
270
+ if (i>0) jQuery(this).remove();
271
+ })
272
+ }
273
+ options.jsFileLocation = options.jsFileLocation || getScriptLocation("themepunch.revolution.min.js");
274
+ options.jsFileLocation = options.jsFileLocation + options.extensions;
275
+ options.scriptsneeded = getNeededScripts(options,c);
276
+ options.curWinRange = 0;
277
+
278
+ options.rtl = true; //jQuery('body').hasClass("rtl");
279
+
280
+ if (options.navigation!=undefined && options.navigation.touch!=undefined)
281
+ options.navigation.touch.swipe_min_touches = options.navigation.touch.swipe_min_touches >5 ? 1 : options.navigation.touch.swipe_min_touches;
282
+
283
+
284
+
285
+ jQuery(this).on("scriptsloaded",function() {
286
+ if (options.modulesfailing ) {
287
+ c.html('<div style="margin:auto;line-height:40px;font-size:14px;color:#fff;padding:15px;background:#e74c3c;margin:20px 0px;">!! Error at loading Slider Revolution 5.0 Extrensions.'+options.errorm+'</div>').show();
288
+ return false;
289
+ }
290
+
291
+ // CHECK FOR MIGRATION
292
+ if (_R.migration!=undefined) options = _R.migration(c,options);
293
+
294
+ punchgs.force3D = true;
295
+ if (options.simplifyAll!=="on") punchgs.TweenLite.lagSmoothing(1000,16);
296
+ prepareOptions(c,options);
297
+ initSlider(c,options);
298
+ });
299
+
300
+ c[0].opt = options;
301
+ waitForScripts(c,options);
302
+ })
303
+ },
304
+
305
+ //Get All Loaded Version
306
+ getRSVersion : function(silent) {
307
+ if (silent===true) {
308
+ return jQuery('body').data('tp_rs_version');
309
+ } else {
310
+ var v = jQuery('body').data('tp_rs_version'),
311
+ t = "";
312
+ t += ("---------------------------------------------------------")+"\n";
313
+ t += (" Currently Loaded Slider Revolution & SR Modules :")+"\n";
314
+ t += ("---------------------------------------------------------")+"\n";
315
+ for (var key in v) {
316
+ t += (v[key].alias+": "+v[key].ver)+"\n";
317
+ }
318
+ t +=("---------------------------------------------------------")+"\n";
319
+ return t;
320
+ };
321
+ },
322
+
323
+
324
+ // Remove a Slide from the Slider
325
+ revremoveslide : function(sindex) {
326
+
327
+ return this.each(function() {
328
+
329
+ var container=jQuery(this),
330
+ opt = container[0].opt;
331
+
332
+ if (sindex<0 || sindex>opt.slideamount) return;
333
+
334
+ if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) {
335
+
336
+ if (opt && opt.li.length>0) {
337
+ if (sindex>0 || sindex<=opt.li.length) {
338
+
339
+ var li = jQuery(opt.li[sindex]),
340
+ ref = li.data("index"),
341
+ nextslideafter = false;
342
+
343
+ opt.slideamount = opt.slideamount-1;
344
+ opt.realslideamount = opt.realslideamount-1;
345
+ removeNavWithLiref('.tp-bullet',ref,opt);
346
+ removeNavWithLiref('.tp-tab',ref,opt);
347
+ removeNavWithLiref('.tp-thumb',ref,opt);
348
+ if (li.hasClass('active-revslide'))
349
+ nextslideafter = true;
350
+ li.remove();
351
+ opt.li = removeArray(opt.li,sindex);
352
+ if (opt.carousel && opt.carousel.slides)
353
+ opt.carousel.slides = removeArray(opt.carousel.slides,sindex)
354
+ opt.thumbs = removeArray(opt.thumbs,sindex);
355
+ if (_R.updateNavIndexes) _R.updateNavIndexes(opt);
356
+ if (nextslideafter) container.revnext();
357
+ punchgs.TweenLite.set(opt.li,{minWidth:"99%"});
358
+ punchgs.TweenLite.set(opt.li,{minWidth:"100%"});
359
+ }
360
+ }
361
+ }
362
+ });
363
+
364
+ },
365
+
366
+ // Add a New Call Back to some Module
367
+ revaddcallback: function(callback) {
368
+ return this.each(function() {
369
+ if (this.opt) {
370
+ if (this.opt.callBackArray === undefined)
371
+ this.opt.callBackArray = new Array();
372
+ this.opt.callBackArray.push(callback);
373
+ }
374
+ })
375
+ },
376
+
377
+ // Get Current Parallax Proc
378
+ revgetparallaxproc : function() {
379
+ return jQuery(this)[0].opt.scrollproc;
380
+ },
381
+
382
+ // ENABLE DEBUG MODE
383
+ revdebugmode: function() {
384
+ return this.each(function() {
385
+ var c=jQuery(this);
386
+ c[0].opt.debugMode = true;
387
+ containerResized(c,c[0].opt);
388
+
389
+ })
390
+ },
391
+
392
+ // METHODE SCROLL
393
+ revscroll: function(oy) {
394
+ return this.each(function() {
395
+ var c=jQuery(this);
396
+ jQuery('body,html').animate({scrollTop:(c.offset().top+(c.height())-oy)+"px"},{duration:400});
397
+ });
398
+ },
399
+
400
+ // METHODE PAUSE
401
+ revredraw: function(oy) {
402
+ return this.each(function() {
403
+ var c=jQuery(this);
404
+ containerResized(c,c[0].opt);
405
+ })
406
+ },
407
+ // METHODE PAUSE
408
+ revkill: function(oy) {
409
+
410
+ var self = this,
411
+ container=jQuery(this);
412
+
413
+ punchgs.TweenLite.killDelayedCallsTo(_R.showHideNavElements);
414
+
415
+
416
+ if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) {
417
+
418
+ container.data('conthover',1);
419
+ container.data('conthover-changed',1);
420
+ container.trigger('revolution.slide.onpause');
421
+
422
+ var bt = container.parent().find('.tp-bannertimer'),
423
+ opt = container[0].opt;
424
+ opt.tonpause = true;
425
+ container.trigger('stoptimer');
426
+
427
+ var resizid = "resize.revslider-"+container.attr('id');
428
+ jQuery(window).unbind(resizid);
429
+
430
+ punchgs.TweenLite.killTweensOf(container.find('*'),false);
431
+ punchgs.TweenLite.killTweensOf(container,false);
432
+ container.unbind('hover, mouseover, mouseenter,mouseleave, resize');
433
+ var resizid = "resize.revslider-"+container.attr('id');
434
+ jQuery(window).off(resizid);
435
+ container.find('*').each(function() {
436
+ var el = jQuery(this);
437
+
438
+ el.unbind('on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer');
439
+ el.off('on, hover, mouseenter,mouseleave,mouseover, resize');
440
+ el.data('mySplitText',null);
441
+ el.data('ctl',null);
442
+ if (el.data('tween')!=undefined)
443
+ el.data('tween').kill();
444
+ if (el.data('kenburn')!=undefined)
445
+ el.data('kenburn').kill();
446
+ if (el.data('timeline_out')!=undefined)
447
+ el.data('timeline_out').kill();
448
+ if (el.data('timeline')!=undefined)
449
+ el.data('timeline').kill();
450
+
451
+ el.remove();
452
+ el.empty();
453
+ el=null;
454
+ })
455
+
456
+
457
+ punchgs.TweenLite.killTweensOf(container.find('*'),false);
458
+ punchgs.TweenLite.killTweensOf(container,false);
459
+ bt.remove();
460
+ try{container.closest('.forcefullwidth_wrapper_tp_banner').remove();} catch(e) {}
461
+ try{container.closest('.rev_slider_wrapper').remove()} catch(e) {}
462
+ try{container.remove();} catch(e) {}
463
+ container.empty();
464
+ container.html();
465
+ container = null;
466
+
467
+ opt = null;
468
+ delete(self.c);
469
+ delete(self.opt);
470
+ delete(self.container);
471
+
472
+
473
+ return true;
474
+ } else {
475
+ return false;
476
+ }
477
+ },
478
+
479
+ // METHODE PAUSE
480
+ revpause: function() {
481
+ return this.each(function() {
482
+ var c=jQuery(this);
483
+ if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) {
484
+ c.data('conthover',1);
485
+ c.data('conthover-changed',1);
486
+ c.trigger('revolution.slide.onpause');
487
+ c[0].opt.tonpause = true;
488
+ c.trigger('stoptimer');
489
+ }
490
+ })
491
+ },
492
+
493
+ // METHODE RESUME
494
+ revresume: function() {
495
+ return this.each(function() {
496
+ var c=jQuery(this);
497
+ if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) {
498
+ c.data('conthover',0);
499
+ c.data('conthover-changed',1);
500
+ c.trigger('revolution.slide.onresume');
501
+ c[0].opt.tonpause = false;
502
+ c.trigger('starttimer');
503
+ }
504
+ })
505
+ },
506
+
507
+ revstart: function() {
508
+ //return this.each(function() {
509
+ var c=jQuery(this);
510
+ if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0 && c[0].opt!==undefined) {
511
+ if (!c[0].opt.sliderisrunning) {
512
+
513
+ // fixes revapi.revstart();
514
+ c[0].opt.c=c;
515
+ c[0].opt.ul = c.find('>ul');
516
+
517
+ runSlider(c,c[0].opt);
518
+ return true;
519
+ }
520
+ else {
521
+ console.log("Slider Is Running Already");
522
+ return false;
523
+ }
524
+
525
+ }
526
+ //})
527
+
528
+ },
529
+
530
+ // METHODE NEXT
531
+ revnext: function() {
532
+ return this.each(function() {
533
+ // CATCH THE CONTAINER
534
+ var c=jQuery(this);
535
+ if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) {
536
+ _R.callingNewSlide(c,1);
537
+ }
538
+ })
539
+ },
540
+
541
+ // METHODE RESUME
542
+ revprev: function() {
543
+ return this.each(function() {
544
+ // CATCH THE CONTAINER
545
+ var c=jQuery(this);
546
+ if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) {
547
+ _R.callingNewSlide(c,-1);
548
+ }
549
+ })
550
+ },
551
+
552
+ // METHODE LENGTH
553
+ revmaxslide: function() {
554
+ // CATCH THE CONTAINER
555
+ return jQuery(this).find('.tp-revslider-mainul >li').length;
556
+ },
557
+
558
+
559
+ // METHODE CURRENT
560
+ revcurrentslide: function() {
561
+ // CATCH THE CONTAINER
562
+ var c=jQuery(this);
563
+ if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) {
564
+ return parseInt(c[0].opt.act,0)+1;
565
+ }
566
+ },
567
+
568
+ // METHODE CURRENT
569
+ revlastslide: function() {
570
+ // CATCH THE CONTAINER
571
+ return jQuery(this).find('.tp-revslider-mainul >li').length;
572
+ },
573
+
574
+
575
+ // METHODE JUMP TO SLIDE
576
+ revshowslide: function(slide) {
577
+ return this.each(function() {
578
+ // CATCH THE CONTAINER
579
+ var c=jQuery(this);
580
+ if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) {
581
+ _R.callingNewSlide(c,"to"+(slide-1));
582
+ }
583
+ })
584
+ },
585
+ revcallslidewithid: function(slide) {
586
+ return this.each(function() {
587
+ // CATCH THE CONTAINER
588
+ var c=jQuery(this);
589
+ if (c!=undefined && c.length>0 && jQuery('body').find('#'+c.attr('id')).length>0) {
590
+ _R.callingNewSlide(c,slide);
591
+ }
592
+ })
593
+ }
594
+ });
595
+
596
+
597
+
598
+ //////////////////////////////////////////////////////////////
599
+ // - REVOLUTION FUNCTION EXTENSIONS FOR GLOBAL USAGE - //
600
+ //////////////////////////////////////////////////////////////
601
+ var _R = jQuery.fn.revolution;
602
+
603
+ jQuery.extend(true, _R, {
604
+
605
+ getversion : function() {
606
+ return version;
607
+ },
608
+
609
+ compare_version : function(extension) {
610
+ var v = jQuery('body').data('tp_rs_version');
611
+ v = v === undefined ? new Object() : v;
612
+ if (v.Core===undefined) {
613
+ v.Core = new Object();
614
+ v.Core.alias = "Slider Revolution Core";
615
+ v.Core.name = "jquery.themepunch.revolution.min.js";
616
+ v.Core.ver = _R.getversion().core;
617
+ }
618
+
619
+ if (extension.check!="stop") {
620
+ // CHECK FOR CORRECT CORE AND EXTENSION VERSION
621
+ if (_R.getversion().core<extension.min_core) {
622
+ if (extension.check===undefined) {
623
+ console.log("%c"+"Slider Revolution Warning (Core:"+_R.getversion().core+")",'color:#c0392b;font-weight:bold;');
624
+ console.log("%c"+" Core is older than expected ("+extension.min_core+") from "+extension.alias,'color:#333');
625
+ console.log("%c"+" Please update Slider Revolution to the latest version.",'color:#333');
626
+ console.log("%c"+" It might be required to purge and clear Server/Client side Caches.",'color:#333');
627
+
628
+ }
629
+ extension.check="stop";
630
+ } else
631
+
632
+ if (_R.getversion()[extension.name]!=undefined && extension.version <_R.getversion()[extension.name]) {
633
+ if (extension.check===undefined) {
634
+ console.log("%c"+"Slider Revolution Warning (Core:"+_R.getversion().core+")",'color:#c0392b;font-weight:bold;');
635
+ console.log("%c"+" "+extension.alias+" ("+extension.version+") is older than requiered ("+_R.getversion()[extension.name]+")",'color:#333');
636
+ console.log("%c"+" Please update Slider Revolution to the latest version.",'color:#333');
637
+ console.log("%c"+" It might be required to purge and clear Server/Client side Caches.",'color:#333');
638
+ }
639
+ extension.check="stop";
640
+ }
641
+ }
642
+
643
+ if (v[extension.alias]===undefined) {
644
+ v[extension.alias] = new Object();
645
+ v[extension.alias].alias = extension.alias;
646
+ v[extension.alias].ver = extension.version;
647
+ v[extension.alias].name = extension.name;
648
+ }
649
+
650
+ jQuery('body').data('tp_rs_version',v);
651
+
652
+ return extension;
653
+ },
654
+
655
+ currentSlideIndex : function(opt) {
656
+
657
+ var ai = opt.c.find('.active-revslide').index();
658
+
659
+ ai = ai == -1 ? 0 : ai;
660
+
661
+ return ai;
662
+
663
+ },
664
+
665
+ simp : function(a,b,basic) {
666
+ var c = Math.abs(a) - (Math.floor(Math.abs(a / b))*b);
667
+ if (basic)
668
+ return c;
669
+ else
670
+ return a<0 ? -1*c : c;
671
+ },
672
+
673
+ // - IS IOS VERSION OLDER THAN 5 ??
674
+ iOSVersion : function() {
675
+ var oldios = false;
676
+ if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
677
+ if (navigator.userAgent.match(/OS 4_\d like Mac OS X/i)) {
678
+ oldios = true;
679
+ }
680
+ } else {
681
+ oldios = false;
682
+ }
683
+ return oldios;
684
+ },
685
+
686
+
687
+ // - CHECK IF BROWSER IS IE -
688
+ isIE : function( version, comparison ){
689
+ var $div = jQuery('<div style="display:none;"/>').appendTo(jQuery('body'));
690
+ $div.html('<!--[if '+(comparison||'')+' IE '+(version||'')+']><a>&nbsp;</a><![endif]-->');
691
+ var ieTest = $div.find('a').length;
692
+ $div.remove();
693
+ return ieTest;
694
+ },
695
+
696
+ // - IS MOBILE ??
697
+ is_mobile : function() {
698
+ var agents = ['android', 'webos', 'iphone', 'ipad', 'blackberry','Android', 'webos', ,'iPod', 'iPhone', 'iPad', 'Blackberry', 'BlackBerry'];
699
+ var ismobile=false;
700
+ for(var i in agents) {
701
+
702
+ if (navigator.userAgent.split(agents[i]).length>1) {
703
+ ismobile = true;
704
+
705
+ }
706
+ }
707
+ return ismobile;
708
+ },
709
+
710
+ is_android : function() {
711
+ var agents = ['android', 'Android'];
712
+ var isandroid=false;
713
+ for(var i in agents) {
714
+ if (navigator.userAgent.split(agents[i]).length>1) {
715
+ isandroid = true;
716
+ }
717
+ }
718
+ return isandroid;
719
+ },
720
+
721
+ // - CALL BACK HANDLINGS - //
722
+ callBackHandling : function(opt,type,position) {
723
+ try{
724
+ if (opt.callBackArray)
725
+ jQuery.each(opt.callBackArray,function(i,c) {
726
+ if (c) {
727
+ if (c.inmodule && c.inmodule === type)
728
+ if (c.atposition && c.atposition === position)
729
+ if (c.callback)
730
+ c.callback.call();
731
+ }
732
+ });
733
+ } catch(e) {
734
+ console.log("Call Back Failed");
735
+ }
736
+ },
737
+
738
+ get_browser : function(){
739
+ var N=navigator.appName, ua=navigator.userAgent, tem;
740
+ var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);
741
+ if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];
742
+ M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?'];
743
+ return M[0];
744
+ },
745
+
746
+ get_browser_version : function(){
747
+ var N=navigator.appName, ua=navigator.userAgent, tem;
748
+ var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);
749
+ if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];
750
+ M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?'];
751
+ return M[1];
752
+ },
753
+
754
+ /*
755
+ Jason / Safari 11 Video autoplay fix
756
+ */
757
+ isSafari11: function() {
758
+
759
+ var browser = jQuery.trim(_R.get_browser().toLowerCase());
760
+ if(jQuery.trim(navigator.userAgent.toLowerCase()).search('edge') !== -1 || browser === 'msie') return false;
761
+ return browser.match(/safari|chrome/);
762
+
763
+ },
764
+
765
+ // GET THE HORIZONTAL OFFSET OF SLIDER BASED ON THE THU`MBNAIL AND TABS LEFT AND RIGHT SIDE
766
+ getHorizontalOffset : function(container,side) {
767
+ var thumbloff = gWiderOut(container,'.outer-left'),
768
+ thumbroff = gWiderOut(container,'.outer-right');
769
+
770
+ switch (side) {
771
+ case "left":
772
+ return thumbloff;
773
+ break;
774
+ case "right":
775
+ return thumbroff;
776
+ break;
777
+ case "both":
778
+ return thumbloff+thumbroff;
779
+ break;
780
+ }
781
+ },
782
+
783
+
784
+ // - CALLING THE NEW SLIDE - //
785
+ callingNewSlide : function(container,direction) {
786
+
787
+ var aindex = container.find('.next-revslide').length>0 ? container.find('.next-revslide').index() : container.find('.processing-revslide').length>0 ? container.find('.processing-revslide').index() : container.find('.active-revslide').index(),
788
+ nindex = 0,
789
+ opt = container[0].opt;
790
+
791
+ container.find('.next-revslide').removeClass("next-revslide");
792
+
793
+ // IF WE ARE ON AN INVISIBLE SLIDE CURRENTLY
794
+ if (container.find('.active-revslide').hasClass("tp-invisible-slide"))
795
+ aindex = opt.last_shown_slide;
796
+
797
+ // SET NEXT DIRECTION
798
+ if (direction && jQuery.isNumeric(direction) || direction.match(/to/g)) {
799
+ if (direction===1 || direction === -1) {
800
+
801
+ nindex = aindex + direction;
802
+ nindex = nindex<0 ? opt.slideamount-1 : nindex>=opt.slideamount ? 0 : nindex;
803
+ } else {
804
+
805
+ direction=jQuery.isNumeric(direction) ? direction : parseInt(direction.split("to")[1],0);
806
+ nindex = direction<0 ? 0 : direction>opt.slideamount-1 ? opt.slideamount-1 : direction;
807
+ }
808
+ container.find('.tp-revslider-slidesli:eq('+nindex+')').addClass("next-revslide");
809
+ } else
810
+ if (direction) {
811
+
812
+ container.find('.tp-revslider-slidesli').each(function() {
813
+ var li=jQuery(this);
814
+ if (li.data('index')===direction) li.addClass("next-revslide");
815
+ })
816
+ }
817
+
818
+
819
+ nindex = container.find('.next-revslide').index();
820
+ container.trigger("revolution.nextslide.waiting");
821
+
822
+
823
+ if ((aindex===nindex && aindex === opt.last_shown_slide) || (nindex !== aindex && nindex!=-1))
824
+ swapSlide(container);
825
+ else
826
+ container.find('.next-revslide').removeClass("next-revslide");
827
+ },
828
+
829
+ slotSize : function(img,opt) {
830
+ opt.slotw=Math.ceil(opt.width/opt.slots);
831
+
832
+ if (opt.sliderLayout=="fullscreen")
833
+ opt.sloth=Math.ceil(jQuery(window).height()/opt.slots);
834
+ else
835
+ opt.sloth=Math.ceil(opt.height/opt.slots);
836
+
837
+ if (opt.autoHeight=="on" && img!==undefined && img!=="")
838
+ opt.sloth=Math.ceil(img.height()/opt.slots);
839
+
840
+
841
+ },
842
+
843
+ setSize : function(opt) {
844
+
845
+ var ofh = (opt.top_outer || 0) + (opt.bottom_outer || 0),
846
+ cpt = parseInt((opt.carousel.padding_top||0),0),
847
+ cpb = parseInt((opt.carousel.padding_bottom||0),0),
848
+ maxhei = opt.gridheight[opt.curWinRange],
849
+ __mh = 0,
850
+ _actli = opt.nextSlide === -1 || opt.nextSlide===undefined ? 0 : opt.nextSlide;
851
+ opt.paddings = opt.paddings === undefined ? {top:(parseInt(opt.c.parent().css("paddingTop"),0) || 0), bottom:(parseInt(opt.c.parent().css("paddingBottom"),0) || 0)} : opt.paddings;
852
+
853
+ if (opt.rowzones && opt.rowzones.length>0)
854
+ for (var a=0;a<opt.rowzones[_actli].length;a++) {
855
+ __mh = __mh + opt.rowzones[_actli][a][0].offsetHeight;
856
+ }
857
+
858
+
859
+ maxhei = maxhei<opt.minHeight ? opt.minHeight : maxhei;
860
+ maxhei = maxhei<__mh ? __mh : maxhei;
861
+
862
+
863
+ if (opt.sliderLayout=="fullwidth" && opt.autoHeight=="off") punchgs.TweenLite.set(opt.c,{maxHeight:maxhei+"px"});
864
+ opt.c.css({marginTop:cpt,marginBottom:cpb});
865
+ opt.width=opt.ul.width();
866
+ opt.height=opt.ul.height();
867
+ setScale(opt);
868
+
869
+ opt.height = Math.round(opt.gridheight[opt.curWinRange] * (opt.width/opt.gridwidth[opt.curWinRange]));
870
+
871
+ if (opt.height>opt.gridheight[opt.curWinRange] && opt.autoHeight!="on") opt.height=opt.gridheight[opt.curWinRange];
872
+
873
+ if (opt.sliderLayout=="fullscreen" || opt.infullscreenmode) {
874
+ opt.height = opt.bw * opt.gridheight[opt.curWinRange];
875
+ var cow = opt.c.parent().width();
876
+ var coh = jQuery(window).height();
877
+
878
+ if (opt.fullScreenOffsetContainer!=undefined) {
879
+ try{
880
+ var offcontainers = opt.fullScreenOffsetContainer.split(",");
881
+ if (offcontainers)
882
+ jQuery.each(offcontainers,function(index,searchedcont) {
883
+ coh = jQuery(searchedcont).length>0 ? coh - jQuery(searchedcont).outerHeight(true) : coh;
884
+ });
885
+ } catch(e) {}
886
+ try{
887
+ if (opt.fullScreenOffset.split("%").length>1 && opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0)
888
+ coh = coh - (jQuery(window).height()* parseInt(opt.fullScreenOffset,0)/100);
889
+ else
890
+ if (opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0)
891
+ coh = coh - parseInt(opt.fullScreenOffset,0);
892
+ } catch(e) {}
893
+ }
894
+
895
+ coh = coh<opt.minHeight ? opt.minHeight : coh;
896
+ coh = coh - ofh;
897
+ opt.c.parent().height(coh);
898
+
899
+ opt.c.closest('.rev_slider_wrapper').height(coh);
900
+ opt.c.css({'height':'100%'});
901
+
902
+ opt.height=coh;
903
+ if (opt.minHeight!=undefined && opt.height<opt.minHeight)
904
+ opt.height = opt.minHeight;
905
+ opt.height = parseInt(__mh,0)>parseInt(opt.height,0) ? __mh : opt.height;
906
+
907
+ } else {
908
+ if (opt.minHeight!=undefined && opt.height<opt.minHeight)
909
+ opt.height = opt.minHeight;
910
+ opt.height = parseInt(__mh,0)>parseInt(opt.height,0) ? __mh : opt.height;
911
+ opt.c.height(opt.height);
912
+ }
913
+ var si = { height:(cpt+cpb+ofh+opt.height+opt.paddings.top+opt.paddings.bottom)};
914
+
915
+ opt.c.closest('.forcefullwidth_wrapper_tp_banner').find('.tp-fullwidth-forcer').css(si);
916
+ opt.c.closest('.rev_slider_wrapper').css(si);
917
+ setScale(opt);
918
+ },
919
+
920
+ enterInViewPort : function(opt) {
921
+ // START COUNTER IF VP ENTERED, AND COUNTDOWN WAS NOT ON YET
922
+ if (opt.waitForCountDown) {
923
+
924
+ countDown(opt.c,opt);
925
+ opt.waitForCountDown=false;
926
+ }
927
+ // START FIRST SLIDE IF NOT YET STARTED AND VP ENTERED
928
+ if (opt.waitForFirstSlide) {
929
+ swapSlide(opt.c);
930
+ opt.waitForFirstSlide=false;
931
+ setTimeout(function() {
932
+ opt.c.removeClass("tp-waitforfirststart");
933
+ },500);
934
+ }
935
+
936
+ if (opt.sliderlaststatus == "playing" || opt.sliderlaststatus==undefined) {
937
+ opt.c.trigger("starttimer");
938
+ }
939
+
940
+
941
+ if (opt.lastplayedvideos != undefined && opt.lastplayedvideos.length>0) {
942
+
943
+ jQuery.each(opt.lastplayedvideos,function(i,_nc) {
944
+
945
+ _R.playVideo(_nc,opt);
946
+ });
947
+ }
948
+ },
949
+
950
+ leaveViewPort : function(opt) {
951
+ opt.sliderlaststatus = opt.sliderstatus;
952
+ opt.c.trigger("stoptimer");
953
+ if (opt.playingvideos != undefined && opt.playingvideos.length>0) {
954
+ opt.lastplayedvideos = jQuery.extend(true,[],opt.playingvideos);
955
+ if (opt.playingvideos)
956
+ jQuery.each(opt.playingvideos,function(i,_nc) {
957
+ opt.leaveViewPortBasedStop = true;
958
+ if (_R.stopVideo) _R.stopVideo(_nc,opt);
959
+ });
960
+ }
961
+ },
962
+
963
+ unToggleState : function(a) {
964
+ if (a!=undefined && a.length>0)
965
+ jQuery.each(a,function(i,layer) {
966
+ layer.removeClass("rs-toggle-content-active");
967
+ });
968
+ },
969
+
970
+ toggleState : function(a) {
971
+ if (a!=undefined && a.length>0)
972
+ jQuery.each(a,function(i,layer) {
973
+ layer.addClass("rs-toggle-content-active");
974
+ });
975
+ },
976
+ swaptoggleState : function(a) {
977
+ if (a!=undefined && a.length>0)
978
+ jQuery.each(a,function(i,layer) {
979
+ if (jQuery(layer).hasClass("rs-toggle-content-active"))
980
+ jQuery(layer).removeClass("rs-toggle-content-active");
981
+ else
982
+ jQuery(layer).addClass("rs-toggle-content-active");
983
+ });
984
+ },
985
+ lastToggleState : function(a) {
986
+ var state = 0;
987
+ if (a!=undefined && a.length>0)
988
+ jQuery.each(a,function(i,layer) {
989
+ state = layer.hasClass("rs-toggle-content-active");
990
+ });
991
+ return state;
992
+ }
993
+
994
+ });
995
+
996
+
997
+ var _ISM = _R.is_mobile(),
998
+ _ANDROID = _R.is_android();
999
+
1000
+
1001
+
1002
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1003
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1004
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1005
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1006
+
1007
+
1008
+ var checkIDS = function(opt,item) {
1009
+ opt.anyid = opt.anyid === undefined ? [] : opt.anyid;
1010
+ var ind = jQuery.inArray(item.attr('id'),opt.anyid);
1011
+ if (ind!=-1) {
1012
+ var newid = item.attr('id')+"_"+Math.round(Math.random()*9999);
1013
+ item.attr('id',newid);
1014
+ }
1015
+
1016
+ opt.anyid.push(item.attr('id'));
1017
+ }
1018
+ var removeArray = function(arr,i) {
1019
+ var newarr = [];
1020
+ jQuery.each(arr,function(a,b) {
1021
+ if (a!=i) newarr.push(b);
1022
+ })
1023
+ return newarr;
1024
+ }
1025
+
1026
+ var removeNavWithLiref = function(a,ref,opt) {
1027
+ opt.c.find(a).each(function() {
1028
+ var a = jQuery(this);
1029
+ if (a.data('liref')===ref)
1030
+ a.remove();
1031
+ })
1032
+ }
1033
+
1034
+
1035
+ var lAjax = function(s,o) {
1036
+ if (jQuery('body').data(s)) return false;
1037
+ if (o.filesystem) {
1038
+ if (o.errorm===undefined)
1039
+ o.errorm = "<br>Local Filesystem Detected !<br>Put this to your header:";
1040
+ console.warn('Local Filesystem detected !');
1041
+ o.errorm = o.errorm+'<br>&lt;script type="text/javascript" src="'+o.jsFileLocation+s+o.extensions_suffix+'"&gt;&lt;/script&gt;';
1042
+ console.warn(o.jsFileLocation+s+o.extensions_suffix+' could not be loaded !');
1043
+ console.warn('Please use a local Server or work online or make sure that you load all needed Libraries manually in your Document.');
1044
+ console.log(" ");
1045
+ o.modulesfailing = true;
1046
+ return false;
1047
+ }
1048
+
1049
+ jQuery.ajax({
1050
+ url:o.jsFileLocation+s+o.extensions_suffix+'?version='+version.core,
1051
+ 'dataType':'script',
1052
+ 'cache':true,
1053
+ "error":function(e) {
1054
+ console.warn("Slider Revolution 5.0 Error !")
1055
+ console.error("Failure at Loading:"+s+o.extensions_suffix+" on Path:"+o.jsFileLocation)
1056
+ console.info(e);
1057
+ }
1058
+ });
1059
+ jQuery('body').data(s,true);
1060
+ }
1061
+
1062
+
1063
+
1064
+ var getNeededScripts = function(o,c) {
1065
+ var n = new Object(),
1066
+ _n = o.navigation;
1067
+
1068
+ n.kenburns = false;
1069
+ n.parallax = false;
1070
+ n.carousel = false;
1071
+ n.navigation = false;
1072
+ n.videos = false;
1073
+ n.actions = false;
1074
+ n.layeranim = false;
1075
+ n.migration = false;
1076
+
1077
+
1078
+
1079
+
1080
+ // MIGRATION EXTENSION
1081
+ if (!c.data('version') || !c.data('version').toString().match(/5./gi)) {
1082
+ n.kenburns = true;
1083
+ n.parallax = true;
1084
+ n.carousel = false;
1085
+ n.navigation = true;
1086
+ n.videos = true;
1087
+ n.actions = true;
1088
+ n.layeranim = true;
1089
+ n.migration = true;
1090
+ }
1091
+ else {
1092
+ // KEN BURN MODUL
1093
+ c.find('img').each(function(){
1094
+ if (jQuery(this).data('kenburns')=="on") n.kenburns = true;
1095
+ });
1096
+
1097
+ // NAVIGATION EXTENSTION
1098
+ if (o.sliderType =="carousel" || _n.keyboardNavigation=="on" || _n.mouseScrollNavigation=="on" || _n.touch.touchenabled=="on" || _n.arrows.enable || _n.bullets.enable || _n.thumbnails.enable || _n.tabs.enable )
1099
+ n.navigation = true;
1100
+
1101
+ // LAYERANIM, VIDEOS, ACTIONS EXTENSIONS
1102
+ c.find('.tp-caption, .tp-static-layer, .rs-background-video-layer').each(function(){
1103
+ var _nc = jQuery(this);
1104
+ if ((_nc.data('ytid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('youtube')>0))
1105
+ n.videos = true;
1106
+ if ((_nc.data('vimeoid')!=undefined || _nc.find('iframe').length>0 && _nc.find('iframe').attr('src').toLowerCase().indexOf('vimeo')>0))
1107
+ n.videos = true;
1108
+ if (_nc.data('actions')!==undefined)
1109
+ n.actions = true;
1110
+ n.layeranim = true;
1111
+ });
1112
+
1113
+
1114
+ c.find('li').each(function() {
1115
+ if (jQuery(this).data('link') && jQuery(this).data('link')!=undefined) {
1116
+ n.layeranim = true;
1117
+ n.actions = true;
1118
+ }
1119
+ })
1120
+
1121
+ // VIDEO EXTENSION
1122
+ if (!n.videos && (c.find('.rs-background-video-layer').length>0 || c.find(".tp-videolayer").length>0 || c.find(".tp-audiolayer").length>0 || c.find('iframe').length>0 || c.find('video').length>0))
1123
+ n.videos = true;
1124
+
1125
+
1126
+ // VIDEO EXTENSION
1127
+ if (o.sliderType =="carousel")
1128
+ n.carousel = true;
1129
+
1130
+
1131
+
1132
+ if (o.parallax.type!=="off" || o.viewPort.enable || o.viewPort.enable=="true" || o.scrolleffect.on==="true" || o.scrolleffect.on)
1133
+ n.parallax = true;
1134
+ }
1135
+
1136
+ if (o.sliderType=="hero") {
1137
+ n.carousel = false;
1138
+ n.navigation = false;
1139
+ }
1140
+
1141
+ if (window.location.href.match(/file:/gi)) {
1142
+ n.filesystem = true;
1143
+ o.filesystem = true;
1144
+ }
1145
+
1146
+
1147
+ // LOAD THE NEEDED LIBRARIES
1148
+ if (n.videos && typeof _R.isVideoPlaying=='undefined') lAjax('revolution.extension.video',o);
1149
+ if (n.carousel && typeof _R.prepareCarousel=='undefined') lAjax('revolution.extension.carousel',o);
1150
+ if (!n.carousel && typeof _R.animateSlide=='undefined') lAjax('revolution.extension.slideanims',o);
1151
+ if (n.actions && typeof _R.checkActions=='undefined') lAjax('revolution.extension.actions',o);
1152
+ if (n.layeranim && typeof _R.handleStaticLayers=='undefined') lAjax('revolution.extension.layeranimation',o);
1153
+ if (n.kenburns && typeof _R.stopKenBurn=='undefined') lAjax('revolution.extension.kenburn',o);
1154
+ if (n.navigation && typeof _R.createNavigation=='undefined') lAjax('revolution.extension.navigation',o);
1155
+ if (n.migration && typeof _R.migration=='undefined') lAjax('revolution.extension.migration',o);
1156
+ if (n.parallax && typeof _R.checkForParallax=='undefined') lAjax('revolution.extension.parallax',o);
1157
+
1158
+ if (o.addons!=undefined && o.addons.length>0) {
1159
+ jQuery.each(o.addons, function(i,obj) {
1160
+ if (typeof obj === "object" && obj.fileprefix!=undefined)
1161
+ lAjax(obj.fileprefix,o);
1162
+ })
1163
+ }
1164
+
1165
+
1166
+ return n;
1167
+ }
1168
+
1169
+ ///////////////////////////////////
1170
+ // - WAIT FOR SCRIPT LOADS - //
1171
+ ///////////////////////////////////
1172
+ var waitForScripts = function(c,o) {
1173
+ // CHECK KEN BURN DEPENDENCIES
1174
+ var addonsloaded = true,
1175
+ n = o.scriptsneeded;
1176
+
1177
+ // CHECK FOR ADDONS
1178
+ if (o.addons!=undefined && o.addons.length>0) {
1179
+ jQuery.each(o.addons, function(i,obj) {
1180
+ if (typeof obj === "object" && obj.init!=undefined) {
1181
+ if (_R[obj.init]===undefined) addonsloaded = false;
1182
+ }
1183
+ })
1184
+ }
1185
+
1186
+ if (n.filesystem ||
1187
+ (typeof punchgs !== 'undefined' &&
1188
+ (addonsloaded) &&
1189
+ (!n.kenburns || (n.kenburns && typeof _R.stopKenBurn !== 'undefined')) &&
1190
+ (!n.navigation || (n.navigation && typeof _R.createNavigation !== 'undefined')) &&
1191
+ (!n.carousel || (n.carousel && typeof _R.prepareCarousel !== 'undefined')) &&
1192
+ (!n.videos || (n.videos && typeof _R.resetVideo !== 'undefined')) &&
1193
+ (!n.actions || (n.actions && typeof _R.checkActions !== 'undefined')) &&
1194
+ (!n.layeranim || (n.layeranim && typeof _R.handleStaticLayers !== 'undefined')) &&
1195
+ (!n.migration || (n.migration && typeof _R.migration !== 'undefined')) &&
1196
+ (!n.parallax || (n.parallax && typeof _R.checkForParallax !== 'undefined')) &&
1197
+ (n.carousel || (!n.carousel && typeof _R.animateSlide !== 'undefined'))
1198
+ ))
1199
+ c.trigger("scriptsloaded");
1200
+ else
1201
+ setTimeout(function() {
1202
+ waitForScripts(c,o);
1203
+ },50);
1204
+
1205
+ }
1206
+
1207
+ //////////////////////////////////
1208
+ // - GET SCRIPT LOCATION - //
1209
+ //////////////////////////////////
1210
+ var getScriptLocation = function(a) {
1211
+
1212
+ var srcexp = new RegExp("themepunch.revolution.min.js","gi"),
1213
+ ret = "";
1214
+ jQuery("script").each(function() {
1215
+ var src = jQuery(this).attr("src");
1216
+ if (src && src.match(srcexp))
1217
+ ret = src;
1218
+ });
1219
+
1220
+ ret = ret.replace('jquery.themepunch.revolution.min.js', '');
1221
+ ret = ret.replace('jquery.themepunch.revolution.js', '');
1222
+ ret = ret.split("?")[0];
1223
+ return ret;
1224
+ }
1225
+
1226
+ //////////////////////////////////////////
1227
+ // - ADVANCED RESPONSIVE LEVELS - //
1228
+ //////////////////////////////////////////
1229
+ var setCurWinRange = function(opt,vis) {
1230
+ var curlevel = 0,
1231
+ curwidth = 9999,
1232
+ lastmaxlevel = 0,
1233
+ lastmaxid = 0,
1234
+ curid = 0,
1235
+ winw = jQuery(window).width(),
1236
+ l = vis && opt.responsiveLevels==9999 ? opt.visibilityLevels : opt.responsiveLevels;
1237
+
1238
+ if (l && l.length)
1239
+ jQuery.each(l,function(index,level) {
1240
+ if (winw<level) {
1241
+ if (lastmaxlevel==0 || lastmaxlevel>level) {
1242
+ curwidth = level;
1243
+ curid = index;
1244
+ lastmaxlevel = level;
1245
+ }
1246
+ }
1247
+
1248
+ if (winw>level && lastmaxlevel<level) {
1249
+ lastmaxlevel = level;
1250
+ lastmaxid = index;
1251
+ }
1252
+ });
1253
+
1254
+ if (lastmaxlevel<curwidth)
1255
+ curid = lastmaxid;
1256
+
1257
+
1258
+ if (!vis)
1259
+ opt.curWinRange = curid;
1260
+ else
1261
+ opt.forcedWinRange = curid;
1262
+
1263
+
1264
+ }
1265
+
1266
+
1267
+
1268
+
1269
+ //////////////////////////////////////////
1270
+ // - INITIALISATION OF OPTIONS - //
1271
+ //////////////////////////////////////////
1272
+ var prepareOptions = function(container,opt) {
1273
+ opt.carousel.maxVisibleItems = opt.carousel.maxVisibleItems < 1 ? 999 : opt.carousel.maxVisibleItems; // === 1 ? 2 : opt.carousel.maxVisibleItems;
1274
+ opt.carousel.vertical_align = opt.carousel.vertical_align === "top" ? "0%" : opt.carousel.vertical_align==="bottom" ? "100%" : "50%";
1275
+ }
1276
+
1277
+ var gWiderOut = function(c,cl) {
1278
+ var r = 0;
1279
+ c.find(cl).each(function() {
1280
+ var a = jQuery(this);
1281
+ if (!a.hasClass("tp-forcenotvisible") && r<a.outerWidth())
1282
+ r = a.outerWidth();
1283
+ });
1284
+ return r;
1285
+ }
1286
+
1287
+
1288
+
1289
+
1290
+ //////////////////////////////////////////
1291
+ // - INITIALISATION OF SLIDER - //
1292
+ //////////////////////////////////////////
1293
+ var initSlider = function (container,opt) {
1294
+ if (container==undefined) return false;
1295
+
1296
+ // CHECK FOR ALTERNATIVE IMAGE, AND IFRAM EXIST, AND WE ARE IN IE8, MOBILE, DRAW IT SIMPLE
1297
+ if (container.data('aimg')!=undefined)
1298
+ if ((container.data('aie8')=="enabled" && _R.isIE(8)) || (container.data('amobile')=="enabled" && _ISM))
1299
+ container.html('<img class="tp-slider-alternative-image" src="'+container.data("aimg")+'">');
1300
+
1301
+ // PREPRARE SOME CLASSES AND VARIABLES
1302
+ container.find('>ul').addClass("tp-revslider-mainul");
1303
+
1304
+
1305
+ // CREATE SOME DEFAULT OPTIONS FOR LATER
1306
+ opt.c=container;
1307
+ opt.ul = container.find('.tp-revslider-mainul');
1308
+
1309
+ // Remove Not Needed Slides for Mobile Devices
1310
+ opt.ul.find('>li').each(function(i) {
1311
+ var li = jQuery(this);
1312
+ if (li.data('hideslideonmobile')=="on" && _ISM) li.remove();
1313
+ if (li.data('invisible') || li.data('invisible')===true) {
1314
+ li.addClass("tp-invisible-slide");
1315
+ li.appendTo(opt.ul);
1316
+ }
1317
+ });
1318
+
1319
+
1320
+ if (opt.addons!=undefined && opt.addons.length>0) {
1321
+ jQuery.each(opt.addons, function(i,obj) {
1322
+ if (typeof obj === "object" && obj.init!=undefined) {
1323
+ _R[obj.init](eval(obj.params));
1324
+ }
1325
+ })
1326
+ }
1327
+
1328
+
1329
+
1330
+ opt.cid = container.attr('id');
1331
+ opt.ul.css({visibility:"visible"});
1332
+ opt.slideamount = opt.ul.find('>li').not('.tp-invisible-slide').length;
1333
+ opt.realslideamount = opt.ul.find('>li').length;
1334
+ opt.slayers = container.find('.tp-static-layers');
1335
+ opt.slayers.data('index','staticlayers');
1336
+
1337
+ if (opt.waitForInit == true)
1338
+ return;
1339
+ else {
1340
+ container[0].opt = opt;
1341
+ runSlider(container,opt);
1342
+ }
1343
+
1344
+ }
1345
+
1346
+ var onFullScreenChange = function() {
1347
+ jQuery("body").data('rs-fullScreenMode',!jQuery("body").data('rs-fullScreenMode'));
1348
+ if (jQuery("body").data('rs-fullScreenMode')) {
1349
+ setTimeout(function() {
1350
+ jQuery(window).trigger("resize");
1351
+ },200);
1352
+ }
1353
+ }
1354
+
1355
+ var runSlider = function(container,opt) {
1356
+
1357
+
1358
+ opt.sliderisrunning = true;
1359
+ // Save Original Index of Slides
1360
+ opt.ul.find('>li').each(function(i) {
1361
+ jQuery(this).data('originalindex',i);
1362
+ });
1363
+
1364
+ opt.allli = opt.ul.find('>li');
1365
+
1366
+ // RECORD THUMBS AND SET INDEXES
1367
+ jQuery.each(opt.allli,function(index,li) {
1368
+ var li = jQuery(li);
1369
+ li.data('origindex',li.index());
1370
+ });
1371
+
1372
+ opt.li = opt.ul.find('>li').not('.tp-invisible-slide');
1373
+
1374
+ // RANDOMIZE THE SLIDER SHUFFLE MODE
1375
+ if (opt.shuffle=="on") {
1376
+ var fsa = new Object,
1377
+ fli = opt.ul.find('>li:first-child');
1378
+ fsa.fstransition = fli.data('fstransition');
1379
+ fsa.fsmasterspeed = fli.data('fsmasterspeed');
1380
+ fsa.fsslotamount = fli.data('fsslotamount');
1381
+
1382
+ for (var u=0;u<opt.slideamount;u++) {
1383
+ var it = Math.round(Math.random()*opt.slideamount);
1384
+ opt.ul.find('>li:eq('+it+')').prependTo(opt.ul);
1385
+ }
1386
+
1387
+ var newfli = opt.ul.find('>li:first-child');
1388
+ newfli.data('fstransition',fsa.fstransition);
1389
+ newfli.data('fsmasterspeed',fsa.fsmasterspeed);
1390
+ newfli.data('fsslotamount',fsa.fsslotamount);
1391
+
1392
+ // RECOLLECT ALL LI INTO AN ARRAY
1393
+ opt.allli = opt.ul.find('>li');
1394
+ opt.li = opt.ul.find('>li').not('.tp-invisible-slide');
1395
+ }
1396
+
1397
+
1398
+ opt.inli = opt.ul.find('>li.tp-invisible-slide');
1399
+
1400
+
1401
+ opt.thumbs = new Array();
1402
+
1403
+ opt.slots=4;
1404
+ opt.act=-1;
1405
+ opt.firststart=1;
1406
+ opt.loadqueue = new Array();
1407
+ opt.syncload = 0;
1408
+ opt.conw = container.width();
1409
+ opt.conh = container.height();
1410
+
1411
+ if (opt.responsiveLevels.length>1)
1412
+ opt.responsiveLevels[0] = 9999;
1413
+ else
1414
+ opt.responsiveLevels = 9999;
1415
+
1416
+
1417
+
1418
+ jQuery.each(opt.allli,function(index,li) {
1419
+ var li = jQuery(li),
1420
+ img = li.find('.rev-slidebg') || li.find('img').first(),
1421
+ i = 0;
1422
+
1423
+
1424
+ li.addClass("tp-revslider-slidesli");
1425
+ if (li.data('index')===undefined) li.data('index','rs-'+Math.round(Math.random()*999999));
1426
+
1427
+ var obj = new Object;
1428
+ obj.params = new Array();
1429
+
1430
+ obj.id = li.data('index');
1431
+ obj.src = li.data('thumb')!==undefined ? li.data('thumb') : img.data('lazyload') !== undefined ? img.data('lazyload') : img.attr('src');
1432
+ if (li.data('title') !== undefined) obj.params.push({from:RegExp("\\{\\{title\\}\\}","g"), to:li.data("title")})
1433
+ if (li.data('description') !== undefined) obj.params.push({from:RegExp("\\{\\{description\\}\\}","g"), to:li.data("description")})
1434
+ for (var i=1;i<=10;i++) {
1435
+ if (li.data("param"+i)!==undefined)
1436
+ obj.params.push({from:RegExp("\\{\\{param"+i+"\\}\\}","g"), to:li.data("param"+i)})
1437
+ }
1438
+ opt.thumbs.push(obj);
1439
+
1440
+ // IF LINK ON SLIDE EXISTS, NEED TO CREATE A PROPER LAYER FOR IT.
1441
+ if (li.data('link')!=undefined) {
1442
+ var link = li.data('link'),
1443
+ target= li.data('target') || "_self",
1444
+ zindex= li.data('slideindex')==="back" ? 0 : 60,
1445
+ linktoslide=li.data('linktoslide'),
1446
+ checksl = linktoslide;
1447
+
1448
+ if (linktoslide != undefined)
1449
+ if (linktoslide!="next" && linktoslide!="prev")
1450
+ opt.allli.each(function() {
1451
+ var t = jQuery(this);
1452
+ if (t.data('origindex')+1==checksl) linktoslide = t.data('index');
1453
+ });
1454
+
1455
+
1456
+ if (link!="slide") linktoslide="no";
1457
+
1458
+ var apptxt = '<div class="tp-caption slidelink" style="cursor:pointer;width:100%;height:100%;z-index:'+zindex+';" data-x="center" data-y="center" data-basealign="slide" ',
1459
+ jts = linktoslide==="scroll_under" ? '[{"event":"click","action":"scrollbelow","offset":"100px","delay":"0"}]' :
1460
+ linktoslide==="prev" ? '[{"event":"click","action":"jumptoslide","slide":"prev","delay":"0.2"}]' :
1461
+ linktoslide==="next" ? '[{"event":"click","action":"jumptoslide","slide":"next","delay":"0.2"}]' : '[{"event":"click","action":"jumptoslide","slide":"'+linktoslide+'","delay":"0.2"}]',
1462
+ frame = ' data-frames=' +"'" + '[{"delay":0,"speed":100,"frame":"0","from":"opacity:0;","to":"o:1;","ease":"Power3.easeInOut"},{"delay":"wait","speed":300,"frame":"999","to":"opacity:0;","ease":"Power3.easeInOut"}]'+"'";
1463
+ apptxt = linktoslide=="no" ? apptxt + frame +' >' : apptxt + 'data-actions='+"'"+jts + "'"+frame+' >';
1464
+ apptxt = apptxt + '<a style="width:100%;height:100%;display:block"';
1465
+ apptxt = link!="slide" ? apptxt + ' target="'+target+'" href="'+link+'"' : apptxt;
1466
+ apptxt = apptxt + '><span style="width:100%;height:100%;display:block"></span></a></div>';
1467
+ li.append(apptxt);
1468
+ }
1469
+ });
1470
+
1471
+
1472
+ // CREATE GRID WIDTH AND HEIGHT ARRAYS
1473
+ opt.rle = opt.responsiveLevels.length || 1;
1474
+ opt.gridwidth = cArray(opt.gridwidth,opt.rle);
1475
+ opt.gridheight = cArray(opt.gridheight,opt.rle);
1476
+ // END OF VERSION 5.0 INIT MODIFICATION
1477
+
1478
+
1479
+
1480
+ // SIMPLIFY ANIMATIONS ON OLD IOS AND IE8 IF NEEDED
1481
+ if (opt.simplifyAll=="on" && (_R.isIE(8) || _R.iOSVersion())) {
1482
+ container.find('.tp-caption').each(function() {
1483
+ var tc = jQuery(this);
1484
+ tc.removeClass("customin customout").addClass("fadein fadeout");
1485
+ tc.data('splitin',"");
1486
+ tc.data('speed',400);
1487
+ })
1488
+ opt.allli.each(function() {
1489
+ var li= jQuery(this);
1490
+ li.data('transition',"fade");
1491
+ li.data('masterspeed',500);
1492
+ li.data('slotamount',1);
1493
+ var img = li.find('.rev-slidebg') || li.find('>img').first();
1494
+ img.data('kenburns',"off");
1495
+ });
1496
+ }
1497
+
1498
+ opt.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i);
1499
+
1500
+ // SOME OPTIONS WHICH SHOULD CLOSE OUT SOME OTHER SETTINGS
1501
+ opt.autoHeight = opt.sliderLayout=="fullscreen" ? "on" : opt.autoHeight;
1502
+
1503
+ if (opt.sliderLayout=="fullwidth" && opt.autoHeight=="off") container.css({maxHeight:opt.gridheight[opt.curWinRange]+"px"});
1504
+
1505
+ // BUILD A FORCE FULLWIDTH CONTAINER, TO SPAN THE FULL SLIDER TO THE FULL WIDTH OF BROWSER
1506
+ if (opt.sliderLayout!="auto" && container.closest('.forcefullwidth_wrapper_tp_banner').length==0) {
1507
+ if (opt.sliderLayout!=="fullscreen" || opt.fullScreenAutoWidth!="on") {
1508
+ var cp = container.parent(),
1509
+ mb = cp.css('marginBottom'),
1510
+ mt = cp.css('marginTop'),
1511
+ cid = container.attr('id')+"_forcefullwidth";
1512
+ mb = mb===undefined ? 0 : mb;
1513
+ mt = mt===undefined ? 0 : mt;
1514
+
1515
+ cp.wrap('<div class="forcefullwidth_wrapper_tp_banner" id="'+cid+'" style="position:relative;width:100%;height:auto;margin-top:'+mt+';margin-bottom:'+mb+'"></div>');
1516
+ container.closest('.forcefullwidth_wrapper_tp_banner').append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+container.height()+'px"></div>');
1517
+ container.parent().css({marginTop:"0px",marginBottom:"0px"});
1518
+ //container.css({'backgroundColor':container.parent().css('backgroundColor'),'backgroundImage':container.parent().css('backgroundImage')});
1519
+ container.parent().css({position:'absolute'});
1520
+ }
1521
+ }
1522
+
1523
+
1524
+
1525
+ // SHADOW ADD ONS
1526
+ if (opt.shadow!==undefined && opt.shadow>0) {
1527
+ container.parent().addClass('tp-shadow'+opt.shadow);
1528
+ container.parent().append('<div class="tp-shadowcover"></div>');
1529
+ container.parent().find('.tp-shadowcover').css({'backgroundColor':container.parent().css('backgroundColor'),'backgroundImage':container.parent().css('backgroundImage')});
1530
+ }
1531
+
1532
+ // ESTIMATE THE CURRENT WINDOWS RANGE INDEX
1533
+ setCurWinRange(opt);
1534
+ setCurWinRange(opt,true);
1535
+
1536
+ // IF THE CONTAINER IS NOT YET INITIALISED, LETS GO FOR IT
1537
+ if (!container.hasClass("revslider-initialised")) {
1538
+ // MARK THAT THE CONTAINER IS INITIALISED WITH SLIDER REVOLUTION ALREADY
1539
+ container.addClass("revslider-initialised");
1540
+
1541
+ // FOR BETTER SELECTION, ADD SOME BASIC CLASS
1542
+ container.addClass("tp-simpleresponsive");
1543
+ // WE DONT HAVE ANY ID YET ? WE NEED ONE ! LETS GIVE ONE RANDOMLY FOR RUNTIME
1544
+ if (container.attr('id')==undefined) {
1545
+ container.attr('id',"revslider-"+Math.round(Math.random()*1000+5));
1546
+ }
1547
+ checkIDS(opt,container);
1548
+
1549
+ // CHECK IF FIREFOX 13 IS ON WAY.. IT HAS A STRANGE BUG, CSS ANIMATE SHOULD NOT BE USED
1550
+ opt.firefox13 = false;
1551
+ opt.ie = !jQuery.support.opacity;
1552
+ opt.ie9 = (document.documentMode == 9);
1553
+
1554
+ opt.origcd=opt.delay;
1555
+
1556
+
1557
+
1558
+ // CHECK THE jQUERY VERSION
1559
+ var version = jQuery.fn.jquery.split('.'),
1560
+ versionTop = parseFloat(version[0]),
1561
+ versionMinor = parseFloat(version[1]),
1562
+ versionIncrement = parseFloat(version[2] || '0');
1563
+ if (versionTop==1 && versionMinor < 7)
1564
+ container.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+version+' <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>');
1565
+ if (versionTop>1) opt.ie=false;
1566
+
1567
+
1568
+
1569
+ // PREPARE VIDEO PLAYERS
1570
+ var addedApis = new Object();
1571
+ addedApis.addedyt=0;
1572
+ addedApis.addedvim=0;
1573
+ addedApis.addedvid=0;
1574
+
1575
+ //PREPARING FADE IN/OUT PARALLAX
1576
+ if (opt.scrolleffect.on)
1577
+ opt.scrolleffect.layers = new Array();
1578
+
1579
+ //WRAP LAYERS INTO 1 CONTAINER TO AVOID FURTHER ISSUES
1580
+ /*container.find('.tp-revslider-slidesli').each(function() {
1581
+ jQuery(this).find('.tp-caption').wrapAll('<div class="tp-layers-container"></div>');
1582
+ });*/
1583
+
1584
+ container.find('.tp-caption, .rs-background-video-layer').each(function(i) {
1585
+ var _nc = jQuery(this),
1586
+ _ = _nc.data(),
1587
+ an = _.autoplayonlyfirsttime,
1588
+ ap = _.autoplay,
1589
+ htmlvideo = _.videomp4!==undefined || _.videowebm!==undefined || _.videoogv!==undefined,
1590
+ al = _nc.hasClass("tp-audiolayer"),
1591
+ loop = _.videoloop,
1592
+ addtofadeout = true,
1593
+ addToStaticFadeout = false;
1594
+
1595
+
1596
+ _.startclasses = _nc.attr('class');
1597
+
1598
+
1599
+ _.isparallaxlayer = _.startclasses.indexOf("rs-parallax")>=0;
1600
+
1601
+
1602
+
1603
+ if (_nc.hasClass("tp-static-layer") && _R.handleStaticLayers) {
1604
+ _R.handleStaticLayers(_nc,opt);
1605
+ if (opt.scrolleffect.on)
1606
+ if ((opt.scrolleffect.on_parallax_static_layers==="on" && _.isparallaxlayer) || (opt.scrolleffect.on_static_layers==="on" && !_.isparallaxlayer)) addToStaticFadeout = true;
1607
+ addtofadeout=false;
1608
+ }
1609
+
1610
+ var pom = _nc.data('noposteronmobile') || _nc.data('noPosterOnMobile') || _nc.data('posteronmobile') || _nc.data('posterOnMobile') || _nc.data('posterOnMObile');
1611
+ _nc.data('noposteronmobile',pom);
1612
+
1613
+ // FIX VISIBLE IFRAME BUG IN SAFARI
1614
+ var iff = 0;
1615
+ _nc.find('iframe').each(function() {
1616
+ punchgs.TweenLite.set(jQuery(this),{autoAlpha:0});
1617
+ iff++;
1618
+ })
1619
+ if (iff>0)
1620
+ _nc.data('iframes',true)
1621
+
1622
+ if (_nc.hasClass("tp-caption")) {
1623
+ // PREPARE LAYERS AND WRAP THEM WITH PARALLAX, LOOP, MASK HELP CONTAINERS
1624
+ var ec = _nc.hasClass("slidelink") ? "width:100% !important;height:100% !important;" : "",
1625
+ _ndata = _nc.data(),
1626
+ specec = "",
1627
+ nctype = _ndata.type,
1628
+ _pos = nctype==="row" || nctype==="column" ? "relative" : "absolute",
1629
+ preclas = "";
1630
+
1631
+ if (nctype==="row") {
1632
+ _nc.addClass("rev_row").removeClass("tp-resizeme");
1633
+ preclas="rev_row_wrap";
1634
+ } else
1635
+ if (nctype==="column") {
1636
+ specec = _ndata.verticalalign === undefined ? " vertical-align:bottom;" : " vertical-align:"+_ndata.verticalalign+";";
1637
+ preclas = "rev_column";
1638
+ _nc.addClass("rev_column_inner").removeClass("tp-resizeme");;
1639
+ _nc.data('width','auto');
1640
+ punchgs.TweenLite.set(_nc,{width:'auto'});
1641
+ } else
1642
+ if (nctype==="group") {
1643
+ _nc.removeClass("tp-resizeme")
1644
+ }
1645
+ var dmode = "",
1646
+ preid = "";
1647
+
1648
+
1649
+ if (nctype!=="row" && nctype!=="group" && nctype!=="column"){
1650
+ dmode = "display:"+_nc.css('display')+";";
1651
+ if (_nc.closest('.rev_column').length>0) {
1652
+ _nc.addClass("rev_layer_in_column");
1653
+ addtofadeout=false;
1654
+ } else
1655
+ if (_nc.closest('.rev_group').length>0) {
1656
+ _nc.addClass("rev_layer_in_group");
1657
+ addtofadeout=false;
1658
+ }
1659
+
1660
+
1661
+ } else
1662
+ if (nctype==="column") addtofadeout = false;
1663
+
1664
+
1665
+ if (_ndata.wrapper_class!==undefined) preclas = preclas+" "+_ndata.wrapper_class;
1666
+ if (_ndata.wrapper_id!==undefined) preid ='id="'+_ndata.wrapper_id+'"';
1667
+
1668
+ // POINTER EVENTS ADDITION
1669
+ var pevents = '';
1670
+ if(_nc.hasClass('tp-no-events')) pevents = ';pointer-events:none';
1671
+ _nc.wrap('<div '+preid+' class="tp-parallax-wrap '+preclas+'" style="'+specec+' '+ec+'position:'+_pos+';'+dmode+';visibility:hidden'+pevents+'"><div class="tp-loop-wrap" style="'+ec+'position:'+_pos+';'+dmode+';"><div class="tp-mask-wrap" style="'+ec+'position:'+_pos+';'+dmode+';" ></div></div></div>');
1672
+
1673
+ // ONLY ADD LAYERS TO FADEOUT DYNAMIC LIST WHC
1674
+ if (addtofadeout && opt.scrolleffect.on)
1675
+ if ((opt.scrolleffect.on_parallax_layers==="on" && _.isparallaxlayer) || (opt.scrolleffect.on_layers==="on" && !_.isparallaxlayer))
1676
+ opt.scrolleffect.layers.push(_nc.parent());
1677
+ if (addToStaticFadeout) opt.scrolleffect.layers.push(_nc.parent());
1678
+
1679
+
1680
+ // Add BG for Columns
1681
+ if (nctype==="column") {
1682
+ _nc.append('<div class="rev_column_bg rev_column_bg_man_sized" style="visibility:hidden"></div>');
1683
+ _nc.closest('.tp-parallax-wrap').append('<div class="rev_column_bg rev_column_bg_auto_sized"></div>');
1684
+ }
1685
+
1686
+ var lar = ['pendulum', 'rotate','slideloop','pulse','wave'],
1687
+ _lc = _nc.closest('.tp-loop-wrap');
1688
+
1689
+ jQuery.each(lar,function(i,k) {
1690
+ var lw = _nc.find('.rs-'+k),
1691
+ f = lw.data() || "";
1692
+ if (f!="") {
1693
+ _lc.data(f);
1694
+ _lc.addClass("rs-"+k);
1695
+ lw.children(0).unwrap();
1696
+ _nc.data('loopanimation',"on");
1697
+ }
1698
+ });
1699
+ if (_nc.attr('id')===undefined)
1700
+ _nc.attr('id','layer-'+Math.round(Math.random()*999999999));
1701
+ checkIDS(opt,_nc);
1702
+ punchgs.TweenLite.set(_nc,{visibility:"hidden"});
1703
+ }
1704
+
1705
+ var as = _nc.data('actions');
1706
+ if (as!==undefined) _R.checkActions(_nc,opt,as);
1707
+
1708
+ checkHoverDependencies(_nc,opt);
1709
+
1710
+ if (_R.checkVideoApis)
1711
+ addedApis = _R.checkVideoApis(_nc,opt,addedApis);
1712
+
1713
+ // REMOVE VIDEO AUTOPLAYS FOR MOBILE DEVICES
1714
+ /*
1715
+ if (_ISM && (!opt.fallbacks.allowHTML5AutoPlayOnAndroid || !htmlvideo)) {
1716
+ if (an == true || an=="true") {
1717
+ _.autoplayonlyfirsttime=false;
1718
+ an=false;
1719
+ }
1720
+ if (ap==true || ap=="true" || ap=="on" || ap=="1sttime") {
1721
+ _.autoplay="off";
1722
+ ap="off";
1723
+ }
1724
+ }
1725
+ */
1726
+
1727
+ //loop = loop=="none" && _nc.hasClass('rs-background-video-layer') ? "loopandnoslidestop" : loop;
1728
+
1729
+
1730
+
1731
+
1732
+ // PREPARE TIMER BEHAVIOUR BASED ON AUTO PLAYED VIDEOS IN SLIDES
1733
+ if (!al && (an == true || an=="true" || ap == "1sttime") && loop !="loopandnoslidestop")
1734
+ _nc.closest('li.tp-revslider-slidesli').addClass("rs-pause-timer-once");
1735
+
1736
+
1737
+ if (!al && (ap==true || ap=="true" || ap == "on" || ap == "no1sttime") && loop !="loopandnoslidestop")
1738
+ _nc.closest('li.tp-revslider-slidesli').addClass("rs-pause-timer-always");
1739
+
1740
+
1741
+ });
1742
+
1743
+ container[0].addEventListener('mouseenter',function() {
1744
+ container.trigger('tp-mouseenter');
1745
+ opt.overcontainer=true;
1746
+ },{passive:true});
1747
+
1748
+ container[0].addEventListener('mouseover',function() {
1749
+ container.trigger('tp-mouseover');
1750
+ opt.overcontainer=true;
1751
+ },{passive:true});
1752
+
1753
+ container[0].addEventListener('mouseleave',function() {
1754
+ container.trigger('tp-mouseleft');
1755
+ opt.overcontainer=false;
1756
+ },{passive:true});
1757
+
1758
+ // REMOVE ANY VIDEO JS SETTINGS OF THE VIDEO IF NEEDED (OLD FALL BACK, AND HELP FOR 3THD PARTY PLUGIN CONFLICTS)
1759
+ container.find('.tp-caption video').each(function(i) {
1760
+ var v = jQuery(this);
1761
+ v.removeClass("video-js vjs-default-skin");
1762
+ v.attr("preload","");
1763
+ v.css({display:"none"});
1764
+ });
1765
+
1766
+ //PREPARE LOADINGS ALL IN SEQUENCE
1767
+ if (opt.sliderType!=="standard") opt.lazyType = "all";
1768
+
1769
+
1770
+ // PRELOAD STATIC LAYERS
1771
+ loadImages(container.find('.tp-static-layers'),opt,0,true);
1772
+
1773
+ waitForCurrentImages(container.find('.tp-static-layers'),opt,function() {
1774
+ container.find('.tp-static-layers img').each(function() {
1775
+ var e = jQuery(this),
1776
+ src = e.data('lazyload') != undefined ? e.data('lazyload') : e.attr('src'),
1777
+ loadobj = getLoadObj(opt,src);
1778
+ e.attr('src',loadobj.src)
1779
+ })
1780
+ });
1781
+
1782
+ opt.rowzones = [];
1783
+
1784
+ // SET ALL LI AN INDEX AND INIT LAZY LOADING
1785
+ opt.allli.each(function(i) {
1786
+ var li = jQuery(this);
1787
+ punchgs.TweenLite.set(this,{perspective:6000}); //PERSPECTIVE
1788
+ opt.rowzones[i] = [];
1789
+ li.find('.rev_row_zone').each(function() {
1790
+ opt.rowzones[i].push(jQuery(this));
1791
+ })
1792
+
1793
+ if (opt.lazyType=="all" || (opt.lazyType=="smart" && (i==0 || i == 1 || i == opt.slideamount || i == opt.slideamount-1))) {
1794
+ loadImages(li,opt,i);
1795
+ waitForCurrentImages(li,opt,function() {
1796
+ //if (opt.sliderType=="carousel")
1797
+ //punchgs.TweenLite.to(li,1,{autoAlpha:1,ease:punchgs.Power3.easeInOut});
1798
+ });
1799
+ }
1800
+
1801
+ });
1802
+
1803
+
1804
+
1805
+ // IF DEEPLINK HAS BEEN SET
1806
+ var deeplink = getUrlVars("#")[0];
1807
+ if (deeplink.length<9) {
1808
+ if (deeplink.split('slide').length>1) {
1809
+ var dslide=parseInt(deeplink.split('slide')[1],0);
1810
+ if (dslide<1) dslide=1;
1811
+ if (dslide>opt.slideamount) dslide=opt.slideamount;
1812
+ opt.startWithSlide=dslide-1;
1813
+ }
1814
+ }
1815
+
1816
+ // PREPARE THE SPINNER
1817
+ container.append( '<div class="tp-loader '+opt.spinner+'">'+
1818
+ '<div class="dot1"></div>'+
1819
+ '<div class="dot2"></div>'+
1820
+ '<div class="bounce1"></div>'+
1821
+ '<div class="bounce2"></div>'+
1822
+ '<div class="bounce3"></div>'+
1823
+ '</div>');
1824
+ opt.loader = container.find('.tp-loader');
1825
+
1826
+ // RESET THE TIMER
1827
+ if (container.find('.tp-bannertimer').length===0) container.append('<div class="tp-bannertimer" style="visibility:hidden"></div>');
1828
+ container.find('.tp-bannertimer').css({'width':'0%'});
1829
+
1830
+
1831
+
1832
+ // PREPARE THE SLIDES
1833
+ opt.ul.css({'display':'block'});
1834
+ prepareSlides(container,opt);
1835
+ if ((opt.parallax.type!=="off" || opt.scrolleffect.on) && _R.checkForParallax) _R.checkForParallax(container,opt);
1836
+
1837
+
1838
+ // PREPARE SLIDER SIZE
1839
+ _R.setSize(opt);
1840
+
1841
+
1842
+ // Call the Navigation Builder
1843
+ if (opt.sliderType!=="hero" && _R.createNavigation) _R.createNavigation(container,opt);
1844
+ if (_R.resizeThumbsTabs && _R.resizeThumbsTabs) _R.resizeThumbsTabs(opt);
1845
+ contWidthManager(opt);
1846
+ var _v = opt.viewPort;
1847
+ opt.inviewport = false;
1848
+
1849
+ if (_v !=undefined && _v.enable) {
1850
+ if (!jQuery.isNumeric(_v.visible_area))
1851
+ if (_v.visible_area.indexOf('%')!==-1)
1852
+ _v.visible_area = parseInt(_v.visible_area)/100;
1853
+
1854
+ if (_R.scrollTicker) _R.scrollTicker(opt,container);
1855
+ }
1856
+ // MAKE SURE CAROUSEL IS NOT YET VISIBE BEFORE IT COMES INTO GAME
1857
+ if (opt.sliderType==="carousel" && _R.prepareCarousel) {
1858
+ punchgs.TweenLite.set(opt.ul,{opacity:0});
1859
+ _R.prepareCarousel(opt,new punchgs.TimelineLite,undefined,0);
1860
+ opt.onlyPreparedSlide = true;
1861
+ }
1862
+
1863
+
1864
+
1865
+ // START THE SLIDER
1866
+ setTimeout(function() {
1867
+
1868
+ if (!_v.enable || (_v.enable && opt.inviewport) || (_v.enable && !opt.inviewport && !_v.outof=="wait"))
1869
+ swapSlide(container);
1870
+ else {
1871
+ opt.c.addClass("tp-waitforfirststart");
1872
+ opt.waitForFirstSlide = true;
1873
+ if (_v.presize) {
1874
+ var nextli = jQuery(opt.li[0]);
1875
+ // PRELOAD STATIC LAYERS
1876
+ loadImages(nextli,opt,0,true);
1877
+ waitForCurrentImages(nextli.find('.tp-layers'),opt,function() {
1878
+ _R.animateTheCaptions({slide:nextli,opt:opt, preset:true});
1879
+ })
1880
+ }
1881
+
1882
+
1883
+ }
1884
+
1885
+ if (_R.manageNavigation) _R.manageNavigation(opt);
1886
+
1887
+
1888
+ // START COUNTDOWN
1889
+ if (opt.slideamount>1) {
1890
+ if (!_v.enable || (_v.enable && opt.inviewport))
1891
+ countDown(container,opt);
1892
+ else
1893
+ opt.waitForCountDown = true;
1894
+ }
1895
+ setTimeout(function() {
1896
+ container.trigger('revolution.slide.onloaded');
1897
+ },100);
1898
+ },opt.startDelay);
1899
+ opt.startDelay=0;
1900
+
1901
+
1902
+
1903
+ /******************************
1904
+ - FULLSCREEN CHANGE -
1905
+ ********************************/
1906
+ // FULLSCREEN MODE TESTING
1907
+ jQuery("body").data('rs-fullScreenMode',false);
1908
+
1909
+
1910
+ window.addEventListener('fullscreenchange',onFullScreenChange,{passive:true});
1911
+ window.addEventListener('mozfullscreenchange',onFullScreenChange,{passive:true});
1912
+ window.addEventListener('webkitfullscreenchange',onFullScreenChange,{passive:true});
1913
+
1914
+
1915
+
1916
+ var resizid = "resize.revslider-"+container.attr('id');
1917
+
1918
+ // IF RESIZED, NEED TO STOP ACTUAL TRANSITION AND RESIZE ACTUAL IMAGES
1919
+ jQuery(window).on(resizid,function() {
1920
+
1921
+ if (container==undefined) return false;
1922
+
1923
+ if (jQuery('body').find(container)!=0)
1924
+ contWidthManager(opt);
1925
+
1926
+ var hchange = false;
1927
+
1928
+ if (opt.sliderLayout=="fullscreen") {
1929
+ var jwh = jQuery(window).height();
1930
+ if ((opt.fallbacks.ignoreHeightChanges=="mobile" && _ISM) || opt.fallbacks.ignoreHeightChanges=="always") {
1931
+ opt.fallbacks.ignoreHeightChangesSize = opt.fallbacks.ignoreHeightChangesSize == undefined ? 0 : opt.fallbacks.ignoreHeightChangesSize;
1932
+ hchange = (jwh!=opt.lastwindowheight) && (Math.abs(jwh-opt.lastwindowheight) > opt.fallbacks.ignoreHeightChangesSize)
1933
+ } else {
1934
+ hchange = (jwh!=opt.lastwindowheight)
1935
+ }
1936
+ }
1937
+
1938
+
1939
+ if (container.outerWidth(true)!=opt.width || container.is(":hidden") || (hchange)) {
1940
+ opt.lastwindowheight = jQuery(window).height();
1941
+ containerResized(container,opt);
1942
+ }
1943
+
1944
+
1945
+ });
1946
+
1947
+ hideSliderUnder(container,opt);
1948
+ contWidthManager(opt);
1949
+ if (!opt.fallbacks.disableFocusListener && opt.fallbacks.disableFocusListener != "true" && opt.fallbacks.disableFocusListener !== true) {
1950
+ container.addClass("rev_redraw_on_blurfocus");
1951
+ tabBlurringCheck();
1952
+ }
1953
+ }
1954
+ }
1955
+
1956
+ /*************************************
1957
+ - CREATE SIMPLE ARRAYS -
1958
+ **************************************/
1959
+ var cArray = function(b,l) {
1960
+ if (!jQuery.isArray(b)) {
1961
+ var t = b;
1962
+ b = new Array();
1963
+ b.push(t);
1964
+ }
1965
+ if (b.length<l) {
1966
+ var t = b[b.length-1];
1967
+ for (var i=0;i<(l-b.length)+2;i++)
1968
+ b.push(t)
1969
+ }
1970
+ return b;
1971
+ }
1972
+
1973
+
1974
+
1975
+ var checkHoverDependencies = function(_nc,opt) {
1976
+ var _ = _nc.data(),
1977
+ senter = _.start==="sliderenter" || (_.frames!==undefined && _.frames[0]!=undefined && _.frames[0].delay==="sliderenter") ? true : false;
1978
+
1979
+ if (senter) {
1980
+ if (opt.layersonhover===undefined) {
1981
+ opt.c.on('tp-mouseenter',function() {
1982
+ if (opt.layersonhover)
1983
+ jQuery.each(opt.layersonhover,function(i,tnc) {
1984
+
1985
+ var cli = tnc.data('closestli') || tnc.closest('.tp-revslider-slidesli'),
1986
+ stl = tnc.data('staticli') || tnc.closest('.tp-static-layers');
1987
+
1988
+ if (tnc.data('closestli')===undefined) {
1989
+ tnc.data('closestli',cli);
1990
+ tnc.data('staticli',stl);
1991
+ }
1992
+
1993
+ if ((cli.length>0 && (cli.hasClass("active-revslide")) || cli.hasClass("processing-revslide")) || (stl.length>0)) {
1994
+ tnc.data('animdirection',"in");
1995
+
1996
+ if (_R.playAnimationFrame)
1997
+ _R.playAnimationFrame({caption:tnc,opt:opt,frame:"frame_0", triggerdirection:"in", triggerframein:"frame_0", triggerframeout:"frame_999"});
1998
+ tnc.data('triggerstate',"on");
1999
+ }
2000
+ });
2001
+ });
2002
+ opt.c.on('tp-mouseleft',function() {
2003
+ if (opt.layersonhover)
2004
+ jQuery.each(opt.layersonhover,function(i,tnc) {
2005
+ tnc.data('animdirection',"out");
2006
+ tnc.data('triggered',true);
2007
+ tnc.data('triggerstate',"off");
2008
+ if (_R.stopVideo) _R.stopVideo(tnc,opt);
2009
+ if (_R.playAnimationFrame) _R.playAnimationFrame({caption:tnc,opt:opt,frame:"frame_999", triggerdirection:"out", triggerframein:"frame_0", triggerframeout:"frame_999"});
2010
+ });
2011
+ });
2012
+ opt.layersonhover = new Array;
2013
+ }
2014
+ opt.layersonhover.push(_nc);
2015
+ }
2016
+ }
2017
+
2018
+
2019
+
2020
+ var contWidthManager = function(opt) {
2021
+ var rl = _R.getHorizontalOffset(opt.c,"left");
2022
+
2023
+ if (opt.sliderLayout!="auto" && (opt.sliderLayout!=="fullscreen" || opt.fullScreenAutoWidth!="on")) {
2024
+ var loff = Math.ceil(opt.c.closest('.forcefullwidth_wrapper_tp_banner').offset().left - rl);
2025
+ punchgs.TweenLite.set(opt.c.parent(),{'left':(0-loff)+"px",'width':jQuery(window).width()-_R.getHorizontalOffset(opt.c,"both")});
2026
+ } else {
2027
+ if (opt.sliderLayout=="fullscreen" && opt.fullScreenAutoWidth=="on")
2028
+ punchgs.TweenLite.set(opt.ul,{left:0,width:opt.c.width()});
2029
+ else
2030
+ punchgs.TweenLite.set(opt.ul,{left:rl,width:opt.c.width()-_R.getHorizontalOffset(opt.c,"both")});
2031
+ }
2032
+
2033
+
2034
+ // put Static Layer Wrapper in Position
2035
+ if (opt.slayers && (opt.sliderLayout!="fullwidth" && opt.sliderLayout!="fullscreen"))
2036
+ punchgs.TweenLite.set(opt.slayers,{left:rl});
2037
+ }
2038
+
2039
+
2040
+ var cv = function(a,d) {
2041
+ return a===undefined ? d : a;
2042
+ }
2043
+
2044
+
2045
+ var hideSliderUnder = function(container,opt,resized) {
2046
+ // FIRST TIME STOP/START HIDE / SHOW SLIDER
2047
+ //REMOVE AND SHOW SLIDER ON DEMAND
2048
+ var contpar= container.parent();
2049
+ if (jQuery(window).width()<opt.hideSliderAtLimit) {
2050
+ container.trigger('stoptimer');
2051
+ if (contpar.css('display')!="none")
2052
+ contpar.data('olddisplay',contpar.css('display'));
2053
+ contpar.css({display:"none"});
2054
+ } else {
2055
+ if (container.is(":hidden") && resized) {
2056
+ if (contpar.data('olddisplay')!=undefined && contpar.data('olddisplay')!="undefined" && contpar.data('olddisplay') != "none")
2057
+ contpar.css({display:contpar.data('olddisplay')});
2058
+ else
2059
+ contpar.css({display:"block"});
2060
+ container.trigger('restarttimer');
2061
+ setTimeout(function() {
2062
+ containerResized(container,opt);
2063
+ },150)
2064
+ }
2065
+ }
2066
+ if (_R.hideUnHideNav) _R.hideUnHideNav(opt);
2067
+ }
2068
+
2069
+
2070
+ //////////////////////////
2071
+ // CONTAINER RESIZED //
2072
+ /////////////////////////
2073
+ var containerResized = function (c,opt) {
2074
+
2075
+ c.trigger('revolution.slide.beforeredraw');
2076
+ if (opt.infullscreenmode == true)
2077
+ opt.minHeight = jQuery(window).height();
2078
+
2079
+ setCurWinRange(opt);
2080
+ setCurWinRange(opt,true);
2081
+ if (!_R.resizeThumbsTabs || _R.resizeThumbsTabs(opt)===true) {
2082
+
2083
+ hideSliderUnder(c,opt,true);
2084
+ contWidthManager(opt);
2085
+
2086
+ if ( opt.sliderType =="carousel") _R.prepareCarousel(opt,true);
2087
+
2088
+ if (c===undefined) return false;
2089
+
2090
+ _R.setSize(opt);
2091
+
2092
+ opt.conw = opt.c.width();
2093
+ opt.conh = opt.infullscreenmode ? opt.minHeight : opt.c.height();
2094
+
2095
+ var actsh = c.find('.active-revslide .slotholder'),
2096
+ nextsh = c.find('.processing-revslide .slotholder');
2097
+
2098
+ removeSlots(c,opt,c,2);
2099
+
2100
+ if (opt.sliderType==="standard") {
2101
+ punchgs.TweenLite.set(nextsh.find('.defaultimg'),{opacity:0});
2102
+ actsh.find('.defaultimg').css({'opacity':1});
2103
+ }
2104
+
2105
+
2106
+ if ( opt.sliderType==="carousel" && opt.lastconw != opt.conw) {
2107
+ clearTimeout(opt.pcartimer);
2108
+ opt.pcartimer = setTimeout(function() {
2109
+ _R.prepareCarousel(opt,true);
2110
+ // SHOW ALL LAYERS IN ALL SLIDES FOR CAROUSEL
2111
+ if (opt.sliderType=="carousel" && opt.carousel.showLayersAllTime==="on")
2112
+ jQuery.each(opt.li,function(i) {
2113
+ _R.animateTheCaptions({slide:jQuery(opt.li[i]), opt:opt,recall:true});
2114
+ })
2115
+
2116
+ },100);
2117
+ opt.lastconw = opt.conw;
2118
+ }
2119
+
2120
+
2121
+ if (_R.manageNavigation) _R.manageNavigation(opt);
2122
+
2123
+
2124
+ if (_R.animateTheCaptions && c.find('.active-revslide').length>0)
2125
+ _R.animateTheCaptions({slide:c.find('.active-revslide'), opt:opt,recall:true});
2126
+
2127
+ if (nextsh.data('kenburns')=="on")
2128
+ _R.startKenBurn(nextsh,opt,(nextsh.data('kbtl')!==undefined ? nextsh.data('kbtl').progress() : 0));
2129
+
2130
+ if (actsh.data('kenburns')=="on")
2131
+ _R.startKenBurn(actsh,opt,(actsh.data('kbtl')!==undefined ? actsh.data('kbtl').progress() : 0));
2132
+
2133
+ // DOUBLE CALL FOR SOME FUNCTION TO AVOID PORTRAIT/LANDSCAPE ISSUES, AND TO AVOID FULLSCREEN/NORMAL SWAP ISSUES
2134
+ if (_R.animateTheCaptions && c.find('.processing-revslide').length>0) _R.animateTheCaptions({slide:c.find('.processing-revslide'), opt:opt,recall:true});
2135
+ if (_R.manageNavigation) _R.manageNavigation(opt);
2136
+
2137
+ }
2138
+
2139
+ c.trigger('revolution.slide.afterdraw');
2140
+ }
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2148
+ /////////////////////////////////////////////////////////////////////////////// PREPARING / REMOVING ////////////////////////////////////////////////////////
2149
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2150
+ var setScale = function(opt) {
2151
+ opt.bw = (opt.width / opt.gridwidth[opt.curWinRange]);
2152
+ opt.bh = (opt.height / opt.gridheight[opt.curWinRange]);
2153
+
2154
+ if (opt.bh>opt.bw)
2155
+ opt.bh=opt.bw
2156
+ else
2157
+ opt.bw = opt.bh;
2158
+
2159
+ if (opt.bh>1 || opt.bw>1) { opt.bw=1; opt.bh=1; }
2160
+ }
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+ /////////////////////////////////////////
2167
+ // - PREPARE THE SLIDES / SLOTS - //
2168
+ ///////////////////////////////////////
2169
+ var prepareSlides = function(container,opt) {
2170
+
2171
+ container.find('.tp-caption').each(function() {
2172
+ var c = jQuery(this);
2173
+ if (c.data('transition')!==undefined) c.addClass(c.data('transition'));
2174
+ });
2175
+
2176
+ // PREPARE THE UL CONTAINER TO HAVEING MAX HEIGHT AND HEIGHT FOR ANY SITUATION
2177
+ opt.ul.css({overflow:'hidden',width:'100%',height:'100%',maxHeight:container.parent().css('maxHeight')})
2178
+ if (opt.autoHeight=="on") {
2179
+ opt.ul.css({overflow:'hidden',width:'100%',height:'100%',maxHeight:"none"});
2180
+ container.css({'maxHeight':'none'});
2181
+ container.parent().css({'maxHeight':'none'});
2182
+ }
2183
+ //_R.setSize("",opt);
2184
+ opt.allli.each(function(j) {
2185
+ var li=jQuery(this),
2186
+ originalIndex = li.data('originalindex');
2187
+
2188
+ //START WITH CORRECT SLIDE
2189
+ if ((opt.startWithSlide !=undefined && originalIndex==opt.startWithSlide) || opt.startWithSlide ===undefined && j==0)
2190
+ li.addClass("next-revslide");
2191
+
2192
+
2193
+ // MAKE LI OVERFLOW HIDDEN FOR FURTHER ISSUES
2194
+ li.css({'width':'100%','height':'100%','overflow':'hidden'});
2195
+
2196
+ });
2197
+
2198
+ if (opt.sliderType === "carousel") {
2199
+ //SET CAROUSEL
2200
+ opt.ul.css({overflow:"visible"}).wrap('<div class="tp-carousel-wrapper" style="width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden;"></div>');
2201
+ var apt = '<div style="clear:both;display:block;width:100%;height:1px;position:relative;margin-bottom:-1px"></div>';
2202
+ opt.c.parent().prepend(apt);
2203
+ opt.c.parent().append(apt);
2204
+ _R.prepareCarousel(opt);
2205
+ }
2206
+
2207
+ // RESOLVE OVERFLOW HIDDEN OF MAIN CONTAINER
2208
+ container.parent().css({'overflow':'visible'});
2209
+
2210
+ opt.allli.find('>img').each(function(j) {
2211
+
2212
+ var img=jQuery(this),
2213
+ cli = img.closest('li'),
2214
+ bgvid = cli.find('.rs-background-video-layer');
2215
+
2216
+ bgvid.addClass("defaultvid").css({zIndex:30});
2217
+
2218
+
2219
+
2220
+ img.addClass('defaultimg');
2221
+
2222
+ // TURN OF KEN BURNS IF WE ARE ON MOBILE AND IT IS WISHED SO
2223
+ if (opt.fallbacks.panZoomDisableOnMobile == "on" && _ISM) {
2224
+ img.data('kenburns',"off");
2225
+ img.data('bgfit',"cover");
2226
+ }
2227
+
2228
+ var mediafilter = cli.data('mediafilter');
2229
+ mediafilter = mediafilter==="none" || mediafilter===undefined ? "" : mediafilter;
2230
+ img.wrap('<div class="slotholder" style="position:absolute; top:0px; left:0px; z-index:0;width:100%;height:100%;"></div>');
2231
+ bgvid.appendTo(cli.find('.slotholder'));
2232
+ var dts = img.data();
2233
+ img.closest('.slotholder').data(dts);
2234
+
2235
+ if (bgvid.length>0 && dts.bgparallax!=undefined) {
2236
+ bgvid.data('bgparallax',dts.bgparallax);
2237
+ bgvid.data('showcoveronpause',"on");
2238
+ }
2239
+
2240
+ if (opt.dottedOverlay!="none" && opt.dottedOverlay!=undefined)
2241
+ img.closest('.slotholder').append('<div class="tp-dottedoverlay '+opt.dottedOverlay+'"></div>');
2242
+
2243
+ var src=img.attr('src');
2244
+ dts.src = src;
2245
+ dts.bgfit = dts.bgfit || "cover";
2246
+ dts.bgrepeat = dts.bgrepeat || "no-repeat",
2247
+ dts.bgposition = dts.bgposition || "center center";
2248
+
2249
+ var pari = img.closest('.slotholder'),
2250
+ bgcolor = img.data('bgcolor'),
2251
+ bgstyle="";
2252
+
2253
+ if (bgcolor!==undefined && bgcolor.indexOf('gradient')>=0)
2254
+ bgstyle='"background:'+bgcolor+';width:100%;height:100%;"';
2255
+ else
2256
+ bgstyle='"background-color:'+bgcolor+';background-repeat:'+dts.bgrepeat+';background-image:url('+src+');background-size:'+dts.bgfit+';background-position:'+dts.bgposition+';width:100%;height:100%;"';
2257
+ img.data('mediafilter',mediafilter)
2258
+ mediafilter = img.data("kenburns")==="on" ? "" : mediafilter;
2259
+ var newimg = jQuery('<div class="tp-bgimg defaultimg '+mediafilter+'" data-bgcolor="'+bgcolor+'" style='+bgstyle+'></div>')
2260
+ img.parent().append(newimg);
2261
+
2262
+ var comment = document.createComment("Runtime Modification - Img tag is Still Available for SEO Goals in Source - " + img.get(0).outerHTML);
2263
+ img.replaceWith(comment);
2264
+
2265
+
2266
+ newimg.data(dts);
2267
+ newimg.attr("src",src);
2268
+
2269
+ if (opt.sliderType === "standard" || opt.sliderType==="undefined")
2270
+ newimg.css({'opacity':0});
2271
+
2272
+ })
2273
+
2274
+ if (opt.scrolleffect.on && opt.scrolleffect.on_slidebg==="on") {
2275
+ opt.allslotholder = new Array();
2276
+ opt.allli.find('.slotholder').each(function() {
2277
+ jQuery(this).wrap('<div style="display:block;position:absolute;top:0px;left:0px;width:100%;height:100%" class="slotholder_fadeoutwrap"></div>')
2278
+ });
2279
+ opt.allslotholder = opt.c.find('.slotholder_fadeoutwrap');
2280
+ }
2281
+ }
2282
+
2283
+
2284
+ // REMOVE SLOTS //
2285
+ var removeSlots = function(container,opt,where,addon) {
2286
+ opt.removePrepare = opt.removePrepare + addon;
2287
+ where.find('.slot, .slot-circle-wrapper').each(function() {
2288
+ jQuery(this).remove();
2289
+ });
2290
+ opt.transition = 0;
2291
+ opt.removePrepare = 0;
2292
+ }
2293
+
2294
+
2295
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2296
+ /////////////////////////////////////////////////////////////////////////////// SLIDE SWAPS ////////////////////////////////////////////////////////////
2297
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2298
+
2299
+
2300
+ // THE IMAGE IS LOADED, WIDTH, HEIGHT CAN BE SAVED
2301
+ var cutParams = function(a) {
2302
+ var b = a;
2303
+ if (a!=undefined && a.length>0)
2304
+ b = a.split("?")[0];
2305
+ return b;
2306
+ }
2307
+
2308
+ var relativeRedir = function(redir){
2309
+ return location.pathname.replace(/(.*)\/[^/]*/, "$1/"+redir);
2310
+ }
2311
+
2312
+ var abstorel = function (base, relative) {
2313
+ var stack = base.split("/"),
2314
+ parts = relative.split("/");
2315
+ stack.pop(); // remove current file name (or empty string)
2316
+ // (omit if "base" is the current folder without trailing slash)
2317
+ for (var i=0; i<parts.length; i++) {
2318
+ if (parts[i] == ".")
2319
+ continue;
2320
+ if (parts[i] == "..")
2321
+ stack.pop();
2322
+ else
2323
+ stack.push(parts[i]);
2324
+ }
2325
+ return stack.join("/");
2326
+ }
2327
+
2328
+ var imgLoaded = function(img,opt,progress) {
2329
+ opt.syncload--;
2330
+ if (opt.loadqueue)
2331
+ jQuery.each(opt.loadqueue, function(index,queue) {
2332
+
2333
+ var mqsrc = queue.src.replace(/\.\.\/\.\.\//gi,""),
2334
+ fullsrc = self.location.href,
2335
+ origin = document.location.origin,
2336
+ fullsrc_b = fullsrc.substring(0,fullsrc.length-1)+"/"+mqsrc,
2337
+ origin_b = origin+"/"+mqsrc,
2338
+ absolute = abstorel(self.location.href,queue.src);
2339
+
2340
+ fullsrc = fullsrc.substring(0,fullsrc.length-1)+mqsrc;
2341
+ origin = origin+mqsrc;
2342
+
2343
+ if (cutParams(origin) === cutParams(decodeURIComponent(img.src)) ||
2344
+ cutParams(fullsrc)=== cutParams(decodeURIComponent(img.src)) ||
2345
+ cutParams(absolute)=== cutParams(decodeURIComponent(img.src)) ||
2346
+ cutParams(origin_b) === cutParams(decodeURIComponent(img.src)) ||
2347
+ cutParams(fullsrc_b)=== cutParams(decodeURIComponent(img.src)) ||
2348
+ cutParams(queue.src) === cutParams(decodeURIComponent(img.src)) ||
2349
+ cutParams(queue.src).replace(/^.*\/\/[^\/]+/, '') === cutParams(decodeURIComponent(img.src)).replace(/^.*\/\/[^\/]+/, '') ||
2350
+ (window.location.origin==="file://" && cutParams(img.src).match(new RegExp(mqsrc)))) {
2351
+ queue.progress = progress;
2352
+ queue.width = img.width;
2353
+ queue.height = img.height;
2354
+ }
2355
+ });
2356
+ progressImageLoad(opt);
2357
+ }
2358
+
2359
+ // PRELOAD IMAGES 3 PIECES ON ONE GO, CHECK LOAD PRIORITY
2360
+ var progressImageLoad = function(opt) {
2361
+ if (opt.syncload == 3) return;
2362
+ if (opt.loadqueue)
2363
+ jQuery.each(opt.loadqueue, function(index,queue) {
2364
+ if (queue.progress.match(/prepared/g)) {
2365
+ if (opt.syncload<=3) {
2366
+ opt.syncload++;
2367
+ if (queue.type=="img") {
2368
+ var img = new Image();
2369
+
2370
+ img.onload = function() {
2371
+ imgLoaded(this,opt,"loaded");
2372
+ queue.error = false;
2373
+ };
2374
+ img.onerror = function() {
2375
+ imgLoaded(this,opt,"failed");
2376
+ queue.error = true;
2377
+ };
2378
+
2379
+ img.src=queue.src;
2380
+ } else {
2381
+ jQuery.get(queue.src, function(data) {
2382
+ queue.innerHTML = new XMLSerializer().serializeToString(data.documentElement);
2383
+ queue.progress="loaded";
2384
+ opt.syncload--;
2385
+ progressImageLoad(opt);
2386
+ }).fail(function() {
2387
+ queue.progress="failed";
2388
+ opt.syncload--;
2389
+ progressImageLoad(opt);
2390
+ });
2391
+ }
2392
+ queue.progress="inload";
2393
+ }
2394
+ }
2395
+ });
2396
+ }
2397
+
2398
+
2399
+
2400
+ // ADD TO QUEUE THE NOT LOADED IMAGES YES
2401
+ var addToLoadQueue = function(src,opt,prio,type,staticlayer) {
2402
+ var alreadyexist = false;
2403
+ if (opt.loadqueue)
2404
+ jQuery.each(opt.loadqueue, function(index,queue) {
2405
+ if (queue.src === src) alreadyexist = true;
2406
+ });
2407
+
2408
+ if (!alreadyexist) {
2409
+ var loadobj = new Object();
2410
+ loadobj.src = src;
2411
+ loadobj.starttoload = jQuery.now();
2412
+ loadobj.type = type || "img";
2413
+ loadobj.prio = prio;
2414
+ loadobj.progress = "prepared";
2415
+ loadobj.static = staticlayer;
2416
+ opt.loadqueue.push(loadobj);
2417
+ }
2418
+
2419
+ }
2420
+
2421
+ // LOAD THE IMAGES OF THE PREDEFINED CONTAINER
2422
+ var loadImages = function(container,opt,prio,staticlayer) {
2423
+
2424
+ container.find('img,.defaultimg, .tp-svg-layer').each(function() {
2425
+ var element = jQuery(this),
2426
+ src = element.data('lazyload') !== undefined && element.data('lazyload')!=="undefined" ? element.data('lazyload') : element.data('svg_src') !=undefined ? element.data('svg_src') : element.attr('src'),
2427
+ type = element.data('svg_src') !=undefined ? "svg" : "img";
2428
+
2429
+ element.data('start-to-load',jQuery.now());
2430
+ addToLoadQueue(src,opt,prio,type,staticlayer);
2431
+ });
2432
+ progressImageLoad(opt);
2433
+ }
2434
+
2435
+
2436
+ // FIND SEARCHED IMAGE/SRC IN THE LOAD QUEUE
2437
+ var getLoadObj = function(opt,src) {
2438
+ var obj = new Object();
2439
+ if (opt.loadqueue)
2440
+ jQuery.each(opt.loadqueue, function(index,queue) {
2441
+ if (queue.src == src) obj = queue;
2442
+ });
2443
+ return obj;
2444
+ }
2445
+
2446
+ // WAIT PROGRESS TILL THE PREDEFINED CONTAINER HAS ALL IMAGES LOADED INSIDE
2447
+ var waitForCurrentImages = function(nextli,opt,callback) {
2448
+
2449
+ var waitforload = false;
2450
+
2451
+
2452
+ // PRELOAD ALL IMAGES
2453
+ nextli.find('img,.defaultimg, .tp-svg-layer').each(function() {
2454
+ var element = jQuery(this),
2455
+ src = element.data('lazyload') != undefined ? element.data('lazyload') : element.data('svg_src') !=undefined ? element.data('svg_src') : element.attr('src'),
2456
+ loadobj = getLoadObj(opt,src);
2457
+
2458
+
2459
+
2460
+ // IF ELEMENTS IS NOT LOADED YET, AND IT IS NOW LOADED
2461
+ if (element.data('loaded')===undefined && loadobj !==undefined && loadobj.progress && loadobj.progress.match(/loaded/g)) {
2462
+
2463
+ element.attr('src',loadobj.src);
2464
+
2465
+
2466
+ // IF IT IS A DEFAULT IMG, WE NEED TO ASSIGN SOME SPECIAL VALUES TO IT
2467
+ if (loadobj.type=="img") {
2468
+ if (element.hasClass("defaultimg")) {
2469
+
2470
+ if (!_R.isIE(8)) {
2471
+ if ((loadobj.src.indexOf('images/transparent.png')==-1 && loadobj.src.indexOf('assets/transparent.png')==-1) || element.data('bgcolor')===undefined) {
2472
+ element.css({backgroundImage:'url("'+loadobj.src+'")'});
2473
+ } else {
2474
+
2475
+ if (element.data('bgcolor')!==undefined)
2476
+ element.css({background:element.data('bgcolor')});
2477
+ }
2478
+ } else {
2479
+ defimg.attr('src',loadobj.src);
2480
+ }
2481
+ nextli.data('owidth',loadobj.width);
2482
+ nextli.data('oheight',loadobj.height);
2483
+ nextli.find('.slotholder').data('owidth',loadobj.width);
2484
+ nextli.find('.slotholder').data('oheight',loadobj.height);
2485
+ } else {
2486
+ var w = element.data('ww'),
2487
+ h = element.data('hh');
2488
+
2489
+ element.data('owidth',loadobj.width);
2490
+ element.data('oheight',loadobj.height);
2491
+
2492
+ w = w==undefined || w =="auto" || w=="" ? loadobj.width : w;
2493
+ h = h==undefined || h =="auto" || h=="" ? loadobj.height : h;
2494
+
2495
+ if (!jQuery.isNumeric(w) && w.indexOf("%")>0)
2496
+ h = w;
2497
+
2498
+ element.data('ww',w);
2499
+ element.data('hh',h);
2500
+
2501
+ }
2502
+ } else
2503
+
2504
+ if (loadobj.type=="svg" && loadobj.progress=="loaded") {
2505
+
2506
+ element.append('<div class="tp-svg-innercontainer"></div>');
2507
+ element.find('.tp-svg-innercontainer').append(loadobj.innerHTML);
2508
+ }
2509
+ // ELEMENT IS NOW FULLY LOADED
2510
+ element.data('loaded',true);
2511
+ }
2512
+
2513
+
2514
+ if (loadobj && loadobj.progress && loadobj.progress.match(/inprogress|inload|prepared/g))
2515
+ if (!loadobj.error && jQuery.now()-element.data('start-to-load')<5000)
2516
+ waitforload = true;
2517
+ else {
2518
+ loadobj.progress="failed";
2519
+ if (!loadobj.reported_img) {
2520
+ loadobj.reported_img = true;
2521
+ console.warn(src+" Could not be loaded !");
2522
+ }
2523
+ }
2524
+
2525
+ // WAIT FOR VIDEO API'S
2526
+ if (opt.youtubeapineeded == true && (!window['YT'] || YT.Player==undefined)) {
2527
+ waitforload = true;
2528
+ if (jQuery.now()-opt.youtubestarttime>5000 && opt.youtubewarning!=true) {
2529
+ opt.youtubewarning = true;
2530
+ var txt = "YouTube Api Could not be loaded !";
2531
+ if (location.protocol === 'https:') txt = txt + " Please Check and Renew SSL Certificate !";
2532
+ console.error(txt);
2533
+ opt.c.append('<div style="position:absolute;top:50%;width:100%;color:#e74c3c; font-size:16px; text-align:center; padding:15px;background:#000; display:block;"><strong>'+txt+'</strong></div>')
2534
+ }
2535
+ }
2536
+
2537
+ if (opt.vimeoapineeded == true && !window['Vimeo']) {
2538
+ waitforload = true;
2539
+ if (jQuery.now()-opt.vimeostarttime>5000 && opt.vimeowarning!=true) {
2540
+ opt.vimeowarning= true;
2541
+ var txt = "Vimeo Api Could not be loaded !";
2542
+ if (location.protocol === 'https:') txt = txt + " Please Check and Renew SSL Certificate !";
2543
+ console.error(txt);
2544
+ opt.c.append('<div style="position:absolute;top:50%;width:100%;color:#e74c3c; font-size:16px; text-align:center; padding:15px;background:#000; display:block;"><strong>'+txt+'</strong></div>')
2545
+ }
2546
+ }
2547
+
2548
+ });
2549
+
2550
+ if (!_ISM && opt.audioqueue && opt.audioqueue.length>0) {
2551
+ jQuery.each(opt.audioqueue,function(i,obj) {
2552
+ if (obj.status && obj.status==="prepared")
2553
+ if (jQuery.now() - obj.start<obj.waittime)
2554
+ waitforload = true;
2555
+ });
2556
+ }
2557
+
2558
+ jQuery.each(opt.loadqueue,function(i,o) {
2559
+ if (o.static===true && (o.progress!="loaded" || o.progress==="failed")) {
2560
+ if (o.progress=="failed") {
2561
+ if (!o.reported) {
2562
+ o.reported = true;
2563
+ console.warn("Static Image "+o.src+" Could not be loaded in time. Error Exists:"+o.error);
2564
+ }
2565
+ }
2566
+ else
2567
+ if (!o.error && jQuery.now()-o.starttoload<5000) {
2568
+ waitforload = true;
2569
+ }
2570
+ else {
2571
+ if (!o.reported) {
2572
+ o.reported = true;
2573
+ console.warn("Static Image "+o.src+" Could not be loaded within 5s! Error Exists:"+o.error);
2574
+ }
2575
+ }
2576
+
2577
+ }
2578
+ });
2579
+
2580
+
2581
+ if (waitforload)
2582
+ punchgs.TweenLite.delayedCall(0.18,waitForCurrentImages,[nextli,opt,callback]);
2583
+ else
2584
+ punchgs.TweenLite.delayedCall(0.18,callback);
2585
+
2586
+ }
2587
+
2588
+
2589
+
2590
+
2591
+ //////////////////////////////////////
2592
+ // - CALL TO SWAP THE SLIDES - //
2593
+ /////////////////////////////////////
2594
+ var swapSlide = function(container) {
2595
+
2596
+
2597
+ var opt = container[0].opt;
2598
+
2599
+ clearTimeout(opt.waitWithSwapSlide);
2600
+
2601
+ if (container.find('.processing-revslide').length>0) {
2602
+ opt.waitWithSwapSlide = setTimeout(function() {
2603
+ swapSlide(container);
2604
+
2605
+ },150);
2606
+ return false;
2607
+ }
2608
+
2609
+
2610
+ var actli = container.find('.active-revslide'),
2611
+ nextli = container.find('.next-revslide'),
2612
+ defimg= nextli.find('.defaultimg');
2613
+
2614
+
2615
+ if (opt.sliderType==="carousel" && !opt.carousel.fadein) {
2616
+ punchgs.TweenLite.to(opt.ul,1,{opacity:1});
2617
+ opt.carousel.fadein=true;
2618
+ }
2619
+
2620
+ if (nextli.index() === actli.index() && opt.onlyPreparedSlide!==true) {
2621
+ nextli.removeClass("next-revslide");
2622
+ return false;
2623
+ }
2624
+
2625
+ if (opt.onlyPreparedSlide===true) {
2626
+ opt.onlyPreparedSlide=false;
2627
+ jQuery(opt.li[0]).addClass("processing-revslide");
2628
+ }
2629
+
2630
+ nextli.removeClass("next-revslide").addClass("processing-revslide");
2631
+
2632
+ if (nextli.index()===-1 && opt.sliderType==="carousel") nextli = jQuery(opt.li[0]);
2633
+ nextli.data('slide_on_focus_amount',(nextli.data('slide_on_focus_amount')+1) || 1);
2634
+ // CHECK IF WE ARE ALREADY AT LAST ITEM TO PLAY IN REAL LOOP SESSION
2635
+ if (opt.stopLoop=="on" && nextli.index()==opt.lastslidetoshow-1) {
2636
+ container.find('.tp-bannertimer').css({'visibility':'hidden'});
2637
+ container.trigger('revolution.slide.onstop');
2638
+ opt.noloopanymore = 1;
2639
+ }
2640
+
2641
+ // INCREASE LOOP AMOUNTS
2642
+ if (nextli.index()===opt.slideamount-1) {
2643
+ opt.looptogo=opt.looptogo-1;
2644
+ if (opt.looptogo<=0)
2645
+ opt.stopLoop="on";
2646
+ }
2647
+
2648
+ opt.tonpause = true;
2649
+ container.trigger('stoptimer');
2650
+ opt.cd=0;
2651
+ if (opt.spinner==="off")
2652
+ if (opt.loader!==undefined) opt.loader.css({display:"none"});
2653
+ else
2654
+ opt.loadertimer = setTimeout(function() {if (opt.loader!==undefined) opt.loader.css({display:"block"});},50);
2655
+
2656
+
2657
+ loadImages(nextli,opt,1);
2658
+ if (_R.preLoadAudio) _R.preLoadAudio(nextli,opt,1);
2659
+
2660
+
2661
+ // WAIT FOR SWAP SLIDE PROGRESS
2662
+
2663
+
2664
+ waitForCurrentImages(nextli,opt,function() {
2665
+
2666
+
2667
+ // MANAGE BG VIDEOS
2668
+ nextli.find('.rs-background-video-layer').each(function() {
2669
+ var _nc = jQuery(this);
2670
+ if (!_nc.hasClass("HasListener")) {
2671
+ _nc.data('bgvideo',1);
2672
+ if (_R.manageVideoLayer) _R.manageVideoLayer(_nc,opt);
2673
+ }
2674
+ if (_nc.find('.rs-fullvideo-cover').length==0)
2675
+ _nc.append('<div class="rs-fullvideo-cover"></div>')
2676
+ });
2677
+ swapSlideProgress(defimg,container)
2678
+ });
2679
+
2680
+ }
2681
+
2682
+ //////////////////////////////////////
2683
+ // - PROGRESS SWAP THE SLIDES - //
2684
+ /////////////////////////////////////
2685
+ var swapSlideProgress = function(defimg,container) {
2686
+
2687
+ var actli = container.find('.active-revslide'),
2688
+ nextli = container.find('.processing-revslide'),
2689
+ actsh = actli.find('.slotholder'),
2690
+ nextsh = nextli.find('.slotholder'),
2691
+ opt = container[0].opt;
2692
+
2693
+ opt.tonpause=false;
2694
+
2695
+ opt.cd=0;
2696
+
2697
+
2698
+ clearTimeout(opt.loadertimer);
2699
+ if (opt.loader!==undefined) opt.loader.css({display:"none"});
2700
+ // if ( opt.sliderType =="carousel") _R.prepareCarousel(opt);
2701
+ _R.setSize(opt);
2702
+ _R.slotSize(defimg,opt);
2703
+
2704
+ if (_R.manageNavigation) _R.manageNavigation(opt);
2705
+ var data={};
2706
+ data.nextslide=nextli;
2707
+ data.currentslide=actli;
2708
+ container.trigger('revolution.slide.onbeforeswap',data);
2709
+
2710
+ opt.transition = 1;
2711
+ opt.videoplaying = false;
2712
+
2713
+ // IF DELAY HAS BEEN SET VIA THE SLIDE, WE TAKE THE NEW VALUE, OTHER WAY THE OLD ONE...
2714
+ if (nextli.data('delay')!=undefined) {
2715
+ opt.cd=0;
2716
+ opt.delay=nextli.data('delay');
2717
+ } else
2718
+ opt.delay=opt.origcd;
2719
+
2720
+
2721
+ if (nextli.data('ssop')=="true" || nextli.data('ssop')===true)
2722
+ opt.ssop = true
2723
+ else
2724
+ opt.ssop = false;
2725
+
2726
+
2727
+
2728
+ container.trigger('nulltimer');
2729
+
2730
+ var ai = actli.index(),
2731
+ ni = nextli.index();
2732
+ opt.sdir = ni<ai ? 1 : 0;
2733
+
2734
+ if (opt.sc_indicator=="arrow") {
2735
+ if (ai==0 && ni==opt.slideamount-1) opt.sdir = 1;
2736
+ if (ai==opt.slideamount-1 && ni==0) opt.sdir = 0;
2737
+ }
2738
+
2739
+ opt.lsdir = opt.lsdir === undefined ? opt.sdir : opt.lsdir;
2740
+ opt.dirc = opt.lsdir != opt.sdir;
2741
+ opt.lsdir = opt.sdir;
2742
+
2743
+ ///////////////////////////
2744
+ // REMOVE THE CAPTIONS //
2745
+ ///////////////////////////
2746
+
2747
+
2748
+
2749
+ if (actli.index() != nextli.index() && opt.firststart!=1)
2750
+ if (_R.removeTheCaptions) _R.removeTheCaptions(actli,opt);
2751
+
2752
+
2753
+
2754
+ if (!nextli.hasClass('rs-pause-timer-once') && !nextli.hasClass("rs-pause-timer-always"))
2755
+ container.trigger('restarttimer');
2756
+ else
2757
+ opt.videoplaying = true;
2758
+
2759
+ nextli.removeClass("rs-pause-timer-once");
2760
+
2761
+ var nexttrans,
2762
+ direction=-1,
2763
+ mtl;
2764
+
2765
+ opt.currentSlide = actli.index();
2766
+ opt.nextSlide = nextli.index();
2767
+
2768
+
2769
+ // SELECT SLIDER TYPE
2770
+ if ( opt.sliderType =="carousel") {
2771
+ mtl = new punchgs.TimelineLite();
2772
+ _R.prepareCarousel(opt,mtl);
2773
+ letItFree(container,nextsh,actsh,nextli,actli,mtl);
2774
+ opt.transition = 0;
2775
+ opt.firststart = 0;
2776
+ } else {
2777
+
2778
+ mtl = new punchgs.TimelineLite({onComplete:function() {
2779
+ letItFree(container,nextsh,actsh,nextli,actli,mtl);
2780
+ }});
2781
+ mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{opacity:0}));
2782
+ mtl.pause();
2783
+
2784
+ if (_R.animateTheCaptions)
2785
+ _R.animateTheCaptions({slide:nextli,opt:opt,preset:true});
2786
+
2787
+ if (opt.firststart==1) {
2788
+ punchgs.TweenLite.set(actli,{autoAlpha:0});
2789
+ opt.firststart=0;
2790
+ }
2791
+
2792
+
2793
+ punchgs.TweenLite.set(actli,{zIndex:18});
2794
+ punchgs.TweenLite.set(nextli,{autoAlpha:0,zIndex:20});
2795
+
2796
+
2797
+ // IF THERE IS AN OTHER FIRST SLIDE START HAS BEED SELECTED
2798
+ if (nextli.data('differentissplayed') =='prepared') {
2799
+ nextli.data('differentissplayed','done');
2800
+ nextli.data('transition',nextli.data('savedtransition'));
2801
+ nextli.data('slotamount',nextli.data('savedslotamount'));
2802
+ nextli.data('masterspeed',nextli.data('savedmasterspeed'));
2803
+ }
2804
+
2805
+
2806
+ if (nextli.data('fstransition') != undefined && nextli.data('differentissplayed') !="done") {
2807
+
2808
+ nextli.data('savedtransition',nextli.data('transition'));
2809
+ nextli.data('savedslotamount',nextli.data('slotamount'));
2810
+ nextli.data('savedmasterspeed',nextli.data('masterspeed'));
2811
+ nextli.data('transition',nextli.data('fstransition'));
2812
+ nextli.data('slotamount',nextli.data('fsslotamount'));
2813
+ nextli.data('masterspeed',nextli.data('fsmasterspeed'));
2814
+ nextli.data('differentissplayed','prepared');
2815
+ }
2816
+
2817
+ if (nextli.data('transition')==undefined) nextli.data('transition',"random");
2818
+
2819
+ nexttrans = 0;
2820
+ var transtext = nextli.data('transition') !== undefined ? nextli.data('transition').split(",") : "fade",
2821
+ curtransid = nextli.data('nexttransid') == undefined ? -1 : nextli.data('nexttransid');
2822
+ if (nextli.data('randomtransition')=="on")
2823
+ curtransid = Math.round(Math.random()*transtext.length);
2824
+ else
2825
+ curtransid=curtransid+1;
2826
+
2827
+ if (curtransid==transtext.length) curtransid=0;
2828
+ nextli.data('nexttransid',curtransid);
2829
+
2830
+ var comingtransition = transtext[curtransid];
2831
+
2832
+ if (opt.ie) {
2833
+ if (comingtransition=="boxfade") comingtransition = "boxslide";
2834
+ if (comingtransition=="slotfade-vertical") comingtransition = "slotzoom-vertical";
2835
+ if (comingtransition=="slotfade-horizontal") comingtransition = "slotzoom-horizontal";
2836
+ }
2837
+
2838
+ if (_R.isIE(8))
2839
+ comingtransition = 11;
2840
+
2841
+
2842
+
2843
+ mtl = _R.animateSlide(nexttrans, comingtransition, container, nextli, actli, nextsh, actsh, mtl);
2844
+ if (nextsh.data('kenburns')=="on") {
2845
+ _R.startKenBurn(nextsh,opt);
2846
+ mtl.add(punchgs.TweenLite.set(nextsh,{autoAlpha:0}))
2847
+ }
2848
+
2849
+ // SHOW FIRST LI && ANIMATE THE CAPTIONS
2850
+ mtl.pause();
2851
+ }
2852
+
2853
+
2854
+
2855
+ if (_R.scrollHandling) {
2856
+ _R.scrollHandling(opt, true,0);
2857
+ mtl.eventCallback("onUpdate",function() {
2858
+ _R.scrollHandling(opt, true,0);
2859
+ });
2860
+ }
2861
+
2862
+
2863
+
2864
+ // START PARALLAX IF NEEDED
2865
+ if (opt.parallax.type!="off" && opt.parallax.firstgo==undefined && _R.scrollHandling) {
2866
+ opt.parallax.firstgo = true;
2867
+ opt.lastscrolltop = -999;
2868
+ _R.scrollHandling(opt,true,0);
2869
+ setTimeout(function() {
2870
+ opt.lastscrolltop = -999;
2871
+ _R.scrollHandling(opt,true,0);
2872
+ },210);
2873
+ setTimeout(function() {
2874
+ opt.lastscrolltop = -999;
2875
+ _R.scrollHandling(opt,true,0);
2876
+ },420);
2877
+ }
2878
+
2879
+
2880
+
2881
+ if (_R.animateTheCaptions) {
2882
+ if (opt.sliderType==="carousel" && opt.carousel.showLayersAllTime==="on") {
2883
+ // SHOW ALL LAYERS IN ALL SLIDES FOR CAROUSEL
2884
+ jQuery.each(opt.li,function(i) {
2885
+ if (!opt.carousel.allLayersStarted) {
2886
+ if (opt.li[i] === nextli)
2887
+ _R.animateTheCaptions({slide:jQuery(opt.li[i]),maintimeline:mtl,opt:opt,startslideanimat:0});
2888
+ else
2889
+ _R.animateTheCaptions({slide:jQuery(opt.li[i]),opt:opt,startslideanimat:0});
2890
+ }
2891
+ else
2892
+ _R.animateTheCaptions({slide:jQuery(opt.li[i]),opt:opt,recall:true});
2893
+ });
2894
+ opt.carousel.allLayersStarted = true;
2895
+ } else {
2896
+ _R.animateTheCaptions({slide:nextli, opt:opt,maintimeline:mtl,startslideanimat:0});
2897
+ }
2898
+ } else {
2899
+ if (mtl != undefined) setTimeout(function() {
2900
+ mtl.resume();
2901
+ },30);
2902
+ }
2903
+ punchgs.TweenLite.to(nextli,0.001,{autoAlpha:1});
2904
+
2905
+
2906
+
2907
+ //if (_R.callStaticDDDParallax) _R.callStaticDDDParallax(container,opt,nextli);
2908
+
2909
+ }
2910
+
2911
+
2912
+ //////////////////////////////////////////
2913
+ // GIVE FREE THE TRANSITIOSN //
2914
+ //////////////////////////////////////////
2915
+ var letItFree = function(container,nextsh,actsh,nextli,actli,mtl) {
2916
+
2917
+
2918
+ var opt = container[0].opt;
2919
+ if (opt.sliderType==="carousel") {
2920
+ // CAROUSEL SLIDER
2921
+ } else {
2922
+ opt.removePrepare = 0;
2923
+ punchgs.TweenLite.to(nextsh.find('.defaultimg'),0.001,{zIndex:20,autoAlpha:1,onComplete:function() {
2924
+ removeSlots(container,opt,nextli,1);
2925
+
2926
+ }});
2927
+ if (nextli.index()!=actli.index()) {
2928
+ punchgs.TweenLite.to(actli,0.2,{zIndex:18,autoAlpha:0,onComplete:function() {
2929
+ removeSlots(container,opt,actli,1);
2930
+ }});
2931
+ }
2932
+ }
2933
+
2934
+
2935
+ container.find('.active-revslide').removeClass("active-revslide");
2936
+
2937
+ container.find('.processing-revslide').removeClass("processing-revslide").addClass("active-revslide");
2938
+ opt.act=nextli.index();
2939
+
2940
+ opt.c.attr('data-slideactive',container.find('.active-revslide').data('index'));
2941
+
2942
+ if (opt.parallax.type=="scroll" || opt.parallax.type=="scroll+mouse" || opt.parallax.type=="mouse+scroll") {
2943
+ opt.lastscrolltop = -999;
2944
+ _R.scrollHandling(opt);
2945
+ }
2946
+
2947
+ mtl.clear();
2948
+
2949
+
2950
+ if (actsh.data('kbtl')!=undefined) {
2951
+ actsh.data('kbtl').reverse();
2952
+ actsh.data('kbtl').timeScale(25);
2953
+ }
2954
+ if (nextsh.data('kenburns')=="on") {
2955
+ if (nextsh.data('kbtl')!=undefined) {
2956
+ nextsh.data('kbtl').timeScale(1);
2957
+ nextsh.data('kbtl').play();
2958
+ }
2959
+ else
2960
+ _R.startKenBurn(nextsh,opt);
2961
+ }
2962
+
2963
+ nextli.find('.rs-background-video-layer').each(function(i) {
2964
+ if (_ISM && (!opt.fallbacks.allowHTML5AutoPlayOnAndroid)) return false;
2965
+ var _nc = jQuery(this);
2966
+
2967
+ // JASON 4th arg for Vimeo
2968
+ _R.resetVideo(_nc,opt,false,true);
2969
+
2970
+ punchgs.TweenLite.fromTo(_nc,1,{autoAlpha:0},{autoAlpha:1,ease:punchgs.Power3.easeInOut,delay:0.2,onComplete:function() {
2971
+ if (_R.animcompleted) _R.animcompleted(_nc,opt);
2972
+ }});
2973
+ });
2974
+
2975
+
2976
+ actli.find('.rs-background-video-layer').each(function(i) {
2977
+ if (_ISM) return false;
2978
+ var _nc = jQuery(this);
2979
+ if (_R.stopVideo) {
2980
+ _R.resetVideo(_nc,opt);
2981
+ _R.stopVideo(_nc,opt);
2982
+ }
2983
+ punchgs.TweenLite.to(_nc,1,{autoAlpha:0,ease:punchgs.Power3.easeInOut,delay:0.2});
2984
+ });
2985
+ // TIRGGER THE ON CHANGE EVENTS
2986
+ var data={};
2987
+ data.slideIndex=nextli.index()+1;
2988
+ data.slideLIIndex=nextli.index();
2989
+ data.slide = nextli;
2990
+ data.currentslide=nextli;
2991
+ data.prevslide = actli;
2992
+ opt.last_shown_slide = actli.index();
2993
+
2994
+ container.trigger('revolution.slide.onchange',data);
2995
+ container.trigger('revolution.slide.onafterswap',data);
2996
+
2997
+ if (opt.startWithSlide!==undefined && opt.startWithSlide!=="done" && opt.sliderType==="carousel") {
2998
+ var callslideindex = opt.startWithSlide;
2999
+ for (var lis=0;lis<=opt.li.length-1;lis++) {
3000
+ var oindex = jQuery(opt.li[lis]).data('originalindex');
3001
+ if (oindex === opt.startWithSlide)
3002
+ callslideindex = lis;
3003
+ }
3004
+ if (callslideindex!==0)
3005
+ _R.callingNewSlide(opt.c,callslideindex);
3006
+ opt.startWithSlide = "done";
3007
+ }
3008
+
3009
+
3010
+ opt.duringslidechange = false;
3011
+
3012
+
3013
+ var lastSlideLoop = actli.data('slide_on_focus_amount'),
3014
+ lastSlideMaxLoop = actli.data('hideafterloop');
3015
+ if (lastSlideMaxLoop!=0 && lastSlideMaxLoop<=lastSlideLoop) opt.c.revremoveslide(actli.index());
3016
+
3017
+
3018
+
3019
+ var _actli = opt.nextSlide === -1 || opt.nextSlide===undefined ? 0 : opt.nextSlide;
3020
+ if (opt.rowzones!=undefined) _actli = _actli>opt.rowzones.length ? opt.rowzones.length : _actli;
3021
+
3022
+ if (opt.rowzones!=undefined && opt.rowzones.length>0 && opt.rowzones[_actli]!=undefined && _actli>=0 && _actli<=opt.rowzones.length && opt.rowzones[_actli].length>0) _R.setSize(opt);
3023
+ //if (_R.callStaticDDDParallax) _R.callStaticDDDParallax(container,opt,nextli);
3024
+
3025
+ }
3026
+
3027
+
3028
+
3029
+
3030
+
3031
+ ///////////////////////////
3032
+ // REMOVE THE LISTENERS //
3033
+ ///////////////////////////
3034
+ var removeAllListeners = function(container,opt) {
3035
+ container.children().each(function() {
3036
+ try{ jQuery(this).die('click'); } catch(e) {}
3037
+ try{ jQuery(this).die('mouseenter');} catch(e) {}
3038
+ try{ jQuery(this).die('mouseleave');} catch(e) {}
3039
+ try{ jQuery(this).unbind('hover');} catch(e) {}
3040
+ })
3041
+ try{ container.die('click','mouseenter','mouseleave');} catch(e) {}
3042
+ clearInterval(opt.cdint);
3043
+ container=null;
3044
+ }
3045
+
3046
+ ///////////////////////////
3047
+ // - countDown - //
3048
+ /////////////////////////
3049
+ var countDown = function(container,opt) {
3050
+ opt.cd=0;
3051
+ opt.loop=0;
3052
+ if (opt.stopAfterLoops!=undefined && opt.stopAfterLoops>-1)
3053
+ opt.looptogo=opt.stopAfterLoops;
3054
+ else
3055
+ opt.looptogo=9999999;
3056
+
3057
+ if (opt.stopAtSlide!=undefined && opt.stopAtSlide>-1)
3058
+ opt.lastslidetoshow=opt.stopAtSlide;
3059
+ else
3060
+ opt.lastslidetoshow=999;
3061
+
3062
+ opt.stopLoop="off";
3063
+
3064
+ if (opt.looptogo==0) opt.stopLoop="on";
3065
+
3066
+
3067
+ var bt=container.find('.tp-bannertimer');
3068
+
3069
+ // LISTENERS //container.trigger('stoptimer');
3070
+ container.on('stoptimer',function() {
3071
+
3072
+ var bt = jQuery(this).find('.tp-bannertimer');
3073
+ bt[0].tween.pause();
3074
+ if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"});
3075
+ opt.sliderstatus = "paused";
3076
+ _R.unToggleState(opt.slidertoggledby);
3077
+ });
3078
+
3079
+
3080
+ container.on('starttimer',function() {
3081
+ if (opt.forcepause_viatoggle) return;
3082
+ if (opt.conthover!=1 && opt.videoplaying!=true && opt.width>opt.hideSliderAtLimit && opt.tonpause != true && opt.overnav !=true && opt.ssop!=true)
3083
+ if (opt.noloopanymore !== 1 && (!opt.viewPort.enable || opt.inviewport)) {
3084
+
3085
+ bt.css({visibility:"visible"});
3086
+ bt[0].tween.resume();
3087
+ opt.sliderstatus = "playing";
3088
+ }
3089
+
3090
+ if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"});
3091
+ _R.toggleState(opt.slidertoggledby);
3092
+ });
3093
+
3094
+
3095
+ container.on('restarttimer',function() {
3096
+ if (opt.forcepause_viatoggle) return;
3097
+ var bt = jQuery(this).find('.tp-bannertimer');
3098
+ if (opt.mouseoncontainer && opt.navigation.onHoverStop=="on" && (!_ISM)) return false;
3099
+ if (opt.noloopanymore !== 1 && (!opt.viewPort.enable || opt.inviewport) && opt.ssop!=true) {
3100
+ bt.css({visibility:"visible"});
3101
+ bt[0].tween.kill();
3102
+
3103
+ bt[0].tween=punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1});
3104
+ opt.sliderstatus = "playing";
3105
+ }
3106
+ if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"});
3107
+ _R.toggleState(opt.slidertoggledby);
3108
+ });
3109
+
3110
+ container.on('nulltimer',function() {
3111
+ bt[0].tween.kill();
3112
+ bt[0].tween=punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1});
3113
+ bt[0].tween.pause(0);
3114
+ if (opt.disableProgressBar=="on") bt.css({visibility:"hidden"});
3115
+ opt.sliderstatus = "paused";
3116
+ });
3117
+
3118
+ var countDownNext = function() {
3119
+ if (jQuery('body').find(container).length==0) {
3120
+ removeAllListeners(container,opt);
3121
+ clearInterval(opt.cdint);
3122
+ }
3123
+
3124
+ container.trigger("revolution.slide.slideatend");
3125
+
3126
+ //STATE OF API CHANGED -> MOVE TO AIP BETTER
3127
+ if (container.data('conthover-changed') == 1) {
3128
+ opt.conthover= container.data('conthover');
3129
+ container.data('conthover-changed',0);
3130
+ }
3131
+
3132
+ _R.callingNewSlide(container,1);
3133
+ }
3134
+
3135
+ bt[0].tween=punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1});
3136
+
3137
+
3138
+ if (opt.slideamount >1 && !(opt.stopAfterLoops==0 && opt.stopAtSlide==1)) {
3139
+ container.trigger("starttimer");
3140
+ }
3141
+ else {
3142
+ opt.noloopanymore = 1;
3143
+
3144
+ container.trigger("nulltimer");
3145
+ }
3146
+
3147
+ container.on('tp-mouseenter',function() {
3148
+ opt.mouseoncontainer = true;
3149
+ if (opt.navigation.onHoverStop=="on" && (!_ISM)) {
3150
+ container.trigger('stoptimer');
3151
+ container.trigger('revolution.slide.onpause');
3152
+ }
3153
+ });
3154
+ container.on('tp-mouseleft',function() {
3155
+ opt.mouseoncontainer = false;
3156
+ if (container.data('conthover')!=1 && opt.navigation.onHoverStop=="on" && ((opt.viewPort.enable==true && opt.inviewport) || opt.viewPort.enable==false)) {
3157
+ container.trigger('revolution.slide.onresume');
3158
+ container.trigger('starttimer');
3159
+ }
3160
+ });
3161
+
3162
+ }
3163
+
3164
+
3165
+
3166
+
3167
+ //////////////////////////////////////////////////////
3168
+ // * Revolution Slider - NEEDFULL FUNCTIONS
3169
+ // * @version: 1.0 (30.10.2014)
3170
+ // * @author ThemePunch
3171
+ //////////////////////////////////////////////////////
3172
+
3173
+
3174
+
3175
+ // - BLUR / FOXUS FUNCTIONS ON BROWSER
3176
+
3177
+ var vis = (function(){
3178
+ var stateKey,
3179
+ eventKey,
3180
+ keys = {
3181
+ hidden: "visibilitychange",
3182
+ webkitHidden: "webkitvisibilitychange",
3183
+ mozHidden: "mozvisibilitychange",
3184
+ msHidden: "msvisibilitychange"
3185
+ };
3186
+ for (stateKey in keys) {
3187
+ if (stateKey in document) {
3188
+ eventKey = keys[stateKey];
3189
+ break;
3190
+ }
3191
+ }
3192
+ return function(c) {
3193
+ if (c) document.addEventListener(eventKey, c,{pasive:true});
3194
+ return !document[stateKey];
3195
+ }
3196
+ })();
3197
+
3198
+ var restartOnFocus = function() {
3199
+ jQuery('.rev_redraw_on_blurfocus').each(function() {
3200
+ var opt = jQuery(this)[0].opt;
3201
+ if (opt==undefined || opt.c==undefined || opt.c.length===0) return false;
3202
+ if (opt.windowfocused!=true) {
3203
+ opt.windowfocused = true;
3204
+ punchgs.TweenLite.delayedCall(0.3,function(){
3205
+ // TAB IS ACTIVE, WE CAN START ANY PART OF THE SLIDER
3206
+ if (opt.fallbacks.nextSlideOnWindowFocus=="on") opt.c.revnext();
3207
+ opt.c.revredraw();
3208
+ if (opt.lastsliderstatus=="playing")
3209
+ opt.c.revresume();
3210
+ });
3211
+ }
3212
+ })
3213
+ }
3214
+
3215
+ var lastStatBlur = function() {
3216
+ jQuery('.rev_redraw_on_blurfocus').each(function() {
3217
+ var opt = jQuery(this)[0].opt;
3218
+ opt.windowfocused = false;
3219
+ opt.lastsliderstatus = opt.sliderstatus;
3220
+ opt.c.revpause();
3221
+ var actsh = opt.c.find('.active-revslide .slotholder'),
3222
+ nextsh = opt.c.find('.processing-revslide .slotholder');
3223
+
3224
+ if (nextsh.data('kenburns')=="on")
3225
+ _R.stopKenBurn(nextsh,opt);
3226
+
3227
+ if (actsh.data('kenburns')=="on")
3228
+ _R.stopKenBurn(actsh,opt);
3229
+ });
3230
+
3231
+
3232
+ }
3233
+
3234
+ var tabBlurringCheck = function() {
3235
+ var notIE = (document.documentMode === undefined),
3236
+ isChromium = window.chrome;
3237
+ if (jQuery('body').data('revslider_focus_blur_listener')===1) return;
3238
+ jQuery('body').data('revslider_focus_blur_listener',1);
3239
+ if (notIE && !isChromium) {
3240
+ // checks for Firefox and other NON IE Chrome versions
3241
+ jQuery(window).on("focusin", function () {
3242
+ restartOnFocus();
3243
+ }).on("focusout", function () {
3244
+ lastStatBlur();
3245
+ });
3246
+ } else {
3247
+ // checks for IE and Chromium versions
3248
+ if (window.addEventListener) {
3249
+ // bind focus event
3250
+ window.addEventListener("focus", function (event) {
3251
+ restartOnFocus();
3252
+ }, {capture:false,passive:true});
3253
+ // bind blur event
3254
+ window.addEventListener("blur", function (event) {
3255
+ lastStatBlur();
3256
+ }, {capture:false,passive:true});
3257
+
3258
+ } else {
3259
+ // bind focus event
3260
+ window.attachEvent("focus", function (event) {
3261
+ restartOnFocus();
3262
+ });
3263
+ // bind focus event
3264
+ window.attachEvent("blur", function (event) {
3265
+ lastStatBlur();
3266
+ });
3267
+ }
3268
+ }
3269
+ }
3270
+
3271
+
3272
+ // - GET THE URL PARAMETER //
3273
+
3274
+ var getUrlVars = function (hashdivider){
3275
+ var vars = [], hash;
3276
+ var hashes = window.location.href.slice(window.location.href.indexOf(hashdivider) + 1).split('_');
3277
+ for(var i = 0; i < hashes.length; i++)
3278
+ {
3279
+ hashes[i] = hashes[i].replace('%3D',"=");
3280
+ hash = hashes[i].split('=');
3281
+ vars.push(hash[0]);
3282
+ vars[hash[0]] = hash[1];
3283
+ }
3284
+ return vars;
3285
+ }
3286
+ })(jQuery);