Files
timelapse-frontend/index.html
2025-02-15 19:20:43 +01:00

79 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timelapse</title>
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body>
<div id="customAlert" class="modal">
<div class="modal-content">
<p id="alertMessage">This is a custom alert!</p>
<div class="modal-buttons">
<button class="btn btn-danger"id="cancelBtn">Cancel</button>
<button class="btn btn-primary"id="okBtn">OK</button>
</div>
</div>
</div>
<div id="form-container" class="form-container" style="display: none">
<div class="form-content" id="place-of-form">
<button id="close-form-button" class="close-button">&times;</button>
<h1>Formulaire</h1>
<div id="my-form">
<label for="name">Nom :</label>
<input type="text" id="name" name="name" required />
<br /><br />
<label for="description">Description :</label>
<input type="text" id="description" name="description" required />
<br /><br />
<button class="btn btn-primary" id="submit">Soumettre</button>
</div>
</div>
</div>
<div id="section" class="container mt-5">
<div class="buttons-container mb-4">
<button class="btn btn-primary" id="video" ><span>Mes vidéos</span></button>
<button class="btn btn-primary" id="download" ><span>Download App</span></button>
<button class="btn btn-primary" id="show-form-button"><span>+</span></button>
</div>
<table class="table table-striped" id="table-projects">
<thead class="bg-blue-600 text-white">
<tr>
<th>Name</th>
<th>Images</th>
<th>Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<footer class="text-center mt-5 py-3">
<p>&copy; 2025 Timelapse. All rights reserved.</p>
</footer>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="../js/utilities/constVariables.js"></script>
<script src="../js/utilities/routes.js"></script>
<script src="../js/index.js"></script>
<script>
// Redirect to videos.php when the "Mes vidéos" button is clicked
document.addEventListener('DOMContentLoaded', () => {
document.getElementById("video").addEventListener('click', () => {
window.location.href = 'html/videos.html';
});
});
</script>
</body>
</html>