forked from rDrama/rDrama
1
0
Fork 0

Revert "hide links in spoilers but still prevent clicking them if u cant see them"

This reverts commit afea091a1d.
master
Aevann 2023-08-03 11:41:59 +03:00
parent 5e179953d5
commit 6bf93b8c25
2 changed files with 0 additions and 24 deletions

View File

@ -5240,17 +5240,6 @@ span.green {
.spoiler:hover img, spoiler:hover img {
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) {
.comment {

View File

@ -221,19 +221,6 @@ document.addEventListener("click", function (e) {
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"]')