aboutsummaryrefslogtreecommitdiffstats
path: root/csci4131/lec/lec7big3/RandomPicture.js
diff options
context:
space:
mode:
Diffstat (limited to 'csci4131/lec/lec7big3/RandomPicture.js')
-rw-r--r--csci4131/lec/lec7big3/RandomPicture.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/csci4131/lec/lec7big3/RandomPicture.js b/csci4131/lec/lec7big3/RandomPicture.js
deleted file mode 100644
index b5f4d73..0000000
--- a/csci4131/lec/lec7big3/RandomPicture.js
+++ /dev/null
@@ -1,21 +0,0 @@
-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