mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
83ab4960fa
commit
12a45f604c
2 changed files with 5 additions and 5 deletions
|
@ -4,16 +4,16 @@
|
|||
{{ icon_big('warning') }}
|
||||
<div>
|
||||
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
||||
<p><b>此页面将在 <span id="countdown">30</span> 秒后重试,请勿关闭浏览器。</b></p>
|
||||
<p><b>此页面将在 <span id="countdown">15</span> 秒后重试,请勿关闭浏览器。</b></p>
|
||||
<script>
|
||||
let timeLeft = 30;
|
||||
let timeLeft = 15;
|
||||
const countdownEl = document.getElementById("countdown");
|
||||
setInterval(() => {
|
||||
timeLeft--;
|
||||
if (timeLeft >= 0) {
|
||||
countdownEl.innerText = timeLeft;
|
||||
} else {
|
||||
window.location.href = window.location.href + "?timestamp=" + new Date().getTime();
|
||||
window.location.href = window.location.href + "×tamp=" + new Date().getTime();
|
||||
}
|
||||
}, 1000);
|
||||
</script>
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
{{ icon_big('warning') }}
|
||||
<div>
|
||||
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
||||
<p><b>此页面将在 <span id="countdown">10</span> 秒后重试,请勿关闭浏览器。</b></p>
|
||||
<p><b>此页面将在 <span id="countdown">15</span> 秒后重试,请勿关闭浏览器。</b></p>
|
||||
<script>
|
||||
let timeLeft = 10;
|
||||
let timeLeft = 15;
|
||||
const countdownEl = document.getElementById("countdown");
|
||||
setInterval(() => {
|
||||
timeLeft--;
|
||||
|
|
Loading…
Add table
Reference in a new issue