@@ -209,6 +209,17 @@ <h2 style="font-size: 24px; font-weight: 700; color: #323232; margin: 0 0 8px;">
209209 onfocus ="this.style.borderColor='#bd3f32' " onblur ="this.style.borderColor='#e8d5d3' "
210210 >
211211 </ div >
212+ < label style ="display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: #555; ">
213+ < input id ="form-ruby-course " type ="checkbox " style ="width: 16px; height: 16px; accent-color: #bd3f32; margin-top: 1px; flex-shrink: 0; ">
214+ 你所屬的科系或社團對免費的 Ruby 課程有興趣嗎?
215+ </ label >
216+ < div >
217+ < label style ="font-size: 13px; font-weight: 600; color: #323232; display: block; margin-bottom: 6px; "> 其它想對我們說的話</ label >
218+ < textarea id ="form-message " placeholder ="歡迎留言(選填) " rows ="3 "
219+ style ="width: 100%; box-sizing: border-box; border: 1px solid #e8d5d3; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-family: Montserrat, sans-serif; outline: none; resize: vertical; "
220+ onfocus ="this.style.borderColor='#bd3f32' " onblur ="this.style.borderColor='#e8d5d3' "
221+ > </ textarea >
222+ </ div >
212223 < label style ="display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: #555; ">
213224 < input id ="form-subscribe " type ="checkbox " checked style ="width: 16px; height: 16px; accent-color: #bd3f32; ">
214225 訂閱 Ruby Taiwan 電子報,獲得最新活動資訊
@@ -774,9 +785,11 @@ <h2 style="font-size: 22px; font-weight: 700; margin: 0 0 4px;">✅ 挑戰完成
774785window . submitForm = async function ( ) {
775786 const name = document . getElementById ( 'form-name' ) . value . trim ( ) ;
776787 const email = document . getElementById ( 'form-email' ) . value . trim ( ) ;
777- const phone = document . getElementById ( 'form-phone' ) . value . trim ( ) ;
778- const school = document . getElementById ( 'form-school' ) . value . trim ( ) ;
779- const sub = document . getElementById ( 'form-subscribe' ) . checked ;
788+ const phone = document . getElementById ( 'form-phone' ) . value . trim ( ) ;
789+ const school = document . getElementById ( 'form-school' ) . value . trim ( ) ;
790+ const rubyCourse = document . getElementById ( 'form-ruby-course' ) . checked ;
791+ const message = document . getElementById ( 'form-message' ) . value . trim ( ) ;
792+ const sub = document . getElementById ( 'form-subscribe' ) . checked ;
780793
781794 if ( ! name || ! email ) {
782795 alert ( '請填寫暱稱和 Email' ) ;
@@ -798,7 +811,7 @@ <h2 style="font-size: 22px; font-weight: 700; margin: 0 0 4px;">✅ 挑戰完成
798811 email,
799812 name,
800813 list_uuids : [ LISTMONK_LIST_UUID ] ,
801- attribs : { phone, school, score : correctCount , total : TOTAL_QUESTIONS } ,
814+ attribs : { phone, school, ruby_course_interest : rubyCourse , message , score : correctCount , total : TOTAL_QUESTIONS } ,
802815 } ) ,
803816 } ) ;
804817 } catch ( e ) {
0 commit comments