Difference between revisions of "Widget:ServerStatus"
From DDO Compendium
MNDeveloper (talk | contribs) (Undo revision 228994 by MNDeveloper (talk)) Tags: Undo Reverted |
MNDeveloper (talk | contribs) (Undo revision 228999 by MNDeveloper (talk)) Tags: Undo Reverted |
||
Line 48: | Line 48: | ||
$('.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) { | |||
$("#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 { | |||
if (status.argonnessen == 1) { | if (status.argonnessen == 1) { | ||
$("#argo-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/9/93/Green_Check.png" />'); | $("#argo-status").empty().html('<img src="https://ddo-compendium-files.s3.amazonaws.com/9/93/Green_Check.png" />'); | ||
Line 98: | Line 102: | ||
$("#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" />'); | ||
} | } | ||
} | |||
}); | |||
; | |||
</script> | </script> | ||
</includeonly> | </includeonly> |
Revision as of 23:50, 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}}