-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (67 loc) · 2.09 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>マイクラ斜め線生成機</title>
<style>
body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1.2rem;
}
main {
height: 100vh;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
#dig {
text-align: right; font-size: 2rem;
}
#grid {
display: flex;
flex-direction: column;
background-color: gray;
gap: 1px;
border: solid 1px gray;
margin: 5px;
max-height: 200px;
overflow-y: scroll;
}
#grid div {
display: flex;
flex-direction: row;
gap: 1px;
}
.t, .f {
display: inline-block;
width: 10px;
height: 10px;
}
.t {
background-color: black;
}
.f {
background-color: white;
}
input[type="number"] {
width: 95vw;
}
</style>
</head>
<body>
<main>
<h1>マイクラ斜め線生成機</h1>
<p>これはオープンソースです。プルリク是非。<a href="https://github.com/fhrk-78/mcdiagonal-line-generator">Github</a></p>
<label>グリッド</label><input type="number" id="maxgrid" value="15" style="text-align: right; font-size: 2rem;" />
<label>角度(°)</label><input type="number" id="dig" value="33.4" />
<a href="javascript:gen()" class="genb">生成</a>
<span style="background-color: black; color: white;" id="output">まだ生成されていません!</span>
<div id="grid"></div>
</main>
<script src="main.js" defer async></script>
</body>
</html>