summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus2020-10-13 02:55:09 +0200
committerHorus2020-10-13 02:55:09 +0200
commitbf65ff53ac3363d2fe98a83c56aa6310736df9ed (patch)
tree427635527911603b03dea1bd953273a897f993e5
parent500934a229add602950fcb16219e25c14b63f5e2 (diff)
downloadpizza-bf65ff53ac3363d2fe98a83c56aa6310736df9ed.tar.gz
bugfix.
-rw-r--r--index.html8
1 files 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;