forked from ScaleDrone/javascript-chat-room-tutorial
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
Latest commit
69 lines (64 loc) · 1.54 KB
/
Copy pathindex.html
File metadata and controls
69 lines (64 loc) · 1.54 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
<!DOCTYPE html>
<html>
<head>
<scripttype='text/javascript' src='https://cdn.scaledrone.com/scaledrone.min.js'></script>
<!--<script type='text/javascript' src='http://0.0.0.0:8080/scaledrone.js'></script>-->
<metacharset="utf-8">
<metaname="viewport" content="width=device-width">
<style>
body {
box-sizing: border-box;
margin:0;
padding:13px;
display: flex;
flex-direction: column;
max-height:100vh;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.members-count,
.members-list,
.messages {
border:1px solid #e4e4e4;
padding:15px;
margin-bottom:15px;
}
.messages {
flex-shrink:1;
overflow: auto;
}
.message {
padding:5px0;
}
.message .member {
display: inline-block;
}
.member {
padding-right:10px;
position: relative;
}
.message-form {
display: flex;
flex-shrink:0;
}
.message-form__input {
flex-grow:1;
border:1px solid #dfdfdf;
padding:10px15px;
font-size:16px;
}
.message-form__button {
margin:10px;
}
</style>
</head>
<body>
<divclass="members-count">-</div>
<divclass="members-list">-</div>
<divclass="messages"></div>
<formclass="message-form" onsubmit="return false;">
<inputclass="message-form__input" placeholder="Type a message.." type="text"/>
<inputclass="message-form__button" value="Send" type="submit"/>
</form>
<scriptsrc="./script.js"></script>
</body>
</html>