phcthemes_web_theme_pack 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (250) 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_web_theme_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/custom/custom.js +0 -0
  126. data/app/assets/javascripts/common/daterangepicker/daterangepicker.js +1565 -0
  127. data/app/assets/javascripts/common/flexslider/jquery.flexslider.js +1252 -0
  128. data/app/assets/javascripts/common/greenstock/greensock.js +36 -0
  129. data/app/assets/javascripts/common/icheck/icheck.js +509 -0
  130. data/app/assets/javascripts/common/imagesloaded/imagesloaded.pkgd.js +497 -0
  131. data/app/assets/javascripts/common/isotope/isotope.pkgd.js +3563 -0
  132. data/app/assets/javascripts/common/jquery-countdown/jquery.countdown.js +246 -0
  133. data/app/assets/javascripts/common/jquery-filterizer/jquery.filterizr.min.js +1 -0
  134. data/app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js +281 -0
  135. data/app/assets/javascripts/common/jquery-validation/jquery.validate.js +1650 -0
  136. data/app/assets/javascripts/common/jqvmap/jquery.vmap.js +1281 -0
  137. data/app/assets/javascripts/common/jqvmap/jquery.vmap.min.js +10 -0
  138. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js +2 -0
  139. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.asia.js +2 -0
  140. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.australia.js +2 -0
  141. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.europe.js +2 -0
  142. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.north-america.js +2 -0
  143. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.south-america.js +2 -0
  144. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.algeria.js +2 -0
  145. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.argentina.js +1 -0
  146. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.brazil.js +2 -0
  147. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.canada.js +2 -0
  148. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.europe.js +2 -0
  149. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.france.js +1 -0
  150. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.germany.js +2 -0
  151. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.greece.js +1 -0
  152. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iran.js +6 -0
  153. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iraq.js +1 -0
  154. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.russia.js +2 -0
  155. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.tunisia.js +2 -0
  156. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.turkey.js +11 -0
  157. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.usa.js +2 -0
  158. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.world.js +2 -0
  159. data/app/assets/javascripts/common/js-cookie/js.cookie.js +165 -0
  160. data/app/assets/javascripts/common/layerslider/layerslider.kreaturamedia.jquery.js +13 -0
  161. data/app/assets/javascripts/common/layerslider/layerslider.origami.js +13 -0
  162. data/app/assets/javascripts/common/layerslider/layerslider.timeline.js +13 -0
  163. data/app/assets/javascripts/common/layerslider/layerslider.transitions.js +13 -0
  164. data/app/assets/javascripts/common/leaflet/leaflet.js +5 -0
  165. data/app/assets/javascripts/common/magnific-popup/jquery.magnific-popup.js +1860 -0
  166. data/app/assets/javascripts/common/mapbox/mapbox.js +51 -0
  167. data/app/assets/javascripts/common/moderizer/modernizr.js +11 -0
  168. data/app/assets/javascripts/common/owl-carousel/owl.carousel.js +3448 -0
  169. data/app/assets/javascripts/common/pace/pace.js +935 -0
  170. data/app/assets/javascripts/common/paroller/jquery.paroller.js +228 -0
  171. data/app/assets/javascripts/common/particlejs/particles.js +1541 -0
  172. data/app/assets/javascripts/common/plyr/plyr.js +9137 -0
  173. data/app/assets/javascripts/common/rangeslider/rangeslider.js +498 -0
  174. data/app/assets/javascripts/common/retina/retina.js +100 -0
  175. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.actions.js +386 -0
  176. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.carousel.js +365 -0
  177. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.kenburn.js +199 -0
  178. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.layeranimation.js +2524 -0
  179. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.migration.js +260 -0
  180. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.navigation.js +1156 -0
  181. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.parallax.js +465 -0
  182. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.slideanims.js +1447 -0
  183. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.video.js +1464 -0
  184. data/app/assets/javascripts/common/rev-slider/jquery.themepunch.revolution.js +3286 -0
  185. data/app/assets/javascripts/common/rev-slider/jquery.themepunch.tools.min.js +8710 -0
  186. data/app/assets/javascripts/common/scrollup/jquery.scrollUp.js +168 -0
  187. data/app/assets/javascripts/common/select2/select2.full.js +6597 -0
  188. data/app/assets/javascripts/common/selectbox/jquery.selectBox.js +1092 -0
  189. data/app/assets/javascripts/common/smooth-scroll/SmoothScroll.js +788 -0
  190. data/app/assets/javascripts/common/spectrum/spectrum.js +2323 -0
  191. data/app/assets/javascripts/common/stepper/jquery.fs.stepper.js +339 -0
  192. data/app/assets/javascripts/common/swiper/swiper.js +8124 -0
  193. data/app/assets/javascripts/common/typed/typed.js +1045 -0
  194. data/app/assets/javascripts/common/visable/jquery.visible.js +68 -0
  195. data/app/assets/javascripts/common/waypoints/jquery.waypoints.js +662 -0
  196. data/app/assets/javascripts/phcthemes_web_theme_pack_appstrap.js +11 -0
  197. data/app/assets/javascripts/phcthemes_web_theme_pack_basic.js +39 -0
  198. data/app/assets/javascripts/phcthemes_web_theme_pack_bold.js +34 -0
  199. data/app/assets/javascripts/phcthemes_web_theme_pack_coloradmin.js +12 -0
  200. data/app/assets/javascripts/phcthemes_web_theme_pack_devine_villas.js +20 -0
  201. data/app/assets/javascripts/phcthemes_web_theme_pack_smarty.js +57 -0
  202. data/app/assets/javascripts/phcthemes_web_theme_pack_xero.js +18 -0
  203. data/app/assets/javascripts/phcthemes_web_theme_pack_zoner.js +24 -0
  204. data/app/assets/javascripts/themes/appstrap/custom/custom.js +0 -0
  205. data/app/assets/javascripts/themes/appstrap/theme/custom-script.js +69 -0
  206. data/app/assets/javascripts/themes/appstrap/theme/script.js +3096 -0
  207. data/app/assets/javascripts/themes/basic/custom/custom.js +0 -0
  208. data/app/assets/javascripts/themes/bold/custom/custom.js +0 -0
  209. data/app/assets/javascripts/themes/coloradmin/custom/custom.js +0 -0
  210. data/app/assets/javascripts/themes/coloradmin/theme/apps.js +236 -0
  211. data/app/assets/javascripts/themes/devine_villas/custom/custom.js +0 -0
  212. data/app/assets/javascripts/themes/devine_villas/theme/dashboard.js +19 -0
  213. data/app/assets/javascripts/themes/devine_villas/theme/main.js +384 -0
  214. data/app/assets/javascripts/themes/devine_villas/theme/map.js +563 -0
  215. data/app/assets/javascripts/themes/devine_villas/theme/searchmap.js +69 -0
  216. data/app/assets/javascripts/themes/smarty/custom/custom.js +0 -0
  217. data/app/assets/javascripts/themes/smarty/theme/scripts.js +4271 -0
  218. data/app/assets/javascripts/themes/xero/custom/custom.js +0 -0
  219. data/app/assets/javascripts/themes/xero/theme/app.js +696 -0
  220. data/app/assets/javascripts/themes/zoner/custom-maps/custom-map.js +289 -0
  221. data/app/assets/javascripts/themes/zoner/custom/custom.js +0 -0
  222. data/app/assets/javascripts/themes/zoner/draggable/draggable.js +196 -0
  223. data/app/assets/javascripts/themes/zoner/jquery-dependclass/dependclass.js +56 -0
  224. data/app/assets/javascripts/themes/zoner/jquery-slider/jquery.slider.js +700 -0
  225. data/app/assets/javascripts/themes/zoner/jquery-vanillabox/jquery.vanillabox.min.js +24 -0
  226. data/app/assets/javascripts/themes/zoner/jshashtable/hashtable.js +402 -0
  227. data/app/assets/javascripts/themes/zoner/numberformatter/numberformatter.js +566 -0
  228. data/app/assets/javascripts/themes/zoner/simple-js-templating/tmpl.js +35 -0
  229. data/app/assets/javascripts/themes/zoner/theme/main.js +667 -0
  230. data/app/assets/stylesheets/common/custom/custom.scss +0 -0
  231. data/app/assets/stylesheets/phcthemes_web_theme_pack_appstrap.scss +28 -0
  232. data/app/assets/stylesheets/phcthemes_web_theme_pack_basic.scss +0 -0
  233. data/app/assets/stylesheets/phcthemes_web_theme_pack_bold.scss +21 -0
  234. data/app/assets/stylesheets/phcthemes_web_theme_pack_coloradmin.scss +22 -0
  235. data/app/assets/stylesheets/phcthemes_web_theme_pack_devine_villas.scss +28 -0
  236. data/app/assets/stylesheets/phcthemes_web_theme_pack_smarty.scss +47 -0
  237. data/app/assets/stylesheets/phcthemes_web_theme_pack_xero.scss +28 -0
  238. data/app/assets/stylesheets/phcthemes_web_theme_pack_zoner.scss +22 -0
  239. data/app/assets/stylesheets/themes/appstrap/custom/custom.scss +0 -0
  240. data/app/assets/stylesheets/themes/bold/custom/custom.scss +0 -0
  241. data/app/assets/stylesheets/themes/coloradmin/custom/custom.scss +0 -0
  242. data/app/assets/stylesheets/themes/devine_villas/custom/custom.scss +0 -0
  243. data/app/assets/stylesheets/themes/smarty/custom/custom.scss +0 -0
  244. data/app/assets/stylesheets/themes/xero/custom/custom.scss +0 -0
  245. data/app/assets/stylesheets/themes/zoner/custom/custom.scss +0 -0
  246. data/lib/phcthemes_web_theme_pack.rb +5 -0
  247. data/lib/phcthemes_web_theme_pack/engine.rb +13 -0
  248. data/lib/phcthemes_web_theme_pack/version.rb +3 -0
  249. data/lib/tasks/phcthemes_web_theme_pack_tasks.rake +4 -0
  250. metadata +375 -0
