mainly mamafoodbistro
All checks were successful
Update menicka / update-rss (push) Successful in 5m17s

This commit is contained in:
2024-07-22 15:56:29 +02:00
parent d1ad419846
commit fe7a091abe
4 changed files with 16 additions and 11 deletions

View File

@ -88,10 +88,13 @@ async function menickoMamafoodbistro(){
const dny= {};
for(const den of menicko.getElementsByTagName("h4")){
const polevka= den.nextElementSibling;
const hlavni= polevka.nextElementSibling;
let hi= polevka.nextElementSibling;
const hlavni= [ hi ];
while(( hi= hi.nextElementSibling ) && hi.tagName !== "H4")
hlavni.push(hi);
Reflect.set(dny, den.textContent.trim().toLowerCase(), {
polevky: [ polevka.textContent ],
hlavni: [ hlavni.textContent ],
hlavni: hlavni.map(el=> el.textContent),
});
}