feat: RoomID is fully implemented

This commit is contained in:
2024-07-01 17:13:37 +02:00
parent 8b8579e988
commit 6e5e141372
7 changed files with 246 additions and 59 deletions

35
templates/create.html Normal file
View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fête de la musique</title>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
{{ bootstrap.load_css() }}
</head>
<body>
<div>
<div>
<script>
if ("{{type}}" === "error") {
Swal.fire({
title: "{{ response }}",
text: "{{ comment }}",
icon: "{{ type }}",
confirmButtonText: "Try again",
}).then(function() {
window.location = "/";
})
}
Swal.fire({
title:"{{ response }}",
text: "{{ comment }}",
icon: "{{ type }}",
imageUrl: "data:image/png;base64, {{ image }}",
confirmButtonText: "Add some music!",
}).then(function() {
window.location = "/search/{{ roomid }}";
})
</script>
</div>
</div>
</body>