From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../Praktikum2/functions.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js (limited to 'Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js') diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js new file mode 100644 index 0000000..d60df00 --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js @@ -0,0 +1,19 @@ +function hello() { + alert("Hello"); +} + +function addToCart() { + var warenkorb = document.getElementsByName("warenkorb"); + var newElem = document.createElement("option"); + var newText = document.createTextNode("1 neue Pizza"); + newElem.appendChild(newText); + warenkorb.add(newElem); + +} + +function delFromCart() { +} + +function checkAddr() { + return false; +} \ No newline at end of file -- cgit v1.2.3