This commit is contained in:
Garry Ing 2021-04-18 11:22:31 -04:00
parent d835a8adb2
commit 6cd6361c0f
No known key found for this signature in database
GPG Key ID: 3B379B1F2193CC3E

View File

@ -122,7 +122,7 @@ if (typeof window.graphDataIndex !== 'undefined') {
setInterval(() => { setInterval(() => {
counter += 1 counter += 1
document.querySelector('.loading').innerHTML += '.' document.querySelector('.loading').innerHTML += '.'
if (counter === 4) { if (counter === 5) {
document.querySelector('.loading').innerHTML = 'Loading a note' document.querySelector('.loading').innerHTML = 'Loading a note'
counter = 0 counter = 0
} }
@ -130,12 +130,12 @@ if (typeof window.graphDataIndex !== 'undefined') {
setInterval(() => { setInterval(() => {
const randomNodeLoader = indexNodes[Math.floor(Math.random() * indexNodes.length)] const randomNodeLoader = indexNodes[Math.floor(Math.random() * indexNodes.length)]
const randomNodeTemplate = `<p class="ma0">${randomNodeLoader.path}</p>` const randomNodeTemplate = randomNodeLoader.path
document.querySelector('.rand-notes').innerHTML += randomNodeTemplate document.querySelector('.rand-notes').innerHTML += randomNodeTemplate
if (counter === 3) { if (counter === 4) {
document.querySelector('.rand-notes').innerHTML = '' document.querySelector('.rand-notes').innerHTML = ''
} }
}, 250) }, 150)
setTimeout(() => { setTimeout(() => {
window.location = randomNode.path window.location = randomNode.path