footer.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <footer class="footer">
  2. <div class="container" style="margin:0 auto;">
  3. <div class="row">
  4. <div class="col-12 col-lg-4 about-list">
  5. <section>
  6. <h4>相關連結</h4>
  7. <div class="d-flex justify-content-lg-center">
  8. <ul>
  9. <li>
  10. <a href="https://event.hhh.com.tw/agent/lecture.html" target="_blank">
  11. <img src="https://hhh.com.tw/hhh_index/images/menu/freelecture.svg" alt="免費報名幸福講堂">
  12. 免費報名幸福講堂
  13. </a>
  14. </li>
  15. <li>
  16. <a href="https://event.hhh.com.tw/agent/" target="_blank">
  17. <img src="https://hhh.com.tw/hhh_index/images/menu/agent.svg" alt="幸福經紀人">
  18. 幸福經紀人 <span>0800-366-086</span>
  19. </a>
  20. </li>
  21. <!-- <li>
  22. <a href="">
  23. <img src="https://hhh.com.tw/hhh_index/images/menu/lecture.svg" alt="">
  24. 講堂活動
  25. </a>
  26. </li> -->
  27. <li>
  28. <a href="http://gstv.com.tw/" target="_blank">
  29. <img src="https://hhh.com.tw/hhh_index/images/menu/tv.svg" alt="幸福空間居家台">
  30. 幸福空間居家台
  31. </a>
  32. </li>
  33. <li>
  34. <a href="https://event.hhh.com.tw/contest/2018/" target="_blank">
  35. <img src="https://hhh.com.tw/hhh_index/images/menu/prize.svg" alt="ADA 亞洲設計獎">
  36. ADA 亞洲設計獎
  37. </a>
  38. </li>
  39. <!-- <li>
  40. <a href="">
  41. <img src="https://hhh.com.tw/hhh_index/images/menu/champion.svg" alt="">
  42. 國際設計大獎代辦
  43. </a>
  44. </li> -->
  45. <li>
  46. <a href="https://www.leju.com.tw/" target="_blank">
  47. <img src="https://hhh.com.tw/hhh_index/images/menu/Image-1@2x.png" alt="樂居網">
  48. 樂居網
  49. </a>
  50. </li>
  51. </ul>
  52. </div>
  53. </section>
  54. </div>
  55. <div class="col-12 col-lg-4 follow-list">
  56. <section>
  57. <h4>追蹤我們</h4>
  58. <div class="d-flex flex-column align-items-center">
  59. <section class="media">
  60. <a href="https://www.facebook.com/hhhfb" target="_blank">
  61. <img src="../../img/media/fb.svg" alt="Facebook" class="media-item before">
  62. <img src="../../img/media/fb_h.svg" alt="Facebook" class="media-item after">
  63. </a>
  64. <a href="https://page.line.me/ovs4341s?openQrModal=true" target="_blank">
  65. <img src="../../img/media/ln.svg" alt="Line" class="media-item before">
  66. <img src="../../img/media/ln_h.svg" alt="Line" class="media-item after">
  67. </a>
  68. <a href="https://www.youtube.com/user/gorgeousspace" target="_blank">
  69. <img src="../../img/media/yt.svg" alt="YouTube" class="media-item before">
  70. <img src="../../img/media/yt_h.svg" alt="YouTube" class="media-item after">
  71. </a>
  72. <a href="https://www.instagram.com/gorgeous_space/" target="_blank">
  73. <img src="../../img/media/ig.svg" alt="Instagram" class="media-item before">
  74. <img src="../../img/media/ig_h.svg" alt="Instagram" class="media-item after">
  75. </a>
  76. <!-- <a href="" target="_blank">
  77. <img src="../../img/media/rb.svg" alt="" class="media-item before">
  78. <img src="../../img/media/rb_h.svg" alt="" class="media-item after rounded-circle">
  79. </a> -->
  80. <a href="https://www.tiktok.com/@gorgeousspace" target="_blank">
  81. <img src="../../img/media/tt.svg" alt="Tiktok" class="media-item before">
  82. <img src="../../img/media/tt_h.svg" alt="Tiktok" class="media-item after rounded-circle">
  83. </a>
  84. </section>
  85. <!-- <section class="fb-list">
  86. <a href="https://www.facebook.com/agent.hhh.com.tw" target="_blank">
  87. <img src="hhh_index/images/media/fb_h.svg" alt="agent">
  88. 幸福經紀人粉絲專頁
  89. </a>
  90. <a href="https://www.facebook.com/retire.tw/" target="_blank">
  91. <img src="hhh_index/images/media/fb_h.svg" alt="retire">
  92. 退休好幸福粉絲專頁
  93. </a>
  94. </section> -->
  95. </div>
  96. </section>
  97. </div>
  98. <div class="col-12 col-lg-4 more-list">
  99. <section>
  100. <h4 class="d-none d-lg-block">了解更多</h4>
  101. <div class="d-flex flex-column mt-2 mt-lg-0">
  102. <section class="subscriber-item">
  103. <input type="email" placeholder="訂閱電子報,請輸入您的 Email">
  104. <button class="d-flex justify-content-center align-items-center subscriber-btn">
  105. <span class="spinner-border spinner-border-sm me-2" role="status" aria-hidden="true"></span>
  106. <p>訂閱</p>
  107. </button>
  108. </section>
  109. <div class="d-lg-flex justify-content-center">
  110. <section class="mt-4 link">
  111. <a href="https://hhh.com.tw/about/contact/" target="_blank">
  112. 聯絡我們
  113. </a>
  114. <a href="https://hhh.com.tw/about/privacy_policy" target="_blank">
  115. 隱私保護
  116. </a>
  117. <a href="https://hhh.com.tw/about/" target="_blank">
  118. 關於我們
  119. </a>
  120. <a href="https://hhh.com.tw/about/timeline/" target="_blank">
  121. 公司歷程
  122. </a>
  123. <a href="https://www.104.com.tw/company/d6hr8sg" target="_blank">
  124. 企業徵才
  125. </a>
  126. <a href="https://hhh.com.tw/about/sitemap/" target="_blank">
  127. 網站地圖
  128. </a>
  129. </section>
  130. </div>
  131. </div>
  132. </section>
  133. </div>
  134. <h2 class="d-none d-md-block">
  135. 幸福空間 版權所有 © Gorgeous Space Co.Ltd. All Rights Reserved
  136. </h2>
  137. <h2 class="d-block d-md-none">
  138. 幸福空間 版權所有 <br> © Gorgeous Space Co.Ltd. All Rights Reserved
  139. </h2>
  140. </div>
  141. </div>
  142. </footer>
  143. <script>
  144. $(".follow-list a").on({
  145. mouseenter: function () {
  146. // $(this).find(".media-item.before").hide();
  147. // $(this).find(".media-item.after").show();
  148. $(this).find(".media-item.before").css("opacity", "0");
  149. $(this).find(".media-item.after").css("opacity", "1");
  150. },
  151. mouseleave: function () {
  152. // $(this).find(".media-item.before").show();
  153. // $(this).find(".media-item.after").hide();
  154. $(this).find(".media-item.before").css("opacity", "1");
  155. $(this).find(".media-item.after").css("opacity", "0");
  156. }
  157. });
  158. let formData = {
  159. email: ""
  160. };
  161. // 訂閱
  162. $('.subscriber-btn, .subscriber-mb-btn').on('click', function () {
  163. let parent = $(this).closest('.subscriber-item'); // 對應父元素
  164. parent.find('.spinner-border').addClass('show');
  165. let mail = parent.find('input').val();
  166. console.log("Input value:", mail);
  167. let regex = /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;
  168. let validate = regex.test(mail); // 判斷 mail 格式
  169. if (!validate) {
  170. parent.addClass('input-error');
  171. parent.find('.spinner-border').removeClass('show');
  172. parent.find('button p').text('email 格式錯誤');
  173. } else {
  174. parent.removeClass('input-error');
  175. let formData = { email: mail };
  176. let email = JSON.stringify(formData);
  177. $.ajax({
  178. method: "post",
  179. url: "https://hhh.com.tw/adapter/index?http_method=POST&api_url=/third/v1/edm/subscriber",
  180. contentType: "application/json",
  181. data: email
  182. }).done((data) => {
  183. parent.find('.spinner-border').removeClass('show');
  184. parent.find('button p').text('已完成訂閱!');
  185. }).fail((error) => {
  186. parent.find('.spinner-border').removeClass('show');
  187. parent.find('button p').text('訂閱失敗,請稍後再試');
  188. });
  189. }
  190. });
  191. $('.subscriber-item input').on('focusin', function () {
  192. console.log('focusin');
  193. let parent = $(this).closest('.subscriber-item');
  194. parent.addClass('input-focus');
  195. let buttonText = parent.find('button p').text();
  196. if (buttonText !== "訂閱") {
  197. parent.find('button p').text('訂閱');
  198. parent.removeClass('input-error');
  199. }
  200. }).on('focusout', function () {
  201. $(this).closest('.subscriber-item').removeClass('input-focus');
  202. });
  203. // $('.subscriber-item button').on('click', function () {
  204. // $('.subscriber-item .spinner-border').addClass('show');
  205. // let mail = $('.subscriber-item input').val();
  206. // console.log("$('.subscriber-item input')", $('.subscriber-item input'));
  207. // let regex = /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
  208. // let validate = regex.test(mail); // 判斷 mail 格式
  209. // if (!validate) {
  210. // $('.subscriber-item').addClass('input-error');
  211. // $('.subscriber-item .spinner-border').removeClass('show');
  212. // $('.subscriber-item button p').text('email 格式錯誤');
  213. // } else {
  214. // $('.subscriber-item').removeClass('input-error');
  215. // formData.email = mail;
  216. // let email = JSON.stringify(formData);
  217. // $.ajax({
  218. // method: "post",
  219. // url: "https://hhh.com.tw/adapter/index?http_method=POST&api_url=/third/v1/edm/subscriber",
  220. // type: "json",
  221. // data: {
  222. // data: email
  223. // }
  224. // }).done((data) => {
  225. // $('.subscriber-item .spinner-border').removeClass('show');
  226. // $('.subscriber-item button p').text('已完成訂閱!');
  227. // }).fail((error) => {
  228. // $('.subscriber-item .spinner-border').removeClass('show');
  229. // });
  230. // }
  231. // })
  232. // $('.subscriber-item input').focusin(
  233. // function () {
  234. // console.log('focusin');
  235. // $('.subscriber-item').addClass('input-focus');
  236. // let buttonText = $('.subscriber-item button p').text();
  237. // if (buttonText !== "訂閱") {
  238. // $('.subscriber-item button p').text('訂閱');
  239. // $('.subscriber-item').removeClass('input-error');
  240. // }
  241. // }).focusout(
  242. // function () {
  243. // $('.subscriber-item').removeClass('input-focus');
  244. // });
  245. </script>