From 4ba30a0a35879c30857b6b34dd75712723154647 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 10 Apr 2020 10:09:54 -0600 Subject: [PATCH] fix mistake in if/else if/else checkParams --- js/ab-particles.js | 3 +-- js/integrity.sha384 | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/ab-particles.js b/js/ab-particles.js index 5c44ac0..197188a 100644 --- a/js/ab-particles.js +++ b/js/ab-particles.js @@ -101,7 +101,6 @@ function particles(){ // create particle array function init(){ particlesArray = []; - //let numberOfParticles = (canvas.height * canvas.width) / 9000; let numberOfParticles = canvas.width * 0.01; for (let i = 0; i < numberOfParticles * numParticles; i++){ let size = (Math.random() * sizeMultiplier) + 1; @@ -253,7 +252,7 @@ function particles(){ if (typeof speed == 'undefined'){ speed = 50; } - if (Number.isInteger(speed) && (0 <= speed && speed <= 1000)){ + else if (Number.isInteger(speed) && (0 <= speed && speed <= 1000)){ speed; } else{ diff --git a/js/integrity.sha384 b/js/integrity.sha384 index 932e119..189b9c3 100644 --- a/js/integrity.sha384 +++ b/js/integrity.sha384 @@ -1,5 +1,5 @@ ab-particles.js -sha384-Nr51BwOjKP19Q/gNGZWRJpRLfAqmN4GmM/VtlRUaaKIou2AJqYLbw/VzbJBeN1eO +sha384-W1hzahUbhADviTwtPE9incT2VBDum2EAKX5OuUdaJnfYC/RTdePPe1D/95uVnu9+ ab-particles.min.js sha384-GyB27X5DbGI7EaqeCZWH6nlg1xEwP8P++83axSmabShThx8C0IqIDGkU6bf72iJj \ No newline at end of file