footer.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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="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="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="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="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="hhh_index/images/menu/prize.svg" alt="ADA 亞洲設計獎">
  36. ADA 亞洲設計獎
  37. </a>
  38. </li>
  39. <!-- <li>
  40. <a href="">
  41. <img src="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="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="hhh_index/images/media/fb.svg" alt="Facebook" class="media-item before">
  62. <img src="hhh_index/images/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="hhh_index/images/media/ln.svg" alt="Line" class="media-item before">
  66. <img src="hhh_index/images/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="hhh_index/images/media/yt.svg" alt="YouTube" class="media-item before">
  70. <img src="hhh_index/images/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="hhh_index/images/media/ig.svg" alt="Instagram" class="media-item before">
  74. <img src="hhh_index/images/media/ig_h.svg" alt="Instagram" class="media-item after">
  75. </a>
  76. <!-- <a href="" target="_blank">
  77. <img src="hhh_index/images/media/rb.svg" alt="" class="media-item before">
  78. <img src="hhh_index/images/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="hhh_index/images/media/tt.svg" alt="Tiktok" class="media-item before">
  82. <img src="hhh_index/images/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">
  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. $('.subscriber-item button').on('click', function () {
  162. $('.subscriber-item .spinner-border').addClass('show');
  163. let mail = $('.subscriber-item input').val();
  164. 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])?$/;
  165. let validate = regex.test(mail); // 判斷 mail 格式
  166. if (!validate) {
  167. $('.subscriber-item').addClass('input-error');
  168. $('.subscriber-item .spinner-border').removeClass('show');
  169. $('.subscriber-item button p').text('email 格式錯誤');
  170. } else {
  171. $('.subscriber-item').removeClass('input-error');
  172. formData.email = mail;
  173. let email = JSON.stringify(formData);
  174. $.ajax({
  175. method: "post",
  176. url: "https://hhh.com.tw/adapter/index?http_method=POST&api_url=/third/v1/edm/subscriber",
  177. type: "json",
  178. data: {
  179. data: email
  180. }
  181. }).done((data) => {
  182. $('.subscriber-item .spinner-border').removeClass('show');
  183. $('.subscriber-item button p').text('已完成訂閱!');
  184. }).fail((error) => {
  185. $('.subscriber-item .spinner-border').removeClass('show');
  186. });
  187. }
  188. })
  189. $('.subscriber-item input').focusin(
  190. function () {
  191. console.log('focusin');
  192. $('.subscriber-item').addClass('input-focus');
  193. let buttonText = $('.subscriber-item button p').text();
  194. if (buttonText !== "訂閱") {
  195. $('.subscriber-item button p').text('訂閱');
  196. $('.subscriber-item').removeClass('input-error');
  197. }
  198. }).focusout(
  199. function () {
  200. $('.subscriber-item').removeClass('input-focus');
  201. });
  202. </script>