mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 03:57:19 +00:00
* fix all eof * fix test * fix test * fix test * typo * fix sample * fix sample * add logs * fix page_dynamic_result.txt
30 lines
663 B
Plaintext
30 lines
663 B
Plaintext
|
|
home page content
|
|
|
|
link to index
|
|
|
|
link to page 1
|
|
|
|
|
|
const updateTimeout = setTimeout(myUpdateFunction, 150);
|
|
|
|
function myUpdateFunction() {
|
|
const remElem = document.querySelector('#a2');
|
|
if (remElem)
|
|
remElem.parentNode.removeChild(remElem);
|
|
|
|
if (!document.querySelector('#a4')) {
|
|
const newElem = document.createElement('a');
|
|
newElem.href = 'page2.html';
|
|
newElem.id = 'a4';
|
|
newElem.innerText = 'link to page 2';
|
|
document.body.appendChild(newElem);
|
|
}
|
|
|
|
clearTimeout(updateTimeout);
|
|
}
|
|
|
|
|
|
|
|
link to page 2
|