moved scripts to folders

This commit is contained in:
2024-12-11 08:17:40 +01:00
parent 72fb73cb5f
commit 156c753d6a
2 changed files with 14 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
function openReservationForm() {
const now = new Date();
const minDate = new Date();
minDate.setDate(now.getDate() + 3); // Exclude today and the next 2 days
const formattedMinDate = minDate.toISOString().split('T')[0];
document.getElementById('datum_konce').setAttribute('min', formattedMinDate);
document.getElementById('reservationForm').style.display = 'block';
}
function closeReservationForm() {
document.getElementById('reservationForm').style.display = 'none';
}

View File

@@ -150,20 +150,6 @@
</div>
</div>
<script>
function openReservationForm() {
const now = new Date();
const minDate = new Date();
minDate.setDate(now.getDate() + 3); // Exclude today and the next 2 days
const formattedMinDate = minDate.toISOString().split('T')[0];
document.getElementById('datum_konce').setAttribute('min', formattedMinDate);
document.getElementById('reservationForm').style.display = 'block';
}
function closeReservationForm() {
document.getElementById('reservationForm').style.display = 'none';
}
</script>
<script src="{{url_for('static', filename='scripts/home.js')}}"></script>
</body>
</html>