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

This commit is contained in:
Mysaa 2021-10-12 21:31:35 +02:00
parent e2e7eeba7b
commit 4d7f0c9c5e
Signed by: Mysaa
GPG Key ID: DBA23608F23F5A10
4 changed files with 13 additions and 5 deletions

View File

@ -35,7 +35,7 @@
<br/> <br/>
<object type="image/svg+xml" data="maps/M-MGN1-3.svg" id="plan" onload="initSvgSupport()"> <object type="image/svg+xml" data="maps/M-MGN1-3.svg" id="plan">
Votre navigateur ne sait pas charger les objets HTML.... Je vais voir ce que je peux faire. Votre navigateur ne sait pas charger les objets HTML.... Je vais voir ce que je peux faire.
</object> </object>

View File

@ -676,10 +676,10 @@
inkscape:label="salle-M-GN1-3-af" /> inkscape:label="salle-M-GN1-3-af" />
<path <path
d="m 28,285.375 33.888,1.602 1.112,7.648 h 34 l 1,-131.75 -89.5,1.25 0.188,121.777 z" d="m 28,285.375 33.888,1.602 1.112,7.648 h 34 l 1,-131.75 -89.5,1.25 0.188,121.777 z"
id="path-salle-M-GN1-34-ae" id="path-salle-M-GN1-3-ae"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
class="svg-salle" class="svg-salle"
inkscape:label="salle-M-GN1-34-ae" /> inkscape:label="salle-M-GN1-3-ae" />
<path <path
d="m 322.87934,948.60483 v -10.08959 h 10.39951 v 2.06717 h 10.52548 v 8.36265 z" d="m 322.87934,948.60483 v -10.08959 h 10.39951 v 2.06717 h 10.52548 v 8.36265 z"
id="path-salle-M-GN1-3-de" id="path-salle-M-GN1-3-de"

Before

Width:  |  Height:  |  Size: 295 KiB

After

Width:  |  Height:  |  Size: 295 KiB

View File

@ -17,7 +17,7 @@ function putWaitNetworkScreen()
function salleInfosToHtml(salle) 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(", "); 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):""); 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); salles[i].addEventListener('click', selectSalle);
} }
} }
// Initialisation du svg.
var plan = document.getElementById('plan');
if(plan.contentDocument==null)
plan.addEventListener('load', initSvgSupport);
else
initSvgSupport();

View File

@ -14,5 +14,5 @@
} }
.current-room { .current-room {
fill: blue; fill: rgb(100, 150, 250);
} }