phcthemes_admin_panel_pack 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/Rakefile +0 -5
  4. data/lib/phcthemes_admin_panel_pack/railtie.rb +4 -0
  5. data/lib/phcthemes_admin_panel_pack/version.rb +1 -1
  6. data/lib/phcthemes_admin_panel_pack.rb +1 -1
  7. metadata +10 -239
  8. data/app/assets/config/phcthemes_admin_panel_pack_manifest.js +0 -3
  9. data/app/assets/javascripts/common/backstretch/jquery.backstretch.js +0 -1602
  10. data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +0 -7013
  11. data/app/assets/javascripts/common/bootstrap/bootstrap.three.js +0 -2377
  12. data/app/assets/javascripts/common/bootstrap-datepicker/bootstrap-datepicker.js +0 -2039
  13. data/app/assets/javascripts/common/bootstrap-markdown/bootstrap-markdown.js +0 -1390
  14. data/app/assets/javascripts/common/bootstrap-select/bootstrap-select.js +0 -3139
  15. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js +0 -46
  16. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js.map +0 -1
  17. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.min.js +0 -8
  18. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js +0 -51
  19. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js.map +0 -1
  20. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.min.js +0 -8
  21. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js +0 -46
  22. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js.map +0 -1
  23. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.min.js +0 -8
  24. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js +0 -39
  25. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js.map +0 -1
  26. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.min.js +0 -8
  27. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js +0 -46
  28. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js.map +0 -1
  29. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.min.js +0 -8
  30. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js +0 -46
  31. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js.map +0 -1
  32. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.min.js +0 -8
  33. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js +0 -46
  34. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js.map +0 -1
  35. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.min.js +0 -8
  36. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js +0 -39
  37. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js.map +0 -1
  38. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.min.js +0 -8
  39. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js +0 -39
  40. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js.map +0 -1
  41. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.min.js +0 -8
  42. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js +0 -46
  43. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js.map +0 -1
  44. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.min.js +0 -8
  45. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js +0 -39
  46. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js.map +0 -1
  47. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.min.js +0 -8
  48. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js +0 -39
  49. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js.map +0 -1
  50. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.min.js +0 -8
  51. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js +0 -46
  52. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js.map +0 -1
  53. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.min.js +0 -8
  54. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js +0 -46
  55. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js.map +0 -1
  56. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.min.js +0 -8
  57. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js +0 -46
  58. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js.map +0 -1
  59. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.min.js +0 -8
  60. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js +0 -46
  61. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js.map +0 -1
  62. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.min.js +0 -8
  63. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js +0 -39
  64. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js.map +0 -1
  65. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.min.js +0 -8
  66. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js +0 -41
  67. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js.map +0 -1
  68. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.min.js +0 -8
  69. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js +0 -39
  70. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js.map +0 -1
  71. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.min.js +0 -8
  72. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js +0 -46
  73. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js.map +0 -1
  74. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.min.js +0 -8
  75. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js +0 -46
  76. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js.map +0 -1
  77. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.min.js +0 -8
  78. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js +0 -46
  79. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js.map +0 -1
  80. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.min.js +0 -8
  81. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js +0 -46
  82. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js.map +0 -1
  83. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.min.js +0 -8
  84. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js +0 -46
  85. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js.map +0 -1
  86. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.min.js +0 -8
  87. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js +0 -39
  88. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js.map +0 -1
  89. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.min.js +0 -8
  90. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js +0 -39
  91. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js.map +0 -1
  92. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.min.js +0 -8
  93. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js +0 -39
  94. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js.map +0 -1
  95. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.min.js +0 -8
  96. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js +0 -39
  97. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js.map +0 -1
  98. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.min.js +0 -8
  99. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js +0 -40
  100. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js.map +0 -1
  101. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.min.js +0 -8
  102. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js +0 -40
  103. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js.map +0 -1
  104. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.min.js +0 -8
  105. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js +0 -39
  106. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js.map +0 -1
  107. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.min.js +0 -8
  108. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js +0 -44
  109. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js.map +0 -1
  110. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.min.js +0 -8
  111. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js +0 -46
  112. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js.map +0 -1
  113. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.min.js +0 -8
  114. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js +0 -46
  115. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js.map +0 -1
  116. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.min.js +0 -8
  117. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js +0 -39
  118. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js.map +0 -1
  119. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.min.js +0 -8
  120. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js +0 -46
  121. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js.map +0 -1
  122. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.min.js +0 -8
  123. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js +0 -39
  124. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js.map +0 -1
  125. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.min.js +0 -8
  126. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js +0 -39
  127. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js.map +0 -1
  128. data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.min.js +0 -8
  129. data/app/assets/javascripts/common/chartjs/chart.js +0 -14680
  130. data/app/assets/javascripts/common/custom/custom.js +0 -0
  131. data/app/assets/javascripts/common/datatables/datatables.js +0 -15310
  132. data/app/assets/javascripts/common/daterangepicker/daterangepicker.js +0 -1565
  133. data/app/assets/javascripts/common/fastclick/fastclick.js +0 -841
  134. data/app/assets/javascripts/common/flexslider/jquery.flexslider.js +0 -1252
  135. data/app/assets/javascripts/common/greenstock/greensock.js +0 -36
  136. data/app/assets/javascripts/common/icheck/icheck.js +0 -509
  137. data/app/assets/javascripts/common/imagesloaded/imagesloaded.pkgd.js +0 -497
  138. data/app/assets/javascripts/common/isotope/isotope.pkgd.js +0 -3563
  139. data/app/assets/javascripts/common/jquery/jquery-3.4.1.js +0 -10598
  140. data/app/assets/javascripts/common/jquery-countdown/jquery.countdown.js +0 -246
  141. data/app/assets/javascripts/common/jquery-filterizer/jquery.filterizr.min.js +0 -1
  142. data/app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js +0 -44
  143. data/app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js +0 -281
  144. data/app/assets/javascripts/common/jquery-slimscroll/jquery.slimscroll.js +0 -474
  145. data/app/assets/javascripts/common/jquery-sparkline/jquery.sparkline.js +0 -3054
  146. data/app/assets/javascripts/common/jquery-ui/jquery-ui.js +0 -18706
  147. data/app/assets/javascripts/common/jquery-validation/jquery.validate.js +0 -1650
  148. data/app/assets/javascripts/common/jqvmap/jquery.vmap.js +0 -1281
  149. data/app/assets/javascripts/common/jqvmap/jquery.vmap.min.js +0 -10
  150. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js +0 -2
  151. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.asia.js +0 -2
  152. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.australia.js +0 -2
  153. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.europe.js +0 -2
  154. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.north-america.js +0 -2
  155. data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.south-america.js +0 -2
  156. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.algeria.js +0 -2
  157. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.argentina.js +0 -1
  158. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.brazil.js +0 -2
  159. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.canada.js +0 -2
  160. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.europe.js +0 -2
  161. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.france.js +0 -1
  162. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.germany.js +0 -2
  163. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.greece.js +0 -1
  164. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iran.js +0 -6
  165. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iraq.js +0 -1
  166. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.russia.js +0 -2
  167. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.tunisia.js +0 -2
  168. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.turkey.js +0 -11
  169. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.usa.js +0 -2
  170. data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.world.js +0 -2
  171. data/app/assets/javascripts/common/js-cookie/js.cookie.js +0 -165
  172. data/app/assets/javascripts/common/layerslider/layerslider.kreaturamedia.jquery.js +0 -13
  173. data/app/assets/javascripts/common/layerslider/layerslider.origami.js +0 -13
  174. data/app/assets/javascripts/common/layerslider/layerslider.timeline.js +0 -13
  175. data/app/assets/javascripts/common/layerslider/layerslider.transitions.js +0 -13
  176. data/app/assets/javascripts/common/leaflet/leaflet.js +0 -5
  177. data/app/assets/javascripts/common/magnific-popup/jquery.magnific-popup.js +0 -1860
  178. data/app/assets/javascripts/common/mapbox/mapbox.js +0 -51
  179. data/app/assets/javascripts/common/metismenu/metisMenu.js +0 -340
  180. data/app/assets/javascripts/common/moderizer/modernizr.js +0 -11
  181. data/app/assets/javascripts/common/owl-carousel/owl.carousel.js +0 -3448
  182. data/app/assets/javascripts/common/pace/pace.js +0 -935
  183. data/app/assets/javascripts/common/paroller/jquery.paroller.js +0 -228
  184. data/app/assets/javascripts/common/particlejs/particles.js +0 -1541
  185. data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.common.js +0 -1318
  186. data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.esm.js +0 -1316
  187. data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.js +0 -1324
  188. data/app/assets/javascripts/common/plyr/plyr.js +0 -9137
  189. data/app/assets/javascripts/common/rangeslider/rangeslider.js +0 -498
  190. data/app/assets/javascripts/common/retina/retina.js +0 -100
  191. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.actions.js +0 -386
  192. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.carousel.js +0 -365
  193. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.kenburn.js +0 -199
  194. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.layeranimation.js +0 -2524
  195. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.migration.js +0 -260
  196. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.navigation.js +0 -1156
  197. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.parallax.js +0 -465
  198. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.slideanims.js +0 -1447
  199. data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.video.js +0 -1464
  200. data/app/assets/javascripts/common/rev-slider/jquery.themepunch.revolution.js +0 -3286
  201. data/app/assets/javascripts/common/rev-slider/jquery.themepunch.tools.min.js +0 -8710
  202. data/app/assets/javascripts/common/scrollup/jquery.scrollUp.js +0 -168
  203. data/app/assets/javascripts/common/select2/select2.full.js +0 -6597
  204. data/app/assets/javascripts/common/selectbox/jquery.selectBox.js +0 -1092
  205. data/app/assets/javascripts/common/smooth-scroll/SmoothScroll.js +0 -788
  206. data/app/assets/javascripts/common/spectrum/spectrum.js +0 -2323
  207. data/app/assets/javascripts/common/stepper/jquery.fs.stepper.js +0 -339
  208. data/app/assets/javascripts/common/swiper/swiper.js +0 -8124
  209. data/app/assets/javascripts/common/toaster/toastr.js +0 -476
  210. data/app/assets/javascripts/common/typed/typed.js +0 -1045
  211. data/app/assets/javascripts/common/visable/jquery.visible.js +0 -68
  212. data/app/assets/javascripts/common/waypoints/jquery.waypoints.js +0 -662
  213. data/app/assets/javascripts/phcthemes_admin_panel_pack_adminlte.js +0 -12
  214. data/app/assets/javascripts/phcthemes_admin_panel_pack_basic.js +0 -5
  215. data/app/assets/javascripts/phcthemes_admin_panel_pack_boomerang.js +0 -0
  216. data/app/assets/javascripts/phcthemes_admin_panel_pack_coloradmin.js +0 -10
  217. data/app/assets/javascripts/phcthemes_admin_panel_pack_inspinia.js +0 -10
  218. data/app/assets/javascripts/phcthemes_admin_panel_pack_metronic.js +0 -4
  219. data/app/assets/javascripts/phcthemes_admin_panel_pack_quilpro.js +0 -5
  220. data/app/assets/javascripts/phcthemes_admin_panel_pack_starlight.js +0 -5
  221. data/app/assets/javascripts/themes/adminlte/custom/custom.js +0 -0
  222. data/app/assets/javascripts/themes/adminlte/theme/adminlte.js +0 -1141
  223. data/app/assets/javascripts/themes/boomerang/custom/custom.1.js +0 -0
  224. data/app/assets/javascripts/themes/boomerang/custom/custom.js +0 -0
  225. data/app/assets/javascripts/themes/coloradmin/theme/apps.js +0 -1650
  226. data/app/assets/javascripts/themes/coloradmin/theme/default.js +0 -152
  227. data/app/assets/javascripts/themes/inspinia/custom/custom.js +0 -0
  228. data/app/assets/javascripts/themes/inspinia/theme/inspinia.js +0 -279
  229. data/app/assets/javascripts/themes/metronic/theme/scripts.bundle.js +0 -9916
  230. data/app/assets/javascripts/themes/metronic/theme/vendors.bundle.js +0 -91352
  231. data/app/assets/stylesheets/common/custom/custom.scss +0 -0
  232. data/app/assets/stylesheets/phcthemes_admin_panel_pack_adminlte.scss +0 -13
  233. data/app/assets/stylesheets/phcthemes_admin_panel_pack_basic.scss +0 -6
  234. data/app/assets/stylesheets/phcthemes_admin_panel_pack_boomerang.scss +0 -24
  235. data/app/assets/stylesheets/phcthemes_admin_panel_pack_coloradmin.scss +0 -15
  236. data/app/assets/stylesheets/phcthemes_admin_panel_pack_inspinia.scss +0 -15
  237. data/app/assets/stylesheets/phcthemes_admin_panel_pack_metronic.scss +0 -7
  238. data/app/assets/stylesheets/phcthemes_admin_panel_pack_quilpro.scss +0 -16
  239. data/app/assets/stylesheets/phcthemes_admin_panel_pack_starlight.scss +0 -12
  240. data/app/assets/stylesheets/themes/adminlte/custom/custom.scss +0 -0
  241. data/app/assets/stylesheets/themes/boomerang/custom/custom.scss +0 -0
  242. data/app/assets/stylesheets/themes/coloradmin/custom/custom.scss +0 -0
  243. data/lib/phcthemes_admin_panel_pack/engine.rb +0 -19
@@ -1,1156 +0,0 @@
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);