Skip to content
Snippets Groups Projects
Commit 6aff30ba authored by Mamadu-lamarana Bah's avatar Mamadu-lamarana Bah :speech_balloon:
Browse files

gestion de la deconnexion du commissaire

parent 12e5d986
No related branches found
No related tags found
No related merge requests found
......@@ -12,5 +12,7 @@
<div>
<p>Auteur de l'application : <strong>Mamadu BAH</strong></p>
<p>Numéro de version : <strong>V1.0</strong></p>
<a href="./">accueil</a>
</div>
</body>
\ No newline at end of file
......@@ -31,9 +31,12 @@
<button id="sale" type="button" disabled>
<img src="blabla" alt="sale"/>
</button>
</div>
</div>
<a href="./">accueil</a>
</body>
</html>
\ No newline at end of file
......@@ -21,8 +21,11 @@
<button class="price-button">20€</button>
<button class="price-button">50€</button>
<button class="price-button">100€</button>
</div>
<a href="./">accueil</a>
</body>
</html>
\ No newline at end of file
......@@ -26,6 +26,8 @@ socket.on("infos", (name, value) => {
socket.on("changePrix", (nouveauPrix) => {changePrix(nouveauPrix)});
});
socket.on("deconnexion", () => deconnexionAuctiooneer());
function changePrix(nouveauPrix) {
prix[0].textContent = nouveauPrix+"";
prixActuel = nouveauPrix;
......@@ -57,5 +59,12 @@ function win() {
displayButton("none");
}
function deconnexionAuctiooneer() {
ident.textContent = "le comissaire priseur s'est déconnecté, fin de l'nchère";
prix[0].textContent = "-€";
description[0].textContent = "";
displayButton("none");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment