index.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <!DOCTYPE html>
  2. <html lang="en" >
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>幸福空間 - 問卷調查</title>
  6. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
  7. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
  8. crossorigin="anonymous">
  9. <link rel="stylesheet" href="./style.css">
  10. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  11. </head>
  12. <body>
  13. <img src="https://hhh.com.tw/assets/images/hhh-logo2.svg" width="145" height="40" alt="hhh-logo" class="img_logo">
  14. <iframe name="dummyframe" id="dummyframe" style="display: none;"></iframe>
  15. <form action="http://127.0.0.1:8000/step_questions/submit" method="post" id="msform" target="dummyframe">
  16. <div class="notice_card">
  17. 您好,我們是幸福空間,想要進行裝修市場調查。只要填寫完畢就送您 City Cafe 或 Cama 咖啡乙杯及裝修折價卷五萬元!
  18. 贈送方式將以LINE寄送數位條碼,可直接至全省 City Cafe 或 Cama 門市兌換,為確保兌換權益,請務必填寫真實資訊,感謝您的配合。
  19. </div>
  20. <ul id="progressbar">
  21. <li class="active">基本資料</li>
  22. <li>建案資料</li>
  23. <li>裝修資料</li>
  24. </ul>
  25. <!-- fieldsets -->
  26. <fieldset>
  27. <h2 class="fs-title">基本資料</h2>
  28. <h3 class="fs-subtitle">Step 1</h3>
  29. <select name="q1">
  30. <option value="Male">男</option>
  31. <option value="Female">女</option>
  32. </select>
  33. <input type="text" name='q2' value="" placeholder="手機號碼" /> <br/>
  34. <input type="email" name='q3' value="" placeholder="Email" />
  35. <input type="button" name="next" class="next action-button" value="Next" />
  36. </fieldset>
  37. <fieldset>
  38. <h2 class="fs-title">建案資料</h2>
  39. <h3 class="fs-subtitle">Step 2</h3>
  40. <label class="fs-label"><i class="fas fa-chevron-right"></i>請問您所在哪個建案?</label>
  41. <input type="text" name='q4' value="" placeholder="建案名" class="mb" />
  42. <label class="fs-label"><i class="fas fa-chevron-right"></i>建案類型</label>
  43. <div class="fs-label">
  44. <input type="radio" class="check_button" value="預售屋" name="q5" id="pre-sold" />
  45. <label for="pre-sold" class="fs-label-type">預售屋</label>
  46. <input type="radio" class="check_button ml" value="新成屋" name="q5" id="new" />
  47. <label for="new" class="fs-label-type">新成屋</label>
  48. </div>
  49. <input type="button" name="previous" class="previous action-button" value="Previous" />
  50. <input type="button" name="next" class="next action-button next-2" value="Next" />
  51. </fieldset>
  52. <fieldset>
  53. <h2 class="fs-title">裝修資料</h2>
  54. <h3 class="fs-subtitle">Step 3</h3>
  55. <div class="fs-label">
  56. <label class="fs-label"><i class="fas fa-chevron-right"></i>喜歡的裝修風格?</label>
  57. <input type="checkbox" value="簡單大方" name="q6" id="6a" />
  58. <label class="mr fs-label-info" for="6a">簡單大方</label>
  59. <input type="checkbox" value="北歐風" name="q6" id="6b" />
  60. <label class="mr fs-label-info" for="6b">北歐風</label>
  61. <input type="checkbox" value="日式風格" name="q6" id="6c" />
  62. <label class="mr fs-label-info" for="6c">日式風格</label>
  63. <input type="checkbox" value="美式鄉村風" name="q6" id="6d"/>
  64. <label class="mr fs-label-info" for="6d">美式鄉村風</label>
  65. <input type="checkbox" value="" id='q6_checkbox' onclick="show_input_text('q6_checkbox', 'q6_input')" />
  66. <label class="mr fs-label-info" for="q6_checkbox">其他</label>
  67. <input type="text" id="q6_input" name="q6" style="display:none" value="" placeholder="其他風格" />
  68. </div>
  69. <br/>
  70. <div class="fs-label">
  71. <label class="fs-label"><i class="fas fa-chevron-right"></i>預計裝修預算(不含活動型傢俱/廚具/空調/窗簾/主燈)?</label>
  72. <input type="checkbox" value="50萬以下" name="q7" id="7a" />
  73. <label class="mr fs-label-info" for="7a">50萬以下</label>
  74. <input type="checkbox" value="50~100萬" name="q7" id="7b" />
  75. <label class="mr fs-label-info" for="7b">50~100萬</label>
  76. <input type="checkbox" value="100~200萬" name="q7" id="7c" />
  77. <label class="mr fs-label-info" for="7c">100~200萬</label>
  78. <input type="checkbox" value="200~300萬" name="q7" id="7d" />
  79. <label class="mr fs-label-info" for="7d">200~300萬</label>
  80. <input type="checkbox" value="300~500萬" name="q7" id="7e" />
  81. <label class="mr fs-label-info" for="7f">300~500萬</label>
  82. <input type="checkbox" value="500~800萬" name="q7" id="7f"/>
  83. <label class="mr fs-label-info" for="7f">500~800萬</label>
  84. <input type="checkbox" value="800萬以上" name="q7" id="7g" />
  85. <label class="mr fs-label-info" for="7g">800萬以上</label>
  86. <input type="checkbox" value="" id='q7_checkbox' onclick="show_input_text('q7_checkbox', 'q7_input')"/>
  87. <label class="mr fs-label-info" for="q7_checkbox">其他</label>
  88. <input type="text" id="q7_input" name="q7" style="display:none" value="" placeholder="自訂預算" />
  89. <br/>
  90. </div>
  91. <div class="fs-label">
  92. <label class="fs-label"><i class="fas fa-chevron-right"></i>喜歡的裝修風格?</label>
  93. <input type="checkbox" value="20坪以下" name="q8" id="8a" />
  94. <label class="mr fs-label-info" for="8a">20坪以下</label>
  95. <input type="checkbox" value="20~30坪" name="q8" id="8b" />
  96. <label class="mr fs-label-info" for="8b">20~30坪</label>
  97. <input type="checkbox" value="30~40坪" name="q8" id="8c" />
  98. <label class="mr fs-label-info" for="8c">30~40坪</label>
  99. <input type="checkbox" value="40~50坪" name="q8" id="8d" />
  100. <label class="mr fs-label-info" for="8d">40~50坪</label>
  101. <input type="checkbox" value="50坪以上" name="q8" id="8e" />
  102. <label class="mr fs-label-info" for="8e">50坪以上</label>
  103. </div>
  104. <br/>
  105. <input type="button" name="previous" class="previous action-button" value="Previous" />
  106. <input type="submit" name="submit" class="submit action-button" value="Submit" />
  107. </fieldset>
  108. </form>
  109. <div id="overlay">
  110. <div class="thankyou">
  111. <h3>感謝您的填寫</h3>
  112. <img src="images/checked.png" alt="">
  113. <p>至 LINE 領取咖啡兌換券</p>
  114. <button class="btn-exit">離開</button>
  115. </div>
  116. </div>
  117. <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
  118. <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js'></script>
  119. <script src="./script.js"></script>
  120. </body>
  121. </html>