@@ -25,7 +25,7 @@ const RfidConverterPage = () => {
2525 // 分割成位元組
2626 const bytes = [ ] ;
2727 for ( let i = 0 ; i < hexStr . length ; i += 2 ) {
28- bytes . push ( hexStr . substr ( i , 2 ) ) ;
28+ bytes . push ( hexStr . slice ( i , i + 2 ) ) ;
2929 }
3030
3131 // 創建副本來避免修改原始數組
@@ -62,7 +62,7 @@ const RfidConverterPage = () => {
6262 // 分割成位元組
6363 const bytes = [ ] ;
6464 for ( let i = 0 ; i < hex . length ; i += 2 ) {
65- bytes . push ( hex . substr ( i , 2 ) ) ;
65+ bytes . push ( hex . slice ( i , i + 2 ) ) ;
6666 }
6767
6868 // 創建副本來避免修改原始數組
@@ -133,11 +133,11 @@ const RfidConverterPage = () => {
133133 value = { hexInput }
134134 onChange = { ( e ) => setHexInput ( e . target . value ) }
135135 placeholder = "請輸入16進制卡號..."
136- className = "flex-1 px-4 py-3 border-2 border-gray-300 rounded-lg font-mono text-lg focus:border-btnbg focus:outline-none transition-colors"
136+ className = "flex-1 px-4 py-3 border-2 border-gray-300 rounded-full font-mono text-lg focus:border-btnbg focus:outline-none transition-colors"
137137 />
138138 < button
139139 onClick = { clearHex }
140- className = "px-4 py-3 border border-gray-400 text-gray-700 rounded-lg hover:bg-btnbg hover:text-white transition-colors flex items-center justify-center"
140+ className = "px-4 py-3 text-gray-700 rounded-full hover:bg-btnbg hover:text-white transition-colors flex items-center justify-center"
141141 title = "清除輸入"
142142 >
143143 < Icon icon = "mdi:close" className = "text-xl" />
@@ -199,11 +199,11 @@ const RfidConverterPage = () => {
199199 value = { decInput }
200200 onChange = { ( e ) => setDecInput ( e . target . value ) }
201201 placeholder = "請輸入10進制卡號..."
202- className = "flex-1 px-4 py-3 border-2 border-gray-300 rounded-lg font-mono text-lg focus:border-btnbg focus:outline-none transition-colors"
202+ className = "flex-1 px-4 py-3 border-2 border-gray-300 rounded-full font-mono text-lg focus:border-btnbg focus:outline-none transition-colors"
203203 />
204204 < button
205205 onClick = { clearDec }
206- className = "px-4 py-3 border border-gray-400 text-gray-700 rounded-lg hover:bg-btnbg hover:text-white transition-colors flex items-center justify-center"
206+ className = "px-4 py-3 text-gray-700 rounded-full hover:bg-btnbg hover:text-white transition-colors flex items-center justify-center"
207207 title = "清除輸入"
208208 >
209209 < Icon icon = "mdi:close" className = "text-xl" />
0 commit comments