slider-setting.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*---------------------------------------------------------------------
  2. File Name: slider-setting.js
  3. ---------------------------------------------------------------------*/
  4. "use strict";
  5. var tpj = jQuery;
  6. var revapi486;
  7. tpj(document).ready(function () {
  8. if (tpj("#rev_slider_486_1").revolution == undefined) {
  9. revslider_showDoubleJqueryError("#rev_slider_486_1");
  10. } else {
  11. revapi486 = tpj("#rev_slider_486_1").show().revolution({
  12. sliderType: "standard",
  13. jsFileLocation: "revolution/js/",
  14. sliderLayout: "fullscreen",
  15. dottedOverlay: "none",
  16. delay: 5000,
  17. navigation: {
  18. keyboardNavigation: "on",
  19. keyboard_direction: "horizontal",
  20. mouseScrollNavigation: "off",
  21. mouseScrollReverse: "default",
  22. onHoverStop: "on",
  23. touch: {
  24. touchenabled: "on",
  25. swipe_threshold: 75,
  26. swipe_min_touches: 1,
  27. swipe_direction: "horizontal",
  28. drag_block_vertical: false
  29. },
  30. arrows: {
  31. style: "gyges",
  32. enable: true,
  33. hide_onmobile: false,
  34. hide_onleave: true,
  35. hide_delay: 200,
  36. hide_delay_mobile: 1200,
  37. tmp: '',
  38. left: {
  39. h_align: "left",
  40. v_align: "center",
  41. h_offset: 0,
  42. v_offset: 0
  43. },
  44. right: {
  45. h_align: "right",
  46. v_align: "center",
  47. h_offset: 0,
  48. v_offset: 0
  49. }
  50. },
  51. bullets: {
  52. enable: true,
  53. hide_onmobile: true,
  54. hide_under: 800,
  55. style: "hebe",
  56. hide_onleave: false,
  57. direction: "horizontal",
  58. h_align: "center",
  59. v_align: "bottom",
  60. h_offset: 0,
  61. v_offset: 30,
  62. space: 5,
  63. tmp: '<span class="tp-bullet-image"></span><span class="tp-bullet-imageoverlay"></span><span class="tp-bullet-title"></span>'
  64. }
  65. },
  66. viewPort: {
  67. enable: true,
  68. outof: "pause",
  69. visible_area: "70%",
  70. presize: false
  71. },
  72. responsiveLevels: [1240, 1024, 778, 480],
  73. visibilityLevels: [1240, 1024, 778, 480],
  74. gridwidth: [1240, 1024, 778, 480],
  75. gridheight: [500, 450, 400, 350],
  76. lazyType: "none",
  77. parallax: {
  78. type: "scroll",
  79. origo: "enterpoint",
  80. speed: 400,
  81. levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 46, 47, 48, 49, 50, 55],
  82. type: "scroll",
  83. },
  84. shadow: 0,
  85. spinner: "off",
  86. stopLoop: "off",
  87. stopAfterLoops: -1,
  88. stopAtSlide: -1,
  89. shuffle: "off",
  90. autoHeight: "off",
  91. hideThumbsOnMobile: "off",
  92. hideSliderAtLimit: 0,
  93. hideCaptionAtLimit: 0,
  94. hideAllCaptionAtLilmit: 0,
  95. debugMode: false,
  96. fallbacks: {
  97. simplifyAll: "off",
  98. nextSlideOnWindowFocus: "off",
  99. disableFocusListener: false,
  100. }
  101. });
  102. }
  103. });