Spaces:
Running
Running
3s toast autodismiss
Browse files- review.html +2 -2
review.html
CHANGED
|
@@ -320,7 +320,7 @@ function toast(msg, withExport) {
|
|
| 320 |
`<button onclick="hideToast()">dismiss</button>`;
|
| 321 |
t.style.display = 'flex';
|
| 322 |
clearTimeout(toastTimer);
|
| 323 |
-
toastTimer = setTimeout(hideToast,
|
| 324 |
}
|
| 325 |
function warnToast(msg) {
|
| 326 |
const t = $('toast');
|
|
@@ -328,7 +328,7 @@ function warnToast(msg) {
|
|
| 328 |
t.classList.add('warn');
|
| 329 |
t.style.display = 'flex';
|
| 330 |
clearTimeout(toastTimer);
|
| 331 |
-
toastTimer = setTimeout(hideToast,
|
| 332 |
}
|
| 333 |
function bindMarks(o) {
|
| 334 |
document.querySelectorAll('#passage mark').forEach(m => m.onclick = () => {
|
|
|
|
| 320 |
`<button onclick="hideToast()">dismiss</button>`;
|
| 321 |
t.style.display = 'flex';
|
| 322 |
clearTimeout(toastTimer);
|
| 323 |
+
toastTimer = setTimeout(hideToast, 3000);
|
| 324 |
}
|
| 325 |
function warnToast(msg) {
|
| 326 |
const t = $('toast');
|
|
|
|
| 328 |
t.classList.add('warn');
|
| 329 |
t.style.display = 'flex';
|
| 330 |
clearTimeout(toastTimer);
|
| 331 |
+
toastTimer = setTimeout(hideToast, 3000);
|
| 332 |
}
|
| 333 |
function bindMarks(o) {
|
| 334 |
document.querySelectorAll('#passage mark').forEach(m => m.onclick = () => {
|