forked from rDrama/rDrama
Revert "hide links in spoilers but still prevent clicking them if u cant see them"
This reverts commit afea091a1d
.
master
parent
5e179953d5
commit
6bf93b8c25
|
@ -5240,17 +5240,6 @@ span.green {
|
||||||
.spoiler:hover img, spoiler:hover img {
|
.spoiler:hover img, spoiler:hover img {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
.spoiler a, spoiler a {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
.spoiler:hover a[clicked], spoiler:hover a[clicked] {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.spoiler:hover a, spoiler:hover a {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.comment {
|
.comment {
|
||||||
|
|
|
@ -221,19 +221,6 @@ document.addEventListener("click", function (e) {
|
||||||
i.removeAttribute("data-bs-dismiss")
|
i.removeAttribute("data-bs-dismiss")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (screen_width < 768) {
|
|
||||||
if (element.tagName == 'SPOILER') {
|
|
||||||
for (const a of element.getElementsByTagName('a')) {
|
|
||||||
a.setAttribute('clicked', true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (element.tagName != 'A') {
|
|
||||||
for (const a of document.querySelectorAll('a[clicked]')) {
|
|
||||||
a.removeAttribute('clicked')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const inputs = document.querySelectorAll('input[type="number"]')
|
const inputs = document.querySelectorAll('input[type="number"]')
|
||||||
|
|
Loading…
Reference in New Issue