Fix recipe link targeting

This commit is contained in:
Nicholas Jitkoff 2022-07-29 09:11:10 -04:00
parent e09ab518fd
commit b6160d4b5d
2 changed files with 3 additions and 0 deletions

View file

@ -46,6 +46,7 @@ body {
/* padding:0 0.3em; */
/* border:1px solid currentColor; */
text-decoration:underline;
text-decoration-style: dotted;
}
img.publisher {

View file

@ -139,6 +139,7 @@ function highlightStep(e) {
// el.classList.toggle("complete", )
// }
if (e.target.classList.contains("noun")) return;
if (e.target.tagName == "A") return;
e.target.closest("li").classList.toggle("complete")
}
@ -190,6 +191,7 @@ function render() {
console.error("Data", e, {e, body: window.params.body});
return;
}
document.head.appendChild(el("base", {target: "_blank"}));
delete document.documentElement.style.display;
document.body.childNodes.forEach((c) => document.body.removeChild(c))