From 270ed579cc1cd68e3eec737ef8aa4d8788407a50 Mon Sep 17 00:00:00 2001 From: Jimmy Bell <jimmy.bell@polymtl.ca> Date: Sat, 5 Dec 2020 09:48:25 -0500 Subject: [PATCH] marges et belles choses pour le fonctionnement des choses comme le clickage fuckdavid --- css/styles.css | 7 +++++++ html/chercherUnRepas.html | 1 + html/listeFrigos.html | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/css/styles.css b/css/styles.css index beb7b2a..fa794e7 100644 --- a/css/styles.css +++ b/css/styles.css @@ -152,6 +152,11 @@ iframe { width: 895px; height: 66px; margin-left: 119px; + -webkit-appearance: button; + -moz-appearance: button; + text-decoration: none; + color:black; + margin-top:1em; } .grey-label{ @@ -265,6 +270,7 @@ iframe { width: 895px; height: 66px; margin-left: 119px; + margin-top:1em; } .memberTab { @@ -365,6 +371,7 @@ iframe { color: #FFFFFF; text-align: center; margin-left: 83px; + margin-bottom:0.5em; } .signup-title{ diff --git a/html/chercherUnRepas.html b/html/chercherUnRepas.html index 4a746f6..97c2eda 100644 --- a/html/chercherUnRepas.html +++ b/html/chercherUnRepas.html @@ -48,6 +48,7 @@ } builtUpHTML += '</div>'; document.getElementById('listeRepas').innerHTML = builtUpHTML; + sessionStorage.removeItem('frigoIndex'); } } diff --git a/html/listeFrigos.html b/html/listeFrigos.html index 983b02e..5ac8c46 100644 --- a/html/listeFrigos.html +++ b/html/listeFrigos.html @@ -14,13 +14,13 @@ var obj = httpGetJson(); var builtUpHTML = ""; for(let i = 0; i<obj.array.length; i++) { - builtUpHTML += '<div class="fridgeOutline" href="chercherUnRepas.html" onclick="saveFrigoIndex(event,'+i+')">' + + builtUpHTML += '<a class="fridgeOutline" onclick="saveFrigoIndex(event,'+i+')" href="chercherUnRepas.html" >' + ' <span class="bold">' + obj.array[i].nom + ' </span><br>' + obj.array[i].addresse + - ' Situé à '+obj.array[i].distance+' mètres\n' + - ' </div>' + ' <br>Situé à '+obj.array[i].distance+' mètres\n' + + ' </a>' } document.getElementById("listeFrigo").innerHTML+= builtUpHTML; } -- GitLab