mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
1dbc8b783c
commit
178a021761
2 changed files with 26 additions and 3 deletions
|
@ -4,8 +4,19 @@
|
||||||
{{ icon_big('warning') }}
|
{{ icon_big('warning') }}
|
||||||
<div>
|
<div>
|
||||||
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
||||||
|
<p><b>此页面将在 <span id="countdown">15</span> 秒后重试,请勿关闭浏览器。</b></p>
|
||||||
<p><small></small></p>
|
<script>
|
||||||
|
let timeLeft = 15;
|
||||||
|
const countdownEl = document.getElementById("countdown");
|
||||||
|
setInterval(() => {
|
||||||
|
timeLeft--;
|
||||||
|
if (timeLeft >= 0) {
|
||||||
|
countdownEl.innerText = timeLeft;
|
||||||
|
} else {
|
||||||
|
window.location.reload(true);
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -4,7 +4,19 @@
|
||||||
{{ icon_big('warning') }}
|
{{ icon_big('warning') }}
|
||||||
<div>
|
<div>
|
||||||
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
||||||
|
<p><b>此页面将在 <span id="countdown">15</span> 秒后重试,请勿关闭浏览器。</b></p>
|
||||||
|
<script>
|
||||||
|
let timeLeft = 15;
|
||||||
|
const countdownEl = document.getElementById("countdown");
|
||||||
|
setInterval(() => {
|
||||||
|
timeLeft--;
|
||||||
|
if (timeLeft >= 0) {
|
||||||
|
countdownEl.innerText = timeLeft;
|
||||||
|
} else {
|
||||||
|
window.location.reload(true);
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue