|
|
@ -23,12 +23,15 @@ function make_phrase (nn, terms) {
|
|
|
|
|
|
|
|
|
|
|
|
const sleep = delaysecs => new Promise(resolve => setTimeout(resolve, delaysecs*1000));
|
|
|
|
const sleep = delaysecs => new Promise(resolve => setTimeout(resolve, delaysecs*1000));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let limit = 25;
|
|
|
|
|
|
|
|
|
|
|
|
async function make_phrases () {
|
|
|
|
async function make_phrases () {
|
|
|
|
let terms = await (await fetch("terms.json")).json();
|
|
|
|
let terms = await (await fetch("terms.json")).json();
|
|
|
|
// console.log("terms", terms);
|
|
|
|
// console.log("terms", terms);
|
|
|
|
let call = document.querySelector("#call");
|
|
|
|
let call = document.querySelector("#call");
|
|
|
|
let template = call.querySelector(".phrase");
|
|
|
|
let template = call.querySelector(".phrase");
|
|
|
|
template.remove();
|
|
|
|
template.remove();
|
|
|
|
|
|
|
|
let count = 0;
|
|
|
|
while (true) {
|
|
|
|
while (true) {
|
|
|
|
let nn = template.cloneNode(true);
|
|
|
|
let nn = template.cloneNode(true);
|
|
|
|
call.appendChild(nn);
|
|
|
|
call.appendChild(nn);
|
|
|
@ -37,6 +40,8 @@ async function make_phrases () {
|
|
|
|
console.log("out of terms, stopping");
|
|
|
|
console.log("out of terms, stopping");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
count += 1;
|
|
|
|
|
|
|
|
if (limit > 0 && count>=limit) { break };
|
|
|
|
await (sleep(1.0));
|
|
|
|
await (sleep(1.0));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|