Update masterserver
This commit is contained in:
parent
2ecf5834fe
commit
def58867e8
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Minetest server list</title>
|
||||
<title>Freeminer server list</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="server_list"></div>
|
||||
|
@ -1,13 +1,13 @@
|
||||
var master;
|
||||
if (!master) master = {};
|
||||
if (typeof(master.root)=='undefined') master.root = "http://servers.minetest.net/";
|
||||
if (typeof(master.root) == 'undefined') master.root = window.location.href;
|
||||
if (!master.output) master.output = '#server_list';
|
||||
if (!master.list) master.list = "list";
|
||||
if (!master.list_root) master.list_root = master.root;
|
||||
if (!master.list_url) master.list_url = master.list_root + master.list;
|
||||
|
||||
function humanTime(seconds) {
|
||||
if (!seconds) return '?';
|
||||
if (typeof(seconds) != "number") return '?';
|
||||
var conv = {
|
||||
y: 31536000,
|
||||
d: 86400,
|
||||
@ -92,9 +92,10 @@ function loaded(){
|
||||
// https://github.com/pyrsmk/toast
|
||||
this.toast=function(){var e=document,t=e.getElementsByTagName("head")[0],n=this.setTimeout,r="createElement",i="appendChild",s="addEventListener",o="onreadystatechange",u="styleSheet",a=10,f=0,l=function(){--f},c,h=function(e,r,i,s){if(!t)n(function(){h(e)},a);else if(e.length){c=-1;while(i=e[++c]){if((s=typeof i)=="function"){r=function(){return i(),!0};break}if(s=="string")p(i);else if(i.pop){p(i[0]),r=i[1];break}}d(r,Array.prototype.slice.call(e,c+1))}},p=function(n,s){++f,/\.css$/.test(n)?(s=e[r]("link"),s.rel=u,s.href=n,t[i](s),v(s)):(s=e[r]("script"),s.src=n,t[i](s),s[o]===null?s[o]=m:s.onload=l)},d=function(e,t){if(!f)if(!e||e()){h(t);return}n(function(){d(e,t)},a)},v=function(e){if(e.sheet||e[u]){l();return}n(function(){v(e)},a)},m=function(){/ded|co/.test(this.readyState)&&l()};h(arguments)};
|
||||
|
||||
toast(master.root+'style.css', master.root+'servers.js', function() {
|
||||
if (typeof(jQuery)!='undefined')
|
||||
loaded();
|
||||
toast(master.root + 'style.css', master.root + 'servers.js', function() {
|
||||
if (typeof(jQuery) != 'undefined')
|
||||
return loaded();
|
||||
else
|
||||
toast('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', loaded);
|
||||
});
|
||||
|
||||
|
@ -11,8 +11,12 @@
|
||||
border: 1px solid gray;
|
||||
}
|
||||
|
||||
.mts_hover_list{
|
||||
visibility: hidden;
|
||||
tr:hover {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.mts_hover_list {
|
||||
display: none;
|
||||
border: gray solid 1px;
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
@ -21,7 +25,7 @@
|
||||
}
|
||||
|
||||
td:hover .mts_hover_list {
|
||||
visibility: visible;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.mts_hover_list_text, .mts_tooltip {
|
||||
@ -32,4 +36,4 @@ td:hover .mts_hover_list {
|
||||
.clickable {
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user