diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-05-24 11:18:46 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-05-24 11:19:55 -0500 |
commit | 7a73162607544204032aa66cce755daf21edebda (patch) | |
tree | 58578e01f15f34a855d99c32898db9d7a1603e67 /OLD/csci4131/lec/lec7big3/RandomPicture.js | |
parent | do some stuff (diff) | |
download | homework-7a73162607544204032aa66cce755daf21edebda.tar homework-7a73162607544204032aa66cce755daf21edebda.tar.gz homework-7a73162607544204032aa66cce755daf21edebda.tar.bz2 homework-7a73162607544204032aa66cce755daf21edebda.tar.lz homework-7a73162607544204032aa66cce755daf21edebda.tar.xz homework-7a73162607544204032aa66cce755daf21edebda.tar.zst homework-7a73162607544204032aa66cce755daf21edebda.zip |
Graduate
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'OLD/csci4131/lec/lec7big3/RandomPicture.js')
-rw-r--r-- | OLD/csci4131/lec/lec7big3/RandomPicture.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/OLD/csci4131/lec/lec7big3/RandomPicture.js b/OLD/csci4131/lec/lec7big3/RandomPicture.js deleted file mode 100644 index b5f4d73..0000000 --- a/OLD/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 |