1
0

Some JS changes, some alts, fallback img, no <center>

This commit is contained in:
2025-07-20 19:33:52 -05:00
parent 353bccc2b6
commit 6d4bf60247
3 changed files with 56 additions and 56 deletions

View File

@@ -1,6 +1,7 @@
body {
font-family: Tahoma;
height: 98vh;
text-align: center;
/* Use below BG for crimmis */
/*background-image: linear-gradient(#4d4e4f 50%, rgb(154, 156, 156));*/
/* use below BG for pride */

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<!--
Background image credit: https://www.deviantart.com/sequency/art/Windows-NT-Sky-149092015
iR Git Site Index (Source Code: https://git.technolog.network/iraven/newpublicsite)
@@ -13,48 +13,46 @@
<head>
<link rel="stylesheet" type="text/css" href="default.css">
<link rel="stylesheet" type="text/css" href="buttons.css">
<meta name=robots content=noindex,nofollow>
<meta name="robots" content="noindex,nofollow">
<meta name="title" content="iRaven">
<meta name="description" content="Website of a depressed degenerate introverted weirdo. Nothing to see here.">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>iRaven</title>
</head>
<body>
<center>
<img name="xeno">
<img id="xeno" src="siteimg/xeno/deioxpk-b2e38b76-f126-4d2c-bf24-91713dbfa3d0smol2.png" alt="Xeno, Raven's ponysona.">
<br>
<img src="siteimg/icon/monitor_moon.png" title="Mood." alt="">
<br><img src="siteimg/LGBTQplus_Progress_Flag.png" width="32" title="i stand strongly with LGBTQ+ rights. <3" alt="An icon of the LGBTQIA+ Pride Progress flag.">
<div class=navbuttons>
<a href="about.html"><img src="siteimg/icon/deioxpk-32.png" alt="">About Me</a>
<a href="ocref.html"><img src="siteimg/icon/cd.png" alt="">OC References</a>
<a href="blog/"><img src="siteimg/icon/notepad.png" alt="">Tech and Tinkering Blog</a>
<!--<a href="test.html"><img src="siteimg/net2.png">Test Button 3</a>-->
</div>
<div class=web88x31>
<img src="siteimg/88x31/bestviewedcomp.gif">
<a href="https://debian.org" target="_blank"><img src="siteimg/88x31/debian-powered.gif"></a>
<a href="https://fedoraproject.org" target="_blank"><img src="siteimg/88x31/fedora.gif"></a>
<a href="https://firefox.com" target="_blank"><img src="siteimg/88x31/firefox2.gif"></a>
<br>
<img src="siteimg/icon/monitor_moon.png" title="Mood.">
<br><img src="siteimg/LGBTQplus_Progress_Flag.png" width="32px" title="i stand strongly with LGBTQ+ rights. <3">
<div class=navbuttons>
<a href="about.html"><img src="siteimg/icon/deioxpk-32.png">About Me</a>
<a href="ocref.html"><img src="siteimg/icon/cd.png">OC References</a>
<a href="blog/"><img src="siteimg/icon/notepad.png">Tech and Tinkering Blog</a>
<!--<a href="test.html"><img src="siteimg/net2.png">Test Button 3</a>-->
</div>
<div class=web88x31>
<img src="siteimg/88x31/bestviewedcomp.gif">
<a href="https://debian.org" target="_blank"><img src="siteimg/88x31/debian-powered.gif"></a>
<a href="https://fedoraproject.org" target="_blank"><img src="siteimg/88x31/fedora.gif"></a>
<a href="https://firefox.com" target="_blank"><img src="siteimg/88x31/firefox2.gif"></a>
<br>
<a href="https://git.technolog.network/iraven/newpublicsite" target="_blank"><img src="siteimg/88x31/invalidator.gif"></a>
<a href="https://ffmpeg.org/" target="_blank"><img src="siteimg/88x31/ffmpeg.gif"></a>
<a href="https://home-assistant.io" target="_blank"><img src="siteimg/88x31/home-assistant.gif"></a>
<img src="siteimg/88x31/say-no-to-web3.gif">
<br>
<!-- <img src="siteimg/88x31/acab.gif"> -->
<!-- <img src="siteimg/88x31/botao.gif"> -->
<img src="siteimg/88x31/antinazi.gif">
<img src="siteimg/88x31/imissxp.gif">
<img src="siteimg/88x31/piracy.gif">
<img src="siteimg/88x31/transrights.png">
</div>
<a href="https://wigle.net"><img border="0" src="https://wigle.net/bi/REpW8fIOG8lGS3ZqbVv9GA.png"></a>
<!-- <a href="https://www.abuseipdb.com/user/215504" title="AbuseIPDB is an IP address blacklist for webmasters and sysadmins to report IP addresses engaging in abusive behavior on their networks"><img src="https://www.abuseipdb.com/contributor/215504.svg" alt="AbuseIPDB Contributor Badge" style="width: 250px;"></a> -->
</center>
<a href="https://git.technolog.network/iraven/newpublicsite" target="_blank"><img src="siteimg/88x31/invalidator.gif"></a>
<a href="https://ffmpeg.org/" target="_blank"><img src="siteimg/88x31/ffmpeg.gif"></a>
<a href="https://home-assistant.io" target="_blank"><img src="siteimg/88x31/home-assistant.gif"></a>
<img src="siteimg/88x31/say-no-to-web3.gif">
<br>
<!-- <img src="siteimg/88x31/acab.gif"> -->
<!-- <img src="siteimg/88x31/botao.gif"> -->
<img src="siteimg/88x31/antinazi.gif">
<img src="siteimg/88x31/imissxp.gif">
<img src="siteimg/88x31/piracy.gif">
<img src="siteimg/88x31/transrights.png">
</div>
<a href="https://wigle.net"><img src="https://wigle.net/bi/REpW8fIOG8lGS3ZqbVv9GA.png"></a>
<!-- <a href="https://www.abuseipdb.com/user/215504" title="AbuseIPDB is an IP address blacklist for webmasters and sysadmins to report IP addresses engaging in abusive behavior on their networks"><img src="https://www.abuseipdb.com/contributor/215504.svg" alt="AbuseIPDB Contributor Badge" style="width: 250px;"></a> -->
<!-- Snow -->
<!--<script src=snowstorm.js></script>-->
<script src="xeno.js"></script>
<script type="text/javascript" src="xeno.js"></script>
<!-- toot (mastodon)-->
<a rel="me" href="https://pony.social/@iRaven"></a>
</body>

41
xeno.js
View File

@@ -8,43 +8,44 @@ var imageArray = [
"siteimg/xeno/jhayarr6%20(Medium).png",
"siteimg/xeno/beatlinked1%20(Medium).png"
]
const xenoId = document.getElementById('xeno') // Moved to using DOM Element IDs.
var xenoPrideImg = "siteimg/xeno/xenopan_50pcrop.png";
var xenoXmasImg = "siteimg/xeno/deioxpk-xmas1_smol.png"
var num = Math.floor(Math.random() * (imageArray.length));
const month = new Date().getMonth();
if (month == 6) { // June - LGBTQ+ Pride
if (month == 5) { // June - LGBTQ+ Pride
console.log("Month is June - LGBTQ+ Pride!");
document.xeno.width = "550";
document.xeno.src = xenoPrideImg;
document.xeno.title = "Have proud pansexual hors. - Art by Vivian Reed VA";
xenoId.width = "550";
xenoId.src = xenoPrideImg;
xenoId.title = "Have proud pansexual hors. - Art by Vivian Reed VA";
} else if (month == 12) { // December
console.log("Month is December - Crimmis");
document.xeno.width = "550";
document.xeno.src = xenoXmasImg;
document.xeno.title = "Have festive hors. - Art by LimeDazzle";
xenoId.width = "550";
xenoId.src = xenoXmasImg;
xenoId.title = "Have festive hors. - Art by LimeDazzle";
} else {
document.xeno.title = "Have hors.";
document.xeno.width = "550";
xenoId.title = "Have hors.";
xenoId.width = "550";
var chosennum = num;
console.log("Chosen num is " + chosennum + " - " + imageArray[chosennum]);
document.xeno.src = imageArray[chosennum];
// document.xeno.src = imageArray[num];
xenoId.src = imageArray[chosennum];
// xenoId.src = imageArray[num];
if (chosennum == 0) {
document.xeno.title += " - Art by LimeDazzle";
xenoId.title += " - Art by LimeDazzle";
} else if (chosennum == 1) {
document.xeno.title += " - Art by Vivian Reed VA";
document.xeno.width = "600";
xenoId.title += " - Art by Vivian Reed VA";
xenoId.width = "600";
} else if (chosennum == 2) {
document.xeno.title += " - Art by KittyRosie";
xenoId.title += " - Art by KittyRosie";
} else if (chosennum == 3) {
document.xeno.title += " - Art by CrescendCinnamon";
document.xeno.width = "400";
xenoId.title += " - Art by CrescendCinnamon";
xenoId.width = "400";
} else if (chosennum == 4) {
document.xeno.title = "I wub my wubhons! - Art by CrescendCinnamon";
document.xeno.width = "450";
xenoId.title = "I wub my wubhons! - Art by CrescendCinnamon";
xenoId.width = "450";
} else if (chosennum == 5) {
document.xeno.title += " - Art by Beatlinked";
xenoId.title += " - Art by Beatlinked";
}
}