Difference between revisions of "Widget:ServerStatus"
From DDO Compendium
m (update link for loading circle) |
MNDeveloper (talk | contribs) Tag: Reverted |
||
Line 33: | Line 33: | ||
<div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Argonnessen<br><span id="argo-status" class="loading"></span></div> | <div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Argonnessen<br><span id="argo-status" class="loading"></span></div> | ||
<div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Cannith<br><span id="cannith-status" class="loading"></span></div> | <div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Cannith<br><span id="cannith-status" class="loading"></span></div> | ||
<div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Cormyr<br><span id="cormyr-status" class="loading"></span></div> | |||
<div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Khyber<br><span id="khyber-status" class="loading"></span></div> | <div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Khyber<br><span id="khyber-status" class="loading"></span></div> | ||
<div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Ghallanda<br><span id="ghallanda-status" class="loading"></span></div> | <div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Ghallanda<br><span id="ghallanda-status" class="loading"></span></div> | ||
Line 56: | Line 57: | ||
} else { | } else { | ||
$("#cannith-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/5/5f/Red_X.png" />'); | $("#cannith-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/5/5f/Red_X.png" />'); | ||
} | |||
if (status.cormyr == 1) { | |||
$("#cormyr-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/9/93/Green_Check.png" />'); | |||
} else { | |||
$("#cormyr-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/5/5f/Red_X.png" />'); | |||
} | } | ||
if (status.khyber == 1) { | if (status.khyber == 1) { |
Revision as of 22:58, 22 October 2024
About[edit]
This widget will display the server statuses for Dungeons and Dragons Online.
How to Use[edit]
Add the following code snippet on a page you wish to use it on. The endpoint that this widget uses is rate limited, so please use it sparingly.
{{#widget:ServerStatus}}