forked from bvaughn/react-virtualized
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.html
74 lines (70 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<title>foo</title>
<style type="text/css">
body, html, #mount {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-size: 12px;
overflow: hidden
}
.container {
width: 100%;
height: 100%;
}
.chat {
border: 1px solid #eee;
border-radius: 0.5rem;
}
.item {
border-bottom: 1px solid #eee;
padding: 0.5rem;
box-sizing: border-box;
}
.item:hover {
background-color: #eee;
}
.floatingMessage {
position: absolute;
top: 1.5rem;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 255, 0, 0.5);
border-radius: 0.25rem;
padding: 0.5rem 1rem;
opacity: 0;
-webkit-animation: floatingMessageAnmation 4s 1;
animation: floatingMessageAnimation 4s 1;
}
@keyframes floatingMessageAnimation {
0% {
opacity: 1;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
</style>
</head>
<body>
<div id="mount"></div>
<script src="utils.js"></script>
<script src="helper.js"></script>
<script>
loadReact();
loadScriptsAndStyles('chat.js');
</script>
<div class='floatingMessage'>
Click body to resize ...
</div>
</body>
</html>