Difference between revisions of "Widget:ServerStatus"
From DDO Compendium
m (trying to figure out what's wrong with the SS widget) |
(update to add Hardcore Server) |
||
Line 39: | Line 39: | ||
<div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Thelanis<br><span id="thelanis-status" class="loading"></span></div> | <div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Thelanis<br><span id="thelanis-status" class="loading"></span></div> | ||
<div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Wayfinder<br><span id="wayfinder-status" class="loading"></span></div> | <div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Wayfinder<br><span id="wayfinder-status" class="loading"></span></div> | ||
<div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Hardcore<br><span id="hardcore-status" class="loading"></span></div> | |||
<div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Lamannia<br><span id="lam-status" class="loading"></span></div> | <div class="col-lg-1 col-md-2 col-sm-3 col-xs-4">Lamannia<br><span id="lam-status" class="loading"></span></div> | ||
</div> | </div> | ||
Line 85: | Line 86: | ||
} else { | } else { | ||
$("#wayfinder-status").empty().html('<img src="https://ddocompendium.com/images/5/5f/Red_X.png" />'); | $("#wayfinder-status").empty().html('<img src="https://ddocompendium.com/images/5/5f/Red_X.png" />'); | ||
} | |||
if (status.hardcore== 1) { | |||
$("#hardcore-status").empty().html('<img src="https://ddocompendium.com/images/9/93/Green_Check.png" />'); | |||
} else { | |||
$("#hardcore-status").empty().html('<img src="https://ddocompendium.com/images/5/5f/Red_X.png" />'); | |||
} | } | ||
if (status.lamannia == 1) { | if (status.lamannia == 1) { |
Revision as of 13:00, 20 August 2019
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}}