Difference between revisions of "Widget:ServerStatus"
From DDO Compendium
MNDeveloper (talk | contribs) Tag: Reverted |
MNDeveloper (talk | contribs) Tag: Reverted |
||
Line 30: | Line 30: | ||
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | ||
<div class="text-center"> | <div class="text-center"> | ||
<span id="statusresult"></span> | |||
<div class="row ss-widget-text-center"> | <div class="row ss-widget-text-center"> | ||
<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> | ||
Line 48: | Line 49: | ||
$('.loading').html('<img src="https://ddo-compendium-files.s3.amazonaws.com/b/b8/Loading_Circle.gif" />'); | $('.loading').html('<img src="https://ddo-compendium-files.s3.amazonaws.com/b/b8/Loading_Circle.gif" />'); | ||
$.getJSON( "https://3ei7kn7eti.execute-api.us-east-2.amazonaws.com", function ( status ) { | $.getJSON( "https://3ei7kn7eti.execute-api.us-east-2.amazonaws.com", function ( status ) { | ||
$("#argo-status").empty().html(status); | |||
if (status.message) { | if (status.message) { | ||
$("# | $("#statusresult").empty().html('<img alt="GreyQuestion.png" src="https://ddo-compendium-files.s3.amazonaws.com/4/42/GreyQuestion.png" decoding="async" width="16" height="16" data-file-width="16" data-file-height="16">'); | ||
} else { | } else { | ||
if (status.argonnessen == 1) { | if (status.argonnessen == 1) { |
Revision as of 23:45, 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}}