diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2021-02-10 12:22:01 -0600 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2021-02-10 12:22:01 -0600 |
commit | 6f8df753c507c9fc98b7b1428a69b5a799da6239 (patch) | |
tree | 3796dafa522a43adcc57f1f479e3bd0c7a00032d | |
parent | e (diff) | |
download | homework-6f8df753c507c9fc98b7b1428a69b5a799da6239.tar homework-6f8df753c507c9fc98b7b1428a69b5a799da6239.tar.gz homework-6f8df753c507c9fc98b7b1428a69b5a799da6239.tar.bz2 homework-6f8df753c507c9fc98b7b1428a69b5a799da6239.tar.lz homework-6f8df753c507c9fc98b7b1428a69b5a799da6239.tar.xz homework-6f8df753c507c9fc98b7b1428a69b5a799da6239.tar.zst homework-6f8df753c507c9fc98b7b1428a69b5a799da6239.zip |
a
-rw-r--r-- | .vscode/launch.json | 1 | ||||
-rw-r--r-- | csci4131/lec/Lec7Ex1.html | 20 | ||||
-rw-r--r-- | csci4131/lec/lec7big3/CPE.png | bin | 0 -> 4140 bytes | |||
-rw-r--r-- | csci4131/lec/lec7big3/EPT.png | bin | 0 -> 4319 bytes | |||
-rw-r--r-- | csci4131/lec/lec7big3/GPP.png | bin | 0 -> 3760 bytes | |||
-rw-r--r-- | csci4131/lec/lec7big3/GUI.png | bin | 0 -> 4055 bytes | |||
-rw-r--r-- | csci4131/lec/lec7big3/PERF.png | bin | 0 -> 3282 bytes | |||
-rw-r--r-- | csci4131/lec/lec7big3/PORT.png | bin | 0 -> 3768 bytes | |||
-rw-r--r-- | csci4131/lec/lec7big3/RandomPicture.js | 21 | ||||
-rw-r--r-- | csci4131/lec/lec7big3/SEO.png | bin | 0 -> 3862 bytes | |||
-rw-r--r-- | csci4131/lec/lec7big3/big31.html | 17 |
11 files changed, 58 insertions, 1 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index fd15efc..bd0b718 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,7 +4,6 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
-
{
"type": "java",
"name": "Debug (Launch) with Arguments Prompt",
diff --git a/csci4131/lec/Lec7Ex1.html b/csci4131/lec/Lec7Ex1.html new file mode 100644 index 0000000..d7c46e4 --- /dev/null +++ b/csci4131/lec/Lec7Ex1.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title>Titles are for better people</title> + <script> + function clock() { + var datenow = new Date; + var timenow = datenow.toLocaleTimeString(); + document.getElementById("clock").value = timenow; + } + var intId = setInterval(function () { clock() }, 1000); + </script> +</head> +<body> + <input type="text" id="clock"> + <button onclick="intId=clearInterval(intId)">STOP</button> + <button onclick="intId = setInterval(function(){clock()}, 1000)">START</button> + <button onclick="document.getElementById('clock').value = ''">CLEAR</button> +</body>
\ No newline at end of file diff --git a/csci4131/lec/lec7big3/CPE.png b/csci4131/lec/lec7big3/CPE.png Binary files differnew file mode 100644 index 0000000..d137d51 --- /dev/null +++ b/csci4131/lec/lec7big3/CPE.png diff --git a/csci4131/lec/lec7big3/EPT.png b/csci4131/lec/lec7big3/EPT.png Binary files differnew file mode 100644 index 0000000..68b5863 --- /dev/null +++ b/csci4131/lec/lec7big3/EPT.png diff --git a/csci4131/lec/lec7big3/GPP.png b/csci4131/lec/lec7big3/GPP.png Binary files differnew file mode 100644 index 0000000..7d8bf3d --- /dev/null +++ b/csci4131/lec/lec7big3/GPP.png diff --git a/csci4131/lec/lec7big3/GUI.png b/csci4131/lec/lec7big3/GUI.png Binary files differnew file mode 100644 index 0000000..d7e2ccc --- /dev/null +++ b/csci4131/lec/lec7big3/GUI.png diff --git a/csci4131/lec/lec7big3/PERF.png b/csci4131/lec/lec7big3/PERF.png Binary files differnew file mode 100644 index 0000000..807b7a0 --- /dev/null +++ b/csci4131/lec/lec7big3/PERF.png diff --git a/csci4131/lec/lec7big3/PORT.png b/csci4131/lec/lec7big3/PORT.png Binary files differnew file mode 100644 index 0000000..3d69844 --- /dev/null +++ b/csci4131/lec/lec7big3/PORT.png 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 Binary files differnew file mode 100644 index 0000000..73d4507 --- /dev/null +++ b/csci4131/lec/lec7big3/SEO.png 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 @@ +<!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 |