Files
timelapse-frontend/js/projet_detail.js
2024-10-24 15:54:30 +02:00

13 lines
495 B
JavaScript

document.addEventListener("DOMContentLoaded", () => {
const urlParams = new URLSearchParams(window.location.search);
const projectId = urlParams.get("id");
document.getElementById("projets").addEventListener("click", () => {
window.location.href = "../index.html";
current_project="";
});
global_project_list=JSON.parse(localStorage.getItem("project_list"));
document.getElementById("name_project").innerHTML=global_project_list.rows[projectId-1].name;
});