Initial migration

- Added Idea of Z and Links pages
- All images from original added
- No footer anymore, just badges
This commit is contained in:
Tony Bark 2025-05-12 06:10:47 -04:00
parent f825693b8e
commit 0cad8daf93
52 changed files with 306 additions and 30 deletions

View file

@ -4,7 +4,7 @@ menuToggle.className = "menu-toggle";
menuToggle.textContent = "☰ Menu";
document.body.insertBefore(menuToggle, document.body.firstChild);
const sidebar = document.getElementById("sidebar");
const sidebar = document.getElementById("menu");
menuToggle.addEventListener("click", () => {
sidebar.classList.toggle("active");
@ -20,19 +20,15 @@ const menuData = {
Contents: "content/home.html",
},
{
Name: "about",
Label: "About",
Contents: "content/about.html",
Name: "ideaofz",
Label: "Idea of Zack",
Contents: "content/ideaofz.html",
},
{
Name: "services",
Label: "Services",
Contents: "content/services.html",
},
{
Name: "contact",
Label: "Contact",
Contents: "content/contact.html",
Name: "links",
Label: "Links",
Contents: "content/links.html",
},
],
};
@ -81,3 +77,37 @@ window.addEventListener("load", () => {
const hash = window.location.hash.substring(1) || "home";
loadPage(hash);
});
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================
function showImage() {
// Set up the image files to be used.
var theImages = new Array(); // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!
theImages[0] = "images/adorable_z_colored.png";
theImages[1] = "images/spit_bomber_tails.png";
theImages[2] = "images/THATS_MY_GREEN_EGGS_AND_HAM.png";
// ======================================
// do not change anything below this line
// ======================================
var j = 0;
var p = theImages.length;
var preBuffer = new Array();
for (i = 0; i < p; i++) {
preBuffer[i] = new Image();
preBuffer[i].src = theImages[i];
}
var whichImage = Math.round(Math.random() * (p - 1));
document.write('<img src="' + theImages[whichImage] + '">');
}