interface.js 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. (function($) {
  2. 'use strict';
  3. $(function(e) {
  4. /*------------------------------------------------------------------
  5. Intro-Slider
  6. -------------------------------------------------------------------*/
  7. $('#intro .owl-carousel').owlCarousel({
  8. loop: true,
  9. margin: 0,
  10. nav: true,
  11. dots: false,
  12. animateOut: 'fadeOut',
  13. autoplay: true,
  14. autoplayTimeout: 3000,
  15. stagePadding: 0,
  16. items: 1,
  17. singleItem: true,
  18. responsive: {
  19. 0: {
  20. items: 1
  21. },
  22. 600: {
  23. items: 1
  24. },
  25. 1000: {
  26. items: 1
  27. }
  28. }
  29. });
  30. /*-------------------------------------------------------------------------------
  31. Video
  32. -------------------------------------------------------------------------------*/
  33. $('.popup-youtube').magnificPopup({
  34. type: 'iframe'
  35. });
  36. $('.popup-vimeo').magnificPopup({
  37. type: 'iframe'
  38. });
  39. $('.popup-video').magnificPopup({
  40. type: 'iframe'
  41. });
  42. /*------------------------------------------------------------------
  43. Services
  44. -------------------------------------------------------------------*/
  45. $('#services .owl-carousel').owlCarousel({
  46. loop: true,
  47. margin: 20,
  48. nav: true,
  49. dots: false,
  50. animateOut: 'fadeOut',
  51. autoplay: true,
  52. autoplayTimeout: 3000,
  53. responsive: {
  54. 0: {
  55. items: 1
  56. },
  57. 600: {
  58. items: 2
  59. },
  60. 1000: {
  61. items: 4
  62. }
  63. }
  64. });
  65. /*------------------------------------------------------------------
  66. Portfolio
  67. -------------------------------------------------------------------*/
  68. $('#portfolio-image .owl-carousel').owlCarousel({
  69. loop: true,
  70. margin: 20,
  71. nav: true,
  72. dots: false,
  73. animateOut: 'fadeOut',
  74. autoplay: true,
  75. autoplayTimeout: 3000,
  76. responsive: {
  77. 0: {
  78. items: 1
  79. },
  80. 600: {
  81. items: 1
  82. },
  83. 1000: {
  84. items: 1
  85. }
  86. }
  87. });
  88. /*------------------------------------------------------------------
  89. Partners-Logo
  90. -------------------------------------------------------------------*/
  91. $('#partners .owl-carousel').owlCarousel({
  92. loop: true,
  93. margin: 20,
  94. nav: false,
  95. dots: false,
  96. animateOut: 'fadeOut',
  97. autoplay: true,
  98. autoplayTimeout: 3000,
  99. responsive: {
  100. 0: {
  101. items: 2
  102. },
  103. 600: {
  104. items: 3
  105. },
  106. 1000: {
  107. items: 5
  108. }
  109. }
  110. });
  111. /*------------------------------------------------------------------
  112. testimonials
  113. -------------------------------------------------------------------*/
  114. $('#testimonials .owl-carousel').owlCarousel({
  115. loop: true,
  116. margin: 0,
  117. nav: false,
  118. dots: true,
  119. autoplay: true,
  120. autoplayTimeout: 3000,
  121. responsive: {
  122. 0: {
  123. items: 1
  124. },
  125. 600: {
  126. items: 1
  127. },
  128. 1000: {
  129. items: 1
  130. }
  131. }
  132. });
  133. /*------------------------------------------------------------------
  134. testimonials-2
  135. -------------------------------------------------------------------*/
  136. $('#testimonialsTwo .owl-carousel').owlCarousel({
  137. loop: true,
  138. margin: 30,
  139. nav: false,
  140. dots: true,
  141. autoplay: true,
  142. autoplayTimeout: 3000,
  143. responsive: {
  144. 0: {
  145. items: 1
  146. },
  147. 600: {
  148. items: 1
  149. },
  150. 1000: {
  151. items: 3
  152. }
  153. }
  154. });
  155. /*------------------------------------------------------------------
  156. Team
  157. -------------------------------------------------------------------*/
  158. $('#team .owl-carousel').owlCarousel({
  159. loop: true,
  160. margin: 30,
  161. nav: false,
  162. dots: true,
  163. autoplay: true,
  164. autoplayTimeout: 3000,
  165. responsive: {
  166. 0: {
  167. items: 1
  168. },
  169. 600: {
  170. items: 1
  171. },
  172. 1000: {
  173. items: 3
  174. }
  175. }
  176. });
  177. /*-------------------------------------------------------------------------------
  178. search-form
  179. -------------------------------------------------------------------------------*/
  180. $('header .search-toggle').on('click', function(e) {
  181. $(".search-form").toggleClass("main");
  182. $(this).find(".fa-search").toggleClass('fa-times');
  183. });
  184. /*-------------------------------------------------------------------------------
  185. Portfolio
  186. -------------------------------------------------------------------------------*/
  187. $(window).load(function() {
  188. var $container = $('.portfolioContainer');
  189. $container.isotope({
  190. filter: '*',
  191. animationOptions: {
  192. duration: 750,
  193. easing: 'linear',
  194. queue: false
  195. }
  196. });
  197. $('.portfolioFilter a').click(function() {
  198. $('.portfolioFilter .current').removeClass('current');
  199. $(this).addClass('current');
  200. var selector = $(this).attr('data-filter');
  201. $container.isotope({
  202. filter: selector,
  203. animationOptions: {
  204. duration: 750,
  205. easing: 'linear',
  206. queue: false
  207. }
  208. });
  209. return false;
  210. });
  211. });
  212. /*------------------------------------------------------------------
  213. Countdown
  214. -------------------------------------------------------------------*/
  215. // 2018[year] - 12[month] - 01[day]
  216. if ($('#countdown').length > 0) {
  217. $('#countdown').countdown('2019/12/01', function(event) {
  218. $(this).html(event.strftime('<span class="countdown-period">%-D <span>Day%!D</span></span> <span class="countdown-period">%H <span>Hours</span></span> <span class="countdown-period">%M <span>Minutes</span></span> <span class="countdown-period">%S <span>Seconds</span></span>'));
  219. });
  220. }
  221. /*-------------------------------------
  222. Instagram Photos
  223. -------------------------------------*/
  224. $('.instagram-photos').each(function() {
  225. $.instagramFeed({
  226. 'username': $(this).data('username'),
  227. 'container': $(this),
  228. 'display_profile': false,
  229. 'display_biography': false,
  230. 'items': $(this).data('items'),
  231. 'margin': 0,
  232. });
  233. });
  234. /*------------------------------------------------------------------
  235. Benefits
  236. -------------------------------------------------------------------*/
  237. if ($('.center-slider').length > 0) {
  238. $('.center-slider').slick({
  239. centerMode: true,
  240. centerPadding: '100px',
  241. slidesToShow: 3,
  242. slidesToScroll: 1,
  243. arrows: false,
  244. responsive: [{
  245. breakpoint: 1200,
  246. settings: {
  247. arrows: false,
  248. centerMode: true,
  249. centerPadding: '40px',
  250. slidesToShow: 1
  251. }
  252. },
  253. {
  254. breakpoint: 768,
  255. settings: {
  256. centerPadding: '10px',
  257. slidesToShow: 1
  258. }
  259. }
  260. ]
  261. });
  262. }
  263. /*------------------------------------------------------------------
  264. Testimonial
  265. -------------------------------------------------------------------*/
  266. if($('.testimonial-slider').length > 0){
  267. $('.testimonial-slider').slick({
  268. infinite: true,
  269. slidesToShow: 1,
  270. slidesToScroll: 1,
  271. arrows: false,
  272. });
  273. }
  274. });
  275. })(jQuery);