html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pixel Art Maker!</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Monoton">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<h1>Lab: Pixel Art Maker</h1>
<h2>Choose Grid Size</h2>
<form id="sizePicker">
<p>Enter a number between 1 to 20.</p>
Grid Height:
<input type="number" id="input_height" name="height" min="1" max="20" required>
Grid Width:
<input type="number" id="input_width" name="width" min="1" max="20" required>
<input type="submit">
</form>
<h2>Pick A Color</h2>
<input type="color" id="colorPicker">
<h2>Design Canvas</h2>
<table id="pixel_canvas"></table>
<input type="button" id="toggleBtn" value="Toggle Grid">
<script>
Enter to Rename, Shift+Enter to Preview
css
css
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
body {
text-align: center;
}
h1 {
font-family: Monoton;
font-size: 50px;
margin: 0.2em;
}
h2 {
margin: 1em 0 0.25em;
}
h2:first-of-type {
margin-top: 0.5em;
}
table, tr, td {
border: 1px solid black;
}
table {
border-collapse: collapse;
margin: 0 auto;
}
tr {
Enter to Rename, Shift+Enter to Preview
js
js
1
alert('Hi ! Thanks for taking a look at my page comment for any features or improvements..Peace🙆🙆')
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run