|
@@ -11,7 +11,7 @@
|
|
|
<section class="bhouseweb_loc_banner">
|
|
|
<img src="/img/banner/bn_store@2x.png" class="banner-img card-img" alt="...">
|
|
|
</section>
|
|
|
- <div class="brand_content">
|
|
|
+ <div class="brand_content" id="scope">
|
|
|
<div class="card bg-transparent border-0 rounded-0">
|
|
|
<img src="/img/store/map.png" class="sec01_store_map_img card-img rounded-0" alt="...">
|
|
|
<div class="store_cta_box_reserve">
|
|
@@ -334,6 +334,26 @@
|
|
|
}
|
|
|
|
|
|
});
|
|
|
+ } else if (storeVal === "scope") {
|
|
|
+ $("*").each(function (index, element) {
|
|
|
+ var target = $("#scope");
|
|
|
+ console.log(target)
|
|
|
+ var offset = 0;
|
|
|
+ // var duration = $(this).attr("data-gt-duration");
|
|
|
+
|
|
|
+ if (target) {
|
|
|
+ //console.log("目標:" + target);
|
|
|
+ //console.log("時間:" + duration);
|
|
|
+ //console.log("位移:" + offset);
|
|
|
+
|
|
|
+ // 上方位置 = 目標區塊.位移().上方位置
|
|
|
+ var top = $(target).offset().top;
|
|
|
+
|
|
|
+ $("html").stop().animate({
|
|
|
+ scrollTop: top - offset
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
// 離開頁面前清除 localStorage
|