We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const tables = document.querySelectorAll(".menu"); tables.forEach(table => { let finalMenu = '<ul class="section-menu">' const rows = table.querySelectorAll("tr") rows.forEach(row => { const linkSelector = row.querySelector("a") const textSelector = row.querySelector("td:last-child") if(linkSelector && textSelector) { linkSelector.removeAttribute("accesskey") const link = linkSelector.outerHTML; const text = textSelector.innerText; finalMenu += `<li>${link}<span>${text}</span></li>` } }) finalMenu += '</ul>'; table.outerHTML = finalMenu; })
The text was updated successfully, but these errors were encountered:
close #13
dce60e0
KoolTheba
No branches or pull requests
The text was updated successfully, but these errors were encountered: