update projet_detail.html and projet_detail.js

This commit is contained in:
2024-10-24 17:16:00 +02:00
parent e07c99e5bb
commit cea9f2250a

View File

@@ -52,8 +52,8 @@ document.addEventListener("DOMContentLoaded", () => {
document.getElementById("name_project").innerHTML=global_project_list[projectId-1].titre;
fetch("https://timelapse.kerboul.me/api/smile")
.then(response => response.blob())
.then(blob => {
.then(response => response.blob())
.then(blob => {
const url = URL.createObjectURL(blob);
const imageElement = document.getElementById("my-image");
imageElement.src = url;