-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·117 lines (113 loc) · 6.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- CSS Imports -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<!-- MDB -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.css" rel="stylesheet" />
<!-- Custom CSS file -->
<link rel="stylesheet" href="app.css">
</head>
<body>
<nav class="sidebar" id="left-sidebar">
<button class="list-group-item list-group-item-action py-2 ripple" aria-current="true" type="button"
onclick="submitPixelValues()">
<span>Send to Matrix</span>
</button>
<button class="list-group-item list-group-item-action py-2 ripple" aria-current="true" type="button"
onclick="clearPixelGrid()">
<span>Clear Pixel Grid</span>
</button>
<a class="list-group-item list-group-item-action py-2 ripple" data-bs-toggle="collapse"
href="#preset-edit-container" role="button" aria-expanded="false" aria-controls="preset-edit-container">
<span>Create/Edit Preset</span>
</a>
<div class="collapse left-sidebar-container" id="preset-edit-container">
<form class="card card-body" id="create-edit-preset-form">
<input id="preset-name-input" name="presetName" type="text" class="form-control"
placeholder="Preset Name" aria-label="Preset Name Input" aria-describedby="basic-addon2">
<button id="submitPresetForm" class="btn btn-primary saveButton" aria-current="true" type="button"
onclick="createOrEditPreset()">
<span>Save</span>
</button>
</form>
</div>
<a class="list-group-item list-group-item-action py-2 ripple" data-bs-toggle="collapse"
href="#upload-image-container" role="button" aria-expanded="false" aria-controls="upload-image-container">
<span>Upload Image</span>
</a>
<div class="collapse left-sidebar-container" id="upload-image-container">
<form class="card card-body" id="upload-image-form" method="post" enctype="multipart/form-data">
<input id="upload-name-input" name="uploadImageName" type="text" class="form-control"
placeholder="Preset Name" aria-label="Preset Name Input" aria-describedby="basic-addon2">
<label id="preset-image-upload-label" class="btn btn-primary" for="preset-image-upload-input"
aria-label="Preset Image Upload" aria-describedby="basic-addon2">
Select Image
</label>
<input id="preset-image-upload-input" name="uploadImage" type="file" accept="image/png" hidden>
<button id="submitUploadImageForm" class="btn btn-primary saveButton" aria-current="true" type="button"
onclick="uploadImageFunc(this)">
<span>Upload</span>
</button>
</form>
</div>
</nav>
<main id="main-content-wrapper">
<div class="container bg-image" id="pixel-form-container">
<form id="pixel-form" class="container ">
<div class="" id="pixel-grid-container">
<!-- JS Inserts grid here -->
</div>
</form>
</div>
</main>
<nav class="sidebar" id="right-sidebar">
<div class="col-2" id="filter-input-group">
<div class="input-group">
<input id="filter-sidebar-input" type="text" class="form-control" placeholder="Search Presets"
aria-label="Search Presets" aria-describedby="basic-addon2">
<span class="input-group-text" id="basic-addon2">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-search" viewBox="0 0 16 16">
<path
d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z">
</path>
</svg>
</span>
</div>
</div>
<div class="col-10" id="preset-list-container">
<!-- JS Inserts Preset List here -->
</div>
</nav>
<!-- JS Imports -->
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"
integrity="sha512-aVKKRRi/Q/YV+4mjoKBsE4x3H+BkegoM/em46NNlCqNTmUYADjBbeNefNxYV7giUp0VxICtqdrbqU7iVaeZNXA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.5/jquery.validate.min.js"
integrity="sha512-rstIgDs0xPgmG6RX1Aba4KV5cWJbAMcvRCVmglpam9SoHZiUCyQVDdH2LPlxoHtrv17XWblE/V/PP+Tr04hbtA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validation-unobtrusive/4.0.0/jquery.validate.unobtrusive.min.js"
integrity="sha512-xq+Vm8jC94ynOikewaQXMEkJIOBp7iArs3IhFWSWdRT3Pq8wFz46p+ZDFAR7kHnSFf+zUv52B3prRYnbDRdgog=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- Bootstrap -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8"
crossorigin="anonymous"></script>
<!-- Lodash -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<!-- Custom JS file -->
<script src="app.js"></script>
</body>
</html>