single.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. <body>
  16. <div id="all" style="overflow-x:hidden;">
  17. {{ partial "nav.html" . }}
  18. {{ partial "LP_components/hero.html" . }}
  19. {{ partial "LP_components/use_cases.html" . }}
  20. {{ partial "LP_components/steps.html" . }}
  21. {{ partial "LP_components/features.html" . }}
  22. {{ partial "LP_components/blogs_tab.html" . }}
  23. {{ partial "LP_components/action.html" . }}
  24. {{ partial "LP_components/Footer.html" . }}
  25. {{ partial "LP_components/news.html" . }}
  26. </div>
  27. <!-- /#all -->
  28. {{ partial "scripts.html" . }}
  29. <script>
  30. function tabLP () {
  31. console.log('pass');
  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. console.log('pass');
  66. featuresRow.forEach((block, i) => {
  67. // half way through the image
  68. const slideInAt = (window.scrollY + window.innerHeight) - block.offsetHeight / 2;
  69. console.log(slideInAt);
  70. console.log(block.offsetTop);
  71. // bottom of the image
  72. const isHalfShown = slideInAt > block.offsetTop;
  73. if (isHalfShown) {
  74. console.log('active');
  75. featuresBlock[i].classList.add('active');
  76. }
  77. });
  78. }
  79. window.addEventListener('scroll', debounce(checkSlide));
  80. $('.navbar-nav .dropdown:nth-of-type(2)').click(function() {
  81. $('html, body').animate({
  82. scrollTop: $("#sec-features").offset().top
  83. }, 1000);
  84. })
  85. </script>
  86. </body>
  87. </html>