From bf65ff53ac3363d2fe98a83c56aa6310736df9ed Mon Sep 17 00:00:00 2001 From: Horus Date: Tue, 13 Oct 2020 02:55:09 +0200 Subject: bugfix. --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 80b8b11..e73392f 100644 --- a/index.html +++ b/index.html @@ -250,7 +250,11 @@ document.getElementById('pizza' + id).style.width = d + "cm"; document.getElementById('pizza' + id).style.height= d + "cm"; - document.getElementById('pizza' + id).style.border= r + "cm solid rgb(230, 219, 128)"; + if ( r ) { + document.getElementById('pizza' + id).style.border= r + "cm solid rgb(230, 219, 128)"; + } else { + document.getElementById('pizza' + id).style.border = 0; + } document.body.style.zoom = 1.0; if ( 0 != r ) { @@ -294,7 +298,7 @@ } } - if ( "" != rec ) { + if ( rec ) { // Zeig Empfehlung an document.getElementById('rec').classList.remove("hidden"); document.getElementById('rec').innerHTML = rec; -- cgit v1.2.3