Add default favicon

This commit is contained in:
Cryptkeeper 2015-11-08 18:45:18 -06:00
parent 25ce9af926
commit ad6caa2f08
3 changed files with 18 additions and 2 deletions

View File

@ -175,10 +175,14 @@ $(document).ready(function() {
</div>'
}).appendTo("#server-container");
var favicon = MISSING_FAVICON_BASE64;
if (lastEntry.result && lastEntry.result.favicon) {
$('#favicon_' + safeName(info.name)).attr('src', lastEntry.result.favicon);
favicon = lastEntry.result.favicon;
}
$('#favicon_' + safeName(info.name)).attr('src', favicon);
updateServerStatus(lastEntry);
graphs[lastEntry.info.name] = {

View File

@ -1,6 +1,8 @@
var MISSING_FAVICON_BASE64 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHTUlEQVR4XtVba2wbVRb+zp1xk9BtgQpB7G6iFkochxUPCbELQkirhUVAJViJAhJPgbaLKI/GDk2hYpVdCi0lTlrKu/yAXWkBtUBBFAQCKoSg8IfHSsR2YtSS0jhBQEFuycOee1bXqVM38WM8D493fiXyPed83zfnvs69Q3DzYVBgoLsFeuZ8lnQ2mEMgWgKSp0iJEwQwT4WXwJQQ+BksxsC8DxoGmMWXQpd7Rpb17XcTIjnunHuEfyh9ITOupiyugIZT7cQgaXzDQuwiou0jbQs+AfVIO/5m2zomwG+/7lwkdbGSDbkSQix1EmTelxIDQt+mT+nPDp+58aATMWwLEEhETgJjjQFeJUDHOQGqsg95mEGP6wZv+u6M/p8qty/dwroAu3t0vz+9iqT8BwtxvB0QVm0l5EGNtb+PtH/7FGi7YcWPJQH8g6tDkPq/AD7XSlDHbVh+RuS7eaR9U6Ja31ULEIiHbzUkPyGEaKw2mJvtJfhXYrpjNBR9oZo45gXY3aMH/OktDNxRTYBat2XC1tG24U6zXcKUAEv29jROTaW3M2N5rQlZiif59YamhdftW9ozUcm+ogCK/ORU+g0wLqnkrJ5+Z+CdxoYFV1USobwAKu0D6df+b978rDcggZ1jweGry3WHsgIE4pEn6r3Pm8i6Lan26OpS7UoKEIh33cbg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b3A2K+2wC89S/TE755LQdPe+SXYwRQ/zTHwxsJ1O0tQNejr0+1Rx/IRznmdHj6gBRJAXGi6zA8CCAlfmhqMk7PH4zOyYDcjBDrupOJt3qAz/2QzLenQn3PFAaae0eIV2j+WOsnEDjPfUS1iyAN/nisY+FFs783KHpJKhBfEzSk8YUQaKodRFcjHdKy8pzvftc/51i55DW55ljkZiI87yqsWjlnuj4V6v1PsXBlL0rW86mxWe3yS95S7ctflc2NBy2v1MvJkVnSR9vJHang8deW+87I1GXpicn0TgIurR6AhxZSvj3fl/1L8vStk+VQVBRAGasb4+OT6RcFcJWHlKoILXfM17I3VCJfdB1QMorqDonWKAB1kbJun1yfbxvudvSDiUK2/kTkRsn8dP1dp5OHwdrKUqO9tUGwhNXiWLiNBb3AjD/UQyqoRY6P+ZZi83wlfKbGgKJOeIXWPNj6N2Y8KIBFlQK58bsEfhTM61LtC7dZ/aLUugBHGKkNlKGLCBiqpPYbN4jO9SnTgNjS0GBECzc2VmLbFiAfdMne1SdMTOp/BfFKYpQ++rGCcsZGDjHTs5PzfNvy+3lb7goLInYdzdhzj1gcP/R7CWOFQeJyDSh9dGwmqKQYafyWYfCOsVDfZ6qMZcbMbBvHMqBUwJb4mkAGxgUEnAWSHSzFUmacDGCRgGxQdlLQBCQdZMFjGsRegGMMfJWVxsc/dGxOmSVjpd3/AIpnXg78pGVXAAAAAElFTkSuQmCC";
var tooltip = $('#tooltip');
function getTimestamp(ms, timeOnly) {
function getTimestamp(ms, timeOnly) {
var date = new Date(0);
date.setUTCSeconds(ms);

View File

@ -64,6 +64,16 @@
"name": "Mineplex",
"ip": "us.mineplex.com",
"type": "PC"
},
{
"name": "Hypixel PE",
"ip": "pe.hypixel.net",
"type": "PE"
},
{
"name": "LifeBoat",
"ip": "play.lbsg.net",
"type": "PE"
}
],
"routes": {