mes trucs
This commit is contained in:
12
js/projet_detail.js
Normal file
12
js/projet_detail.js
Normal 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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user