Add SRV Record info to wiki
This commit is contained in:
@@ -10,10 +10,11 @@ function copyToClipboard(text, button) {
|
||||
});
|
||||
}
|
||||
|
||||
// Function to create a server card
|
||||
// Function to create a server card
|
||||
function createServerCard(server, isNew = false) {
|
||||
const ownerName = server.ops && server.ops.length > 0 ? server.ops[0].name : 'Unknown';
|
||||
// Prefer connect2 if it's a my-mc.link subdomain, otherwise use connect
|
||||
const displayConnect = server.connect2 && server.connect2.includes('.my-mc.link') ? server.connect2 : server.connect;
|
||||
const serverCard = document.createElement('div');
|
||||
serverCard.className = `feature-card tilt-card ${isNew ? 'new-server-animation' : ''}`;
|
||||
serverCard.dataset.connect = server.connect; // Add identifier
|
||||
@@ -29,8 +30,8 @@ function createServerCard(server, isNew = false) {
|
||||
<p class="text-sm opacity-90 leading-relaxed"><strong>Status:</strong> ${server.online ? 'Online' : 'Offline'}</p>
|
||||
<div class="flex items-center text-sm opacity-90 leading-relaxed mb-2">
|
||||
<strong>Connect:</strong>
|
||||
<span class="ml-2">${server.connect}</span>
|
||||
<button class="copy-btn ml-4" onclick="copyToClipboard('${server.connect}', this)" style="color: #2DD4BF;">
|
||||
<span class="ml-2">${displayConnect}</span>
|
||||
<button class="copy-btn ml-4" onclick="copyToClipboard('${displayConnect}', this)" style="color: #2DD4BF;">
|
||||
<svg class="clipboard" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V7a2 2 0 00-2-2h-2m-2-2h-4a2 2 0 00-2 2h8a2 2 0 01-2 2h-4a2 2 0 01-2-2z"></path>
|
||||
</svg>
|
||||
|
Reference in New Issue
Block a user