uni

Thing1's amazing uni repo
Log | Files | Refs

commit a24b4867a37603cfc7e36e95da7c1157e96f7bfa
parent 4d82c1a62292f6619c124d7b43c9ad60cf416c10
Author: thing1 <thing1@seacrossedlovers.xyz>
Date:   Fri, 13 Feb 2026 23:05:02 +0000

started project for CS10120

Diffstat:
ACS10120/project/images/aol.jpg | 0
ACS10120/project/images/webback.png | 0
ACS10120/project/scripts/lastmodified.js | 7+++++++
ACS10120/project/scripts/nameinput.js | 11+++++++++++
ACS10120/project/scripts/whosasking.js | 7+++++++
ACS10120/project/style.css | 31+++++++++++++++++++++++++++++++
6 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/CS10120/project/images/aol.jpg b/CS10120/project/images/aol.jpg Binary files differ. diff --git a/CS10120/project/images/webback.png b/CS10120/project/images/webback.png Binary files differ. diff --git a/CS10120/project/scripts/lastmodified.js b/CS10120/project/scripts/lastmodified.js @@ -0,0 +1,7 @@ +function getLastModified() { + let msg = document.lastModified; + msg = "<pre>" + msg + "</pre>" + document.getElementById("pageLastChanged").innerHTML = "Page last changed at " + msg; +} + +getLastModified(); diff --git a/CS10120/project/scripts/nameinput.js b/CS10120/project/scripts/nameinput.js @@ -0,0 +1,11 @@ +function sayHello() { + const date = new Date() + const name = document.getElementById("namebox").value; + + const hour = date.getHours() + const msg = "Good<em>" + ((hour < 12) ? " moring " : (hour < 6) ? " afternoon ": " evening ") + "</em>" + name + + document.getElementById("nameoutput").innerHTML = msg; +} + + diff --git a/CS10120/project/scripts/whosasking.js b/CS10120/project/scripts/whosasking.js @@ -0,0 +1,7 @@ +function whosAsking() { + document.getElementById("whosAsking").innerHTML = "Who's asking?"; +} + +function whosNotAsking() { + document.getElementById("whosAsking").innerHTML = ""; +} diff --git a/CS10120/project/style.css b/CS10120/project/style.css @@ -0,0 +1,31 @@ +body { + background-color: #747272; + background: #747272; + color: #ffdf83; + font-family: 'Monospace'; +} + +@media screen and (max-width: 768px) { + body { + /*background-image: url(./images/webback.png);*/ + background-repeat: no-repeat; + background-position: center right; + background-position-y: top; + } +} + +@media screen and (min-width: 768px) { + body { + background-repeat: no-repeat; + background-position: center right; + background-position-y: top; + width: 768px; + } +} + +@media screen and (min-width: 1636px) { + body { + background-image: url(./images/webback.png); + } +} +l