@@ -0,0 +1,260 @@
1
+ /*****************************************************************************************************
2
+ * jquery.themepunch.revmigrate.js - jQuery Plugin for Revolution Slider Migration from 4.x to 5.0
3
+ * @version: 1.0.2 (20.01.2016)
4
+ * @requires jQuery v1.7 or later (tested on 1.9)
5
+ * @author ThemePunch
6
+ *****************************************************************************************************/
7
+
8
+
9
+ (function($) {
10
+
11
+ var _R = jQuery.fn.revolution;
12
+
13
+ ///////////////////////////////////////////
14
+ // EXTENDED FUNCTIONS AVAILABLE GLOBAL //
15
+ ///////////////////////////////////////////
16
+ jQuery.extend(true,_R, {
17
+
18
+ // OUR PLUGIN HERE :)
19
+ migration: function(container,options) {
20
+ // PREPARE THE NEW OPTIONS
21
+ options = prepOptions(options);
22
+ // PREPARE LAYER ANIMATIONS
23
+ prepLayerAnimations(container,options);
24
+ return options;
25
+ }
26
+ });
27
+
28
+ var prepOptions = function(o) {
29
+
30
+ // PARALLAX FALLBACKS
31
+ if (o.parallaxLevels || o.parallaxBgFreeze) {
32
+ var p = new Object();
33
+ p.type = o.parallax
34
+ p.levels = o.parallaxLevels;
35
+ p.bgparallax = o.parallaxBgFreeze == "on" ? "off" : "on";
36
+
37
+ p.disable_onmobile = o.parallaxDisableOnMobile;
38
+ o.parallax = p;
39
+ }
40
+ if (o.disableProgressBar === undefined)
41
+ o.disableProgressBar = o.hideTimerBar || "off";
42
+
43
+ // BASIC FALLBACKS
44
+ if (o.startwidth || o.startheight) {
45
+ o.gridwidth = o.startwidth;
46
+ o.gridheight = o.startheight;
47
+ }
48
+
49
+ if (o.sliderType===undefined)
50
+ o.sliderType = "standard";
51
+
52
+ if (o.fullScreen==="on")
53
+ o.sliderLayout = "fullscreen";
54
+
55
+ if (o.fullWidth==="on")
56
+ o.sliderLayout = "fullwidth";
57
+
58
+ if (o.sliderLayout===undefined)
59
+ o.sliderLayout = "auto";
60
+
61
+
62
+ // NAVIGATION ARROW FALLBACKS
63
+ if (o.navigation===undefined) {
64
+ var n = new Object();
65
+ if (o.navigationArrows=="solo" || o.navigationArrows=="nextto") {
66
+ var a = new Object();
67
+ a.enable = true;
68
+ a.style = o.navigationStyle || "";
69
+ a.hide_onmobile = o.hideArrowsOnMobile==="on" ? true : false;
70
+ a.hide_onleave = o.hideThumbs >0 ? true : false;
71
+ a.hide_delay = o.hideThumbs>0 ? o.hideThumbs : 200;
72
+ a.hide_delay_mobile = o.hideNavDelayOnMobile || 1500;
73
+ a.hide_under = 0;
74
+ a.tmp = '';
75
+ a.left = {
76
+ h_align:o.soloArrowLeftHalign,
77
+ v_align:o.soloArrowLeftValign,
78
+ h_offset:o.soloArrowLeftHOffset,
79
+ v_offset:o.soloArrowLeftVOffset
80
+ };
81
+ a.right = {
82
+ h_align:o.soloArrowRightHalign,
83
+ v_align:o.soloArrowRightValign,
84
+ h_offset:o.soloArrowRightHOffset,
85
+ v_offset:o.soloArrowRightVOffset
86
+ };
87
+ n.arrows = a;
88
+ }
89
+ if (o.navigationType=="bullet") {
90
+ var b = new Object();
91
+ b.style = o.navigationStyle || "";
92
+ b.enable=true;
93
+ b.hide_onmobile = o.hideArrowsOnMobile==="on" ? true : false;
94
+ b.hide_onleave = o.hideThumbs >0 ? true : false;
95
+ b.hide_delay = o.hideThumbs>0 ? o.hideThumbs : 200;
96
+ b.hide_delay_mobile = o.hideNavDelayOnMobile || 1500;
97
+ b.hide_under = 0;
98
+ b.direction="horizontal";
99
+ b.h_align=o.navigationHAlign || "center";
100
+ b.v_align=o.navigationVAlign || "bottom";
101
+ b.space=5;
102
+ b.h_offset=o.navigationHOffset || 0;
103
+ b.v_offset=o.navigationVOffset || 20;
104
+ b.tmp='<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>';
105
+ n.bullets = b;
106
+ }
107
+ if (o.navigationType=="thumb") {
108
+ var t = new Object();
109
+ t.style=o.navigationStyle || "";
110
+ t.enable=true;
111
+ t.width=o.thumbWidth || 100;
112
+ t.height=o.thumbHeight || 50;
113
+ t.min_width=o.thumbWidth || 100;
114
+ t.wrapper_padding=2;
115
+ t.wrapper_color="#f5f5f5";
116
+ t.wrapper_opacity=1;
117
+ t.visibleAmount=o.thumbAmount || 3;
118
+ t.hide_onmobile = o.hideArrowsOnMobile==="on" ? true : false;
119
+ t.hide_onleave = o.hideThumbs >0 ? true : false;
120
+ t.hide_delay = o.hideThumbs>0 ? o.hideThumbs : 200;
121
+ t.hide_delay_mobile = o.hideNavDelayOnMobile || 1500;
122
+ t.hide_under = 0;
123
+ t.direction="horizontal";
124
+ t.span=false;
125
+ t.position="inner";
126
+ t.space=2;
127
+ t.h_align=o.navigationHAlign || "center";
128
+ t.v_align=o.navigationVAlign || "bottom";
129
+ t.h_offset=o.navigationHOffset || 0;
130
+ t.v_offset=o.navigationVOffset || 20;
131
+ t.tmp='<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>';
132
+ n.thumbnails = t;
133
+ }
134
+
135
+ o.navigation = n;
136
+
137
+ o.navigation.keyboardNavigation=o.keyboardNavigation || "on";
138
+ o.navigation.onHoverStop=o.onHoverStop || "on";
139
+ o.navigation.touch = {
140
+ touchenabled:o.touchenabled || "on",
141
+ swipe_treshold : o.swipe_treshold ||75,
142
+ swipe_min_touches : o.swipe_min_touches || 1,
143
+ drag_block_vertical:o.drag_block_vertical || false
144
+ };
145
+
146
+ }
147
+
148
+ if (o.fallbacks==undefined)
149
+ o.fallbacks = {
150
+ isJoomla:o.isJoomla || false,
151
+ panZoomDisableOnMobile: o.parallaxDisableOnMobile || "off",
152
+ simplifyAll:o.simplifyAll || "on",
153
+ nextSlideOnWindowFocus:o.nextSlideOnWindowFocus || "off",
154
+ disableFocusListener:o.disableFocusListener || true
155
+ };
156
+
157
+ return o;
158
+
159
+ }
160
+
161
+ var prepLayerAnimations = function(container,opt) {
162
+
163
+ var c = new Object(),
164
+ cw = container.width(),
165
+ ch = container.height();
166
+
167
+ c.skewfromleftshort = "x:-50;skX:85;o:0";
168
+ c.skewfromrightshort = "x:50;skX:-85;o:0";
169
+ c.sfl = "x:-50;o:0";
170
+ c.sfr = "x:50;o:0";
171
+ c.sft = "y:-50;o:0";
172
+ c.sfb = "y:50;o:0";
173
+ c.skewfromleft = "x:top;skX:85;o:0";
174
+ c.skewfromright = "x:bottom;skX:-85;o:0";
175
+ c.lfl = "x:top;o:0";
176
+ c.lfr = "x:bottom;o:0";
177
+ c.lft = "y:left;o:0";
178
+ c.lfb = "y:right;o:0";
179
+ c.fade = "o:0";
180
+ var src = (Math.random()*720-360)
181
+
182
+
183
+ container.find('.tp-caption').each(function() {
184
+ var cp = jQuery(this),
185
+ rw = Math.random()*(cw*2)-cw,
186
+ rh = Math.random()*(ch*2)-ch,
187
+ rs = Math.random()*3,
188
+ rz = Math.random()*720-360,
189
+ rx = Math.random()*70-35,
190
+ ry = Math.random()*70-35,
191
+ ncc = cp.attr('class');
192
+ c.randomrotate = "x:{-400,400};y:{-400,400};sX:{0,2};sY:{0,2};rZ:{-180,180};rX:{-180,180};rY:{-180,180};o:0;";
193
+
194
+ if (ncc.match("randomrotate")) cp.data('transform_in',c.randomrotate)
195
+ else
196
+ if (ncc.match(/\blfl\b/)) cp.data('transform_in',c.lfl)
197
+ else
198
+ if (ncc.match(/\blfr\b/)) cp.data('transform_in',c.lfr)
199
+ else
200
+ if (ncc.match(/\blft\b/)) cp.data('transform_in',c.lft)
201
+ else
202
+ if (ncc.match(/\blfb\b/)) cp.data('transform_in',c.lfb)
203
+ else
204
+ if (ncc.match(/\bsfl\b/)) cp.data('transform_in',c.sfl)
205
+ else
206
+ if (ncc.match(/\bsfr\b/)) cp.data('transform_in',c.sfr)
207
+ else
208
+ if (ncc.match(/\bsft\b/)) cp.data('transform_in',c.sft)
209
+ else
210
+ if (ncc.match(/\bsfb\b/)) cp.data('transform_in',c.sfb)
211
+ else
212
+ if (ncc.match(/\bskewfromleftshort\b/)) cp.data('transform_in',c.skewfromleftshort)
213
+ else
214
+ if (ncc.match(/\bskewfromrightshort\b/)) cp.data('transform_in',c.skewfromrightshort)
215
+ else
216
+ if (ncc.match(/\bskewfromleft\b/)) cp.data('transform_in',c.skewfromleft)
217
+ else
218
+ if (ncc.match(/\bskewfromright\b/)) cp.data('transform_in',c.skewfromright)
219
+ else
220
+ if (ncc.match(/\bfade\b/)) cp.data('transform_in',c.fade);
221
+
222
+ if (ncc.match(/\brandomrotateout\b/)) cp.data('transform_out',c.randomrotate)
223
+ else
224
+ if (ncc.match(/\bltl\b/)) cp.data('transform_out',c.lfl)
225
+ else
226
+ if (ncc.match(/\bltr\b/)) cp.data('transform_out',c.lfr)
227
+ else
228
+ if (ncc.match(/\bltt\b/)) cp.data('transform_out',c.lft)
229
+ else
230
+ if (ncc.match(/\bltb\b/)) cp.data('transform_out',c.lfb)
231
+ else
232
+ if (ncc.match(/\bstl\b/)) cp.data('transform_out',c.sfl)
233
+ else
234
+ if (ncc.match(/\bstr\b/)) cp.data('transform_out',c.sfr)
235
+ else
236
+ if (ncc.match(/\bstt\b/)) cp.data('transform_out',c.sft)
237
+ else
238
+ if (ncc.match(/\bstb\b/)) cp.data('transform_out',c.sfb)
239
+ else
240
+ if (ncc.match(/\bskewtoleftshortout\b/)) cp.data('transform_out',c.skewfromleftshort)
241
+ else
242
+ if (ncc.match(/\bskewtorightshortout\b/)) cp.data('transform_out',c.skewfromrightshort)
243
+ else
244
+ if (ncc.match(/\bskewtoleftout\b/)) cp.data('transform_out',c.skewfromleft)
245
+ else
246
+ if (ncc.match(/\bskewtorightout\b/)) cp.data('transform_out',c.skewfromright)
247
+ else
248
+ if (ncc.match(/\bfadeout\b/)) cp.data('transform_out',c.fade);
249
+
250
+ if (cp.data('customin')!=undefined) cp.data('transform_in',cp.data('customin'));
251
+ if (cp.data('customout')!=undefined) cp.data('transform_out',cp.data('customout'));
252
+
253
+ })
254
+
255
+ }
256
+ })(jQuery);
257
+
258
+
259
+
260
+
@@ -0,0 +1,1156 @@
1
+ /********************************************
2
+ * REVOLUTION 5.4.6.5 EXTENSION - NAVIGATION
3
+ * @version: 1.3.5 (06.04.2017)
4
+ * @requires jquery.themepunch.revolution.js
5
+ * @author ThemePunch
6
+ *********************************************/
7
+ (function($) {
8
+ "use strict";
9
+ var _R = jQuery.fn.revolution,
10
+ _ISM = _R.is_mobile(),
11
+ extension = { alias:"Navigation Min JS",
12
+ name:"revolution.extensions.navigation.min.js",
13
+ min_core: "5.4.0",
14
+ version:"1.3.5"
15
+ };
16
+
17
+
18
+ ///////////////////////////////////////////
19
+ // EXTENDED FUNCTIONS AVAILABLE GLOBAL //
20
+ ///////////////////////////////////////////
21
+ jQuery.extend(true,_R, {
22
+
23
+
24
+ hideUnHideNav : function(opt) {
25
+ var w = opt.c.width(),
26
+ a = opt.navigation.arrows,
27
+ b = opt.navigation.bullets,
28
+ c = opt.navigation.thumbnails,
29
+ d = opt.navigation.tabs;
30
+
31
+ if (ckNO(a)) biggerNav(opt.c.find('.tparrows'),a.hide_under,w,a.hide_over);
32
+ if (ckNO(b)) biggerNav(opt.c.find('.tp-bullets'),b.hide_under,w,b.hide_over);
33
+ if (ckNO(c)) biggerNav(opt.c.parent().find('.tp-thumbs'),c.hide_under,w,c.hide_over);
34
+ if (ckNO(d)) biggerNav(opt.c.parent().find('.tp-tabs'),d.hide_under,w,d.hide_over);
35
+
36
+ setONHeights(opt);
37
+
38
+ },
39
+
40
+ resizeThumbsTabs : function(opt,force) {
41
+
42
+
43
+ if ((opt.navigation && opt.navigation.tabs.enable) || (opt.navigation && opt.navigation.thumbnails.enable)) {
44
+ var f = (jQuery(window).width()-480) / 500,
45
+ tws = new punchgs.TimelineLite(),
46
+ otab = opt.navigation.tabs,
47
+ othu = opt.navigation.thumbnails,
48
+ otbu = opt.navigation.bullets;
49
+
50
+ tws.pause();
51
+ f = f>1 ? 1 : f<0 ? 0 : f;
52
+
53
+ if (ckNO(otab) && (force || otab.width>otab.min_width)) rtt(f,tws,opt.c,otab,opt.slideamount,'tab');
54
+ if (ckNO(othu) && (force || othu.width>othu.min_width)) rtt(f,tws,opt.c,othu,opt.slideamount,'thumb');
55
+ if (ckNO(otbu) && force) {
56
+ // SET BULLET SPACES AND POSITION
57
+ var bw = opt.c.find('.tp-bullets');
58
+
59
+ bw.find('.tp-bullet').each(function(i){
60
+ var b = jQuery(this),
61
+ am = i+1,
62
+ w = b.outerWidth()+parseInt((otbu.space===undefined? 0:otbu.space),0),
63
+ h = b.outerHeight()+parseInt((otbu.space===undefined? 0:otbu.space),0);
64
+
65
+ if (otbu.direction==="vertical") {
66
+ b.css({top:((am-1)*h)+"px", left:"0px"});
67
+ bw.css({height:(((am-1)*h) + b.outerHeight()),width:b.outerWidth()});
68
+ }
69
+ else {
70
+ b.css({left:((am-1)*w)+"px", top:"0px"});
71
+ bw.css({width:(((am-1)*w) + b.outerWidth()),height:b.outerHeight()});
72
+ }
73
+ });
74
+
75
+ }
76
+
77
+ tws.play();
78
+
79
+ setONHeights(opt);
80
+ }
81
+ return true;
82
+ },
83
+
84
+ updateNavIndexes : function(opt) {
85
+ var _ = opt.c;
86
+
87
+ function setNavIndex(a) {
88
+ if (_.find(a).lenght>0) {
89
+ _.find(a).each(function(i) {
90
+ jQuery(this).data('liindex',i);
91
+ })
92
+ }
93
+ }
94
+
95
+ setNavIndex('.tp-tab');
96
+ setNavIndex('.tp-bullet');
97
+ setNavIndex('.tp-thumb');
98
+ _R.resizeThumbsTabs(opt,true);
99
+ _R.manageNavigation(opt);
100
+ },
101
+
102
+
103
+ // PUT NAVIGATION IN POSITION AND MAKE SURE THUMBS AND TABS SHOWING TO THE RIGHT POSITION
104
+ manageNavigation : function(opt) {
105
+
106
+
107
+
108
+ var lof = _R.getHorizontalOffset(opt.c.parent(),"left"),
109
+ rof = _R.getHorizontalOffset(opt.c.parent(),"right");
110
+
111
+ if (ckNO(opt.navigation.bullets)) {
112
+ if (opt.sliderLayout!="fullscreen" && opt.sliderLayout!="fullwidth") {
113
+ // OFFSET ADJUSTEMENT FOR LEFT ARROWS BASED ON THUMBNAILS AND TABS OUTTER
114
+ opt.navigation.bullets.h_offset_old = opt.navigation.bullets.h_offset_old === undefined ? opt.navigation.bullets.h_offset : opt.navigation.bullets.h_offset_old;
115
+ opt.navigation.bullets.h_offset = opt.navigation.bullets.h_align==="center" ? opt.navigation.bullets.h_offset_old+lof/2 -rof/2: opt.navigation.bullets.h_offset_old+lof-rof;
116
+ }
117
+ setNavElPositions(opt.c.find('.tp-bullets'),opt.navigation.bullets,opt);
118
+ }
119
+
120
+ if (ckNO(opt.navigation.thumbnails))
121
+ setNavElPositions(opt.c.parent().find('.tp-thumbs'),opt.navigation.thumbnails,opt);
122
+
123
+ if (ckNO(opt.navigation.tabs))
124
+ setNavElPositions(opt.c.parent().find('.tp-tabs'),opt.navigation.tabs,opt);
125
+
126
+ if (ckNO(opt.navigation.arrows)) {
127
+
128
+ if (opt.sliderLayout!="fullscreen" && opt.sliderLayout!="fullwidth") {
129
+ // OFFSET ADJUSTEMENT FOR LEFT ARROWS BASED ON THUMBNAILS AND TABS OUTTER
130
+ opt.navigation.arrows.left.h_offset_old = opt.navigation.arrows.left.h_offset_old === undefined ? opt.navigation.arrows.left.h_offset : opt.navigation.arrows.left.h_offset_old;
131
+ opt.navigation.arrows.left.h_offset = opt.navigation.arrows.left.h_align==="right" ? opt.navigation.arrows.left.h_offset_old+rof : opt.navigation.arrows.left.h_offset_old+lof;
132
+
133
+ opt.navigation.arrows.right.h_offset_old = opt.navigation.arrows.right.h_offset_old === undefined ? opt.navigation.arrows.right.h_offset : opt.navigation.arrows.right.h_offset_old;
134
+ opt.navigation.arrows.right.h_offset = opt.navigation.arrows.right.h_align==="right" ? opt.navigation.arrows.right.h_offset_old+rof : opt.navigation.arrows.right.h_offset_old+lof;
135
+ }
136
+ setNavElPositions(opt.c.find('.tp-leftarrow.tparrows'),opt.navigation.arrows.left,opt);
137
+ setNavElPositions(opt.c.find('.tp-rightarrow.tparrows'),opt.navigation.arrows.right,opt);
138
+ }
139
+
140
+
141
+ if (ckNO(opt.navigation.thumbnails))
142
+ moveThumbsInPosition(opt.c.parent().find('.tp-thumbs'),opt.navigation.thumbnails);
143
+
144
+ if (ckNO(opt.navigation.tabs))
145
+ moveThumbsInPosition(opt.c.parent().find('.tp-tabs'),opt.navigation.tabs);
146
+ },
147
+
148
+
149
+ // MANAGE THE NAVIGATION
150
+ createNavigation : function(container,opt) {
151
+ if (_R.compare_version(extension).check==="stop") return false;
152
+ var cp = container.parent(),
153
+ _a = opt.navigation.arrows, _b = opt.navigation.bullets, _c = opt.navigation.thumbnails, _d = opt.navigation.tabs,
154
+ a = ckNO(_a), b = ckNO(_b), c = ckNO(_c), d = ckNO(_d);
155
+
156
+
157
+ // Initialise Keyboard Navigation if Option set so
158
+ initKeyboard(container,opt);
159
+
160
+ // Initialise Mouse Scroll Navigation if Option set so
161
+ initMouseScroll(container,opt);
162
+
163
+ //Draw the Arrows
164
+ if (a) initArrows(container,_a,opt);
165
+
166
+ // BUILD BULLETS, THUMBS and TABS
167
+ opt.li.each(function(index) {
168
+
169
+ var li_rtl = jQuery(opt.li[opt.li.length-1-index]);
170
+ var li = jQuery(this);
171
+
172
+ if (b)
173
+ if (opt.navigation.bullets.rtl)
174
+ addBullet(container,_b,li_rtl,opt);
175
+ else
176
+ addBullet(container,_b,li,opt);
177
+
178
+ if (c)
179
+ if (opt.navigation.thumbnails.rtl)
180
+ addThumb(container,_c,li_rtl,'tp-thumb',opt);
181
+ else
182
+ addThumb(container,_c,li,'tp-thumb',opt);
183
+ if (d)
184
+ if (opt.navigation.tabs.rtl)
185
+ addThumb(container,_d,li_rtl,'tp-tab',opt);
186
+ else
187
+ addThumb(container,_d,li,'tp-tab',opt);
188
+ });
189
+
190
+ // LISTEN TO SLIDE CHANGE - SET ACTIVE SLIDE BULLET
191
+ container.bind('revolution.slide.onafterswap revolution.nextslide.waiting',function() {
192
+
193
+ //cp.find('.tp-bullet, .tp-thumb, .tp-tab').removeClass("selected");
194
+
195
+ var si = container.find(".next-revslide").length==0 ? container.find(".active-revslide").data("index") : container.find(".next-revslide").data("index");
196
+
197
+ container.find('.tp-bullet').each(function() {
198
+ var _t = jQuery(this);
199
+ if (_t.data('liref')===si)
200
+ _t.addClass("selected");
201
+ else
202
+ _t.removeClass("selected");
203
+ });
204
+
205
+ cp.find('.tp-thumb, .tp-tab').each(function() {
206
+ var _t = jQuery(this);
207
+ if (_t.data('liref')===si) {
208
+ _t.addClass("selected");
209
+ if (_t.hasClass("tp-tab"))
210
+ moveThumbsInPosition(cp.find('.tp-tabs'),_d);
211
+ else
212
+ moveThumbsInPosition(cp.find('.tp-thumbs'),_c);
213
+ } else
214
+ _t.removeClass("selected");
215
+
216
+ });
217
+
218
+ var ai = 0,
219
+ f = false;
220
+ if (opt.thumbs)
221
+ jQuery.each(opt.thumbs,function(i,obj) {
222
+ ai = f === false ? i : ai;
223
+ f = obj.id === si || i === si ? true : f;
224
+ });
225
+
226
+
227
+ var pi = ai>0 ? ai-1 : opt.slideamount-1,
228
+ ni = (ai+1)==opt.slideamount ? 0 : ai+1;
229
+
230
+
231
+ if (_a.enable === true) {
232
+ var inst = _a.tmp;
233
+ if (opt.thumbs[pi]!=undefined) {
234
+ jQuery.each(opt.thumbs[pi].params,function(i,obj) {
235
+ inst = inst.replace(obj.from,obj.to);
236
+ });
237
+ }
238
+ _a.left.j.html(inst);
239
+ inst = _a.tmp;
240
+ if (ni>opt.slideamount) return;
241
+ jQuery.each(opt.thumbs[ni].params,function(i,obj) {
242
+ inst = inst.replace(obj.from,obj.to);
243
+ });
244
+ _a.right.j.html(inst);
245
+
246
+ if (!_a.rtl) {
247
+ punchgs.TweenLite.set(_a.left.j.find('.tp-arr-imgholder'),{backgroundImage:"url("+opt.thumbs[pi].src+")"});
248
+ punchgs.TweenLite.set(_a.right.j.find('.tp-arr-imgholder'),{backgroundImage:"url("+opt.thumbs[ni].src+")"});
249
+ } else {
250
+ punchgs.TweenLite.set(_a.left.j.find('.tp-arr-imgholder'),{backgroundImage:"url("+opt.thumbs[ni].src+")"});
251
+ punchgs.TweenLite.set(_a.right.j.find('.tp-arr-imgholder'),{backgroundImage:"url("+opt.thumbs[pi].src+")"});
252
+ }
253
+ }
254
+
255
+
256
+ });
257
+
258
+ hdResets(_a);
259
+ hdResets(_b);
260
+ hdResets(_c);
261
+ hdResets(_d);
262
+
263
+
264
+ // HOVER OVER ELEMENTS SHOULD SHOW/HIDE NAVIGATION ELEMENTS
265
+ cp.on("mouseenter mousemove",function() {
266
+
267
+ if (!cp.hasClass("tp-mouseover")) {
268
+ cp.addClass("tp-mouseover");
269
+
270
+ punchgs.TweenLite.killDelayedCallsTo(showHideNavElements);
271
+
272
+ if (a && _a.hide_onleave) showHideNavElements(cp.find('.tparrows'),_a,"show");
273
+ if (b && _b.hide_onleave) showHideNavElements(cp.find('.tp-bullets'),_b,"show");
274
+ if (c && _c.hide_onleave) showHideNavElements(cp.find('.tp-thumbs'),_c,"show");
275
+ if (d && _d.hide_onleave) showHideNavElements(cp.find('.tp-tabs'),_d,"show");
276
+
277
+ // ON MOBILE WE NEED TO HIDE ELEMENTS EVEN AFTER TOUCH
278
+ if (_ISM) {
279
+ cp.removeClass("tp-mouseover");
280
+ callAllDelayedCalls(container,opt);
281
+ }
282
+ }
283
+ });
284
+
285
+ cp.on("mouseleave",function() {
286
+ cp.removeClass("tp-mouseover");
287
+ callAllDelayedCalls(container,opt);
288
+ });
289
+
290
+ // FIRST RUN HIDE ALL ELEMENTS
291
+ if (a && _a.hide_onleave) showHideNavElements(cp.find('.tparrows'),_a,"hide",0);
292
+ if (b && _b.hide_onleave) showHideNavElements(cp.find('.tp-bullets'),_b,"hide",0);
293
+ if (c && _c.hide_onleave) showHideNavElements(cp.find('.tp-thumbs'),_c,"hide",0);
294
+ if (d && _d.hide_onleave) showHideNavElements(cp.find('.tp-tabs'),_d,"hide",0);
295
+
296
+ // Initialise Swipe Navigation
297
+ if (c) swipeAction(cp.find('.tp-thumbs'),opt);
298
+ if (d) swipeAction(cp.find('.tp-tabs'),opt);
299
+ if (opt.sliderType==="carousel") swipeAction(container,opt,true);
300
+ if ((opt.navigation.touch.touchOnDesktop==="on") || (opt.navigation.touch.touchenabled=="on" && _ISM)) swipeAction(container,opt,"swipebased");
301
+
302
+
303
+ }
304
+
305
+ });
306
+
307
+
308
+
309
+
310
+ /////////////////////////////////
311
+ // - INTERNAL FUNCTIONS - ///
312
+ /////////////////////////////////
313
+
314
+
315
+ var moveThumbsInPosition = function(container,opt) {
316
+
317
+ var thumbs = container.hasClass("tp-thumbs") ? ".tp-thumbs" : ".tp-tabs",
318
+ thumbmask = container.hasClass("tp-thumbs") ? ".tp-thumb-mask" : ".tp-tab-mask",
319
+ thumbsiw = container.hasClass("tp-thumbs") ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper",
320
+ thumb = container.hasClass("tp-thumbs") ? ".tp-thumb" : ".tp-tab",
321
+ t=container.find(thumbmask),
322
+ el = t.find(thumbsiw),
323
+ thumbdir = opt.direction,
324
+ tw = thumbdir==="vertical" ? t.find(thumb).first().outerHeight(true)+opt.space : t.find(thumb).first().outerWidth(true)+opt.space,
325
+ tmw = thumbdir==="vertical" ? t.height() : t.width(),
326
+ ti = parseInt(t.find(thumb+'.selected').data('liindex'),0),
327
+ me = tmw/tw,
328
+ ts = thumbdir==="vertical" ? t.height() : t.width(),
329
+ tp = 0-(ti * tw),
330
+ els = thumbdir==="vertical" ? el.height() : el.width(),
331
+ curpos = tp < 0-(els-ts) ? 0-(els-ts) : curpos > 0 ? 0 : tp,
332
+ elp = el.data('offset');
333
+
334
+
335
+ if (me>2) {
336
+ curpos = tp - (elp+tw) <= 0 ? tp - (elp+tw) < 0-tw ? elp : curpos + tw : curpos;
337
+ curpos = ( (tp-tw + elp + tmw)< tw && tp + (Math.round(me)-2)*tw < elp) ? tp + (Math.round(me)-2)*tw : curpos;
338
+ }
339
+
340
+ curpos = curpos < 0-(els-ts) ? 0-(els-ts) : curpos > 0 ? 0 : curpos;
341
+
342
+ if (thumbdir!=="vertical" && t.width()>=el.width()) curpos = 0;
343
+ if (thumbdir==="vertical" && t.height()>=el.height()) curpos = 0;
344
+
345
+
346
+ if (!container.hasClass("dragged")) {
347
+ if (thumbdir==="vertical")
348
+ el.data('tmmove',punchgs.TweenLite.to(el,0.5,{top:curpos+"px",ease:punchgs.Power3.easeInOut}));
349
+ else
350
+ el.data('tmmove',punchgs.TweenLite.to(el,0.5,{left:curpos+"px",ease:punchgs.Power3.easeInOut}));
351
+ el.data('offset',curpos);
352
+ }
353
+ };
354
+
355
+
356
+ // RESIZE THE THUMBS BASED ON ORIGINAL SIZE AND CURRENT SIZE OF WINDOW
357
+ var rtt = function(f,tws,c,o,lis,wh) {
358
+ var h = c.parent().find('.tp-'+wh+'s'),
359
+ ins = h.find('.tp-'+wh+'s-inner-wrapper'),
360
+ mask = h.find('.tp-'+wh+'-mask'),
361
+ cw = o.width*f < o.min_width ? o.min_width : Math.round(o.width*f),
362
+ ch = Math.round((cw/o.width) * o.height),
363
+ iw = o.direction === "vertical" ? cw : (cw*lis) + ((o.space)*(lis-1)),
364
+ ih = o.direction === "vertical" ? (ch*lis) + ((o.space)*(lis-1)) : ch,
365
+ anm = o.direction === "vertical" ? {width:cw+"px"} : {height:ch+"px"};
366
+
367
+
368
+ tws.add(punchgs.TweenLite.set(h,anm));
369
+ tws.add(punchgs.TweenLite.set(ins,{width:iw+"px",height:ih+"px"}));
370
+ tws.add(punchgs.TweenLite.set(mask,{width:iw+"px",height:ih+"px"}));
371
+ var fin = ins.find('.tp-'+wh+'');
372
+ if (fin)
373
+ jQuery.each(fin,function(i,el) {
374
+ if (o.direction === "vertical")
375
+ tws.add(punchgs.TweenLite.set(el,{top:(i*(ch+parseInt((o.space===undefined? 0:o.space),0))),width:cw+"px",height:ch+"px"}));
376
+ else
377
+ if (o.direction === "horizontal")
378
+ tws.add(punchgs.TweenLite.set(el,{left:(i*(cw+parseInt((o.space===undefined? 0:o.space),0))),width:cw+"px",height:ch+"px"}));
379
+ });
380
+ return tws;
381
+ };
382
+
383
+ // INTERNAL FUNCTIONS
384
+ var normalizeWheel = function( event) /*object*/ {
385
+
386
+ var sX = 0, sY = 0, // spinX, spinY
387
+ pX = 0, pY = 0, // pixelX, pixelY
388
+ PIXEL_STEP = 1,
389
+ LINE_HEIGHT = 1,
390
+ PAGE_HEIGHT = 1;
391
+
392
+ // Legacy
393
+ if ('detail' in event) { sY = event.detail; }
394
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
395
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
396
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
397
+
398
+
399
+ //sY = navigator.userAgent.match(/mozilla/i) ? sY*10 : sY;
400
+
401
+
402
+ // side scrolling on FF with DOMMouseScroll
403
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
404
+ sX = sY;
405
+ sY = 0;
406
+ }
407
+
408
+ pX = sX * PIXEL_STEP;
409
+ pY = sY * PIXEL_STEP;
410
+
411
+ if ('deltaY' in event) { pY = event.deltaY; }
412
+ if ('deltaX' in event) { pX = event.deltaX; }
413
+
414
+
415
+
416
+ if ((pX || pY) && event.deltaMode) {
417
+ if (event.deltaMode == 1) { // delta in LINE units
418
+ pX *= LINE_HEIGHT;
419
+ pY *= LINE_HEIGHT;
420
+ } else { // delta in PAGE units
421
+ pX *= PAGE_HEIGHT;
422
+ pY *= PAGE_HEIGHT;
423
+ }
424
+ }
425
+
426
+ // Fall-back if spin cannot be determined
427
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
428
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
429
+
430
+ pY = navigator.userAgent.match(/mozilla/i) ? pY*10 : pY;
431
+
432
+ if (pY>300 || pY<-300) pY = pY/10;
433
+
434
+ return { spinX : sX,
435
+ spinY : sY,
436
+ pixelX : pX,
437
+ pixelY : pY };
438
+ };
439
+
440
+ var initKeyboard = function(container,opt) {
441
+ if (opt.navigation.keyboardNavigation!=="on") return;
442
+ jQuery(document).keydown(function(e){
443
+ if ((opt.navigation.keyboard_direction=="horizontal" && e.keyCode == 39) || (opt.navigation.keyboard_direction=="vertical" && e.keyCode==40)) {
444
+ opt.sc_indicator="arrow";
445
+ opt.sc_indicator_dir = 0;
446
+ _R.callingNewSlide(container,1);
447
+ }
448
+ if ((opt.navigation.keyboard_direction=="horizontal" && e.keyCode == 37) || (opt.navigation.keyboard_direction=="vertical" && e.keyCode==38)) {
449
+ opt.sc_indicator="arrow";
450
+ opt.sc_indicator_dir = 1;
451
+ _R.callingNewSlide(container,-1);
452
+ }
453
+ });
454
+ };
455
+
456
+
457
+
458
+ var initMouseScroll = function(container,opt) {
459
+
460
+ if (opt.navigation.mouseScrollNavigation!=="on" && opt.navigation.mouseScrollNavigation!=="carousel") return;
461
+ opt.isIEEleven = !!navigator.userAgent.match(/Trident.*rv\:11\./);
462
+ opt.isSafari = !!navigator.userAgent.match(/safari/i);
463
+ opt.ischrome = !!navigator.userAgent.match(/chrome/i);
464
+
465
+
466
+ var bl = opt.ischrome ? -49 : opt.isIEEleven || opt.isSafari ? -9 : navigator.userAgent.match(/mozilla/i) ? -29 : -49,
467
+ tl = opt.ischrome ? 49 : opt.isIEEleven || opt.isSafari ? 9 : navigator.userAgent.match(/mozilla/i) ? 29 : 49;
468
+
469
+
470
+ container.on('mousewheel DOMMouseScroll', function(e) {
471
+
472
+ var res = normalizeWheel(e.originalEvent),
473
+ asi = container.find('.tp-revslider-slidesli.active-revslide').index(),
474
+ psi = container.find('.tp-revslider-slidesli.processing-revslide').index(),
475
+ fs = asi!=-1 && asi==0 || psi!=-1 && psi==0 ? true : false,
476
+ ls = asi!=-1 && asi==opt.slideamount-1 || psi!=1 && psi==opt.slideamount-1 ? true:false,
477
+ ret = true;
478
+ if (opt.navigation.mouseScrollNavigation=="carousel")
479
+ fs = ls = false;
480
+
481
+
482
+ if (psi==-1) {
483
+
484
+ if(res.pixelY<bl) {
485
+
486
+ if (!fs) {
487
+ opt.sc_indicator="arrow";
488
+ if (opt.navigation.mouseScrollReverse!=="reverse") {
489
+ opt.sc_indicator_dir = 1;
490
+ _R.callingNewSlide(container,-1);
491
+ }
492
+ ret = false;
493
+ }
494
+ if (!ls) {
495
+ opt.sc_indicator="arrow";
496
+ if (opt.navigation.mouseScrollReverse==="reverse") {
497
+ opt.sc_indicator_dir = 0;
498
+ _R.callingNewSlide(container,1);
499
+ }
500
+ ret = false;
501
+ }
502
+ }
503
+ else
504
+ if(res.pixelY>tl) {
505
+ if (!ls) {
506
+ opt.sc_indicator="arrow";
507
+ if (opt.navigation.mouseScrollReverse!=="reverse") {
508
+ opt.sc_indicator_dir = 0;
509
+ _R.callingNewSlide(container,1);
510
+ }
511
+ ret = false;
512
+ }
513
+ if (!fs) {
514
+ opt.sc_indicator="arrow";
515
+ if (opt.navigation.mouseScrollReverse==="reverse") {
516
+ opt.sc_indicator_dir = 1;
517
+ _R.callingNewSlide(container,-1);
518
+ }
519
+ ret = false;
520
+ }
521
+ }
522
+
523
+
524
+ } else {
525
+ ret = false;
526
+ }
527
+
528
+ var tc = opt.c.offset().top-jQuery('body').scrollTop(),
529
+ bc = tc+opt.c.height();
530
+ if (opt.navigation.mouseScrollNavigation!="carousel") {
531
+ if (opt.navigation.mouseScrollReverse!=="reverse")
532
+ if ((tc>0 && res.pixelY>0) || (bc<jQuery(window).height() && res.pixelY<0))
533
+ ret = true;
534
+ if (opt.navigation.mouseScrollReverse==="reverse")
535
+ if ((tc<0 && res.pixelY<0) || (bc>jQuery(window).height() && res.pixelY>0))
536
+ ret = true;
537
+ } else {
538
+ ret=false;
539
+ }
540
+
541
+
542
+ if (ret==false) {
543
+ e.preventDefault(e);
544
+ return false;
545
+ } else {
546
+ return;
547
+ }
548
+ });
549
+ };
550
+
551
+ var isme = function (a,c,e) {
552
+ a = _ISM ? jQuery(e.target).closest('.'+a).length || jQuery(e.srcElement).closest('.'+a).length : jQuery(e.toElement).closest('.'+a).length || jQuery(e.originalTarget).closest('.'+a).length;
553
+ return a === true || a=== 1 ? 1 : 0;
554
+ };
555
+
556
+ // - SET THE SWIPE FUNCTION //
557
+
558
+
559
+ var swipeAction = function(container,opt,vertical) {
560
+
561
+ //container[0].opt = opt;
562
+
563
+ // TOUCH ENABLED SCROLL
564
+ var _ = opt.carousel;
565
+ jQuery(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe");
566
+
567
+
568
+
569
+ _.Limit = "endless";
570
+ var notonbody = _ISM || _R.get_browser()==="Firefox",
571
+ SwipeOn = container, //notonbody ? container : jQuery('body'),
572
+ pagescroll = opt.navigation.thumbnails.direction==="vertical" || opt.navigation.tabs.direction==="vertical"? "none" : "vertical",
573
+ swipe_wait_dir = opt.navigation.touch.swipe_direction || "horizontal";
574
+
575
+ pagescroll = vertical == "swipebased" && swipe_wait_dir=="vertical" ? "none" : vertical ? "vertical" : pagescroll;
576
+
577
+ if (!jQuery.fn.swipetp) jQuery.fn.swipetp = jQuery.fn.swipe;
578
+ if (!jQuery.fn.swipetp.defaults || !jQuery.fn.swipetp.defaults.excludedElements)
579
+ if (!jQuery.fn.swipetp.defaults)
580
+ jQuery.fn.swipetp.defaults = new Object();
581
+
582
+ jQuery.fn.swipetp.defaults.excludedElements = "label, button, input, select, textarea, .noSwipe"
583
+
584
+
585
+ SwipeOn.swipetp({
586
+ allowPageScroll:pagescroll,
587
+ triggerOnTouchLeave:true,
588
+ treshold:opt.navigation.touch.swipe_treshold,
589
+ fingers:opt.navigation.touch.swipe_min_touches,
590
+
591
+ excludeElements:jQuery.fn.swipetp.defaults.excludedElements,
592
+
593
+ swipeStatus:function(event,phase,direction,distance,duration,fingerCount,fingerData) {
594
+
595
+
596
+
597
+
598
+ var withinslider = isme('rev_slider_wrapper',container,event),
599
+ withinthumbs = isme('tp-thumbs',container,event),
600
+ withintabs = isme('tp-tabs',container,event),
601
+ starget = jQuery(this).attr('class'),
602
+ istt = starget.match(/tp-tabs|tp-thumb/gi) ? true : false;
603
+
604
+
605
+
606
+ // SWIPE OVER SLIDER, TO SWIPE SLIDES IN CAROUSEL MODE
607
+ if (opt.sliderType==="carousel" &&
608
+ (((phase==="move" || phase==="end" || phase=="cancel") && (opt.dragStartedOverSlider && !opt.dragStartedOverThumbs && !opt.dragStartedOverTabs))
609
+ || (phase==="start" && withinslider>0 && withinthumbs===0 && withintabs===0))) {
610
+
611
+ if (_ISM && (direction ==="up" || direction==="down")) return;
612
+
613
+ opt.dragStartedOverSlider = true;
614
+ distance = (direction && direction.match(/left|up/g)) ? Math.round(distance * -1) : distance = Math.round(distance * 1);
615
+
616
+
617
+ switch (phase) {
618
+ case "start":
619
+ if (_.positionanim!==undefined) {
620
+ _.positionanim.kill();
621
+ _.slide_globaloffset = _.infinity==="off" ? _.slide_offset : _R.simp(_.slide_offset, _.maxwidth);
622
+ }
623
+ _.overpull = "none";
624
+ _.wrap.addClass("dragged");
625
+
626
+ break;
627
+ case "move":
628
+
629
+ opt.c.find('.tp-withaction').addClass("tp-temporarydisabled");
630
+ _.slide_offset = _.infinity==="off" ? _.slide_globaloffset + distance : _R.simp(_.slide_globaloffset + distance, _.maxwidth);
631
+
632
+ if (_.infinity==="off") {
633
+ var bb = _.horizontal_align==="center" ? ((_.wrapwidth/2-_.slide_width/2) - _.slide_offset) / _.slide_width : (0 - _.slide_offset) / _.slide_width;
634
+
635
+ if ((_.overpull ==="none" || _.overpull===0) && (bb<0 || bb>opt.slideamount-1))
636
+ _.overpull = distance;
637
+ else
638
+ if (bb>=0 && bb<=opt.slideamount-1 && ((bb>=0 && distance>_.overpull) || (bb<=opt.slideamount-1 && distance<_.overpull)))
639
+ _.overpull = 0;
640
+
641
+ _.slide_offset = bb<0 ? _.slide_offset+ (_.overpull-distance)/1.1 + Math.sqrt(Math.abs((_.overpull-distance)/1.1)) :
642
+ bb>opt.slideamount-1 ? _.slide_offset+ (_.overpull-distance)/1.1 - Math.sqrt(Math.abs((_.overpull-distance)/1.1)) : _.slide_offset ;
643
+ }
644
+ _R.organiseCarousel(opt,direction,true,true);
645
+ break;
646
+
647
+ case "end":
648
+ case "cancel":
649
+ //duration !!
650
+ _.slide_globaloffset = _.slide_offset;
651
+ _.wrap.removeClass("dragged");
652
+ _R.carouselToEvalPosition(opt,direction);
653
+ opt.dragStartedOverSlider = false;
654
+ opt.dragStartedOverThumbs = false;
655
+ opt.dragStartedOverTabs = false;
656
+ setTimeout(function() {
657
+ opt.c.find('.tp-withaction').removeClass("tp-temporarydisabled");
658
+ },19);
659
+ break;
660
+ }
661
+ } else
662
+
663
+ // SWIPE OVER THUMBS OR TABS
664
+ if ((
665
+ ((phase==="move" || phase==="end" || phase=="cancel") && (!opt.dragStartedOverSlider && (opt.dragStartedOverThumbs || opt.dragStartedOverTabs)))
666
+ ||
667
+ (phase==="start" && (withinslider>0 && (withinthumbs>0 || withintabs>0))))) {
668
+
669
+
670
+ if (withinthumbs>0) opt.dragStartedOverThumbs = true;
671
+ if (withintabs>0) opt.dragStartedOverTabs = true;
672
+
673
+ var thumbs = opt.dragStartedOverThumbs ? ".tp-thumbs" : ".tp-tabs",
674
+ thumbmask = opt.dragStartedOverThumbs ? ".tp-thumb-mask" : ".tp-tab-mask",
675
+ thumbsiw = opt.dragStartedOverThumbs ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper",
676
+ thumb = opt.dragStartedOverThumbs ? ".tp-thumb" : ".tp-tab",
677
+ _o = opt.dragStartedOverThumbs ? opt.navigation.thumbnails : opt.navigation.tabs;
678
+
679
+
680
+ distance = (direction && direction.match(/left|up/g)) ? Math.round(distance * -1) : distance = Math.round(distance * 1);
681
+ var t= container.parent().find(thumbmask),
682
+ el = t.find(thumbsiw),
683
+ tdir = _o.direction,
684
+ els = tdir==="vertical" ? el.height() : el.width(),
685
+ ts = tdir==="vertical" ? t.height() : t.width(),
686
+ tw = tdir==="vertical" ? t.find(thumb).first().outerHeight(true)+_o.space : t.find(thumb).first().outerWidth(true)+_o.space,
687
+ newpos = (el.data('offset') === undefined ? 0 : parseInt(el.data('offset'),0)),
688
+ curpos = 0;
689
+
690
+ switch (phase) {
691
+ case "start":
692
+ container.parent().find(thumbs).addClass("dragged");
693
+ newpos = tdir === "vertical" ? el.position().top : el.position().left;
694
+ el.data('offset',newpos);
695
+ if (el.data('tmmove')) el.data('tmmove').pause();
696
+
697
+ break;
698
+ case "move":
699
+ if (els<=ts) return false;
700
+
701
+ curpos = newpos + distance;
702
+ curpos = curpos>0 ? tdir==="horizontal" ? curpos - (el.width() * (curpos/el.width() * curpos/el.width())) : curpos - (el.height() * (curpos/el.height() * curpos/el.height())) : curpos;
703
+ var dif = tdir==="vertical" ? 0-(el.height()-t.height()) : 0-(el.width()-t.width());
704
+ curpos = curpos < dif ? tdir==="horizontal" ? curpos + (el.width() * (curpos-dif)/el.width() * (curpos-dif)/el.width()) : curpos + (el.height() * (curpos-dif)/el.height() * (curpos-dif)/el.height()) : curpos;
705
+ if (tdir==="vertical")
706
+ punchgs.TweenLite.set(el,{top:curpos+"px"});
707
+ else
708
+ punchgs.TweenLite.set(el,{left:curpos+"px"});
709
+
710
+
711
+ break;
712
+
713
+ case "end":
714
+ case "cancel":
715
+
716
+ if (istt) {
717
+ curpos = newpos + distance;
718
+
719
+ curpos = tdir==="vertical" ? curpos < 0-(el.height()-t.height()) ? 0-(el.height()-t.height()) : curpos : curpos < 0-(el.width()-t.width()) ? 0-(el.width()-t.width()) : curpos;
720
+ curpos = curpos > 0 ? 0 : curpos;
721
+
722
+ curpos = Math.abs(distance)>tw/10 ? distance<=0 ? Math.floor(curpos/tw)*tw : Math.ceil(curpos/tw)*tw : distance<0 ? Math.ceil(curpos/tw)*tw : Math.floor(curpos/tw)*tw;
723
+
724
+ curpos = tdir==="vertical" ? curpos < 0-(el.height()-t.height()) ? 0-(el.height()-t.height()) : curpos : curpos < 0-(el.width()-t.width()) ? 0-(el.width()-t.width()) : curpos;
725
+ curpos = curpos > 0 ? 0 : curpos;
726
+
727
+ if (tdir==="vertical")
728
+ punchgs.TweenLite.to(el,0.5,{top:curpos+"px",ease:punchgs.Power3.easeOut});
729
+ else
730
+ punchgs.TweenLite.to(el,0.5,{left:curpos+"px",ease:punchgs.Power3.easeOut});
731
+
732
+ curpos = !curpos ? tdir==="vertical" ? el.position().top : el.position().left : curpos;
733
+
734
+ el.data('offset',curpos);
735
+ el.data('distance',distance);
736
+
737
+ setTimeout(function() {
738
+ opt.dragStartedOverSlider = false;
739
+ opt.dragStartedOverThumbs = false;
740
+ opt.dragStartedOverTabs = false;
741
+ },100);
742
+ container.parent().find(thumbs).removeClass("dragged");
743
+
744
+ return false;
745
+ }
746
+ break;
747
+ }
748
+ }
749
+ else {
750
+ if (phase=="end" && !istt) {
751
+
752
+ opt.sc_indicator="arrow";
753
+
754
+ if ((swipe_wait_dir=="horizontal" && direction == "left") || (swipe_wait_dir=="vertical" && direction == "up")) {
755
+ opt.sc_indicator_dir = 0;
756
+ _R.callingNewSlide(opt.c,1);
757
+ return false;
758
+ }
759
+ if ((swipe_wait_dir=="horizontal" && direction == "right") || (swipe_wait_dir=="vertical" && direction == "down")) {
760
+ opt.sc_indicator_dir = 1;
761
+ _R.callingNewSlide(opt.c,-1);
762
+ return false;
763
+ }
764
+
765
+ }
766
+ opt.dragStartedOverSlider = false;
767
+ opt.dragStartedOverThumbs = false;
768
+ opt.dragStartedOverTabs = false;
769
+ return true;
770
+ }
771
+ }
772
+ });
773
+ };
774
+
775
+
776
+ // NAVIGATION HELPER FUNCTIONS
777
+ var hdResets = function(o) {
778
+ o.hide_delay = !jQuery.isNumeric(parseInt(o.hide_delay,0)) ? 0.2 : o.hide_delay/1000;
779
+ o.hide_delay_mobile = !jQuery.isNumeric(parseInt(o.hide_delay_mobile,0)) ? 0.2 : o.hide_delay_mobile/1000;
780
+ };
781
+
782
+ var ckNO = function(opt) {
783
+ return opt && opt.enable;
784
+ };
785
+
786
+ var ckNOLO = function(opt) {
787
+ return opt && opt.enable && opt.hide_onleave===true && (opt.position===undefined ? true : !opt.position.match(/outer/g));
788
+ };
789
+
790
+ var callAllDelayedCalls = function(container,opt) {
791
+ var cp = container.parent();
792
+
793
+ if (ckNOLO(opt.navigation.arrows))
794
+ punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.arrows.hide_delay_mobile : opt.navigation.arrows.hide_delay,showHideNavElements,[cp.find('.tparrows'),opt.navigation.arrows,"hide"]);
795
+
796
+ if (ckNOLO(opt.navigation.bullets))
797
+ punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.bullets.hide_delay_mobile : opt.navigation.bullets.hide_delay,showHideNavElements,[cp.find('.tp-bullets'),opt.navigation.bullets,"hide"]);
798
+
799
+ if (ckNOLO(opt.navigation.thumbnails))
800
+ punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.thumbnails.hide_delay_mobile : opt.navigation.thumbnails.hide_delay,showHideNavElements,[cp.find('.tp-thumbs'),opt.navigation.thumbnails,"hide"]);
801
+
802
+ if (ckNOLO(opt.navigation.tabs))
803
+ punchgs.TweenLite.delayedCall(_ISM ? opt.navigation.tabs.hide_delay_mobile : opt.navigation.tabs.hide_delay,showHideNavElements,[cp.find('.tp-tabs'),opt.navigation.tabs,"hide"]);
804
+ };
805
+
806
+ var showHideNavElements = function(container,opt,dir,speed) {
807
+ speed = speed===undefined ? 0.5 : speed;
808
+ switch (dir) {
809
+ case "show":
810
+ punchgs.TweenLite.to(container,speed, {autoAlpha:1,ease:punchgs.Power3.easeInOut,overwrite:"auto"});
811
+ break;
812
+ case "hide":
813
+ punchgs.TweenLite.to(container,speed, {autoAlpha:0,ease:punchgs.Power3.easeInOu,overwrite:"auto"});
814
+ break;
815
+ }
816
+
817
+ };
818
+
819
+
820
+ // ADD ARROWS
821
+ var initArrows = function(container,o,opt) {
822
+
823
+ // SET oIONAL CLASSES
824
+ o.style = o.style === undefined ? "" : o.style;
825
+ o.left.style = o.left.style === undefined ? "" : o.left.style;
826
+ o.right.style = o.right.style === undefined ? "" : o.right.style;
827
+
828
+
829
+ // ADD LEFT AND RIGHT ARROWS
830
+ if (container.find('.tp-leftarrow.tparrows').length===0)
831
+ container.append('<div class="tp-leftarrow tparrows '+o.style+' '+o.left.style+'">'+o.tmp+'</div>');
832
+ if (container.find('.tp-rightarrow.tparrows').length===0)
833
+ container.append('<div class="tp-rightarrow tparrows '+o.style+' '+o.right.style+'">'+o.tmp+'</div>');
834
+ var la = container.find('.tp-leftarrow.tparrows'),
835
+ ra = container.find('.tp-rightarrow.tparrows');
836
+ if (o.rtl) {
837
+ // CLICK HANDLINGS ON LEFT AND RIGHT ARROWS
838
+ la.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 0;container.revnext();});
839
+ ra.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 1;container.revprev();});
840
+ } else {
841
+ // CLICK HANDLINGS ON LEFT AND RIGHT ARROWS
842
+ ra.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 0;container.revnext();});
843
+ la.click(function() { opt.sc_indicator="arrow"; opt.sc_indicator_dir = 1;container.revprev();});
844
+ }
845
+ // SHORTCUTS
846
+ o.right.j = container.find('.tp-rightarrow.tparrows');
847
+ o.left.j = container.find('.tp-leftarrow.tparrows')
848
+
849
+ // OUTTUER PADDING DEFAULTS
850
+ o.padding_top = parseInt((opt.carousel.padding_top||0),0),
851
+ o.padding_bottom = parseInt((opt.carousel.padding_bottom||0),0);
852
+
853
+ // POSITION OF ARROWS
854
+ setNavElPositions(la,o.left,opt);
855
+ setNavElPositions(ra,o.right,opt);
856
+
857
+ o.left.opt = opt;
858
+ o.right.opt = opt;
859
+
860
+
861
+ if (o.position=="outer-left" || o.position=="outer-right") opt.outernav = true;
862
+ };
863
+
864
+
865
+ // PUT ELEMENTS VERTICAL / HORIZONTAL IN THE RIGHT POSITION
866
+ var putVinPosition = function(el,o,opt) {
867
+
868
+ var elh = el.outerHeight(true),
869
+ elw = el.outerWidth(true),
870
+ oh = o.opt== undefined ? 0 : opt.conh == 0 ? opt.height : opt.conh,
871
+ by = o.container=="layergrid" ? opt.sliderLayout=="fullscreen" ? opt.height/2 - (opt.gridheight[opt.curWinRange]*opt.bh)/2 : (opt.autoHeight=="on" || (opt.minHeight!=undefined && opt.minHeight>0)) ? oh/2 - (opt.gridheight[opt.curWinRange]*opt.bh)/2 : 0 : 0,
872
+ a = o.v_align === "top" ? {top:"0px",y:Math.round(o.v_offset+by)+"px"} : o.v_align === "center" ? {top:"50%",y:Math.round(((0-elh/2)+o.v_offset))+"px"} : {top:"100%",y:Math.round((0-(elh+o.v_offset+by)))+"px"};
873
+ if (!el.hasClass("outer-bottom")) punchgs.TweenLite.set(el,a);
874
+
875
+ };
876
+
877
+ var putHinPosition = function(el,o,opt) {
878
+
879
+ var elh = el.outerHeight(true),
880
+ elw = el.outerWidth(true),
881
+ bx = o.container=="layergrid" ? opt.sliderType==="carousel" ? 0 : opt.width/2 - (opt.gridwidth[opt.curWinRange]*opt.bw)/2 : 0,
882
+ a = o.h_align === "left" ? {left:"0px",x:Math.round(o.h_offset+bx)+"px"} : o.h_align === "center" ? {left:"50%",x:Math.round(((0-elw/2)+o.h_offset))+"px"} : {left:"100%",x:Math.round((0-(elw+o.h_offset+bx)))+"px"};
883
+ punchgs.TweenLite.set(el,a);
884
+ };
885
+
886
+ // SET POSITION OF ELEMENTS
887
+ var setNavElPositions = function(el,o,opt) {
888
+
889
+ var wrapper =
890
+ el.closest('.tp-simpleresponsive').length>0 ?
891
+ el.closest('.tp-simpleresponsive') :
892
+ el.closest('.tp-revslider-mainul').length>0 ?
893
+ el.closest('.tp-revslider-mainul') :
894
+ el.closest('.rev_slider_wrapper').length>0 ?
895
+ el.closest('.rev_slider_wrapper'):
896
+ el.parent().find('.tp-revslider-mainul'),
897
+ ww = wrapper.width(),
898
+ wh = wrapper.height();
899
+
900
+ putVinPosition(el,o,opt);
901
+ putHinPosition(el,o,opt);
902
+
903
+ if (o.position==="outer-left" && (o.sliderLayout=="fullwidth" || o.sliderLayout=="fullscreen"))
904
+ punchgs.TweenLite.set(el,{left:(0-el.outerWidth())+"px",x:o.h_offset+"px"});
905
+ else
906
+ if (o.position==="outer-right" && (o.sliderLayout=="fullwidth" || o.sliderLayout=="fullscreen"))
907
+ punchgs.TweenLite.set(el,{right:(0-el.outerWidth())+"px",x:o.h_offset+"px"});
908
+
909
+
910
+ // MAX WIDTH AND HEIGHT BASED ON THE SOURROUNDING CONTAINER
911
+ if (el.hasClass("tp-thumbs") || el.hasClass("tp-tabs")) {
912
+
913
+ var wpad = el.data('wr_padding'),
914
+ maxw = el.data('maxw'),
915
+ maxh = el.data('maxh'),
916
+ mask = el.hasClass("tp-thumbs") ? el.find('.tp-thumb-mask') : el.find('.tp-tab-mask'),
917
+ cpt = parseInt((o.padding_top||0),0),
918
+ cpb = parseInt((o.padding_bottom||0),0);
919
+
920
+
921
+ // ARE THE CONTAINERS BIGGER THAN THE SLIDER WIDTH OR HEIGHT ?
922
+ if (maxw>ww && o.position!=="outer-left" && o.position!=="outer-right") {
923
+ punchgs.TweenLite.set(el,{left:"0px",x:0,maxWidth:(ww-2*wpad)+"px"});
924
+ punchgs.TweenLite.set(mask,{maxWidth:(ww-2*wpad)+"px"});
925
+ } else {
926
+ punchgs.TweenLite.set(el,{maxWidth:(maxw)+"px"});
927
+ punchgs.TweenLite.set(mask,{maxWidth:(maxw)+"px"});
928
+ }
929
+
930
+ if (maxh+2*wpad>wh && o.position!=="outer-bottom" && o.position!=="outer-top") {
931
+ punchgs.TweenLite.set(el,{top:"0px",y:0,maxHeight:(cpt+cpb+(wh-2*wpad))+"px"});
932
+ punchgs.TweenLite.set(mask,{maxHeight:(cpt+cpb+(wh-2*wpad))+"px"});
933
+ } else {
934
+ punchgs.TweenLite.set(el,{maxHeight:(maxh)+"px"});
935
+ punchgs.TweenLite.set(mask,{maxHeight:maxh+"px"});
936
+ }
937
+
938
+ if (o.position!=="outer-left" && o.position!=="outer-right") {
939
+ cpt = 0;
940
+ cpb = 0;
941
+ }
942
+
943
+ // SPAN IS ENABLED
944
+ if (o.span===true && o.direction==="vertical") {
945
+ punchgs.TweenLite.set(el,{maxHeight:(cpt+cpb+(wh-2*wpad))+"px",height:(cpt+cpb+(wh-2*wpad))+"px",top:(0-cpt),y:0});
946
+ putVinPosition(mask,o,opt);
947
+ } else
948
+
949
+ if (o.span===true && o.direction==="horizontal") {
950
+ punchgs.TweenLite.set(el,{maxWidth:"100%",width:(ww-2*wpad)+"px",left:0,x:0});
951
+ putHinPosition(mask,o,opt);
952
+ }
953
+ }
954
+ };
955
+
956
+
957
+ // ADD A BULLET
958
+ var addBullet = function(container,o,li,opt) {
959
+
960
+ // Check if Bullet exists already ?
961
+ if (container.find('.tp-bullets').length===0) {
962
+ o.style = o.style === undefined ? "" : o.style;
963
+ container.append('<div class="tp-bullets '+o.style+' '+o.direction+'"></div>');
964
+ }
965
+
966
+ // Add Bullet Structure to the Bullet Container
967
+ var bw = container.find('.tp-bullets'),
968
+ linkto = li.data('index'),
969
+ inst = o.tmp;
970
+
971
+ jQuery.each(opt.thumbs[li.index()].params,function(i,obj) { inst = inst.replace(obj.from,obj.to);})
972
+
973
+
974
+ bw.append('<div class="justaddedbullet tp-bullet">'+inst+'</div>');
975
+
976
+ // SET BULLET SPACES AND POSITION
977
+ var b = container.find('.justaddedbullet'),
978
+ am = container.find('.tp-bullet').length,
979
+ w = b.outerWidth()+parseInt((o.space===undefined? 0:o.space),0),
980
+ h = b.outerHeight()+parseInt((o.space===undefined? 0:o.space),0);
981
+
982
+ //bgimage = li.data('thumb') !==undefined ? li.data('thumb') : li.find('.defaultimg').data('lazyload') !==undefined && li.find('.defaultimg').data('lazyload') !== 'undefined' ? li.find('.defaultimg').data('lazyload') : li.find('.defaultimg').data('src');
983
+
984
+ if (o.direction==="vertical") {
985
+
986
+ b.css({top:((am-1)*h)+"px", left:"0px"});
987
+ bw.css({height:(((am-1)*h) + b.outerHeight()),width:b.outerWidth()});
988
+ }
989
+ else {
990
+
991
+ b.css({left:((am-1)*w)+"px", top:"0px"});
992
+ bw.css({width:(((am-1)*w) + b.outerWidth()),height:b.outerHeight()});
993
+ }
994
+
995
+ b.find('.tp-bullet-image').css({backgroundImage:'url('+opt.thumbs[li.index()].src+')'});
996
+ // SET LINK TO AND LISTEN TO CLICK
997
+ b.data('liref',linkto);
998
+ b.click(function() {
999
+ opt.sc_indicator="bullet";
1000
+ container.revcallslidewithid(linkto);
1001
+ container.find('.tp-bullet').removeClass("selected");
1002
+ jQuery(this).addClass("selected");
1003
+
1004
+ });
1005
+ // REMOVE HELP CLASS
1006
+ b.removeClass("justaddedbullet");
1007
+
1008
+ // OUTTUER PADDING DEFAULTS
1009
+ o.padding_top = parseInt((opt.carousel.padding_top||0),0),
1010
+ o.padding_bottom = parseInt((opt.carousel.padding_bottom||0),0);
1011
+ o.opt = opt;
1012
+ if (o.position=="outer-left" || o.position=="outer-right") opt.outernav = true;
1013
+
1014
+ bw.addClass("nav-pos-hor-"+o.h_align);
1015
+ bw.addClass("nav-pos-ver-"+o.v_align);
1016
+ bw.addClass("nav-dir-"+o.direction);
1017
+
1018
+ // PUT ALL CONTAINER IN POSITION
1019
+ setNavElPositions(bw,o,opt);
1020
+ };
1021
+
1022
+
1023
+ var cHex = function(hex,o){
1024
+ o = parseFloat(o);
1025
+ hex = hex.replace('#','');
1026
+ var r = parseInt(hex.substring(0,2), 16),
1027
+ g = parseInt(hex.substring(2,4), 16),
1028
+ b = parseInt(hex.substring(4,6), 16),
1029
+ result = 'rgba('+r+','+g+','+b+','+o+')';
1030
+ return result;
1031
+ };
1032
+
1033
+ // ADD THUMBNAILS
1034
+ var addThumb = function(container,o,li,what,opt) {
1035
+ var thumbs = what==="tp-thumb" ? ".tp-thumbs" : ".tp-tabs",
1036
+ thumbmask = what==="tp-thumb" ? ".tp-thumb-mask" : ".tp-tab-mask",
1037
+ thumbsiw = what==="tp-thumb" ? ".tp-thumbs-inner-wrapper" : ".tp-tabs-inner-wrapper",
1038
+ thumb = what==="tp-thumb" ? ".tp-thumb" : ".tp-tab",
1039
+ timg = what ==="tp-thumb" ? ".tp-thumb-image" : ".tp-tab-image";
1040
+
1041
+ o.visibleAmount = o.visibleAmount>opt.slideamount ? opt.slideamount : o.visibleAmount;
1042
+ o.sliderLayout = opt.sliderLayout;
1043
+
1044
+ // Check if THUNBS/TABS exists already ?
1045
+ if (container.parent().find(thumbs).length===0) {
1046
+ o.style = o.style === undefined ? "" : o.style;
1047
+
1048
+ var spanw = o.span===true ? "tp-span-wrapper" : "",
1049
+ addcontent = '<div class="'+what+'s '+spanw+" "+o.position+" "+o.style+'"><div class="'+what+'-mask"><div class="'+what+'s-inner-wrapper" style="position:relative;"></div></div></div>';
1050
+
1051
+ if (o.position==="outer-top")
1052
+ container.parent().prepend(addcontent)
1053
+ else
1054
+ if (o.position==="outer-bottom")
1055
+ container.after(addcontent);
1056
+ else
1057
+ container.append(addcontent);
1058
+
1059
+ // OUTTUER PADDING DEFAULTS
1060
+ o.padding_top = parseInt((opt.carousel.padding_top||0),0),
1061
+ o.padding_bottom = parseInt((opt.carousel.padding_bottom||0),0);
1062
+
1063
+ if (o.position=="outer-left" || o.position=="outer-right") opt.outernav = true;
1064
+ }
1065
+
1066
+
1067
+
1068
+ // Add Thumb/TAB Structure to the THUMB/TAB Container
1069
+ var linkto = li.data('index'),
1070
+ t = container.parent().find(thumbs),
1071
+ tm = t.find(thumbmask),
1072
+ tw = tm.find(thumbsiw),
1073
+ maxw = o.direction==="horizontal" ? (o.width * o.visibleAmount) + (o.space*(o.visibleAmount-1)) : o.width,
1074
+ maxh = o.direction==="horizontal" ? o.height : (o.height * o.visibleAmount) + (o.space*(o.visibleAmount-1)),
1075
+ inst = o.tmp;
1076
+ jQuery.each(opt.thumbs[li.index()].params,function(i,obj) {
1077
+ inst = inst.replace(obj.from,obj.to);
1078
+ })
1079
+
1080
+
1081
+ tw.append('<div data-liindex="'+li.index()+'" data-liref="'+linkto+'" class="justaddedthumb '+what+'" style="width:'+o.width+'px;height:'+o.height+'px;">'+inst+'</div>');
1082
+
1083
+
1084
+ // SET BULLET SPACES AND POSITION
1085
+ var b = t.find('.justaddedthumb'),
1086
+ am = t.find(thumb).length,
1087
+ w = b.outerWidth()+parseInt((o.space===undefined? 0:o.space),0),
1088
+ h = b.outerHeight()+parseInt((o.space===undefined? 0:o.space),0);
1089
+
1090
+ // FILL CONTENT INTO THE TAB / THUMBNAIL
1091
+ b.find(timg).css({backgroundImage:"url("+opt.thumbs[li.index()].src+")"});
1092
+
1093
+
1094
+ if (o.direction==="vertical") {
1095
+ b.css({top:((am-1)*h)+"px", left:"0px"});
1096
+ tw.css({height:(((am-1)*h) + b.outerHeight()),width:b.outerWidth()});
1097
+ }
1098
+ else {
1099
+ b.css({left:((am-1)*w)+"px", top:"0px"});
1100
+ tw.css({width:(((am-1)*w) + b.outerWidth()),height:b.outerHeight()});
1101
+ }
1102
+
1103
+ t.data('maxw',maxw);
1104
+ t.data('maxh',maxh);
1105
+ t.data('wr_padding',o.wrapper_padding);
1106
+ var position = o.position === "outer-top" || o.position==="outer-bottom" ? "relative" : "absolute",
1107
+ _margin = (o.position === "outer-top" || o.position==="outer-bottom") && (o.h_align==="center") ? "auto" : "0";
1108
+
1109
+
1110
+ tm.css({maxWidth:maxw+"px",maxHeight:maxh+"px",overflow:"hidden",position:"relative"});
1111
+ t.css({maxWidth:(maxw)+"px",/*margin:_margin, */maxHeight:maxh+"px",overflow:"visible",position:position,background:o.wrapper_color,padding:o.wrapper_padding+"px",boxSizing:"contet-box"});
1112
+
1113
+
1114
+
1115
+ // SET LINK TO AND LISTEN TO CLICK
1116
+ b.click(function() {
1117
+
1118
+ opt.sc_indicator="bullet";
1119
+ var dis = container.parent().find(thumbsiw).data('distance');
1120
+ dis = dis === undefined ? 0 : dis;
1121
+ if (Math.abs(dis)<10) {
1122
+ container.revcallslidewithid(linkto);
1123
+ container.parent().find(thumbs).removeClass("selected");
1124
+ jQuery(this).addClass("selected");
1125
+ }
1126
+ });
1127
+ // REMOVE HELP CLASS
1128
+ b.removeClass("justaddedthumb");
1129
+
1130
+ o.opt = opt;
1131
+
1132
+ t.addClass("nav-pos-hor-"+o.h_align);
1133
+ t.addClass("nav-pos-ver-"+o.v_align);
1134
+ t.addClass("nav-dir-"+o.direction);
1135
+
1136
+ // PUT ALL CONTAINER IN POSITION
1137
+ setNavElPositions(t,o,opt);
1138
+ };
1139
+
1140
+ var setONHeights = function(o) {
1141
+ var ot = o.c.parent().find('.outer-top'),
1142
+ ob = o.c.parent().find('.outer-bottom');
1143
+ o.top_outer = !ot.hasClass("tp-forcenotvisible") ? ot.outerHeight() || 0 : 0;
1144
+ o.bottom_outer = !ob.hasClass("tp-forcenotvisible") ? ob.outerHeight() || 0 : 0;
1145
+ };
1146
+
1147
+
1148
+ // HIDE NAVIGATION ON PURPOSE
1149
+ var biggerNav = function(el,a,b,c) {
1150
+ if (a>b || b>c)
1151
+ el.addClass("tp-forcenotvisible")
1152
+ else
1153
+ el.removeClass("tp-forcenotvisible");
1154
+ };
1155
+
1156
+ })(jQuery);