result.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <!-- Google Tag Manager -->
  5. <script>(function (w, d, s, l, i) {
  6. w[l] = w[l] || []; w[l].push({
  7. 'gtm.start':
  8. new Date().getTime(), event: 'gtm.js'
  9. }); var f = d.getElementsByTagName(s)[0],
  10. j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
  11. 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
  12. })(window, document, 'script', 'dataLayer', 'GTM-W3RJHTZ');</script>
  13. <!-- End Google Tag Manager -->
  14. <!-- Google tag (gtag.js) ga4-->
  15. <script async src="https://www.googletagmanager.com/gtag/js?id=G-97LXHMH1GQ"></script>
  16. <script>
  17. window.dataLayer = window.dataLayer || [];
  18. function gtag() { dataLayer.push(arguments); }
  19. gtag('js', new Date());
  20. gtag('config', 'G-97LXHMH1GQ');
  21. </script>
  22. <meta charset="UTF-8" />
  23. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  24. <meta http-equiv="X-UA-Compatible" content="ie=edge, Chrome=1" />
  25. <meta http-equiv="Cache-Control" content="no-cache" />
  26. <meta name="copyright" content="2021 © 幸福空間 │ All Rights Reserved." />
  27. <meta name="creation-date" content="2021-08-05 12:00:04 GTM+8" />
  28. <meta name="description" content="滿足您幸福空間裝修預算需求的最佳方案!輸入您的裝修需求類型與坪數,立即獲得量身定制的預算方案,並享受專人幸福經紀人的洽詢服務。" />
  29. <meta name="distribution" content="Taiwan" />
  30. <meta name="keywords" content="" />
  31. <meta name="revisit-after" content="1 days" />
  32. <meta name="robots" content="all" />
  33. <meta name="format-detection" content="telephone=no" />
  34. <meta property="og:description" content="滿足您幸福空間裝修預算需求的最佳方案!輸入您的裝修需求類型與坪數,立即獲得量身定制的預算方案,並享受專人幸福經紀人的洽詢服務。" />
  35. <meta property="og:site_name" content="幸福空間" />
  36. <meta property="og:title" content="幸福空間 - 裝修預算方案說明" />
  37. <meta property="og:type" content="website" />
  38. <meta property="og:locale" content="zh_TW" />
  39. <title>幸福空間 - 裝修預算方案說明</title>
  40. <link rel="icon" href="/hhh_index/images/favicon.ico" />
  41. <!--<link rel="stylesheet" href="hhh_index/css/reset.css" /> -->
  42. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
  43. integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous" />
  44. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
  45. integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous" />
  46. <!-- <link rel="stylesheet" href="css/jquery-ui.css"> -->
  47. <!-- <link rel="stylesheet" type="text/css" href="hhh_index/css/slick.css" />
  48. <link rel="stylesheet" type="text/css" href="hhh_index/css/slick-theme.css" /> -->
  49. <!-- <link rel="stylesheet" href="hhh_index/css/list-style.css" /> -->
  50. <link rel="stylesheet" href="./css/style.css?a=2" />
  51. <link rel="stylesheet" href="./css/request.css?v=2" />
  52. <!-- <script src="https://unpkg.com/axios/dist/axios.min.js"></script> -->
  53. <link rel="preconnect" href="https://fonts.googleapis.com" />
  54. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  55. <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500&display=swap" rel="stylesheet" />
  56. <script type="application/ld+json">
  57. {
  58. "@context": "https://schema.org",
  59. "@type": "LocalBusiness",
  60. "@id": "https://hhh.com.tw/",
  61. "image": ["https://hhh.com.tw/_nuxt/img/def1b0a.svg"],
  62. "name": "幸福空間股份有限公司",
  63. "address": "110台北市信義區菸廠路88號五樓之6",
  64. "url": "https://hhh.com.tw/",
  65. "telephone": "+886-2-6617-0123"
  66. }
  67. </script>
  68. <script type="application/ld+json">
  69. {
  70. "@context": "https://schema.org",
  71. "@type": "Organization",
  72. "url": "https://hhh.com.tw/",
  73. "logo": "https://hhh.com.tw/_nuxt/img/def1b0a.svg",
  74. "name": "幸福空間",
  75. "sameAs": [
  76. "https://www.facebook.com/hhhfb/",
  77. "https://page.line.me/ovs4341s",
  78. "https://www.youtube.com/user/gorgeousspace",
  79. "https://www.instagram.com/gorgeous_space/"
  80. ],
  81. "contactPoint": [
  82. {
  83. "@type": "ContactPoint",
  84. "areaServed": "TW",
  85. "telephone": "+886-2-6617-0123",
  86. "contactType": "customer service",
  87. "availableLanguage": "Chinese"
  88. }
  89. ]
  90. }
  91. </script>
  92. <script type="application/ld+json">
  93. {
  94. "@context": "https://schema.org",
  95. "@type": "WebSite",
  96. "name": "幸福空間-室內設計、裝潢、居家生活、影音平台",
  97. "author": "幸福空間",
  98. "url": "https://hhh.com.tw/",
  99. "potentialAction": {
  100. "@type": "SearchAction",
  101. "target": "https://hhh.com.tw/search/lists/case/{search_term_string}-keyword/",
  102. "query-input": "required name=search_term_string"
  103. }
  104. }
  105. </script>
  106. </head>
  107. <body style="overflow-x: hidden" id="top" class="wholeBody">
  108. <!-- 結果頁面 -->
  109. <div class="container-fluid" style="background: #FAFAFA;">
  110. <div class="container result-content">
  111. <a href="https://hhh.com.tw/" class="d-flex justify-content-center logo">
  112. <img alt="logo" src="https://m.hhh.com.tw/_nuxt/img/def1b0a.svg" />
  113. </a>
  114. <h3 class="bg-text">BudgetBudget</h3> <!-- 背景文字 -->
  115. <div class="row line">
  116. <div class="col-12 col-lg-8 position-relative">
  117. <!-- 只有全室裝修需顯示分類 tab -->
  118. <ul class="tab-list">
  119. <li>
  120. <a href="javascript:;" class="tab-item">簡裝</a>
  121. </li>
  122. <li>
  123. <a href="javascript:;" class="tab-item">精裝</a>
  124. </li>
  125. <li>
  126. <a href="javascript:;" class="tab-item">豪華</a>
  127. </li>
  128. <div id="underline"></div>
  129. </ul>
  130. <div class="card-item">
  131. <div class="row main-info">
  132. <div class="col-6 col-xl-5 d-flex align-items-center justify-content-center">
  133. <div class="chart-box">
  134. <canvas id="chart"></canvas>
  135. </div>
  136. <p class="chart-text">
  137. <span id="total_value">8500</span> 萬
  138. </p>
  139. <p class="chart-text range">
  140. <span id="total_min">800</span> 萬 <br>
  141. <span class="tilde">~</span> <br>
  142. <span id="total_max">1500</span> 萬
  143. </p>
  144. </div>
  145. <div class="col-5 d-flex align-items-center justify-content-center h-100">
  146. <div class="price-card">
  147. <ul class="main">
  148. <li>基礎工程 <span id="basic_engineering"></span> 萬</li>
  149. <li class="d-inline d-sm-none">/</li>
  150. <li>硬體工程 <span id="hardware_engineering"></span> 萬</li>
  151. <li>軟裝家居 <span id="decorated_home"></span> 萬</li>
  152. <li class="d-inline d-sm-none">/</li>
  153. <li>家電設備 <span id="home_appliances"></span> 萬</li>
  154. </ul>
  155. <ul class="partial">
  156. <li>
  157. <p>廚房翻新</p> <span id="kitchen_renovation"></span> 萬
  158. </li>
  159. <li>
  160. <p>浴室翻新</p> <span id="bathroom_refurbishment"></span> 萬
  161. </li>
  162. <li>
  163. <p>天花板</p> <span id="ceiling"></span> 萬
  164. </li>
  165. <li>
  166. <p>門窗翻新</p> <span id="windows_and_doors"></span> 萬
  167. </li>
  168. <li>
  169. <p>地板翻新</p> <span id="floor_renewal"></span> 萬
  170. </li>
  171. </ul>
  172. <small>僅供參考,實際以設計師報價為主。</small>
  173. </div>
  174. </div>
  175. <div class="col-12 info-card">
  176. <div class="row">
  177. <div class="col-12 col-lg-3 border-end d-flex align-items-center px-md-4">
  178. <ul>
  179. <li>裝修所在地:<span id="city_val">台北市</span></li>
  180. <li>坪數:<span id="area_val">28</span> 坪</li>
  181. </ul>
  182. </div>
  183. <div class="col-12 col-lg-6 border-end caption">
  184. <section>
  185. <h3 id="ca_type">全室裝修</h3>
  186. <small id="ca_type_description">適合新成屋、<br>老屋翻新</small>
  187. </section>
  188. <p id="ca_type_content">說明內容說明內容說明內容說明內容說明內容說明內容說明內容說明內容說明內容說明內容</p>
  189. </div>
  190. <div class="col-12 col-lg-3 d-flex">
  191. <button class="reset-btn">
  192. <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"
  193. class="bi bi-arrow-clockwise" viewBox="0 0 16 16">
  194. <path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z" />
  195. <path
  196. d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z" />
  197. </svg>
  198. 重新填寫
  199. </button>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. <div class="col-12 col-lg-4 info-item">
  207. <h3 class="mb-1">幸福經紀人將透過簡訊與手機 <br> 與您聯繫並確認您的裝修設計需求</h3>
  208. <h4 class="ligh-text">節省 50% 時間,幸福輕裝修,實現夢想生活</h4>
  209. <div class="img-block">
  210. <img src="./img/result-bg.png" alt="">
  211. <a href="https://hhh.com.tw/minordecor" target="_blank" class="link-img">
  212. <img src="./img/Group 156.svg" alt="" class="btn">
  213. <img src="./img/Group 157.svg" alt="" class="text">
  214. <img src="./img/Ellipse 14.svg" alt="" class="bg">
  215. </a>
  216. </div>
  217. </div>
  218. </div>
  219. <div class="style-list">
  220. <p>您可以先看看喜歡的裝修風格</p>
  221. <div class="row">
  222. <div class="col-6 col-md-3">
  223. <a href="https://hhh.com.tw/photos/lists/modern-style/" target="_blank">
  224. <img src="https://hhh.com.tw/assets/images/photo/style/modern.jpg" alt="" class="img-fluid">
  225. <p>現代風</p>
  226. </a>
  227. </div>
  228. <div class="col-6 col-md-3">
  229. <a href="https://hhh.com.tw/photos/lists/nordic-style/" target="_blank">
  230. <img src="https://hhh.com.tw/assets/images/photo/style/nordic.jpg" alt="" class="img-fluid">
  231. <p>北歐風</p>
  232. </a>
  233. </div>
  234. <div class="col-6 col-md-3 mt-3 mt-md-0">
  235. <a href="https://hhh.com.tw/photos/lists/american-style/" target="_blank">
  236. <img src="https://hhh.com.tw/assets/images/photo/style/american.jpg" alt="" class="img-fluid">
  237. <p>美式風</p>
  238. </a>
  239. </div>
  240. <div class="col-6 col-md-3 mt-3 mt-md-0">
  241. <a href="https://hhh.com.tw/photos/lists/mashup-style/" target="_blank">
  242. <img src="https://hhh.com.tw/assets/images/photo/style/mashup.jpg" alt="" class="img-fluid">
  243. <p>混搭風</p>
  244. </a>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. <!-- 動態載入 -->
  251. <!-- <div id="btn-box"></div>
  252. <div id="footer"></div> -->
  253. <!-- Google Tag Manager (noscript) -->
  254. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W3RJHTZ" height="0" width="0"
  255. style="display:none;visibility:hidden"></iframe></noscript>
  256. <!-- End Google Tag Manager (noscript) -->
  257. <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
  258. integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
  259. crossorigin="anonymous"></script>
  260. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js"
  261. integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT"
  262. crossorigin="anonymous"></script>
  263. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  264. <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
  265. <script src="
  266. https://cdn.jsdelivr.net/npm/chart.js@4.3.0/dist/chart.umd.min.js
  267. "></script>
  268. <!-- <script src="./js/index.js"></script> -->
  269. <script>
  270. let resultData = JSON.parse(localStorage.getItem('calculator_result')); // 取得運算結果
  271. if (resultData) {
  272. setValue(resultData.ca_type);
  273. }
  274. var tabType = ''; // 全室裝修類別
  275. var totalValue = 0; // 總金額
  276. var chartData = []; // 圖表數值
  277. var chartLabels = [];
  278. var chartCutout = null;
  279. // 將數字四捨五入並轉成千分位表示
  280. function formatNumber(number) {
  281. let result = (number / 10000).toFixed(1); // 保留小數點後一位
  282. result = result.toLocaleString(); // 轉成千分位
  283. return result;
  284. }
  285. function setValue(type) {
  286. console.log('resultData', resultData);
  287. let data = resultData;
  288. chartData = []; // 一開始先清空
  289. $('#ca_type').text(data.ca_type)
  290. $('#city_val').text(data.city);
  291. $('#area_val').text(data.area);
  292. if (type !== "局部裝修") {
  293. if ($(window).width() > 991) {
  294. // 電腦版
  295. chartCutout = 100;
  296. } else {
  297. // 手機版
  298. chartCutout = 70;
  299. }
  300. chartLabels = ['基礎工程', '硬體工程', '軟裝家居', '家電設備'];
  301. $('.chart-text:first').show();
  302. $('.chart-text.range').hide();
  303. $('.price-card .main').show();
  304. $('.price-card .partial').hide();
  305. } else {
  306. chartCutout = 120;
  307. chartLabels = ['廚房翻新', '浴室翻新', '天花板', '門窗翻新', '地板翻新'];
  308. $('.chart-text:first').hide();
  309. $('.chart-text.range').show();
  310. $('.price-card .main').hide();
  311. $('.price-card .partial').css('display', 'grid');
  312. $('#kitchen_renovation').text(data.kitchen_renovation);
  313. $('#bathroom_refurbishment').text(data.bathroom_refurbishment);
  314. $('#ceiling').text(data.ceiling);
  315. $('#windows_and_doors').text(data.windows_and_doors);
  316. $('#floor_renewal').text(data.floor_renewal);
  317. $('#total_min').text(data.down_price);
  318. $('#total_max').text(data.up_price);
  319. }
  320. if (type === "輕裝修") {
  321. $('.tab-list').hide();
  322. $('.link-img').show();
  323. $('.img-block').show();
  324. $('.ligh-text').show();
  325. $('.main-info').removeClass('type');
  326. $('#ca_type_description').text("適合新成屋");
  327. $('#ca_type_content').text("不更動房間格局、含系統櫃、軟裝、地板工程等");
  328. $('#basic_engineering').text(formatNumber(data.basic_engineering)); // 基礎工程
  329. $('#hardware_engineering').text(formatNumber(data.hardware_engineering)); // 硬體工程
  330. $('#decorated_home').text(formatNumber(data.decorated_home)); // 軟裝家居
  331. $('#home_appliances').text(formatNumber(data.home_appliances)); // 家電設備
  332. chartData.push(data.basic_engineering);
  333. chartData.push(data.hardware_engineering);
  334. chartData.push(data.decorated_home);
  335. chartData.push(data.home_appliances);
  336. totalValue = data.basic_engineering + data.hardware_engineering + data.decorated_home + data.home_appliances;
  337. $('#total_value').text(formatNumber(totalValue));
  338. } else if (type === "全室裝修") {
  339. // 預設點擊簡裝
  340. setTimeout(() => {
  341. if (tabType === '') {
  342. $('.tab-item:first').click();
  343. return;
  344. }
  345. }, 100)
  346. if ($(window).width() > 991) {
  347. // 電腦版
  348. $('.link-img').hide();
  349. $('.img-block').show();
  350. } else {
  351. // 手機版
  352. $('.img-block').hide();
  353. }
  354. $('.ligh-text').hide();
  355. $('.main-info').addClass('type');
  356. $('.tab-list').css('display', 'flex');
  357. $('#ca_type_description').html("適合毛胚屋、<br> 老屋翻新");
  358. $('#ca_type_content').text("不更動房間格局,含系統櫃、油漆、地板工程等");
  359. if (tabType === "簡裝") {
  360. updateData("type_basic", data);
  361. } else if (tabType === "精裝") {
  362. updateData("type_advanced", data);
  363. } else if (tabType === "豪華") {
  364. updateData("type_all", data);
  365. }
  366. } else if (type === "局部裝修") {
  367. if ($(window).width() > 991) {
  368. // 電腦版
  369. chartCutout = 120;
  370. } else {
  371. // 手機版
  372. chartCutout = 90;
  373. }
  374. if ($(window).width() > 991) {
  375. // 電腦版
  376. $('.link-img').hide();
  377. $('.img-block').show();
  378. } else {
  379. // 手機版
  380. $('.img-block').hide();
  381. }
  382. $('.tab-list').hide();
  383. $('.link-img').hide();
  384. $('.ligh-text').hide();
  385. $('.main-info').removeClass('type');
  386. $('#ca_type_description').text("");
  387. $('#ca_type_content').text("只針對室內特定區域裝修,如廚房、衛浴空間等");
  388. chartData.push(data.kitchen_renovation);
  389. chartData.push(data.bathroom_refurbishment);
  390. chartData.push(data.ceiling);
  391. chartData.push(data.windows_and_doors);
  392. chartData.push(data.floor_renewal);
  393. // 計算總數範圍
  394. let totalMin = 0;
  395. let totalMax = 0;
  396. for (let i = 0; i < chartData.length; i++) {
  397. const [min, max] = chartData[i].split('-');
  398. totalMin += parseInt(min);
  399. totalMax += parseInt(max);
  400. }
  401. const totalRange = `${totalMin}-${totalMax}`;
  402. // 圖表無法顯示範圍數值,需改為平均值(如局部裝修 18-28)
  403. chartData = chartData.map(getAverage);
  404. }
  405. setChart(); // 繪製 chart 圖表
  406. }
  407. // 更新全室裝修數值
  408. function updateData(type, data) {
  409. console.log();
  410. $('#basic_engineering').text(formatNumber(data[type].basic_engineering)); // 基礎工程
  411. $('#hardware_engineering').text(formatNumber(data[type].hardware_engineering)); // 硬體工程
  412. $('#decorated_home').text(formatNumber(data[type].decorated_home)); // 軟裝家居
  413. $('#home_appliances').text(formatNumber(data[type].home_appliances)); // 家電設備
  414. totalValue = data[type].basic_engineering + data[type].hardware_engineering + data[type].decorated_home + data[type].home_appliances;
  415. $('#total_value').text(formatNumber(totalValue)); // 總金額
  416. chartData.push(data[type].basic_engineering);
  417. chartData.push(data[type].hardware_engineering);
  418. chartData.push(data[type].decorated_home);
  419. chartData.push(data[type].home_appliances);
  420. }
  421. // 將範圍轉換為平均值
  422. function getAverage(range) {
  423. const [min, max] = range.split('-');
  424. return (parseInt(min) + parseInt(max)) / 2;
  425. }
  426. $('.tab-item').click(function () {
  427. self.tabType = $(this).text();
  428. setValue(resultData.ca_type);
  429. // 下底線位移
  430. $('.tab-item').addClass('active');
  431. $('.tab-item').css('color', '#959595');
  432. $(this).css('color', '#fff');
  433. let linkOffset = $(this)[0].offsetLeft - 4;
  434. $('#underline').animate({
  435. left: linkOffset
  436. }, 300);
  437. });
  438. // 設置下底線位置
  439. function setUnderlinePosition() {
  440. let activeLink = $('.tab-item.active');
  441. let linkOffset = activeLink[0].offsetLeft - 4;
  442. $('#underline').css('left', linkOffset);
  443. }
  444. // 監聽視窗寬度
  445. $(window).resize(function () {
  446. // 動態更新下底線位置
  447. if (tabType !== "") {
  448. setUnderlinePosition();
  449. }
  450. });
  451. /* 圖表 chart.js */
  452. var chart;
  453. function setChart() {
  454. let canvas = document.getElementById('chart'); // 獲取 <canvas> 元素
  455. let ctx = canvas.getContext('2d');
  456. // 檢查是否已經存在圖表,如果有則先銷毀
  457. if (chart) {
  458. chart.destroy();
  459. }
  460. chart = new Chart(ctx, { // 創建圖表
  461. type: 'doughnut',
  462. data: {
  463. labels: chartLabels,
  464. datasets: [{
  465. data: chartData,
  466. backgroundColor: [
  467. 'rgba(172, 166, 152, 1)',
  468. 'rgba(186, 151, 102, 1)',
  469. 'rgba(150, 140, 117, 1)',
  470. 'rgba(226, 208, 168, 1)',
  471. ],
  472. borderColor: [
  473. 'rgba(172, 166, 152, 1)',
  474. 'rgba(186, 151, 102, 1)',
  475. 'rgba(150, 140, 117, 1)',
  476. 'rgba(226, 208, 168, 1)',
  477. ],
  478. borderWidth: 1
  479. }]
  480. },
  481. options: {
  482. cutout: chartCutout, // 圖表線條寬度(數值越高越細)
  483. responsive: true,
  484. maintainAspectRatio: false,
  485. plugins: {
  486. legend: {
  487. display: false // 隱藏顏色說明
  488. }
  489. }
  490. }
  491. });
  492. }
  493. /* 重新填寫 */
  494. $('.reset-btn').on('click', function () {
  495. dataLayer.push({
  496. 'event': 'refill',
  497. 'btn_location': 'Calculator_Request_Page'
  498. });
  499. console.log('reset-btn');
  500. window.location.href = "https://hhh.com.tw/calculator_request/index.html";
  501. });
  502. </script>
  503. </body>
  504. </html>