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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script src="{{url_for('static', filename='scripts/home.js')}}"></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>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user