feat: add version number

This commit is contained in:
Jones8683
2025-08-05 09:32:19 +09:30
parent 2ded9b3f83
commit ce2b376469
+40 -18
View File
@@ -21,7 +21,6 @@ export async function DeleteWhatsNew() {
} }
export function OpenMinecraftServerPopup() { export function OpenMinecraftServerPopup() {
if (!document.querySelector('link[href*="minecraftia"]')) { if (!document.querySelector('link[href*="minecraftia"]')) {
const fontLink = document.createElement("link"); const fontLink = document.createElement("link");
fontLink.href = "https://fonts.cdnfonts.com/css/minecraftia"; fontLink.href = "https://fonts.cdnfonts.com/css/minecraftia";
@@ -48,7 +47,8 @@ export function OpenMinecraftServerPopup() {
imagecont.classList.add("whatsnewImgContainer"); imagecont.classList.add("whatsnewImgContainer");
let img = document.createElement("img"); let img = document.createElement("img");
img.src = "https://raw.githubusercontent.com/BetterSEQTA/BetterSEQTA-Plus/main/src/resources/server-image.png"; img.src =
"https://raw.githubusercontent.com/BetterSEQTA/BetterSEQTA-Plus/main/src/resources/server-image.png";
img.classList.add("whatsnewImg"); img.classList.add("whatsnewImg");
imagecont.appendChild(img); imagecont.appendChild(img);
@@ -71,21 +71,37 @@ export function OpenMinecraftServerPopup() {
<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=" <p style="
font-family: 'Minecraftia', sans-serif; font-family: 'Minecraftia', sans-serif;
color: white; color: white;
font-weight: bold; font-weight: bold;
font-size: 34px; font-size: 34px;
text-align: center; text-align: center;
margin-top: 0.8em; margin-top: 0.5em;
text-shadow: margin-bottom: 0.1em;
-1px -1px 0 #000, text-shadow:
1px -1px 0 #000, -1px -1px 0 #000,
-1px 1px 0 #000, 1px -1px 0 #000,
1px 1px 0 #000; -1px 1px 0 #000,
"> 1px 1px 0 #000;
mc.betterseqta.org ">
</p> mc.betterseqta.org
</p>
<p style="
font-family: 'Minecraftia', sans-serif;
color: white;
font-weight: bold;
font-size: 12px;
text-align: center;
margin-top: 0;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
">
Version: 1.21.4
</p>
</div> </div>
`).firstChild; `).firstChild;
@@ -121,7 +137,13 @@ export function OpenMinecraftServerPopup() {
let exitbutton = document.createElement("div"); let exitbutton = document.createElement("div");
exitbutton.id = "whatsnewclosebutton"; exitbutton.id = "whatsnewclosebutton";
container.append(header, imagecont, text as HTMLElement, footer as HTMLElement, exitbutton); container.append(
header,
imagecont,
text as HTMLElement,
footer as HTMLElement,
exitbutton,
);
background.append(container); background.append(container);