diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2021-05-16 21:38:59 -0500 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2021-05-16 21:38:59 -0500 |
commit | 9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c (patch) | |
tree | 9e739b11361f5fd122b31cfce107947502b69809 /csci4131/lec/lec7big3/RandomPicture.js | |
parent | Add trash (diff) | |
download | homework-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 'csci4131/lec/lec7big3/RandomPicture.js')
-rw-r--r-- | csci4131/lec/lec7big3/RandomPicture.js | 21 |
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 |