frontpage/index.html

136 lines
5.7 KiB
HTML

2023-03-06 13:35:09 +07:00
<!DOCTYPE html>
<html>
<head>
<title>Caleb Fontenot's Web Server</title>
<link rel="icon" href="https://files.calebfontenot.com/files/C%5C%26H%20Spin.gif" type="image/gif" />
<meta content="Caleb Fontenot's Web Server" property="og:title" />
<meta content="Home Page of Caleb Fontenot's Web Server" property="og:description" />
<meta content="https://calebfontenot.com" property="og:url" />
<meta content="https://files.calebfontenot.com/files/C%5C%26H%20Spin.gif" property="og:image" />
<meta content="#FF0000" data-react-helmet="true" name="theme-color" />
<!meta name="viewport" content="width=device-width, initial-scale=1.0">
2023-03-06 13:35:09 +07:00
<link href="root.css" rel="stylesheet">
2023-03-06 13:35:09 +07:00
</head>
2023-03-06 14:36:22 +07:00
<body class="center">
2023-03-06 16:28:32 +07:00
<div id="wrapper">
2023-03-06 14:36:22 +07:00
<nav>
2023-03-06 17:20:55 +07:00
<h1>Hi! Welcome to my Web Server!</h1>
<div class="navborder">
2023-03-06 16:28:32 +07:00
<a class="button" href="index.html">Home</a>
<a class="button" href="https://gitea.calebfontenot.com">Gitea</a>
<a class="button" href="https://search.calebfontenot.com">SearXNG Instance</a>
<a class="button" href="dynmap.html">Minecraft Server Dynamic Maps</a>
<a class="button" href="mario">Mario</a>
2023-03-06 17:20:55 +07:00
</div>
2023-03-06 13:35:09 +07:00
</nav>
2023-03-06 18:33:28 +07:00
<h2 class="aboutme">About me<img class="aboutme" src="Caleb.jpg" alt="Caleb" height="5%" width="5%"></h2>
2023-03-06 13:35:09 +07:00
<p>Hi! My name is <mark>Caleb Fontenot.</mark> I am a software developer in my second semester at South Lousiana Community College.</p>
2023-03-22 17:56:20 +07:00
<script>
function design1() {
var input = prompt("Enter a greeting.");
var startEnd = "";
for (let i = 0; i < input.length + 2; i++) {
startEnd += "*";
2023-03-07 18:22:00 +07:00
}
2023-03-22 17:56:20 +07:00
document.getElementById("jsOutput").innerHTML = startEnd + "<br>";
document.getElementById("jsOutput").innerHTML += "*" + "<br>";
2023-03-22 18:08:58 +07:00
document.getElementById("jsOutput").innerHTML += "* " + input + "<br>";
2023-03-22 17:56:20 +07:00
document.getElementById("jsOutput").innerHTML += "*" + "<br>";
document.getElementById("jsOutput").innerHTML += startEnd;
2023-03-07 18:22:00 +07:00
}
2023-03-22 17:56:20 +07:00
function design2() {
var input = prompt("Enter a greeting.");
var height = (input.length * 2) + 6;
var mid = Math.trunc(height / 2) + 1;
if (height % 2 == 0) {
height++;
}
document.getElementById("jsOutput").innerHTML = "";
for (let i = 0; i < height; i++) {
if (mid == i) { //Determine if we're in the middle of the triangle
document.getElementById("jsOutput").innerHTML += "**" + input + "**";
} else {
for (let j = 0; j < i; j++) {
document.getElementById("jsOutput").innerHTML += "*";
}
}
2023-03-22 17:56:20 +07:00
document.getElementById("jsOutput").innerHTML += "<br>";
}
}
2023-03-22 17:56:20 +07:00
function design3() {
var input = prompt("Enter a greeting.");
var height = (input.length * 2) + 6;
var mid = Math.trunc(height / 2) + 1;
if (height % 2 == 0) {
height++;
}
document.getElementById("jsOutput").innerHTML = "";
if (mid % 2 == 1) { // Skip a line if odd
var subOffset = 1;
var addOffset = 0;
} else {
var subOffset = 0;
var addOffset = 1;
}
2023-03-23 10:04:38 +07:00
for (let i = 0; i < mid + addOffset; i++) {
2023-03-22 17:56:20 +07:00
for (let j = 0; j < i; j++) {
if (i % 2 == 1) {
2023-03-23 10:04:38 +07:00
if (i == 0 || (j == 0 || j == (i - 1))) { // Check if we're at the beginning or end of the line
document.getElementById("jsOutput").innerHTML += "*";
} else {
document.getElementById("jsOutput").innerHTML += "&nbsp;";
2023-03-22 17:56:20 +07:00
}
}
}
document.getElementById("jsOutput").innerHTML += "<br>";
}
document.getElementById("jsOutput").innerHTML += "* " + input + " *<br>";
for (let i = mid - subOffset; i > 0; i--) {
for (let j = 0; j < i; j++) {
if (i % 2 == 1) {
if (j != (mid - 1) || (j != mid)) {
if ((i == 0 || (j == 0 || j == (i - 1)))) { // Check if we're at the beginning or end of the line
document.getElementById("jsOutput").innerHTML += "*";
} else {
document.getElementById("jsOutput").innerHTML += "&nbsp;";
}
}
}
}
document.getElementById("jsOutput").innerHTML += "<br>";
}
}
</script>
2023-03-22 17:56:20 +07:00
<p>Pick a design!</p>
2023-03-07 17:58:34 +07:00
2023-03-22 17:56:20 +07:00
<button id="design1" class=button onclick="design1()">Design 1</button>
<button id="design2" class=button onclick="design2()">Design 2</button>
<button id="design3" class=button onclick="design3()">Design 3</button>
2023-03-07 17:58:34 +07:00
<p id="jsOutput"></p>
2023-03-06 13:35:09 +07:00
<p>
<a href="https://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
src="https://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" />
</a>
</p>
<footer>
2023-03-15 11:22:18 +07:00
<a href=https://gitea.calebfontenot.com/CCF_100/frontpage class=button>Caleb Fontenot, 2023</a>
2023-03-06 13:35:09 +07:00
</footer>
2023-03-06 14:36:22 +07:00
</div>
2023-03-06 16:28:32 +07:00
</body>
2023-03-06 13:35:09 +07:00
</html>