-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
73 lines (68 loc) · 2.61 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>pixel drawing board</title>
</head>
<body onload="load()">
<!-- <div class="app-content">
<div class="misc-wrapper-left">
<div class="curr-grid-position">X: 0, Y: 0</div>
</div>
<div class="misc-wrapper-center">
<div class="drawing-board-wrapper">
<canvas id="drawing-board"></canvas>
</div>
</div>
<div class="misc-wrapper-right">
<div class="wrapper-right-item drawing-board-setup">
<div class="input-wrapper">
<label for="rows">Rows and Columns</label>
<input type="number" id="current-size" name="rows" value="32" placeholder="The number of rows and columns" max="100" min="1">
</div>
</div>
<div class="wrapper-right-item color-picker">
<div class="input-wrapper">
<label for="favcolor">Colors</label>
<input type="color" id="current-color" name="favcolor" value="#000000" placeholder="Colors">
</div>
<div class="color-board">
<ul class="color-groups" id="color-groups">
</ul>
</div>
</div>
<div class="wrapper-right-item preview">
<div class="title">Preview</div>
<div class="preview-content">
<img id="preview-img" src="" alt="preview">
</div>
</div>
<div class="wrapper-right-item downloads">
<div class="title">Downloads</div>
<div class="downloads-content">
<div class="save-as-image-wrapper">
<label for="image-size">Save as image</label>
<div class="save-as-image-wrapper-content">
<select id="imageSize" name="image-size" placeholder="select image size"></select>
<button type="button" class="download-btns" id="saveToImage">Save</button>
</div>
</div>
<div class="save-as-box-shadow-wrapper">
<label for="image-size">Save as css box-shadow</label>
<div class="save-as-box-shadow-wrapper-content input-wrapper">
<input type="number" id="pre-grid-size" name="rows" value="5" placeholder="Each width" max="20" min="1">
<button type="button" data-clipboard-text="" class="box-shadow-btns" id="saveToBoxShadow">Save</button>
</div>
</div>
</div>
</div>
</div>
</div> -->
<div id="pixel-drawing-demo"></div>
</body>
<script>
function load() {
const board = x_pixeldrawing('#pixel-drawing-demo', {})
}
</script>
</html>