|
@@ -251,8 +251,17 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
|
|
|
- <div class="row">
|
|
|
+ <div class="row flex-column-reverse flex-md-row">
|
|
|
<div class="col-md-7 col-lg-8">
|
|
|
+ <div class="d-none d-md-block main-title">
|
|
|
+ <h2>
|
|
|
+ 您有裝修設計需求? <br> 想了解裝修預算方案?
|
|
|
+ </h2>
|
|
|
+ <h3>
|
|
|
+ 填寫您的裝修需求,立即獲得裝修計算方案與幸福經紀人專人服務
|
|
|
+ </h3>
|
|
|
+ </div>
|
|
|
+
|
|
|
<!-- 文章列表 -->
|
|
|
<div class="main px-3 py-3 py-md-5">
|
|
|
<div class="d-flex justify-content-center">
|
|
@@ -269,13 +278,22 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-5 col-lg-4">
|
|
|
- <div class="card form-block px-0">
|
|
|
+ <div class="d-block d-md-none main-title">
|
|
|
+ <h2>
|
|
|
+ 您有裝修設計需求? <br> 想了解裝修預算方案?
|
|
|
+ </h2>
|
|
|
+ <h3>
|
|
|
+ 填寫您的裝修需求,立即獲得裝修計算方案與幸福經紀人專人服務
|
|
|
+ </h3>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div id="rightSidebar" class="card form-block px-md-0">
|
|
|
<card-title class="d-none d-md-block">
|
|
|
<a href="https://hhh.com.tw/" class="logo">
|
|
|
<img alt="logo" src="https://m.hhh.com.tw/_nuxt/img/def1b0a.svg" />
|
|
|
</a>
|
|
|
</card-title>
|
|
|
- <div class="card-body px-0 px-xl-3">
|
|
|
+ <div class="card-body px-md-0 px-xl-3">
|
|
|
<form>
|
|
|
<div class="mb-3">
|
|
|
<label for="name" class="form-label">姓名*</label>
|
|
@@ -2317,7 +2335,7 @@
|
|
|
let badges = item.tags.map(tag => `<p>${tag}</p>`).join(' ');
|
|
|
let itemStr = JSON.stringify(item);
|
|
|
resultHtml +=
|
|
|
- `<div class="col-12 col-sm-6 col-md-12 col-lg-4 pb-4">
|
|
|
+ `<div class="col-12 col-sm-6 col-md-12 col-lg-6 col-xl-4 pb-4">
|
|
|
<button data-item='${itemStr}'
|
|
|
class="modal-button h-100" data-bs-toggle="modal" data-bs-target="#columnModal">
|
|
|
<div class="card overflow-hidden h-100">
|
|
@@ -2355,6 +2373,34 @@
|
|
|
$('#columnModal .content').html(item.content)
|
|
|
$('#columnModal .cover-img').attr("src", `${item.image}`)
|
|
|
}
|
|
|
+
|
|
|
+ function setRightSidebarSticky() {
|
|
|
+
|
|
|
+ let height = $('#rightSidebar').outerHeight();
|
|
|
+ console.log('height', height);
|
|
|
+
|
|
|
+ $('#rightSidebar').css({
|
|
|
+ 'position': 'sticky',
|
|
|
+ 'top': `-${height - 935}px`
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ setRightSidebarSticky();
|
|
|
+
|
|
|
+ $(window).resize(function () {
|
|
|
+ console.log('重新計算右側 div 的高度:', setRightSidebarSticky());
|
|
|
+ });
|
|
|
+
|
|
|
+ // 監聽 accordion-item 點擊事件
|
|
|
+ $('.accordion-item').click(function () {
|
|
|
+ // setRightSidebarSticky();
|
|
|
+
|
|
|
+ $('#rightSidebar').css({
|
|
|
+ 'position': 'static',
|
|
|
+ 'top': '0'
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<script> // 2024/05/27 新增 FAQ 按鈕點擊 GA
|