Skip to content

Instantly share code, notes, and snippets.

View Swordington's full-sized avatar
💻
Working, probably

Quinn Iris Swordington

💻
Working, probably
View GitHub Profile
@Swordington
Swordington / status.html
Last active June 3, 2020 17:21 — forked from jfernandz/status.html
Simple Minecraft Server status box using https://mcapi.us/
<script src="//code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="//momentjs.com/downloads/moment.min.js"></script>
<script src="//ujafedny.org/assets/bower_components/moment/locale/*.js"></script> <!-- Your preferred locale instead of * -->
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<script>
var rq = '//mcapi.us/server/status?ip= '; // <---- Your Minecraft server IP here; add &port=<port> if you are using a different port
var error = 'unknown'; // of 25565. For instance: https://mcapi.us/server/status?ip=s.nerd.nu&port=25565
var classes = { // more info in https://mcapi.us/
error: "fa-question",
false: "fa-times",