stop propagation when clicking on a link inside a clickable card, also open the link in a new tab without referrer
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-10-15 21:32:45 +02:00
parent 9f95eb2b6b
commit faf63ab5a0
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -36,5 +36,18 @@
</ul>
{{/location_apps}} {{/data}}
</main>
<script>
/* Fix links in list */
window.addEventListener("load", () =>
document.querySelectorAll("li a").forEach(function (link) {
link.setAttribute("target", "_blank");
link.setAttribute("rel", "noreferrer");
link.addEventListener("click", function (event) {
event.stopPropagation();
});
})
);
</script>
</body>
</html>