fix: use font instead of image for ip adress

This commit is contained in:
Jones8683
2025-08-04 09:57:51 +09:30
parent 52192002e7
commit ceb9424ab9
2 changed files with 38 additions and 2 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

+36
View File
@@ -21,6 +21,14 @@ export async function DeleteWhatsNew() {
} }
export function OpenMinecraftServerPopup() { export function OpenMinecraftServerPopup() {
if (!document.querySelector('link[href*="minecraftia"]')) {
const fontLink = document.createElement("link");
fontLink.href = "https://fonts.cdnfonts.com/css/minecraftia";
fontLink.rel = "stylesheet";
document.head.appendChild(fontLink);
}
const background = document.createElement("div"); const background = document.createElement("div");
background.id = "whatsnewbk"; background.id = "whatsnewbk";
background.classList.add("whatsnewBackground"); background.classList.add("whatsnewBackground");
@@ -61,6 +69,34 @@ export function OpenMinecraftServerPopup() {
<li>Regular updates and maintenance</li> <li>Regular updates and maintenance</li>
<li>The End dimension will be enabled during an upcoming live event</li> <li>The End dimension will be enabled during an upcoming live event</li>
</ul> </ul>
<p style="
font-family: 'Minecraftia', sans-serif;
color: white;
font-weight: bold;
font-size: 28px;
text-align: center;
margin-top: 1.5em;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
">
mc.betterseqta.org
</p>
<!-- Version Info -->
<p style="
font-family: sans-serif;
color: #ccc;
font-size: 13px;
text-align: center;
margin-top: 0.25em;
">
Version: 1.21.4
</p>
</div>
`).firstChild; `).firstChild;
let footer = stringToHTML(/* html */ ` let footer = stringToHTML(/* html */ `