ico-landing.init.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /******/ (function() { // webpackBootstrap
  2. var __webpack_exports__ = {};
  3. /*!************************************************!*\
  4. !*** ./resources/js/pages/ico-landing.init.js ***!
  5. \************************************************/
  6. /*
  7. Template Name: Skote - Admin & Dashboard Template
  8. Author: Themesbrand
  9. Website: https://themesbrand.com/
  10. Contact: themesbrand@gmail.com
  11. File: ico landing Init Js File
  12. */
  13. // Sticky nav
  14. $(window).scroll(function () {
  15. var scroll = $(window).scrollTop();
  16. if (scroll >= 50) {
  17. $(".sticky").addClass("nav-sticky");
  18. } else {
  19. $(".sticky").removeClass("nav-sticky");
  20. }
  21. }); // Countdown
  22. $('[data-countdown]').each(function () {
  23. var $this = $(this),
  24. finalDate = $(this).data('countdown');
  25. $this.countdown(finalDate, function (event) {
  26. $(this).html(event.strftime('' + '<div class="coming-box">%D <span>Days</span></div> ' + '<div class="coming-box">%H <span>Hours</span></div> ' + '<div class="coming-box">%M <span>Minutes</span></div> ' + '<div class="coming-box">%S <span>Seconds</span></div> '));
  27. });
  28. }); // Clients carousel
  29. $('#clients-carousel, #team-carousel').owlCarousel({
  30. items: 1,
  31. loop: false,
  32. margin: 24,
  33. nav: false,
  34. dots: false,
  35. responsive: {
  36. 576: {
  37. items: 2
  38. },
  39. 768: {
  40. items: 3
  41. },
  42. 992: {
  43. items: 4
  44. }
  45. }
  46. }); // Timeline carousel
  47. $('#timeline-carousel').owlCarousel({
  48. items: 1,
  49. loop: false,
  50. margin: 0,
  51. nav: true,
  52. navText: ["<i class='mdi mdi-chevron-left'></i>", "<i class='mdi mdi-chevron-right'></i>"],
  53. dots: false,
  54. responsive: {
  55. 576: {
  56. items: 2
  57. },
  58. 768: {
  59. items: 3
  60. },
  61. 992: {
  62. items: 4
  63. }
  64. }
  65. });
  66. /******/ })()
  67. ;