scripts.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {{ template "_internal/google_analytics.html" . }}
  2. <script src="//code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
  3. crossorigin="anonymous"></script>
  4. <!-- <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> -->
  5. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
  6. integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
  7. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.js"></script>
  8. <script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.js"></script>
  9. <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
  10. <script src="//cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script>
  11. <script src="//cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0/jquery.counterup.min.js"></script>
  12. <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-parallax/1.1.3/jquery-parallax.js"></script>
  13. <!-- AOS -->
  14. <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
  15. <script>
  16. AOS.init();
  17. </script>
  18. {{ if and .Site.Params.enableGoogleMaps .Site.Params.googleMapsApiKey }}
  19. <script src="//maps.googleapis.com/maps/api/js?key={{.Site.Params.googleMapsApiKey}}&v=3.exp"></script>
  20. <!-- <script src="{{ " js/hpneo.gmaps.js" | relURL }}"></script> -->
  21. <!-- <script src="{{ " js/gmaps.init.js" | relURL }}"></script> -->
  22. <script src="{{ " js/bhouse.js" | relURL }}"></script>
  23. {{ end }}
  24. {{ if and .Site.Params.enableRecaptchaInContactForm .Site.Params.googleRecaptchaKey }}
  25. <script src="//www.google.com/recaptcha/api.js" async defer></script>
  26. {{ end }}
  27. <!-- <script src="{{ " js/front.js" | relURL }}"></script> -->
  28. <!-- owl carousel -->
  29. <!-- <script src="{{ " js/owl.carousel.min.js" | relURL }}"></script> -->
  30. <script src="/js/bhouse.js"></script>
  31. <script>
  32. $(".bt_slogan_portfolio").click(function () {
  33. $(".bt_slogan_portfolio").fadeOut();
  34. $(".bt_slogan").css('display','block');
  35. // 收合後下方內容往上移
  36. setTimeout(()=>{
  37. $(".bt_container").addClass('bt_container_margin');
  38. },100)
  39. });
  40. $(".bt_slogan").click(function () {
  41. $(".bt_slogan_portfolio").fadeIn();
  42. $(".bt_slogan").css('display','none');
  43. $(".bt_container").removeClass('bt_container_margin');
  44. });
  45. </script>