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:
@@ -164,3 +164,16 @@
|
|||||||
.highlight{
|
.highlight{
|
||||||
background-color: red;
|
background-color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.middle-place{
|
||||||
|
position: absolute;
|
||||||
|
top: 45%;
|
||||||
|
left: 40%;
|
||||||
|
}
|
||||||
|
.explaination-text{
|
||||||
|
font-size: 1.5em;
|
||||||
|
color: #ffffff;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
@@ -294,14 +294,14 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|||||||
firstInput.max = lastValue;
|
firstInput.max = lastValue;
|
||||||
lastInput.min = firstValue;
|
lastInput.min = firstValue;
|
||||||
}
|
}
|
||||||
if (DataMetrics != 404) {
|
const project = data.find((project) => project.id == projectId);
|
||||||
const project = data.find((project) => project.id == projectId);
|
|
||||||
if (project) {
|
if (project) {
|
||||||
for (obj of document.getElementsByClassName("name_project"))
|
for (obj of document.getElementsByClassName("name_project"))
|
||||||
obj.innerHTML = project.name;
|
obj.innerHTML = project.name;
|
||||||
} else {
|
} else {
|
||||||
console.error("Project not found");
|
console.error("Project not found");
|
||||||
}
|
}
|
||||||
|
if (DataMetrics != 404) {
|
||||||
|
|
||||||
choiceSelect.addEventListener("change", toggleContainers);
|
choiceSelect.addEventListener("change", toggleContainers);
|
||||||
|
|
||||||
@@ -318,6 +318,14 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|||||||
for (el of document.querySelectorAll(".box")) {
|
for (el of document.querySelectorAll(".box")) {
|
||||||
el.style.display = "none";
|
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
<!-- page classique -->
|
<!-- page classique -->
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<div class="buttons-container">
|
<div class="buttons-container" id="buttons-container">
|
||||||
<button class="default-button" id="projets">Menu Principal</button>
|
<button class="default-button" id="projets">Menu Principal</button>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<select name="videos" id="video_selector"></select>
|
<select name="videos" id="video_selector"></select>
|
||||||
|
|||||||
Reference in New Issue
Block a user