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