M
M
Michael Someone2020-08-30 17:32:06
HTML
Michael Someone, 2020-08-30 17:32:06

How to make use of JSON in HTML so words are used?

Hello, I have

var lirycs = [{
"time": 5444,
"duration": 121,
"text": "Top ",
"isLineEnding": 0
},
{
"time": 6000,
"duration": 121,
"text": "Top2 ",
"isLineEnding": 0
}];
var next_text = lirycs.shift();
var checker = setInterval(function(){
if(next_text.time console.log(next_text.text);
next_text = lirycs.shift();
}
if(audio.ended)clearInterval(checker);
});

I want all this is for every halves , do not write , but used .json file
Help please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Nikolaev, 2020-08-30
@kaleniybrat

https://developer.mozilla.org/en/docs/Web/JavaScript...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question