This commit is contained in:
parent
9b85286ee2
commit
fe84bb95d9
1 changed files with 16 additions and 12 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue