rafmacalaba commited on
Commit
6067c99
·
verified ·
1 Parent(s): ef47d6c

3s toast autodismiss

Browse files
Files changed (1) hide show
  1. 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, 15000);
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, 20000);
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 = () => {