2024-04-13 03:19:40 +00:00
|
|
|
<!DOCTYPE html>
|
2024-04-13 05:47:07 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Drag and Drop Image Upload</title>
|
|
|
|
<link rel="stylesheet" href="css/styles.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- Navigation Bar -->
|
|
|
|
<nav>
|
|
|
|
<div class="nav-container">
|
|
|
|
<a href="index.html" class="nav-logo">Image Upload</a>
|
|
|
|
<ul class="nav-menu">
|
|
|
|
<li><a href="index.html" class="active">Home</a></li>
|
|
|
|
<li><a href="gallery/gallery.html">Gallery</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<!-- Home Page (Upload) -->
|
|
|
|
<div id="drag-drop-container">
|
|
|
|
<h2>Drag and Drop Images</h2>
|
2024-04-13 06:06:55 +00:00
|
|
|
<p>Drop your PNG or JPEG files here <br><br>or click to select a file</p>
|
|
|
|
<div id="file-info"></div>
|
|
|
|
<input type="file" id="file-input" name="file" accept="image/png, image/jpeg" hidden>
|
2024-04-13 05:47:07 +00:00
|
|
|
</div>
|
2024-04-13 06:06:55 +00:00
|
|
|
<br>
|
2024-04-13 06:32:29 +00:00
|
|
|
<br>
|
|
|
|
<button id="upload-button" type="button" disabled> Upload</button>
|
2024-04-13 06:06:55 +00:00
|
|
|
|
|
|
|
<script src="js/script.js"></script>
|
2024-04-13 05:47:07 +00:00
|
|
|
</body>
|
2024-04-13 03:19:40 +00:00
|
|
|
</html>
|