From 45332b9cdbfc893fd9e67d2540edf8a95c20afe1 Mon Sep 17 00:00:00 2001 From: Lucas Thenert Date: Wed, 18 Jan 2023 11:04:19 +0100 Subject: [PATCH] Erstellung helperScript fuer ausgelagerte Funktionen --- kniffel/inc/helper.js | 8 ++++++++ kniffel/index.html | 1 + 2 files changed, 9 insertions(+) create mode 100644 kniffel/inc/helper.js diff --git a/kniffel/inc/helper.js b/kniffel/inc/helper.js new file mode 100644 index 0000000..5c2d58c --- /dev/null +++ b/kniffel/inc/helper.js @@ -0,0 +1,8 @@ +function moeglicheWuerfeZuruecksetzen(){ + document.getElementById('erlaubteVersuche').innerHTML = '3'; + document.getElementById('CheckBoxWuerfel1').checked = false; + document.getElementById('CheckBoxWuerfel2').checked = false; + document.getElementById('CheckBoxWuerfel3').checked = false; + document.getElementById('CheckBoxWuerfel4').checked = false; + document.getElementById('CheckBoxWuerfel5').checked = false; +} \ No newline at end of file diff --git a/kniffel/index.html b/kniffel/index.html index 9b78b77..35161d6 100644 --- a/kniffel/index.html +++ b/kniffel/index.html @@ -5,6 +5,7 @@ +