diff options
-rw-r--r-- | assets/js/generator.js | 2 | ||||
-rw-r--r-- | generator.html | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/assets/js/generator.js b/assets/js/generator.js index eabe108..ccdf02c 100644 --- a/assets/js/generator.js +++ b/assets/js/generator.js @@ -1,6 +1,6 @@ document.getElementById('minify').onclick = () => { let a, b, c, d; - const input = document.getElementById('input').value; + const input = document.getElementById('input').value.replace(/#/g, '||').replace(/&/g, '&&'); document.getElementById('log').innerText = ''; document.getElementById('log').append('LOG\ndcba Z ID\n'); diff --git a/generator.html b/generator.html index 4b6a40a..3694a23 100644 --- a/generator.html +++ b/generator.html @@ -20,10 +20,12 @@ <div class="content"> <p class="heading">KV-Diagramm Generator</p> - <p>UND == &&</p> - <p>ODER == ||</p> + <p>UND == &</p> + <p>ODER == #</p> <p>NICHT == !</p> - <p>Es dürfen <u>NUR</u> die Variablen a, b, c und d verwendet werden.</p> + <p> + Es dürfen <u>NUR</u> die Variablen a, b, c und d und die Abel Schreibweise verwendet werden. + </p> <label for="input">Boolescher Funktionsterm:</label> <input id="input" type="text"> <button id="minify">Generieren!</button> |