mes trucs

This commit is contained in:
anto
2024-10-24 15:54:30 +02:00
parent 37faba25ba
commit eabcb00537
9 changed files with 168 additions and 132 deletions

12
js/projet_detail.js Normal file
View File

@@ -0,0 +1,12 @@
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;
});