50 lines
2.0 KiB
JavaScript
50 lines
2.0 KiB
JavaScript
// JS file for random Xeno images + pride Xeno!
|
|
|
|
var imageArray = [
|
|
"siteimg/deioxpk-b2e38b76-f126-4d2c-bf24-91713dbfa3d0smol2.png",
|
|
"siteimg/xenopan_50pcrop.png",
|
|
"https://cdn.technolog.network/img/xeno/kittyrosiefull%20(Medium).png",
|
|
"https://cdn.technolog.network/img/xeno/jhayarr1_smol.png",
|
|
"https://cdn.technolog.network/img/xeno/jhayarr6%20(Medium).png",
|
|
"https://cdn.technolog.network/img/xeno/beatlinked1%20(Medium).png"
|
|
]
|
|
var xenoPrideImg = "siteimg/xenopan_50pcrop.png";
|
|
var xenoXmasImg = "siteimg/deioxpk-xmas1_smol.png"
|
|
|
|
var num = Math.floor(Math.random() * (imageArray.length));
|
|
const month = new Date().getMonth();
|
|
|
|
if (month == 2) { // 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";
|
|
} 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";
|
|
} else {
|
|
document.xeno.title = "Have hors.";
|
|
document.xeno.width = "550";
|
|
var chosennum = num;
|
|
console.log("Chosen num is " + chosennum + " - " + imageArray[chosennum]);
|
|
document.xeno.src = imageArray[chosennum];
|
|
// document.xeno.src = imageArray[num];
|
|
if (chosennum == 0) {
|
|
document.xeno.title += " - Art by LimeDazzle";
|
|
} else if (chosennum == 1) {
|
|
document.xeno.title += " - Art by Vivian Reed VA";
|
|
document.xeno.width = "600";
|
|
} else if (chosennum == 2) {
|
|
document.xeno.title += " - Art by KittyRosie";
|
|
} else if (chosennum == 3) {
|
|
document.xeno.title += " - Art by CrescendCinnamon";
|
|
document.xeno.width = "400";
|
|
} else if (chosennum == 4) {
|
|
document.xeno.title = "I wub my wubhons! - Art by CrescendCinnamon";
|
|
document.xeno.width = "450";
|
|
} else if (chosennum == 5) {
|
|
document.xeno.title += " - Art by Beatlinked";
|
|
}
|
|
} |