kanblendar/example.html
Kumi 1ddae1b7d3
feat: add date selector & improve kanban initialization
- Added a date input and an "Update Date" button in the header to allow users to select and update the current date for the Kanban board.
- Modified CSS to support new header layout with flexbox for better alignment and distribution.
- Enhanced JavaScript to initialize the Kanban board with the selected date and to allow dynamic updates based on the chosen date.
- Improved user experience with button hover state and default date setting to today's date.
- Ensured the Kanban state is retained across date changes, enhancing data persistence and usability.
2024-09-09 08:11:36 +02:00

46 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kanblendar</title>
<link rel="stylesheet" href="kanblendar.css" />
<link rel="stylesheet" href="example.css" />
</head>
<body>
<header>
<h1>Kanblendar</h1>
<input type="date" id="kanblendarDate" />
<button id="updateDateBtn">Update Date</button>
<button id="createTaskBtn">Create Task</button>
</header>
<main>
<section
class="kanblendar"
id="kanblendar"
data-columns="Backlog,In Progress,Done"
data-start-time="08:00"
data-end-time="18:00"
data-interval="60"
>
<!-- Kanban columns will be dynamically generated here -->
</section>
</main>
<footer>
<div class="footer-left">
<a href="#" onclick="javascript:clearState(); return false;"
>Delete all entries</a
>
</div>
<div class="footer-right">
Brought to you by
<a href="https://git.private.coffee/kumi/kanblendar">Kumi</a>
</div>
</footer>
<!-- Optional: Developers can define their own modal here -->
<script src="kanblendar.js"></script>
<script src="example.js"></script>
</body>
</html>