init commit

This commit is contained in:
2026-08-04 06:53:36 -06:00
commit 5df8484e8f
91 changed files with 2859 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
body {
background-color: rgb(57, 36, 57);
color: white;
font-family: Lato, Helvetica, sans-serif;
}
h1, p {
text-align: center;
}
h1 {
font-size: 5em;
}
+16
View File
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0" lang="en">
<link rel="stylesheet" href="css/style.css">
<script src="js/script.js"></script>
<title>JS Birthday</title>
</head>
<body>
<h1 id="personalizedGreetings"></h1>
<p>It's your special time of the year, where you're another year older! What new adventures await for the next year? Only time will tell...</p>
</body>
</html>
+17
View File
@@ -0,0 +1,17 @@
var userName = prompt("What is your name?");
var userAge = prompt("What is your age?");
if(userAge < 50) {
alert("Welcome, " + userName +"! You're " + userAge + ". You're so young!");
} else {
alert("Welcome, " + userName +"! You're " + userAge + ".\n\nWhat was it like when dinosaurs roamed the Earth?");
}
window.onload = function() {
document.getElementById("personalizedGreetings").innerHTML = "Happy " + userAge + " birthday, " + userName + "!"
}