-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
188 lines (171 loc) · 4.9 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap"
rel="stylesheet"
/>
<style>
* {
margin: 0;
padding: 0;
overflow: hidden; /* Hide scrollbars */
}
body {
background-color: black;
}
canvas {
position: fixed;
top: 0;
left: 0;
/*image-rendering: optimizeSpeed; /* Older versions of FF */
/*image-rendering: -moz-crisp-edges; /* FF 6.0+ */
/*image-rendering: -webkit-optimize-contrast; /* Safari */
/*image-rendering: -o-crisp-edges; /* OS X & Windows Opera (12.02+) */
/*image-rendering: pixelated; /* Awesome future-browsers */
/*-ms-interpolation-mode: nearest-neighbor; /* IE */
}
#Copy {
background-color: #cbaa4b;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
position: absolute;
bottom: 15px;
right: 50%;
-ms-transform: translateX(50%);
transform: translateX(50%);
}
#VersionSelect{
background-color: #cbaa4b;
border: none;
color: white;
padding: 7px 16px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
position: absolute;
bottom: 66px;
right: 50%;
-ms-transform: translateX(50%);
transform: translateX(50%);
}
#VersionSelect>option{
/*background-color: red;
position: relative;
top:0px;*/
}
#howto {
position: absolute;
top: 50%;
left: 20px;
width: 25%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
color: white;
}
a {
color: white;
text-decoration: none;
}
#title {
position: absolute;
top: 15px;
right: 50%;
-ms-transform: translateX(50%);
transform: translateX(50%);
color: white;
}
button {
background-color: #cbaa4b;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
#x8x8 {
position: absolute;
bottom: 0px;
left: 0px;
}
#x16x16 {
position: absolute;
bottom: 0px;
left: 100px;
}
#pencil {
position: absolute;
top: 20px;
left: 0px;
padding: 10px 8px;
}
#fill {
position: absolute;
top: 70px;
left: 0px;
padding: 10px 8px;
}
#loadAutosave {
position: absolute;
bottom: 55px;
left: 0px;
}
</style>
<head>
<title id="Title">Loading</title>
<link
rel="shortcut icon"
id="Icon"
href="../assets/player/playerDown.png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="index.js" type="module"></script>
<body>
<div id="canvasHolder"></div>
<h1 id="title">
Minecraft Bundle Art Generator
<a href="https://github.com/KevinWh0/BundleArtGenerator">
<img src="./assets/GitHub-Mark-120px-plus.png" width="20" height="20" />
</a>
</h1>
<button id="Copy">Copy Command!</button>
<select name="Version" id="VersionSelect">
<option value="0">20w45a - 20w49a</option>
<option value="1" selected>20w51a+ (Latest)</option>
</select>
<p id="howto">
How Does it Work? <br />
<br />Make some pixel art here. Click copy and put it in a command block,
then activate it. Open your inventory and HOVER over the bundle to see
your art. <br /><br />
- Made By KevinWho
<a href="https://www.youtube.com/c/kevinwho">
<img src="./assets/youtube_social_squircle_red.png" width="20px" />
</a>
<a href="https://github.com/KevinWh0">
<img src="./assets/GitHub-Mark-120px-plus.png" width="20" height="20" />
</a>
<br /><br /><br /><br /><br />
Note: Somtimes it may not allign up ingame.<br /><br />Also Note: when
using a 16X16 grid you will have to set the GUI SCALE lower than 3(it cant
be on auto) for it to stay on screen.
</p>
<button id="pencil"><img src="./assets/Pencil.svg" width="20px" /></button>
<button id="fill">
<img src="./assets/FillBlucket.svg" width="20px" />
</button>
<button id="x8x8">8X8</button>
<button id="x16x16">16X16</button>
<button id="loadAutosave">Load Autosave</button>
</body>
</html>