ElEditors, Administrators
71,179
edits
No edit summary |
No edit summary |
||
Line 293: | Line 293: | ||
} | } | ||
}); | }); | ||
$('.region-map img[alt="About this image"]').attr('src', 'https://elwiki.net/wiki/images/1/1f/UI_-_Help.png').show(); | |||
$('.tabber-tab').click(function (e) { | |||
if (e.screenX && e.screenX != 0 && e.screenY && e.screenY != 0) { | |||
localStorage.setItem('current-server', this.innerText); | |||
} | |||
}); | |||
}); | }); | ||
docReady(function() { | docReady(function () { | ||
setTimeout(function() { | setTimeout(function () { | ||
document.querySelectorAll('.tabber-tab').forEach(function(node) { | document.querySelectorAll('.tabber-tab').forEach(function (node) { | ||
if (node.textContent.includes(localStorage.getItem('current-server'))) node.click() | if (node.textContent.includes(localStorage.getItem('current-server'))) node.click() | ||
}); | }); | ||
}, 10); | }, 10); | ||
}); | |||
if ($('.skin-minerva').length) { | |||
var time_loading = 0; | var time_loading = 0; | ||
var chkReadyState = setInterval(function() { | var chkReadyState = setInterval(function () { | ||
if (document.readyState == "complete" || time_loading > 3000) { | if (document.readyState == "complete" || time_loading > 3000) { | ||
// clear the interval | // clear the interval | ||
clearInterval(chkReadyState); | clearInterval(chkReadyState); | ||
$('#loading-screen').css({transition: '300ms', pointerEvents: 'none', opacity: 0}); | $('#loading-screen').css({ transition: '300ms', pointerEvents: 'none', opacity: 0 }); | ||
} | } | ||
time_loading += 100; | time_loading += 100; | ||
}, 100); | }, 100); | ||
} | } |