Added logic to hint at the exit label in elmah

This commit is contained in:
2026-01-01 19:29:51 +01:00
parent 6f4ffbcaa6
commit cddd305d26
2 changed files with 9 additions and 0 deletions

View File

@@ -41,6 +41,7 @@
} }
/* expand on hover */ /* expand on hover */
.elmah-return-btn.show-label::before,
.elmah-return-btn:hover::before { .elmah-return-btn:hover::before {
max-width: 220px; max-width: 220px;
padding: 0.5rem; padding: 0.5rem;
@@ -48,6 +49,7 @@
} }
/* hover colors */ /* hover colors */
.elmah-return-btn.show-label,
.elmah-return-btn:hover { .elmah-return-btn:hover {
background: #0b5ed7; background: #0b5ed7;
color: white; color: white;

View File

@@ -7,4 +7,11 @@ document.addEventListener('DOMContentLoaded', async () => {
btn.className = "elmah-return-btn"; btn.className = "elmah-return-btn";
document.body.appendChild(btn); document.body.appendChild(btn);
const showLabelBriefly = () => {
btn.classList.add("show-label");
setTimeout(() => btn.classList.remove("show-label"), 2000);
};
setTimeout(showLabelBriefly, 1000);
}); });