Simple datepicker as 2D game where you hit the obstacles with the numbers you want in the date.
Live demo: https://mathiasbk.github.io/Datepicker/example.html
- Include the module in your page:
<script type="module" src="src/main.js"></script>
<link rel="stylesheet" href="src/datepicker.css">- Add a target element:
<div id="date-target"></div>- Initialize the picker (on DOMContentLoaded):
<script>
document.addEventListener('DOMContentLoaded', () => {
FlappyPicker.init(el);
});
</script>