-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (81 loc) · 4.18 KB
/
index.html
File metadata and controls
89 lines (81 loc) · 4.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous" defer></script>
<!-- Bootstrap -->
<!-- Fontawesome -->
<script src="https://kit.fontawesome.com/6fedced9fe.js" crossorigin="anonymous" defer></script>
<!-- Fontawesome -->
<!-- CSS -->
<link rel="stylesheet" href="./css/general.css">
<link rel="stylesheet" href="./css/message.css">
<!-- CSS -->
<!-- JS -->
<script src="./js/Settings.js" defer></script>
<script src="./js/DOMUtil.js" defer></script>
<script src="./js/ViewModel.js" defer></script>
<!-- JS -->
<title>Chat - Room</title>
</head>
<body>
<header class="bg-dark container pb-2 line mt-2 header-flex">
<h1 class="text-center mb-0">Chat - Room</h1>
<button class="btn btn-secondary settingsBtn" data-bs-toggle="modal" data-bs-target="#settingsModal" id="openSettingsModal"><i class="fas fa-cog"></i></button>
</header>
<div class="container bg-dark pt-md-5 pb-md-5">
<div class="row">
<div class="col">
<div class="row mb-3">
<label class="col-form-label col-sm-2">User</label>
<div class="col-sm-6">
<input class="input-dark form-control" type="text" id="user">
</div>
</div>
<div class="row mb-3">
<label class="col-form-label col-sm-2">Message</label>
<div class="col-sm-6">
<input class="input-dark form-control" type="text" id="msg">
</div>
</div>
<div class="row mb-3">
<label class="col-sm-2"></label>
<div class="col-sm-6">
<button class="btn btn-primary col-sm-4" id="send">Send</button>
<button class="btn btn-secondary col-sm-4" id="refresh"><i class="fas fa-sync"></i> Refresh</button>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="log">
<h1>Messagelog</h1>
<div class="status">Status<div class="state" style="color: orange;" id="state">connecting...</div></div>
</div>
<div class="messages" id="messages">
</div>
</div>
</div>
</div>
<div class="modal fade" id="settingsModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content bg-dark">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">Settings</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="settingsModalBody">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancle</button>
<button type="button" class="btn btn-primary" id="settingsModalBtnSave">Save</button>
</div>
</div>
</div>
</div>
</body>
</html>