-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
147 lines (145 loc) · 3.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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> x-keyboard </title>
<style>
html {
height: 100%;
width: 100%;
font-family: sans-serif;
background-color: #ddd;
}
body {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 0 25px;
margin: auto;
max-width: 51em;
height: 100%;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
box-shadow: 0px 1px 10px #888;
background-color: #fff;
}
header {
font-size: 1rem;
color: brown;
}
h1 {
margin-bottom: 0.2em;
font-size: 1.4rem;
border-bottom: 1px solid brown;
}
div {
text-align: center;
}
input {
box-sizing: border-box;
width: 100%;
margin-bottom: .5em;
text-align: center;
font-size: 1.3em;
}
footer {
border-top: 1px solid brown;
text-align: right;
padding: 0.2rem 0 0.5rem;
}
footer a {
color: brown;
}
input, select { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
html {
background-color: #333;
}
body {
background-color: #222;
border-color: #111;
box-shadow: 0px 1px 10px #111;
color: #ccc;
}
h1, h2, header, footer a { color: #e74; }
h1, h2, footer { border-color: #e74; }
h1 + p { color: #e74b; }
}
</style>
<script src="main.js" type="module"></script>
<script src="demo.js"></script>
</head>
<body>
<header>
<h1><x-keyboard></h1>
<small>
Zero-dependency web component to display and emulate keyboard layouts.
</small>
</header>
<div>
<input spellcheck="false">
<x-keyboard id="keyboard"></x-keyboard>
<form>
<select id="layout">
<option value="" selected>(no layout)</option>
<option>be</option>
<option>bg</option>
<option>br</option>
<option>ch</option>
<option>ch(fr)</option>
<option>de</option>
<option>dk</option>
<option>es</option>
<option>fr</option>
<option>fr(afnor)</option>
<option>fr(bepo)</option>
<option>fr(dvorak)</option>
<option>fr(ergol)</option>
<option>fr(lafayette)</option>
<option>gb</option>
<option>gb(dvorak)</option>
<option>gr</option>
<option>it</option>
<option>latam</option>
<option>no</option>
<option>pt</option>
<option>ru</option>
<option>ru(legacy)</option>
<option>se</option>
<option>ua</option>
<option>us</option>
<option>us(intl)</option>
<option>us(colemak)</option>
<option>us(dvorak)</option>
<option>us(workman)</option>
</select>
<select id="geometry">
<option value="" selected> (auto) </option>
<option value="alt"> ALT </option>
<option value="ks"> KS </option>
<option value="jis"> JIS </option>
<option value="abnt"> ABNT </option>
<option value="iso"> ISO </option>
<option value="ansi"> ANSI </option>
<option value="ol60"> 60% </option>
<option value="ol50"> 50% </option>
<option value="ol40"> 40% </option>
</select>
<select id="platform">
<option value="" selected> (auto) </option>
<option value="win"> win </option>
<option value="mac"> mac </option>
<option value="linux"> linux </option>
</select>
<select id="theme">
<option value="" selected>(no theme)</option>
<option>reach</option>
<option>hints</option>
</select>
</form>
</div>
<footer>
<a href="https://github.com/fabi1cazenave/x-keyboard">project page</a>
</footer>
</body>
</html>