diff --git a/css/styles.css b/css/styles.css index beb7b2a4521fcf4ff3f3ef14dcfbf749a44f3f81..fa794e7fe97997e33bd321fddc6b73ec8f88bbe7 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 4a746f69c3f6d70ee68a86245e5b3fd6af9e829c..97c2edae0a554c600ee65cf49939706e9f1155f9 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 983b02ed9ebd5a933bcf090c40f9cfa8cff678d9..5ac8c461ed67f76e9f59604a54447a20a669c522 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; }