bugfix: fix readme script
All checks were successful
Deploy Blog / build (push) Successful in 16s

This commit is contained in:
Marcius 2024-06-02 18:31:23 +01:00
parent 9b85286ee2
commit fe84bb95d9

View file

@ -1,15 +1,19 @@
document.querySelector("div.article").parentElement.onmouseover = function (e) {
const el = e.target
const child = el.querySelector(".blinking")
if (child != null) {
child.style.display = "block"
document.querySelectorAll("div.article").forEach((el) => {
el.parentElement.onmouseover = function (e) {
const target = e.target
const child = target.querySelector(".blinking")
if (child != null) {
child.style.display = "block"
}
}
}
})
document.querySelector("div.article").parentElement.onmouseleave = function (e) {
const el = e.target
const child = el.querySelector(".blinking")
if (child != null) {
child.style.display = "none"
document.querySelectorAll("div.article").forEach((el) => {
el.parentElement.onmouseleave = function (e) {
const target = e.target
const child = target.querySelector(".blinking")
if (child != null) {
child.style.display = "none"
}
}
}
})