From 6cd6361c0f8531818e38e25c6c1c8962aeded106 Mon Sep 17 00:00:00 2001 From: Garry Ing Date: Sun, 18 Apr 2021 11:22:31 -0400 Subject: [PATCH] revised --- assets/js/scripts.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/scripts.js b/assets/js/scripts.js index 332d610..561a99a 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -122,7 +122,7 @@ if (typeof window.graphDataIndex !== 'undefined') { setInterval(() => { counter += 1 document.querySelector('.loading').innerHTML += '.' - if (counter === 4) { + if (counter === 5) { document.querySelector('.loading').innerHTML = 'Loading a note' counter = 0 } @@ -130,12 +130,12 @@ if (typeof window.graphDataIndex !== 'undefined') { setInterval(() => { const randomNodeLoader = indexNodes[Math.floor(Math.random() * indexNodes.length)] - const randomNodeTemplate = `

${randomNodeLoader.path}

` + const randomNodeTemplate = randomNodeLoader.path document.querySelector('.rand-notes').innerHTML += randomNodeTemplate - if (counter === 3) { + if (counter === 4) { document.querySelector('.rand-notes').innerHTML = '' } - }, 250) + }, 150) setTimeout(() => { window.location = randomNode.path