Cleaned up script.php

This commit is contained in:
Yannic 2025-09-25 18:12:40 +02:00
parent 51097f79c3
commit 3fc3a50699
2 changed files with 4 additions and 7 deletions

View file

@ -254,7 +254,7 @@
</table> </table>
<br> <br>
<div id="result"></div> <div id="result"></div>
<?= include "script.php" ?> <?php include "script.php" ?>
</body> </body>
</html> </html>

View file

@ -1,6 +1,4 @@
<!DOCTYPE html> <script>
<html>
<script>
document.getElementById('bookForm').addEventListener('submit', function (e) { document.getElementById('bookForm').addEventListener('submit', function (e) {
e.preventDefault(); // prevent normal form submission e.preventDefault(); // prevent normal form submission
@ -191,5 +189,4 @@ document.querySelector("#borrowerSelect").addEventListener("change", function ()
copySelect.innerHTML = '<option value="">Bitte zuerst einen Ausleiher wählen</option>'; copySelect.innerHTML = '<option value="">Bitte zuerst einen Ausleiher wählen</option>';
} }
}); });
</script> </script>
</html>