123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <button data-gt-target="#top" data-gt-duration="100" data-gt-offset="0" class="gotop-btn" title="GoTop">
-
- <img src="https://hhh.com.tw/hhh_index/images/icon/feather-chevron-right.svg" alt="">
- </button>
- <button title="裝修預算諮詢" class="d-none d-md-inline calculator-btn" data-ga="Go_To_Calculator">
- <a href="https://hhh.com.tw/calculator_request/index.html" target="_blank">
- <img src="https://hhh.com.tw/hhh_index/images/icon/ionic-ios-calculator.svg" alt=""
- style="width: 22px; margin-left: 3px;">
- <p>裝修計算機</p>
- </a>
- </button>
- <button title="+好物商城" class="d-none d-md-inline shop-btn" data-ga="Go_To_Shop">
- <a href="https://shop.hhh.com.tw/" target="_blank">
- <img src="https://hhh.com.tw/hhh_index/images/icon/feather-shopping-cart.svg" alt="">
- <p>+好物</p>
- </a>
- </button>
- <div class="d-md-none justify-content-evenly mb-menu">
-
- <section title="裝修計算機" data-ga="Go_To_Calculator">
- <a href="https://hhh.com.tw/calculator_request/index.html" target="_blank">
- <img src="https://hhh.com.tw/hhh_index/images/icon/calculator_request.svg" alt="裝修計算機">
- <h4>裝修計算機</h4>
- </a>
- </section>
- <section title="+好物商城" data-ga="Go_To_Shop">
- <a href="https://shop.hhh.com.tw/" target="_blank">
- <img src="https://hhh.com.tw/hhh_index/images/icon/feather-shopping-cart.svg" alt="+好物商城">
- <h4>+好物</h4>
- </a>
- </section>
- <section data-ga="Go_To_Member">
- <a href="https://m.hhh.com.tw/users">
- <img src="https://hhh.com.tw/hhh_index/images/icon/material-people.svg" alt="會員"
- style="filter: invert(67%) sepia(0%) saturate(0%) hue-rotate(242deg) brightness(91%) contrast(93%);">
- <h4>會員</h4>
- </a>
- </section>
- </div>
- <script>
- $(".gotop-btn").click(() => {
- $("html, body").animate(
- {
- scrollTop: 0,
- }, 0
- );
- });
-
- $(".calculator-btn").hover(function () {
- $(".calculator-btn").addClass("show");
- }, function () {
- $(".calculator-btn").removeClass("show");
- });
- $(".shop-btn").hover(function () {
- $(".shop-btn").addClass("show");
- }, function () {
- $(".shop-btn").removeClass("show");
- });
-
- $(window).scroll(function () {
- if ($(this).scrollTop()) {
- $('#btn-box').fadeIn();
- } else {
- $('#btn-box').fadeOut();
- }
- });
-
-
-
-
-
-
-
-
-
-
-
- </script>
- <script>
- document.querySelector('button[data-ga="Go_To_Calculator"]').addEventListener('click', function () {
- dataLayer.push({
- 'event': 'Go_To_Calculator',
- 'btn_location': 'FixedBTN'
- });
- });
- document.querySelector('button[data-ga="Go_To_Shop"]').addEventListener('click', function () {
- dataLayer.push({
- 'event': 'Go_To_Shop',
- 'btn_location': 'FixedBTN'
- });
- });
- </script>
|