-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMM-PingTime.njk
22 lines (20 loc) · 879 Bytes
/
MMM-PingTime.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="mmm-ping-time" style="font-size: {{config.fontSize}}rem">
{% if pingResult %}
<div class="ping-duration">
{% if pingResult == "cn" %}
<i class="{{config.connectedIcon}}"></i>
<span class="success-value" style="color: {{config.connectedFontColor}}">{{ connectedText }}</span>
{% elif pingResult == "dc" %}
<i class="{{config.disconnectedIcon}}"></i>
<span class="warning-value" style="color: {{config.disconnectedFontColor}}">{{ disconnectedText }}</span>
{% else %}
<span style="color: {{config.pingFontColor}}">{{ pingResult }}</span>
{% endif %}
</div>
{% else %}
<div class="ping-loading">
<i class="{{config.loadingIcon}}"></i>
Connecting
</div>
{% endif %}
</div>