aboutsummaryrefslogtreecommitdiffstats
path: root/OLD/csci4131/lec/lec7big3
diff options
context:
space:
mode:
authorRossTheRoss <mstrapp@protonmail.com>2021-05-16 21:38:59 -0500
committerRossTheRoss <mstrapp@protonmail.com>2021-05-16 21:38:59 -0500
commit9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c (patch)
tree9e739b11361f5fd122b31cfce107947502b69809 /OLD/csci4131/lec/lec7big3
parentAdd trash (diff)
downloadhomework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar
homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.gz
homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.bz2
homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.lz
homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.xz
homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.zst
homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.zip
Rearrange files
Diffstat (limited to 'OLD/csci4131/lec/lec7big3')
-rw-r--r--OLD/csci4131/lec/lec7big3/CPE.pngbin0 -> 4140 bytes
-rw-r--r--OLD/csci4131/lec/lec7big3/EPT.pngbin0 -> 4319 bytes
-rw-r--r--OLD/csci4131/lec/lec7big3/GPP.pngbin0 -> 3760 bytes
-rw-r--r--OLD/csci4131/lec/lec7big3/GUI.pngbin0 -> 4055 bytes
-rw-r--r--OLD/csci4131/lec/lec7big3/PERF.pngbin0 -> 3282 bytes
-rw-r--r--OLD/csci4131/lec/lec7big3/PORT.pngbin0 -> 3768 bytes
-rw-r--r--OLD/csci4131/lec/lec7big3/RandomPicture.js21
-rw-r--r--OLD/csci4131/lec/lec7big3/SEO.pngbin0 -> 3862 bytes
-rw-r--r--OLD/csci4131/lec/lec7big3/big31.html17
9 files changed, 38 insertions, 0 deletions
diff --git a/OLD/csci4131/lec/lec7big3/CPE.png b/OLD/csci4131/lec/lec7big3/CPE.png
new file mode 100644
index 0000000..d137d51
--- /dev/null
+++ b/OLD/csci4131/lec/lec7big3/CPE.png
Binary files differ
diff --git a/OLD/csci4131/lec/lec7big3/EPT.png b/OLD/csci4131/lec/lec7big3/EPT.png
new file mode 100644
index 0000000..68b5863
--- /dev/null
+++ b/OLD/csci4131/lec/lec7big3/EPT.png
Binary files differ
diff --git a/OLD/csci4131/lec/lec7big3/GPP.png b/OLD/csci4131/lec/lec7big3/GPP.png
new file mode 100644
index 0000000..7d8bf3d
--- /dev/null
+++ b/OLD/csci4131/lec/lec7big3/GPP.png
Binary files differ
diff --git a/OLD/csci4131/lec/lec7big3/GUI.png b/OLD/csci4131/lec/lec7big3/GUI.png
new file mode 100644
index 0000000..d7e2ccc
--- /dev/null
+++ b/OLD/csci4131/lec/lec7big3/GUI.png
Binary files differ
diff --git a/OLD/csci4131/lec/lec7big3/PERF.png b/OLD/csci4131/lec/lec7big3/PERF.png
new file mode 100644
index 0000000..807b7a0
--- /dev/null
+++ b/OLD/csci4131/lec/lec7big3/PERF.png
Binary files differ
diff --git a/OLD/csci4131/lec/lec7big3/PORT.png b/OLD/csci4131/lec/lec7big3/PORT.png
new file mode 100644
index 0000000..3d69844
--- /dev/null
+++ b/OLD/csci4131/lec/lec7big3/PORT.png
Binary files differ
diff --git a/OLD/csci4131/lec/lec7big3/RandomPicture.js b/OLD/csci4131/lec/lec7big3/RandomPicture.js
new file mode 100644
index 0000000..b5f4d73
--- /dev/null
+++ b/OLD/csci4131/lec/lec7big3/RandomPicture.js
@@ -0,0 +1,21 @@
+var iconImg;
+
+function randImage() {
+ var index = Math.floor(Math.random()*7);
+
+ var pictures = ["CPE", "EPT", "GPP", "GUI", "PERF", "PORT", "SEO"];
+ var descriptions = ["Common Programming Error",
+ "Error-Prevention Tip", "Good Programming Practice",
+ "Look-and-Feel Observation", "Performance Tip", "Portability Tip",
+ "Software Engineering Observation"];
+
+ iconImg.src = pictures[index] + ".png";
+ iconImg.alt = descriptions[index];
+}
+
+function start() {
+ iconImg = document.getElementById("image");
+ iconImg.addEventListener("click", randImage, false);
+}
+
+window.addEventListener("load", start); \ No newline at end of file
diff --git a/OLD/csci4131/lec/lec7big3/SEO.png b/OLD/csci4131/lec/lec7big3/SEO.png
new file mode 100644
index 0000000..73d4507
--- /dev/null
+++ b/OLD/csci4131/lec/lec7big3/SEO.png
Binary files differ
diff --git a/OLD/csci4131/lec/lec7big3/big31.html b/OLD/csci4131/lec/lec7big3/big31.html
new file mode 100644
index 0000000..574401a
--- /dev/null
+++ b/OLD/csci4131/lec/lec7big3/big31.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+
+<!-- Fig. 10.11: RandomPicture.html -->
+<!-- HTML5 document that displays randomly selected images. -->
+<html>
+
+<head>
+ <meta charset="utf-8">
+ <title>Random Image Generator</title>
+ <script src="RandomPicture.js"></script>
+</head>
+
+<body>
+ <img id="image" src="CPE.png" alt="Common Programming Error">
+</body>
+
+</html> \ No newline at end of file