File tree 3 files changed +30
-4
lines changed
3 files changed +30
-4
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
- < html >
2
+ < html lang =" en " >
3
3
< head >
4
4
< meta charset ="utf-8 "/>
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< title > Chat Room</ title >
7
+ < link href ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css " rel ="stylesheet " integrity ="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH " crossorigin ="anonymous ">
8
+ < style >
9
+ /* Additional CSS for mobile responsiveness */
10
+ @media (max-width : 576px ) {
11
+ # chat-log , # chat-message-input , # chat-message-submit {
12
+ width : 100% ;
13
+ }
14
+ }
15
+ </ style >
6
16
</ head >
7
17
< body >
8
- < textarea id ="chat-log " cols ="100 " rows ="20 "> </ textarea > < br >
9
- < input id ="chat-message-input " type ="text " size ="100 "> < br >
10
- < input id ="chat-message-submit " type ="button " value ="Send ">
18
+ < div class ="container ">
19
+ < div class ="row ">
20
+ < div class ="col-12 mt-2 ">
21
+ < textarea style ="background-color: black; " id ="chat-log " cols ="94 " rows ="10 " disabled > </ textarea >
22
+ </ div >
23
+ </ div >
24
+ < div class ="row ">
25
+ < div class ="col-9 ">
26
+ < input style ="background-color: orange; " id ="chat-message-input " type ="text " class ="form-control " placeholder ="Type your message ">
27
+ </ div >
28
+ < div class ="col-3 ">
29
+ < input class ="btn btn-success w-100 " id ="chat-message-submit " type ="button " value ="Send ">
30
+ </ div >
31
+ </ div >
32
+ </ div >
33
+
11
34
{{ room_name|json_script:"room-name" }}
35
+
12
36
< script >
13
37
const roomName = JSON . parse ( document . getElementById ( 'room-name' ) . textContent ) ;
14
38
45
69
messageInputDom . value = '' ;
46
70
} ;
47
71
</ script >
72
+
73
+ < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js " integrity ="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz " crossorigin ="anonymous "> </ script >
48
74
</ body >
49
75
</ html >
You can’t perform that action at this time.
0 commit comments