diff options
author | Marvin Borner | 2019-03-21 15:08:47 +0100 |
---|---|---|
committer | Marvin Borner | 2019-03-21 15:08:47 +0100 |
commit | c217ac4b6a13260a777498a7517c3783365bf083 (patch) | |
tree | d9dcc058ba013d5a87da6d097b798ee725e715c3 | |
parent | 6fe593a196b9ddbcb0a961456730358a312c6ef4 (diff) |
Switched to Abel
-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> |