File tree Expand file tree Collapse file tree 3 files changed +58
-0
lines changed Expand file tree Collapse file tree 3 files changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,52 @@ body {
329329 pointer-events : none;
330330}
331331
332+ # main02 .input-group {
333+ display : inline-flex;
334+ position : relative;
335+ flex-wrap : wrap;
336+ align-items : stretch;
337+ width : 77% ;
338+ margin-bottom : 2rem ;
339+ }
340+
341+ # main02 .input-group-input {
342+ display : block;
343+ font-size : 1.5rem ;
344+ line-height : 1 ;
345+ width : 1% ;
346+ flex : 1 1 auto;
347+ background : none;
348+ color : # ddd ;
349+ margin : 0 auto;
350+ padding : 10px 1rem ;
351+ box-shadow : inset # ccc 0 0 0 0 , # ccc 0 0 0 3px ;
352+ border-radius : 10px ;
353+ border-top-right-radius : 0 ;
354+ border-bottom-right-radius : 0 ;
355+ }
356+
357+ # main02 .input-group-button {
358+ display : inline-block;
359+ font-size : 1.5rem ;
360+ line-height : 1 ;
361+ box-shadow : inset # ccc 0 0 0 0 , # ccc 0 0 0 3px ;
362+ border-radius : 10px ;
363+ background : rgba (255 , 255 , 255 , .1 );
364+ color : # fff ;
365+ vertical-align : top;
366+ transition : .3s ;
367+ padding : 10px 1rem ;
368+ border-top-left-radius : 0 ;
369+ border-bottom-left-radius : 0 ;
370+ margin : 0 0 0 3px ;
371+ }
372+
373+ # main02 .input-group-button .click {
374+ background : rgba (255 , 255 , 255 , .4 );
375+ box-shadow : inset # ccc 0 0 0 3px , # ccc 0 0 0 0 ;
376+ }
377+
332378# main02 .btn {
333379 display : inline-block;
334380 width : 38% ;
Original file line number Diff line number Diff line change 371371 </ footer >
372372 </ div >
373373 < div id ="main02 " class ="panel hide ">
374+ < div class ="input-group ">
375+ < input type ="text " class ="input-group-input " id ="sendMessage ">
376+ < button class ="input-group-button "> 傳送</ button >
377+ </ div >
374378 < div id ="btn0n " msg ="btn0 " class ="btn "> </ div >
375379 < div id ="btn1n " msg ="btn1 " class ="btn "> </ div >
376380 < div id ="btn2n " msg ="btn2 " class ="btn "> </ div >
Original file line number Diff line number Diff line change 225225 } ) ;
226226 } ) ;
227227
228+ const sendButton = document . querySelector ( '.input-group-button' ) ;
229+ sendButton . addEventListener ( 'click' , ( ) => {
230+ sendButton . classList . add ( 'click' ) ;
231+ setTimeout ( ( ) => {
232+ sendButton . classList . remove ( 'click' ) ;
233+ } , 100 ) ;
234+ } ) ;
235+
228236 let send = {
229237 center : false ,
230238 top : false ,
You can’t perform that action at this time.
0 commit comments