From 9ee21163d5adff784b6ed6f5d4bd6863ef474f79 Mon Sep 17 00:00:00 2001 From: Todd Anderson Date: Tue, 19 Nov 2024 13:52:17 -0500 Subject: [PATCH] image update --- public/outside.js | 20 +++++--------------- public/templates/about/about.hbs | 11 ----------- 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/public/outside.js b/public/outside.js index 4a7c94c..6765402 100644 --- a/public/outside.js +++ b/public/outside.js @@ -85,7 +85,8 @@ for (let i = 0; i <= 2; i += 1) { var pi1 = participateImagesFeatured[Math.floor( Math.random() * participateImagesFeatured.length )]; var si1 = spaceImagesFeatured[Math.floor( Math.random() * spaceImagesFeatured.length )]; -for (var a=[],i=0;i<121;++i) a[i]=i; //community images +for (var a=[],i=0;i<21;++i) a[i]=i; //community images +for (i=98;i<120;++i) a.push(i); //community images for (var b=[],i=0;i<17;++i) b[i]=i; //space images function shuffle(array) { @@ -113,7 +114,7 @@ for (let i = 0; i <= 19; i += 1) { var c1 = participateImages[Math.floor( Math.random() * participateImages.length )]; -$(".pi1 img").attr("src", pi1); +$(".pi1 img").attr("src", participateImages[1]); $(".pi2 img").attr("src", participateImages[2]); $(".pi3 img").attr("src", participateImages[3]); $(".pi4 img").attr("src", participateImages[4]); @@ -121,17 +122,7 @@ $(".pi5 img").attr("src", participateImages[5]); $(".pi6 img").attr("src", participateImages[6]); $(".pi7 img").attr("src", participateImages[7]); $(".pi8 img").attr("src", participateImages[8]); -$(".pi9 img").attr("src", participateImages[9]); -$(".pi10 img").attr("src", participateImages[10]); -$(".pi11 img").attr("src", participateImages[11]); -$(".pi12 img").attr("src", participateImages[12]); -$(".pi13 img").attr("src", participateImages[13]); -$(".pi14 img").attr("src", participateImages[14]); -$(".pi15 img").attr("src", participateImages[15]); -$(".pi16 img").attr("src", participateImages[16]); -$(".pi17 img").attr("src", participateImages[17]); -$(".pi18 img").attr("src", participateImages[18]); -$(".pi19 img").attr("src", participateImages[19]); + $(".si1 img").attr("src", si1); $(".si2 img").attr("src", spaceImages[2]); @@ -141,8 +132,7 @@ $(".si5 img").attr("src", spaceImages[5]); $(".si6 img").attr("src", spaceImages[6]); $(".si7 img").attr("src", spaceImages[7]); $(".si8 img").attr("src", spaceImages[8]); -$(".si9 img").attr("src", spaceImages[9]); -$(".si10 img").attr("src", spaceImages[10]); + $("img.c1").attr("src", c1); diff --git a/public/templates/about/about.hbs b/public/templates/about/about.hbs index 75d3e84..6773846 100644 --- a/public/templates/about/about.hbs +++ b/public/templates/about/about.hbs @@ -170,17 +170,6 @@
-
-
-
-
-
-
-
-
-
-
-