index-line.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <!DOCTYPE html>
  2. <html lang="en" >
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>幸福空間 - 問卷調查</title>
  7. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
  8. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
  9. crossorigin="anonymous">
  10. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
  11. <link rel="stylesheet" href="./style.css">
  12. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  13. </head>
  14. <body>
  15. <div class="container">
  16. <div class="text-center coffee_t">
  17. <img class="img-fluid" src="images/banner_top1.jpg" alt="幸福空間 - 裝修市場問卷調查">
  18. </div>
  19. <form action="/step_questions/line-submit" method="post" id="msform">
  20. <div class="notice_card">
  21. 您好:<br>我們是幸福空間,想要進行裝修市場調查,只要填寫完成就送您五萬元裝修折抵券!為確保兌換權益,請務必填寫真實資訊,感謝您的配合。
  22. </div>
  23. <ul id="progressbar" class="p-0">
  24. <li class="active">基本資料</li>
  25. <li>建案資料</li>
  26. <li>裝修資料</li>
  27. </ul>
  28. <!-- fieldsets -->
  29. <fieldset>
  30. <h2 class="fs-title">基本資料</h2>
  31. <h3 class="fs-subtitle" style="margin-bottom: 0rem;">步驟 1</h3>
  32. <input type="text" name='userid' value="" id="userid" style="visibility: hidden;">
  33. <input type="text" name='area' value="" id="area" style="visibility: hidden;">
  34. <select name="q1" style="margin-top: -4rem">
  35. <option value="Male">男</option>
  36. <option value="Female">女</option>
  37. </select>
  38. <input type="text" name='q2' value="" placeholder="手機號碼" /> <br/>
  39. <input type="email" name='q3' value="" placeholder="Email" />
  40. <input id="checker" type="button" name="next" class="next action-button" value="下一步" />
  41. </fieldset>
  42. <fieldset>
  43. <h2 class="fs-title">建案資料</h2>
  44. <h3 class="fs-subtitle">步驟 2</h3>
  45. <label class="fs-label"><i class="fas fa-chevron-right"></i>請問您現在所在建案名稱?</label>
  46. <input type="text" name='q4' value="" placeholder="建案名" class="mb" />
  47. <label class="fs-label"><i class="fas fa-chevron-right"></i>建案類型</label>
  48. <div class="fs-label">
  49. <input type="radio" class="check_button" value="預售屋" name="q5" id="pre-sold" />
  50. <label for="pre-sold" class="fs-label-type">預售屋</label>
  51. <input type="radio" class="check_button ml" value="新成屋" name="q5" id="new" />
  52. <label for="new" class="fs-label-type">新成屋</label>
  53. </div>
  54. <input type="button" name="previous" class="previous action-button" value="上一步" />
  55. <input type="button" name="next" class="next action-button next-2" value="下一步" />
  56. </fieldset>
  57. <fieldset>
  58. <h2 class="fs-title">裝修資料</h2>
  59. <h3 class="fs-subtitle">步驟 3</h3>
  60. <div class="fs-label">
  61. <label class="fs-label"><i class="fas fa-chevron-right"></i>喜歡的裝修風格?(複選)</label>
  62. <input type="checkbox" value="簡單大方" name="q6" id="6a" />
  63. <label class="mr fs-label-info" for="6a">簡單大方</label>
  64. <input type="checkbox" value="北歐風" name="q6" id="6b" />
  65. <label class="mr fs-label-info" for="6b">北歐風</label>
  66. <input type="checkbox" value="日式風格" name="q6" id="6c" />
  67. <label class="mr fs-label-info" for="6c">日式風格</label>
  68. <input type="checkbox" value="美式鄉村風" name="q6" id="6d"/>
  69. <label class="mr fs-label-info" for="6d">美式鄉村風</label>
  70. <input type="checkbox" value="" id='q6_checkbox' onclick="show_input_text('q6_checkbox', 'q6_input')" />
  71. <label class="mr fs-label-info" for="q6_checkbox">其他</label>
  72. <input type="text" id="q6_input" name="q6" style="display:none" value="" placeholder="其他風格" />
  73. </div>
  74. <br/>
  75. <div class="fs-label">
  76. <label class="fs-label"><i class="fas fa-chevron-right"></i>預計裝修預算(不含活動型傢俱/廚具/空調/窗簾/主燈)?(單選)</label>
  77. <input type="radio" value="50萬以下" name="q7" id="7a" />
  78. <label class="mr fs-label-info" for="7a">50萬以下</label>
  79. <input type="radio" value="50~100萬" name="q7" id="7b" />
  80. <label class="mr fs-label-info" for="7b">50~100萬</label>
  81. <input type="radio" value="100~200萬" name="q7" id="7c" />
  82. <label class="mr fs-label-info" for="7c">100~200萬</label>
  83. <input type="radio" value="200~300萬" name="q7" id="7d" />
  84. <label class="mr fs-label-info" for="7d">200~300萬</label>
  85. <input type="radio" value="300~500萬" name="q7" id="7e" />
  86. <label class="mr fs-label-info" for="7e">300~500萬</label>
  87. <input type="radio" value="500~800萬" name="q7" id="7f"/>
  88. <label class="mr fs-label-info" for="7f">500~800萬</label>
  89. <input type="radio" value="800萬以上" name="q7" id="7g" />
  90. <label class="mr fs-label-info" for="7g">800萬以上</label>
  91. <input type="radio" value="" id='q7_checkbox' onclick="show_input_text('q7_checkbox', 'q7_input')" name="q7"/>
  92. <label class="mr fs-label-info" for="q7_checkbox">其他</label>
  93. <input type="text" id="q7_input" name="q7" style="display:none" value="" placeholder="自訂預算" />
  94. <br/>
  95. </div>
  96. <br>
  97. <div class="fs-label">
  98. <label class="fs-label"><i class="fas fa-chevron-right"></i>預計裝修坪數?(單選)</label>
  99. <input type="radio" value="20坪以下" name="q8" id="8a" />
  100. <label class="mr fs-label-info" for="8a">20坪以下</label>
  101. <input type="radio" value="20~30坪" name="q8" id="8b" />
  102. <label class="mr fs-label-info" for="8b">20~30坪</label>
  103. <input type="radio" value="30~40坪" name="q8" id="8c" />
  104. <label class="mr fs-label-info" for="8c">30~40坪</label>
  105. <input type="radio" value="40~50坪" name="q8" id="8d" />
  106. <label class="mr fs-label-info" for="8d">40~50坪</label>
  107. <input type="radio" value="50坪以上" name="q8" id="8e" />
  108. <label class="mr fs-label-info" for="8e">50坪以上</label>
  109. </div>
  110. <br/>
  111. <div class="term-link">
  112. <a href="index_terms.html" target="_blank">蒐集個人資料告知事項暨個人資料提供同意書<i class="fas fa-external-link-alt"></i></a>
  113. </div>
  114. <input id="checker2" type="checkbox" class="custom-control-input" value="" name="q9" checked>
  115. <label for="checker2" style="margin-bottom: .5rem;">我同意</label>
  116. <br>
  117. <p id="term-error"></p>
  118. <input type="button" name="previous" class="previous action-button" value="上一步" />
  119. <input type="submit" name="submit" class="submit action-button" value="提交"/>
  120. </fieldset>
  121. </form>
  122. <div class="text-center coffee_b">
  123. <img class="img-fluid mb-3" src="images/banner-bottom1.jpg" alt="幸福空間 - 裝修市場問卷調查">
  124. </div>
  125. </div>
  126. <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
  127. <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js'></script>
  128. <script>
  129. $('.coffee_t').css('display', 'none');
  130. function showcoffee() {
  131. axios.get('http://q.ptt.cx/coffee').then(res => {
  132. if(res.data.coffee == 1) {
  133. $('.coffee_t').css('display', 'block');
  134. } else {
  135. $('.coffee_t').css('display', 'none');
  136. }
  137. });
  138. }
  139. showcoffee();
  140. function getParameterByName(name, url = window.location.href) {
  141. name = name.replace(/[\[\]]/g, '\\$&');
  142. var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
  143. results = regex.exec(url);
  144. if (!results) return null;
  145. if (!results[2]) return '';
  146. return decodeURIComponent(results[2].replace(/\+/g, ' '));
  147. }
  148. function getUserid() {
  149. let id = getParameterByName('userid');
  150. $('#userid').val(id);
  151. }
  152. getUserid();
  153. function getCookie(name) {
  154. const value = `; ${document.cookie}`;
  155. const parts = value.split(`; ${name}=`);
  156. if (parts.length === 2) return parts.pop().split(';').shift();
  157. }
  158. function getArea() {
  159. let Area = getCookie('area');
  160. $('#area').val(Area);
  161. }
  162. getArea();
  163. </script>
  164. <script src="./script.js"></script>
  165. </body>
  166. </html>