-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
66 lines (66 loc) · 1.52 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>what's that identicon</title>
<style>
* {
font-family: monospace;
}
body {
padding: 5px;
max-width: 500px;
}
#container {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
background-color: rgb(240, 240, 240);
width: 250px;
height: 250px;
padding: 25px;
border-radius: 5px;
}
.box {
display: inline-grid;
cursor: pointer;
}
.box.on {
background-color: #c9627c;
}
.box.off {
background-color: transparent;
}
#output {
border: 1px dotted black;
width: 300px;
height: 200px;
overflow-y: scroll;
padding: 5px;
margin: 12px 0;
}
#output a {
display: block;
}
ol {
padding-left: 1.7em;
}
#png-url-wrapper {
display: none;
}
</style>
</head>
<body>
<main>
<div id="container"></div>
<button>Go</button>
<a href="#" id="account-url"></a>
<span id="png-url-wrapper">(<a href="#" id="png-url"></a>)</span>
<div id="output">Click on pixels to toggle them and then click Go.</div>
<p>
<a href="https://github.com/kashav/identicon">Source code on GitHub.</a>
</p>
</main>
<script src="script.js"></script>
</body>
</html>