index.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.LanguageCode }}">
  3. {{ partial "components/head.html" . }}
  4. <!-- Start of HubSpot Embed Code -->
  5. <script type="text/javascript" id="hs-script-loader" async defer src="//js-na1.hs-scripts.com/20485755.js"></script>
  6. <!-- End of HubSpot Embed Code -->
  7. <body>
  8. <div id="all" style="overflow: hidden;">
  9. {{ partial "components/nav.html" . }}
  10. <div id="home">
  11. {{ partial "components/carousel.html" . }}
  12. {{ partial "components/main.html" . }}
  13. {{ partial "components/serve.html" . }}
  14. {{ partial "LP_components/blogs_tab.html" . }}
  15. {{ partial "LP_components/Footer.html" . }}
  16. </div>
  17. <!-- {{ partial "nav.html" . }}
  18. {{ partial "LP_components/hero.html" . }}
  19. {{ partial "LP_components/video.html" . }}
  20. {{ partial "LP_components/use_cases.html" . }}
  21. {{ partial "LP_components/steps.html" . }}
  22. {{ partial "LP_components/features.html" . }}
  23. {{ partial "LP_components/blogs_tab.html" . }}
  24. {{ partial "LP_components/action.html" . }}
  25. {{ partial "LP_components/Footer.html" . }}
  26. {{ partial "LP_components/news.html" . }} -->
  27. </div>
  28. <!-- /#all -->
  29. {{ partial "components/scripts.html" . }}
  30. <script>
  31. function tabLP() {
  32. if (('.m-tabs').length) {
  33. // Show the first tab by default
  34. $('.blog-tabs-stage>div').hide();
  35. $('.blog-tabs-stage>div:first').show();
  36. $('.blog-tabs-nav li:first').addClass('blog-tab-active');
  37. // Change tab class and display content
  38. $('.blog-tabs-nav a').on('click', function (event) {
  39. event.preventDefault();
  40. $('.blog-tabs-nav li').removeClass('blog-tab-active');
  41. $(this).parent().addClass('blog-tab-active');
  42. $('.blog-tabs-stage>div').hide();
  43. $($(this).attr('href')).show();
  44. });
  45. }
  46. }
  47. tabLP();
  48. function debounce(func, wait = 20, immediate = true) {
  49. var timeout;
  50. return function () {
  51. var context = this, args = arguments;
  52. var later = function () {
  53. timeout = null;
  54. if (!immediate) func.apply(context, args);
  55. };
  56. var callNow = immediate && !timeout;
  57. clearTimeout(timeout);
  58. timeout = setTimeout(later, wait);
  59. if (callNow) func.apply(context, args);
  60. };
  61. };
  62. const featuresBlock = document.querySelectorAll('.features-block');
  63. const featuresRow = document.querySelectorAll('.sec-features .row');
  64. function checkSlide() {
  65. featuresRow.forEach((block, i) => {
  66. // half way through the image
  67. const slideInAt = (window.scrollY + window.innerHeight) - block.offsetHeight / 2;
  68. // bottom of the image
  69. const isHalfShown = slideInAt > block.offsetTop;
  70. if (isHalfShown) {
  71. console.log('active');
  72. featuresBlock[i].classList.add('active');
  73. }
  74. });
  75. }
  76. window.addEventListener('scroll', debounce(checkSlide));
  77. $('.navbar-nav .dropdown:nth-of-type(2)').click(function () {
  78. $('html, body').animate({
  79. scrollTop: $("#sec-features").offset().top
  80. }, 1000);
  81. })
  82. var swiper = new Swiper(".mySwiper", {
  83. pagination: {
  84. el: ".swiper-pagination",
  85. clickable: true,
  86. },
  87. });
  88. </script>
  89. </body>
  90. </html>