summaryrefslogtreecommitdiffstats
path: root/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js')
-rw-r--r--Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js19
1 files changed, 19 insertions, 0 deletions
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