-
Notifications
You must be signed in to change notification settings - Fork 11
/
chat.html
107 lines (94 loc) · 3.43 KB
/
chat.html
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Meditech-Healthcare</title>
<link rel="stylesheet" type="text/css" href="a.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
</head>
<body>
<!--auth modal-->
<div class="auth open">
<br/>
<div class="modal2 active">
<h2>Login</h2>
<form class="login">
<input type="text" name="email" placeholder="Email">
<input type="password" name="password" placeholder="Password">
<button>Login</button>
<p class="error"></p>
</form>
<div>No account? <a class="switch">Register instead</a></div>
</div>
<div class="modal2">
<h2>Register</h2>
<form class="register">
<input type="text" name="email" placeholder="Email">
<input type="password" name="password" placeholder="Password">
<button>Register</button>
<p class="error"></p>
</form>
<div>Got an account? <a class="switch">Login instead</a></div>
</div>
</div>
<!--signout-->
<header>
<nav>
<a class="sign-out">sign out</a>
</nav>
</header>
<!--messages-->
<section class="content">
<h1>Messages</h1>
<ul class="request-list">
</ul>
</section>
<!-- Modal Structure -->
<div id="modal1" class="modal modal-fixed-footer">
<div class="chat__body">
<p class="chat__message">
<span class="chat__name">you</span>
sds
<span class="chat__timestamp">
is this
</span>
</p>
<p class="chat__receiver chat__message">
<span class="chat__name">admin</span>
sss
<span class="chat__timestamp">
this is
</span>
</p>
</div>
<div class="modal-footer">
<div class="chat__footer">
<form class="frm">
<input id="msg" name="msg" placeholder="Type a message" type="text"></input>
<button id = "sendmsg" type = "submit" >Send a message</button>
</form>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="/__/firebase/8.2.1/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="/__/firebase/8.2.1/firebase-auth.js"></script>
<script src="/__/firebase/8.2.1/firebase-firestore.js"></script>
<script src="/__/firebase/8.2.1/firebase-analytics.js"></script>
<!-- Initialize Firebase -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="/__/firebase/init.js"></script>
<script src="index.js"></script>
<script src="./js/getdata.js"></script>
<script src="./js/authentication.js"></script>
<script>
$(document).ready(function(){
$('.modal').modal();
});
</script>
</body>
</html>