aboutsummaryrefslogtreecommitdiffstats
path: root/csci4131
diff options
context:
space:
mode:
authorRossTheRoss <mstrapp@protonmail.com>2021-02-10 11:13:32 -0600
committerRossTheRoss <mstrapp@protonmail.com>2021-02-10 11:13:32 -0600
commitdd3a6da3f0476ba984c1599fbe0d5d6a210b6ed4 (patch)
tree1932fc18c8b5ee75e1226ccee28cd6e090d3f9e6 /csci4131
parentl (diff)
downloadhomework-dd3a6da3f0476ba984c1599fbe0d5d6a210b6ed4.tar
homework-dd3a6da3f0476ba984c1599fbe0d5d6a210b6ed4.tar.gz
homework-dd3a6da3f0476ba984c1599fbe0d5d6a210b6ed4.tar.bz2
homework-dd3a6da3f0476ba984c1599fbe0d5d6a210b6ed4.tar.lz
homework-dd3a6da3f0476ba984c1599fbe0d5d6a210b6ed4.tar.xz
homework-dd3a6da3f0476ba984c1599fbe0d5d6a210b6ed4.tar.zst
homework-dd3a6da3f0476ba984c1599fbe0d5d6a210b6ed4.zip
e
Diffstat (limited to 'csci4131')
-rw-r--r--csci4131/lec/08ShepherdLabs960.jpgbin0 -> 675244 bytes
-rw-r--r--csci4131/lec/Lec6Ex1.html39
-rw-r--r--csci4131/lec/Lec6Ex2.html37
-rw-r--r--csci4131/lec/gophers-mascot.pngbin0 -> 82836 bytes
4 files changed, 76 insertions, 0 deletions
diff --git a/csci4131/lec/08ShepherdLabs960.jpg b/csci4131/lec/08ShepherdLabs960.jpg
new file mode 100644
index 0000000..d1262f8
--- /dev/null
+++ b/csci4131/lec/08ShepherdLabs960.jpg
Binary files differ
diff --git a/csci4131/lec/Lec6Ex1.html b/csci4131/lec/Lec6Ex1.html
new file mode 100644
index 0000000..7b45e18
--- /dev/null
+++ b/csci4131/lec/Lec6Ex1.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+
+<!-- Addition script. -->
+<html>
+
+<head>
+ <meta charset="utf-8">
+ <title>Add and Multiply Program</title>
+ <script>
+
+
+ var number1; // first number to add
+ var number2; // second number to add
+ var sum; // sum of number1 and number2
+ var product; // product of number1 and number2
+
+ // read in first number from user as a string, use the window object’s prompt method
+ // The window object is a global object - all methods and properties that are not part of another object are part of the window object
+
+ number1 = window.prompt("Enter first integer");
+ // read in second number from user as a string – note you can omit the object name and dot operator
+ // when referring to properties or attributes of the window object because it is global
+
+ number2 = window.prompt("Enter second integer");
+
+ number1 = parseInt(number1);
+ number2 = parseInt(number2);
+ sum = parseInt(number1) + parseInt(number2); // add the numbers
+ product = number1 * number2; //multiply the numbers
+
+ // display the results – uses the document object, highest object in the DOM structure. You have to use object name and dot operator.
+ document.writeln("<h1>The program returns " + sum + " as the sum, and</h1>");
+ document.writeln("<h1>" + product + " as the product</h1>");
+ </script>
+</head>
+
+<body></body>
+
+</html> \ No newline at end of file
diff --git a/csci4131/lec/Lec6Ex2.html b/csci4131/lec/Lec6Ex2.html
new file mode 100644
index 0000000..99f5843
--- /dev/null
+++ b/csci4131/lec/Lec6Ex2.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Possible HW2 constructs</title>
+ <style>
+ table, tr, td {
+ border:0.25em solid black;
+ border-collapse:collapse;
+ }
+ </style>
+ <script>
+ function chgimg(name, txt) {
+ // Debug output statements - rudimentary stuff
+ //alert("name: " + name);
+ //alert("alternate text: " + txt);
+ var theimage = document.getElementById("image");
+ theimage.src = name;
+ theimage.alt = txt;
+ }
+ </script>
+
+ </head>
+ <body>
+ <table>
+ <tr onmouseover="chgimg('08ShepherdLabs960.jpg', 'Shepherd Labs')">
+ <td> Shepherd Labs </td>
+ <td> 100 Union St SE <br> Minneapolis, MN 55455 </td>
+ </tr>
+ </table>
+ <div>
+ <img id="image" src="gophers-mascot.png" alt="Goldy Gopher">
+ </div>
+ </body>
+<html>
+
+ \ No newline at end of file
diff --git a/csci4131/lec/gophers-mascot.png b/csci4131/lec/gophers-mascot.png
new file mode 100644
index 0000000..44e62fa
--- /dev/null
+++ b/csci4131/lec/gophers-mascot.png
Binary files differ