-
Notifications
You must be signed in to change notification settings - Fork 9
/
image-uploader.html
55 lines (45 loc) · 2.1 KB
/
image-uploader.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
<!DOCTYPE html>
<html>
<head>
<?!= include("image-uploader-css"); ?>
<!-- Import Google Icon Font -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<!-- Import cached version of Bootstrap’s compiled CSS and JS from jsDelivr -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<!-- Let the browser know the website is optimized for mobile -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div class="mb-3 d-flex sticky-container">
<input class="form-control form-control-lg me-2" type="file" id="master-input" multiple="" disabled>
<button class="btn btn-primary btn-sm" id="insert-all-btn" onclick="insertAllImages()" disabled>Insert All</button>
<button class="btn btn-secondary btn-sm ms-2" id="refreshButton">Refresh</button>
</div>
<div class="slider-container">
<!-- Slider HTML -->
<div class="slider">
<input type="range" min="1" max="5" step="1" value="2" id="scaleSlider">
</div>
<div class="separator"></div>
<span id="sliderValue">2x</span>
<div class="separator"></div>
<div id="log">Start uploading something...</div> <!-- Add a div element for the log messages -->
</div>
<table id="fileTable" class="table table-bordered table-hover">
<thead>
<tr>
<th scope="col">#</th>
<th>A1</th>
<th>Preview</th>
<th>Upload</th>
<th>Clipboard</th>
</tr>
</thead>
<tbody>
<!-- Add more table rows as needed -->
</tbody>
</table>
<?!= include("image-uploader-js"); ?>
</body>
</html>