-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
125 lines (110 loc) · 2.58 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<head>
<title>Remote Control</title>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<style>
html,
body {
overflow-x: hidden;
background-color: rgb(42, 45, 57);
overscroll-behavior: none;
}
.container {
display: flex;
align-items: center;
width: 85vh;
height: 90vh;
}
.keyboard {
overflow: hidden;
transform: rotate(270deg);
width: 100%;
height: 90%;
padding: 5px 0;
background: #004134;
box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
user-select: none;
position: relative;
}
.mouse-toggle {
position: absolute;
top: 10px;
right: 5px;
background: rgba(255, 255, 255, 0.2);
color: #ffffff;
border: none;
padding: 3px;
outline: none;
}
.mousepad {
width: 100%;
height: 100%;
}
.keyboard--hidden {
overflow: hidden;
bottom: -100%;
}
.keyboard__keys {
margin-top: 40px;
width: 100%;
text-align: center;
}
.keyboard__key {
height: 50px;
width: 6.5%;
max-width: 90px;
margin: 3px;
border-radius: 4px;
border: none;
background: rgba(255, 255, 255, 0.2);
color: #ffffff;
font-size: 1.05rem;
outline: none;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
vertical-align: top;
padding: 0;
-webkit-tap-highlight-color: transparent;
position: relative;
}
.keyboard__key:active {
background: rgba(255, 255, 255, 0.12);
}
.keyboard__key--wide {
width: 12%;
}
.keyboard__key--extra-wide {
width: 36%;
max-width: 500px;
}
.keyboard__key--activatable::after {
content: "";
top: 10px;
right: 10px;
position: absolute;
width: 8px;
height: 8px;
background: rgba(0, 0, 0, 0.4);
border-radius: 50%;
}
.keyboard__key--active::after {
background: #08ff00;
}
.keyboard__key--dark {
background: rgba(0, 0, 0, 0.25);
}
</style>
</head>
<body>
<div class="container" id="container"></div>
<script></script>
<script src="js/index.js"></script>
</body>
</html>