Info iframe: properly show uptime text-only fallback

このコミットが含まれているのは:
n9k 2022-03-14 08:21:38 +00:00
コミット 0aad555408
1個のファイルの変更8行の追加5行の削除

ファイルの表示

@ -83,11 +83,14 @@
#h1 {
animation-duration: {{ 36000 - uptime }}s;
}
#uptime-dynamic {
animation: disappear step-end {{ 360000 - uptime }}s forwards;
}
#uptime-dynamic-overflow {
animation: appear step-end {{ 360000 - uptime }}s backwards;
}
#uptime-dynamic {
animation: disappear step-end {{ 360000 - uptime }}s forwards;
#uptime-dynamic-overflow::after {
content: "100+ hours";
}
@keyframes appear {
from {
@ -146,11 +149,11 @@
<span id="uptime-static__label">Uptime:</span>
<span>
{%- if uptime >= 3600 -%}
{{- (uptime // 3600) | int -}}
{{- uptime | int // 3600 -}}
{{- ':' -}}
{{- '%02.0f' | format(uptime % 3600 // 60) -}}
{%- else -%}
{{- uptime % 3600 // 60 | int -}}
{{- uptime | int % 3600 // 60 -}}
{%- endif -%}
{{- ':' -}}
{{- '%02.0f' | format(uptime % 60) -}}
@ -170,7 +173,7 @@
{{- '' -}}
<span id="s0"></span>
</div>
<div id="uptime-dynamic-overflow">100+ hours</div>
<div id="uptime-dynamic-overflow"></div>
{% endif %}
</div>
</aside>