footer.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <footer class="footer position-relative">
  2. <div class="container">
  3. <div class="row">
  4. <div class="col-xs-12 col-sm-6 px-0">
  5. <img src="https://i.imgur.com/P1gNopa.png" alt="" style="width: 100%; max-width: 250px;">
  6. <div class="footer-aigirl">ChoozMo AIGV</div>
  7. <div class="footer-follow">關注我們</div>
  8. <div class="footer-socials">
  9. <a href="https://www.linkedin.com/company/choozmo/">
  10. <img src="https://i.imgur.com/qnd9QrT.png" alt="" width="32px" height="32px">
  11. </a>
  12. <a href="https://www.facebook.com/choozmo/">
  13. <img src="https://i.imgur.com/WdCAhSo.png" alt="" width="48px" height="48px">
  14. </a>
  15. <a href="https://line.me/R/ti/p/@choozmo?from=page">
  16. <img src="https://i.imgur.com/dNZ2aGW.png" alt="" width="32px" height="32px">
  17. </a>
  18. <a href="https://www.instagram.com/choozmo_cmm/">
  19. <img src="https://i.imgur.com/pdJPY7m.png" alt="" width="60px" height="60px"
  20. style="margin-left: -6px; margin-right: -8px;">
  21. </a>
  22. <a href="https://twitter.com/ai_cmm">
  23. <img src="https://i.imgur.com/qGBzq4J.png" alt="" width="32px" height="28px" style="margin-right: 3px;">
  24. </a>
  25. <a href="https://www.youtube.com/channel/UC2Qda9PhJWuiMTCZ-j7K_hg">
  26. <img src="https://i.imgur.com/zn6DUY8.png" alt="" width="38px" height="38px">
  27. </a>
  28. </div>
  29. </div>
  30. <div class="col-xs-12 col-sm-6">
  31. <div class="footer-contacts">
  32. <h5>CONTACT</h5>
  33. <div>
  34. 集仕多股份有限公司<br>新竹縣竹北市復興二路229號9樓之9<br>聯絡電話:<a
  35. href="tel:+886036670804">036670804</a><br>聯絡信箱:SERVICE@CHOOZMO.COM
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. <!-- AI 客服嵌入按鈕 -->
  42. <iframe id="iframe-content" src="https://cmm.ai/chuz/#/" allow="microphone" scrolling="no"></iframe>
  43. <!-- LINE 按鈕 -->
  44. <div class="line-btn">
  45. <a href="https://lin.ee/jYalbZq" target="_blank">
  46. <img src="/imgs/icon/line.png" alt="">
  47. </a>
  48. </div>
  49. <!-- <div class="embed-ai-btn">
  50. <iframe src="https://cmm.ai/embed-ai/#/" height="100%" width="100%" frameborder="0" allow="camera;microphone"></iframe>
  51. </div> -->
  52. <div class="privacy-consent">
  53. <p>本網站使用 Cookie 為您提供更好的用戶體驗。<br>
  54. 繼續使用本網站表示您同意我們的<a href="/privacy-policy">隱私權政策</a>。</p>
  55. <button class="agree">同意</button>
  56. </div>
  57. </footer>
  58. <script src="//code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
  59. crossorigin="anonymous"></script>
  60. <script>
  61. setTimeout(() => {
  62. const iframeContent = document.getElementById("iframe-content");
  63. window.addEventListener("message", function (event) {
  64. // 確保來自合法的來源
  65. if (event.origin !== "https://cmm.ai") {
  66. return; // 忽略來自不信任的來源的訊息
  67. }
  68. // 取得 iframe 傳遞訊息
  69. if (event.data === true) {
  70. iframeContent.style.width = "375px";
  71. iframeContent.style.height = "650px";
  72. } else if (event.data === false) {
  73. setTimeout(() => {
  74. iframeContent.style.width = "80px";
  75. iframeContent.style.height = "80px";
  76. }, 300)
  77. }
  78. });
  79. }, 1000)
  80. // 隱私權政策
  81. let privacy = localStorage.getItem("privacy");
  82. if (privacy === "false") {
  83. $('.privacy-consent').hide();
  84. } else {
  85. $('.privacy-consent').show();
  86. }
  87. $('.privacy-consent .agree').click(function (e) {
  88. e.preventDefault();
  89. $('.privacy-consent').hide();
  90. localStorage.setItem('privacy', 'false');
  91. })
  92. function setUTM() {
  93. // 取當前網址路徑
  94. let currentPath = window.location.pathname;
  95. console.log('currentPath', currentPath);
  96. let utmCampaign = ""; // utm 參數
  97. if (currentPath === "/virtual-host-solution/") {
  98. // AI 主持人
  99. utmCampaign = "AIGV";
  100. } else if (currentPath === "/AI-chatbot/") {
  101. // AI 客服
  102. utmCampaign = "AICUSTOMER";
  103. } else if (currentPath === "/ai-balanced-news-reporting/") {
  104. // AI 記者
  105. utmCampaign = "AICOPYWRITER";
  106. }
  107. let lineLink = $('a[href="https://lin.ee/jYalbZq"]');
  108. let originalHref = lineLink.attr('href');
  109. let newHref = originalHref + `?utm_source=web&utm_medium=article&utm_campaign=${utmCampaign}`;
  110. lineLink.attr('href', newHref);
  111. }
  112. setUTM();
  113. </script>