moved scripts to folders
This commit is contained in:
13
web/static/scripts/home.js
Normal file
13
web/static/scripts/home.js
Normal 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';
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user