Quelques modification de couleur, les scripts sont valides à la fin.

This commit is contained in:
2021-10-12 21:31:35 +02:00
parent e2e7eeba7b
commit 4d7f0c9c5e
4 changed files with 13 additions and 5 deletions
+9 -1
View File
@@ -17,7 +17,7 @@ function putWaitNetworkScreen()
function salleInfosToHtml(salle)
{
titres = "<h2>"+salle.nom+"</h2>"+((salle.aliaz.length!=0)?(" ou <h2>"+salle.aliaz.join("</h2> ou <h2>")+"</h2>"):"");
titres = ((salle.aliaz.length!=0)?("<h2>"+salle.aliaz.join("</h2> ou <h2>")+"</h2>"):"Aucun alias connu.");
locataires = salle.locataires.join(", ");
return titres + ((salle.description!=null)?("\n<br/>\n" + salle.description):"") + ((salle.locataires.length!=0)?("\n<br/>\n<b>Locataires</b>: " + locataires):"");
}
@@ -68,3 +68,11 @@ function initSvgSupport()
salles[i].addEventListener('click', selectSalle);
}
}
// Initialisation du svg.
var plan = document.getElementById('plan');
if(plan.contentDocument==null)
plan.addEventListener('load', initSvgSupport);
else
initSvgSupport();
+1 -1
View File
@@ -14,5 +14,5 @@
}
.current-room {
fill: blue;
fill: rgb(100, 150, 250);
}