Advertisement
Guest User

Untitled

a guest
Mar 30th, 2023
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.17 KB | None | 0 0
  1. // OWL SLIDER CUSTOM JS
  2.  
  3. jQuery(document).ready(function() {
  4.  
  5. /* ---------------------------------------------- /*
  6. * Header Sticky
  7. /* ---------------------------------------------- */
  8.  
  9. jQuery(window).scroll(function(){
  10. if (jQuery(window).scrollTop() >= 100) {
  11. jQuery('.header-sticky').addClass('header-fixed-top');
  12. jQuery('.header-sticky').removeClass('not-sticky');
  13. jQuery('.navbar-collapse').removeClass('show');
  14. }
  15. else {
  16. jQuery('.header-sticky').removeClass('header-fixed-top');
  17. jQuery('.header-sticky').addClass('not-sticky');
  18. }
  19. });
  20.  
  21.  
  22. /* ---------------------------------------------- /*
  23. * Scroll top
  24. /* ---------------------------------------------- */
  25.  
  26. jQuery(window).scroll(function() {
  27. if (jQuery(this).scrollTop() > 100) {
  28. jQuery('.page-scroll-up').fadeIn();
  29. } else {
  30. jQuery('.page-scroll-up').fadeOut();
  31. }
  32. });
  33.  
  34. jQuery('a[href="#totop"]').click(function() {
  35. jQuery('html, body').animate({ scrollTop: 0 }, 'slow');
  36. return false;
  37. });
  38.  
  39.  
  40. // Accodian Js
  41. function toggleIcon(e) {
  42. jQuery(e.target)
  43. .prev('.panel-heading')
  44. .find(".more-less")
  45. .toggleClass('fa-plus-square-o fa-minus-square-o');
  46. }
  47. jQuery('.panel-group').on('hidden.bs.collapse', toggleIcon);
  48. jQuery('.panel-group').on('shown.bs.collapse', toggleIcon);
  49.  
  50.  
  51. //Search Popup Box
  52.  
  53. jQuery(function () {
  54. jQuery('a[href="#search-popup"]').on('click', function(event) {
  55. event.preventDefault();
  56. jQuery('#search-popup').addClass('open');
  57. jQuery('#search-popup > form > input[type="search-popup"]').focus();
  58. });
  59.  
  60. jQuery('#search-popup, #search-popup button.close').on('click keyup', function(event) {
  61. if (event.target == this || event.target.className == 'close' || event.keyCode == 27) {
  62. jQuery(this).removeClass('open');
  63. }
  64. });
  65. });
  66.  
  67.  
  68. jQuery("#theme-main-slider").owlCarousel({
  69. navigation : true, // Show next and prev buttons
  70. slideSpeed : 300,
  71. animateIn: custom_data.arilewp_main_slider_aniamte_in,
  72. animateOut: custom_data.arilewp_main_slider_aniamte_out,
  73. autoplay : 7000,
  74. smartSpeed: custom_data.arilewp_main_slider_smart_speed,
  75. autoplayTimeout: 10000,
  76. autoplayHoverPause:true,
  77. singleItem:true,
  78. mouseDrag: custom_data.arilewp_main_slider_mouse_drag_disabled,
  79. touchDrag: custom_data.arilewp_main_slider_mouse_drag_disabled,
  80. loop:true, // loop is true up to 1199px screen.
  81. nav:true, // is true across all sizes
  82. margin:0, // margin 10px till 960 breakpoint
  83. autoHeight: true,
  84. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  85. items: 1,
  86. dots: false,
  87. navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"]
  88. });
  89.  
  90.  
  91.  
  92. jQuery("#project-slider").owlCarousel({
  93. navigation : true, // Show next and prev buttons
  94. autoplay: true,
  95. autoplayTimeout: custom_data.arilewp_project_scroll_speed,
  96. autoplayHoverPause: true,
  97. smartSpeed: custom_data.arilewp_project_smart_speed,
  98. mouseDrag: custom_data.arilewp_project_mouse_drag_disabled,
  99.  
  100. loop:true, // loop is true up to 1199px screen.
  101. nav:true, // is true across all sizes
  102. margin:30, // margin 10px till 960 breakpoint
  103. autoHeight: true,
  104. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  105. //items: 3,
  106. dots: false,
  107. navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],
  108. responsive:{
  109. 100:{ items:1 },
  110. 480:{ items:1 },
  111. 768:{ items:2 },
  112. 1000:{ items:custom_data.arilewp_project_column_layout }
  113. }
  114. });
  115.  
  116. jQuery("#testimonial-slider").owlCarousel({
  117. //navigation : true, // Show next and prev buttons
  118. autoplay: true,
  119. autoplayTimeout: custom_data.arilewp_testimonial_scroll_speed,
  120. autoplayHoverPause: true,
  121. smartSpeed: custom_data.arilewp_testimonial_smart_speed,
  122. mouseDrag: custom_data.arilewp_testimonial_mouse_drag_disabled,
  123.  
  124. loop:true, // loop is true up to 1199px screen.
  125. nav:false, // is true across all sizes
  126. margin:30, // margin 10px till 960 breakpoint
  127. autoHeight: true,
  128. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  129. //items: 1,
  130. dots: true,
  131. navText: ["<i class='fa fa-arrow-left'></i>","<i class='fa fa-arrow-right'></i>"],
  132.  
  133. responsive:{
  134. 100:{ items:1 },
  135. 480:{ items:1 },
  136. 768:{ items:2 },
  137. 1000:{ items:custom_data.arilewp_testimonial_column_layout }
  138.  
  139. }
  140. });
  141.  
  142. jQuery("#team-slider").owlCarousel({
  143. navigation : true, // Show next and prev buttons
  144. autoplay: true,
  145. autoplayTimeout: custom_data.arilewp_team_scroll_speed,
  146. autoplayHoverPause: true,
  147. smartSpeed: custom_data.arilewp_team_smart_speed,
  148. mouseDrag: custom_data.arilewp_team_mouse_drag_disabled,
  149.  
  150. loop:true, // loop is true up to 1199px screen.
  151. nav:false, // is true across all sizes
  152. margin:30, // margin 10px till 960 breakpoint
  153.  
  154. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  155. //items: 5,
  156. dots: true,
  157. navText: ["<i class='fa fa-arrow-left'></i>","<i class='fa fa-arrow-right'></i>"],
  158. responsive:{
  159. 100:{ items:1 },
  160. 480:{ items:1 },
  161. 768:{ items:2 },
  162. 1000:{ items:custom_data.arilewp_team_column_layout }
  163. }
  164. });
  165.  
  166. jQuery("#product-slider").owlCarousel({
  167. navigation : true, // Show next and prev buttons
  168. autoplay: true,
  169. autoplayTimeout: custom_data.arilewp_wooshop_scroll_speed,
  170. autoplayHoverPause: true,
  171. smartSpeed: custom_data.arilewp_wooshop_smart_speed,
  172. mouseDrag: custom_data.arilewp_wooshop_mouse_drag_disabled,
  173.  
  174. loop:true, // loop is true up to 1199px screen.
  175. nav:false, // is true across all sizes
  176. margin:30, // margin 10px till 960 breakpoint
  177. autoHeight: true,
  178. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  179. //items: 3,
  180. dots: true,
  181. navText: ["<i class='fa fa-arrow-left'></i>","<i class='fa fa-arrow-right'></i>"],
  182. responsive:{
  183. 100:{ items:1 },
  184. 480:{ items:1 },
  185. 768:{ items:2 },
  186. 1000:{ items:custom_data.arilewp_wooshop_column_layout }
  187. }
  188. });
  189.  
  190. jQuery("#sponsors-slider").owlCarousel({
  191. navigation : true, // Show next and prev buttons
  192. autoplay: true,
  193. autoplayTimeout: custom_data.arilewp_client_scroll_speed,
  194. autoplayHoverPause: true,
  195. smartSpeed: custom_data.arilewp_client_smart_speed,
  196. mouseDrag: custom_data.arilewp_client_mouse_drag_disabled,
  197.  
  198. loop:true, // loop is true up to 1199px screen.
  199. nav:true, // is true across all sizes
  200. margin:30, // margin 10px till 960 breakpoint
  201. autoHeight: true,
  202. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  203. //items: 3,
  204. dots: false,
  205. navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],
  206. responsive:{
  207. 100:{ items:1 },
  208. 480:{ items:1 },
  209. 768:{ items:2 },
  210. 1000:{ items:custom_data.arilewp_client1_column_layout }
  211. }
  212. });
  213.  
  214.  
  215. jQuery("#related-posts-slider").owlCarousel({
  216. navigation : true, // Show next and prev buttons
  217. autoplay: true,
  218. autoplayTimeout: 1500,
  219. autoplayHoverPause: true,
  220. smartSpeed: 1300,
  221.  
  222. loop:true, // loop is true up to 1199px screen.
  223. nav:true, // is true across all sizes
  224. margin:30, // margin 10px till 960 breakpoint
  225. autoHeight: true,
  226. responsiveClass:true, // Optional helper class. Add 'owl-reponsive-' + 'breakpoint' class to main element.
  227. //items: 3,
  228. dots: false,
  229. navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],
  230. responsive:{
  231. 100:{ items:1 },
  232. 480:{ items:1 },
  233. 768:{ items:2 },
  234. 1000:{ items:2 }
  235. }
  236. });
  237.  
  238.  
  239.  
  240. });
  241.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement