revised
This commit is contained in:
parent
d835a8adb2
commit
6cd6361c0f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user