Rewrote js in jquery and started working on showing images and potentialy addin metadata to images (Spicy lvl, etc)
This commit is contained in:
1
website/Admin.go
Normal file
1
website/Admin.go
Normal file
@@ -0,0 +1 @@
|
||||
package admin
|
||||
@@ -4,12 +4,13 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Admin</title>
|
||||
<link rel="stylesheet" href="/static/css/admin.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<nav>
|
||||
<button class="tab-button" id="button-1" onclick="openTab(event, 1)">Image Upload</button>
|
||||
<button class="tab-button" id="button-2" onclick="openTab(event, 2)">null</button>
|
||||
<button class="tab-button" id="1">Image Upload</button>
|
||||
<button class="tab-button" id="2">Images</button>
|
||||
</nav>
|
||||
|
||||
<div class="tab-container" id="tab-1">
|
||||
@@ -24,9 +25,27 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-container" id="tab-2">
|
||||
|
||||
<h1>
|
||||
Images
|
||||
</h1>
|
||||
<div>
|
||||
<table id="imagesTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Image</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script src="/static/js/admin.js"></script>
|
||||
<script src="/static/js/image_upload.js"></script>
|
||||
<script src="/static/js/images.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user