Difference between revisions of "Widget:ServerStatus"
From DDO Compendium
m (update link for loading circle) |
MNDeveloper (talk | contribs) |
||
(10 intermediate revisions by the same user not shown) | |||
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) { | ||
Line 97: | Line 103: | ||
$("#lam-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/5/5f/Red_X.png" />'); | $("#lam-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/5/5f/Red_X.png" />'); | ||
} | } | ||
}); | }).fail(function() { | ||
$("#argo-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#cannith-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#cormyr-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#khyber-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#ghallanda-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#orien-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#sarlona-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#thelanis-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#wayfinder-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#hardcore-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
$("#lam-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/f/fd/RedExclamation.png" />'); | |||
}); | |||
</script> | </script> | ||
</includeonly> | </includeonly> |
Latest revision as of 00:06, 23 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}}