server banner tweaks
This commit is contained in:
parent
1f77d10eed
commit
d8c0cd47f5
@ -41,6 +41,7 @@ const plugin = {
|
|||||||
|
|
||||||
serverOrderCache[startEvent.server.gameCode].push(startEvent.server);
|
serverOrderCache[startEvent.server.gameCode].push(startEvent.server);
|
||||||
serverOrderCache[startEvent.server.gameCode].sort((a, b) => b.clientNum - a.clientNum);
|
serverOrderCache[startEvent.server.gameCode].sort((a, b) => b.clientNum - a.clientNum);
|
||||||
|
serverOrderCache.sort((a, b) => b[Object.keys(b)[0].clientNum] - b[Object.keys(a)[0].clientNum]);
|
||||||
|
|
||||||
if (lookupComplete) {
|
if (lookupComplete) {
|
||||||
return;
|
return;
|
||||||
@ -274,7 +275,7 @@ const plugin = {
|
|||||||
<div style="overflow: hidden">
|
<div style="overflow: hidden">
|
||||||
<iframe src="/Interaction/Render/Banner?serverId=${eachServer.id}" width="750" height="120" style="border-width: 0; overflow: hidden;" class="rounded mb-5" ></iframe>
|
<iframe src="/Interaction/Render/Banner?serverId=${eachServer.id}" width="750" height="120" style="border-width: 0; overflow: hidden;" class="rounded mb-5" ></iframe>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn mb-10" onclick="document.getElementById('showCode${eachServer.id}').style.removeProperty('display')">Show Embed</div>
|
<div class="btn mb-10" onclick="$(document.getElementById('showCode${eachServer.id}')).toggleClass('d-flex')">Show Embed</div>
|
||||||
<div class="code p-5" id="showCode${eachServer.id}" style="display:none;"><iframe
|
<div class="code p-5" id="showCode${eachServer.id}" style="display:none;"><iframe
|
||||||
<br/> src="${plugin.webfrontUrl}/Interaction/Render/Banner?serverId=${eachServer.id}"
|
<br/> src="${plugin.webfrontUrl}/Interaction/Render/Banner?serverId=${eachServer.id}"
|
||||||
<br/> width="750" height="120" style="border-width: 0; overflow: hidden;"><br/>
|
<br/> width="750" height="120" style="border-width: 0; overflow: hidden;"><br/>
|
||||||
@ -284,6 +285,7 @@ const plugin = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
response += '</div>';
|
response += '</div>';
|
||||||
|
response += ''
|
||||||
return response;
|
return response;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user