single.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.LanguageCode }}">
  3. {{ partial "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/9082955.js"></script>
  6. <!-- End of HubSpot Embed Code -->
  7. <!-- Global site tag (gtag.js) - Google Ads: 474336061 -->
  8. <script async src="https://www.googletagmanager.com/gtag/js?id=AW-474336061"></script>
  9. <script>
  10. window.dataLayer = window.dataLayer || [];
  11. function gtag(){dataLayer.push(arguments);}
  12. gtag('js', new Date());
  13. gtag('config', 'AW-474336061');
  14. </script>
  15. <!-- Google Tag Manager -->
  16. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  17. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  18. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  19. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  20. })(window,document,'script','dataLayer','GTM-MTWWP3G');</script>
  21. <!-- End Google Tag Manager -->
  22. <body>
  23. <!-- Google Tag Manager (noscript) -->
  24. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MTWWP3G"
  25. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  26. <!-- End Google Tag Manager (noscript) -->
  27. <div id="all" style="overflow-x:hidden;">
  28. {{ partial "nav.html" . }}
  29. {{ partial "LP_components/hero.html" . }}
  30. {{ partial "LP_components/use_cases.html" . }}
  31. {{ partial "LP_components/steps.html" . }}
  32. {{ partial "LP_components/features.html" . }}
  33. {{ partial "LP_components/blogs_tab.html" . }}
  34. {{ partial "LP_components/action.html" . }}
  35. {{ partial "LP_components/Footer.html" . }}
  36. {{ partial "LP_components/news.html" . }}
  37. </div>
  38. <!-- /#all -->
  39. {{ partial "scripts.html" . }}
  40. <script>
  41. function tabLP () {
  42. console.log('pass');
  43. if(('.m-tabs').length){
  44. // Show the first tab by default
  45. $('.blog-tabs-stage>div').hide();
  46. $('.blog-tabs-stage>div:first').show();
  47. $('.blog-tabs-nav li:first').addClass('blog-tab-active');
  48. // Change tab class and display content
  49. $('.blog-tabs-nav a').on('click', function(event){
  50. event.preventDefault();
  51. $('.blog-tabs-nav li').removeClass('blog-tab-active');
  52. $(this).parent().addClass('blog-tab-active');
  53. $('.blog-tabs-stage>div').hide();
  54. $($(this).attr('href')).show();
  55. });
  56. }
  57. }
  58. tabLP();
  59. function debounce(func, wait = 20, immediate = true) {
  60. var timeout;
  61. return function() {
  62. var context = this, args = arguments;
  63. var later = function() {
  64. timeout = null;
  65. if (!immediate) func.apply(context, args);
  66. };
  67. var callNow = immediate && !timeout;
  68. clearTimeout(timeout);
  69. timeout = setTimeout(later, wait);
  70. if (callNow) func.apply(context, args);
  71. };
  72. };
  73. const featuresBlock = document.querySelectorAll('.features-block');
  74. const featuresRow = document.querySelectorAll('.sec-features .row');
  75. function checkSlide() {
  76. console.log('pass');
  77. featuresRow.forEach((block, i) => {
  78. // half way through the image
  79. const slideInAt = (window.scrollY + window.innerHeight) - block.offsetHeight / 2;
  80. console.log(slideInAt);
  81. console.log(block.offsetTop);
  82. // bottom of the image
  83. const isHalfShown = slideInAt > block.offsetTop;
  84. if (isHalfShown) {
  85. console.log('active');
  86. featuresBlock[i].classList.add('active');
  87. }
  88. });
  89. }
  90. window.addEventListener('scroll', debounce(checkSlide));
  91. $('.navbar-nav .dropdown:nth-of-type(2)').click(function() {
  92. $('html, body').animate({
  93. scrollTop: $("#sec-features").offset().top
  94. }, 1000);
  95. })
  96. </script>
  97. </body>
  98. </html>