-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
71 lines (71 loc) · 1.87 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<title>wordSphere</title>
<style>
html {
overflow: hidden;
}
canvas {
position: absolute;
top: 0;
left: 0;
}
#footer {
position: absolute;
bottom: 0;
width: 100%;
}
#control-box {
margin: 0.25em auto;
position: relative;
width: 100%;
max-width: 25em;
bottom: 2em;
}
#query {
position: relative;
font-size: 1.5em;
background: rgba(255, 255, 255, 0.5);
border: none;
border-bottom: 4px solid rgba(200, 200, 200, 0.5);
padding: 0.2em 0.5em;
padding-bottom: 0;
width: 100%;
box-sizing: border-box;
font-family: serif;
font-weight: bold;
color: #aaaaaa;
text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1);
transition: all 300ms;
}
#query:focus {
background: rgba(252, 252, 252, 0.9);
border-bottom: 4px solid #41d2d3;
color: #444444;
text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.3);
}
#message {
color: #ddd;
position: absolute;
top: 50%;
right: 0.25em;
margin-top: -0.5em;
pointer-events: none;
}
</style>
</head>
<body>
<div id="footer">
<div id="control-box">
<input type="text" id="query" autofocus="autofocus" placeholder="Search" />
<div id="message"></div>
</div>
</div>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.7.1/pixi.min.js"></script>
<script src="ws.js"></script>
</body>
</html>