mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
feat: mc popup on update, improved styles
This commit is contained in:
@@ -36,6 +36,7 @@ import IconFamily from "@/resources/fonts/IconFamily.woff";
|
|||||||
|
|
||||||
// Stylesheets
|
// Stylesheets
|
||||||
import iframeCSS from "@/css/iframe.scss?raw";
|
import iframeCSS from "@/css/iframe.scss?raw";
|
||||||
|
import { OpenMinecraftServerPopup } from "@/seqta/utils/AboutMinecraftServer";
|
||||||
|
|
||||||
function SetDisplayNone(ElementName: string) {
|
function SetDisplayNone(ElementName: string) {
|
||||||
return `li[data-key=${ElementName}]{display:var(--menuHidden) !important; transition: 1s;}`;
|
return `li[data-key=${ElementName}]{display:var(--menuHidden) !important; transition: 1s;}`;
|
||||||
@@ -95,7 +96,8 @@ export async function finishLoad() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (settingsState.justupdated && !document.getElementById("whatsnewbk")) {
|
if (settingsState.justupdated && !document.getElementById("whatsnewbk")) {
|
||||||
OpenWhatsNewPopup();
|
OpenMinecraftServerPopup();
|
||||||
|
//OpenWhatsNewPopup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ export function OpenMinecraftServerPopup() {
|
|||||||
imagecont.classList.add("whatsnewImgContainer");
|
imagecont.classList.add("whatsnewImgContainer");
|
||||||
|
|
||||||
let video = document.createElement("video");
|
let video = document.createElement("video");
|
||||||
|
video.style.aspectRatio = "16/9";
|
||||||
|
video.style.background = "black";
|
||||||
let source = document.createElement("source");
|
let source = document.createElement("source");
|
||||||
|
|
||||||
source.setAttribute(
|
source.setAttribute(
|
||||||
|
|||||||
Reference in New Issue
Block a user