diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js | |
| download | Studium-master.tar.gz Studium-master.tar.bz2 | |
Diffstat (limited to 'Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js')
| -rw-r--r-- | Bachelor/Entwicklung webbasierter Anwendungen/Praktikum2/functions.js | 19 |
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 |
