Ajout de styles pour le conteneur de boutons et d'un message d'explication dans la page de détails du projet.
This commit is contained in:
@@ -294,14 +294,14 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
firstInput.max = lastValue;
|
||||
lastInput.min = firstValue;
|
||||
}
|
||||
if (DataMetrics != 404) {
|
||||
const project = data.find((project) => project.id == projectId);
|
||||
const project = data.find((project) => project.id == projectId);
|
||||
if (project) {
|
||||
for (obj of document.getElementsByClassName("name_project"))
|
||||
obj.innerHTML = project.name;
|
||||
} else {
|
||||
console.error("Project not found");
|
||||
}
|
||||
if (DataMetrics != 404) {
|
||||
|
||||
choiceSelect.addEventListener("change", toggleContainers);
|
||||
|
||||
@@ -318,6 +318,14 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
for (el of document.querySelectorAll(".box")) {
|
||||
el.style.display = "none";
|
||||
}
|
||||
document.getElementById("buttons-container").classList.add("middle-place");
|
||||
document.getElementById("toggle-view").style.display = "none";
|
||||
// add an explaination to the user
|
||||
const explaination = document.createElement("p");
|
||||
explaination.innerHTML =
|
||||
"Ce projet est encore vierge, il n'y a pas de données à afficher. <br> Veuillez configurer la caméra pour commencer à prendre des images.";
|
||||
explaination.classList.add("explaination-text");
|
||||
document.getElementById("title-global").appendChild(explaination);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user