From 7a73162607544204032aa66cce755daf21edebda Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 24 May 2022 11:18:46 -0500 Subject: Graduate Signed-off-by: Matt Strapp --- csci4131/lec/lec7big3/CPE.png | Bin 0 -> 4140 bytes csci4131/lec/lec7big3/EPT.png | Bin 0 -> 4319 bytes csci4131/lec/lec7big3/GPP.png | Bin 0 -> 3760 bytes csci4131/lec/lec7big3/GUI.png | Bin 0 -> 4055 bytes csci4131/lec/lec7big3/PERF.png | Bin 0 -> 3282 bytes csci4131/lec/lec7big3/PORT.png | Bin 0 -> 3768 bytes csci4131/lec/lec7big3/RandomPicture.js | 21 +++++++++++++++++++++ csci4131/lec/lec7big3/SEO.png | Bin 0 -> 3862 bytes csci4131/lec/lec7big3/big31.html | 17 +++++++++++++++++ 9 files changed, 38 insertions(+) create mode 100644 csci4131/lec/lec7big3/CPE.png create mode 100644 csci4131/lec/lec7big3/EPT.png create mode 100644 csci4131/lec/lec7big3/GPP.png create mode 100644 csci4131/lec/lec7big3/GUI.png create mode 100644 csci4131/lec/lec7big3/PERF.png create mode 100644 csci4131/lec/lec7big3/PORT.png create mode 100644 csci4131/lec/lec7big3/RandomPicture.js create mode 100644 csci4131/lec/lec7big3/SEO.png create mode 100644 csci4131/lec/lec7big3/big31.html (limited to 'csci4131/lec/lec7big3') diff --git a/csci4131/lec/lec7big3/CPE.png b/csci4131/lec/lec7big3/CPE.png new file mode 100644 index 0000000..d137d51 Binary files /dev/null and b/csci4131/lec/lec7big3/CPE.png differ diff --git a/csci4131/lec/lec7big3/EPT.png b/csci4131/lec/lec7big3/EPT.png new file mode 100644 index 0000000..68b5863 Binary files /dev/null and b/csci4131/lec/lec7big3/EPT.png differ diff --git a/csci4131/lec/lec7big3/GPP.png b/csci4131/lec/lec7big3/GPP.png new file mode 100644 index 0000000..7d8bf3d Binary files /dev/null and b/csci4131/lec/lec7big3/GPP.png differ diff --git a/csci4131/lec/lec7big3/GUI.png b/csci4131/lec/lec7big3/GUI.png new file mode 100644 index 0000000..d7e2ccc Binary files /dev/null and b/csci4131/lec/lec7big3/GUI.png differ diff --git a/csci4131/lec/lec7big3/PERF.png b/csci4131/lec/lec7big3/PERF.png new file mode 100644 index 0000000..807b7a0 Binary files /dev/null and b/csci4131/lec/lec7big3/PERF.png differ diff --git a/csci4131/lec/lec7big3/PORT.png b/csci4131/lec/lec7big3/PORT.png new file mode 100644 index 0000000..3d69844 Binary files /dev/null and b/csci4131/lec/lec7big3/PORT.png differ diff --git a/csci4131/lec/lec7big3/RandomPicture.js b/csci4131/lec/lec7big3/RandomPicture.js new file mode 100644 index 0000000..b5f4d73 --- /dev/null +++ b/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/csci4131/lec/lec7big3/SEO.png b/csci4131/lec/lec7big3/SEO.png new file mode 100644 index 0000000..73d4507 Binary files /dev/null and b/csci4131/lec/lec7big3/SEO.png differ diff --git a/csci4131/lec/lec7big3/big31.html b/csci4131/lec/lec7big3/big31.html new file mode 100644 index 0000000..574401a --- /dev/null +++ b/csci4131/lec/lec7big3/big31.html @@ -0,0 +1,17 @@ + + + + + + + + + Random Image Generator + + + + + Common Programming Error + + + \ No newline at end of file -- cgit v1.2.3