From 407242b1d30399675f3f8f04dd0f7a2c21b2d92f Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Sun, 15 Mar 2020 00:56:08 +0800 Subject: [PATCH] Make cloudguy pick random facts after doing his intro --- index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index aee2f0f..ca546f1 100644 --- a/index.html +++ b/index.html @@ -315,9 +315,15 @@ numQuotes = cloudGuyQuotes.length; currentQuote = 0; setInterval(function(){ + if (currentQuote == 0 || currentQuote == 1) { + currentQuote++; + } else { + currentQuote = Math.floor(Math.random()*(cloudGuyQuotes.length - 3)) + 3; + console.log(currentQuote); + } + cgq.innerText = cloudGuyQuotes[currentQuote]; - currentQuote = (currentQuote + 1) % numQuotes; - }, 5000); + }, 10000); angeries = document.querySelectorAll(".angereyWrap"); usedPositions = []; -- 2.11.0