From 7b99c3bf1e1d6d3068b82b66837ed430ec8b0dd3 Mon Sep 17 00:00:00 2001 From: SharkPool <139097378+SharkPool-SP@users.noreply.github.com> Date: Fri, 20 Dec 2024 14:35:30 -0800 Subject: [PATCH] Update startup.js --- scripts/startup.js | 79 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/scripts/startup.js b/scripts/startup.js index 06eb279..2c2528a 100644 --- a/scripts/startup.js +++ b/scripts/startup.js @@ -64,7 +64,20 @@ function refreshTagList() { } function showLoadingGUI() { + const css = document.createElement("link"); + css.setAttribute("rel", "stylesheet"); + css.setAttribute("href", "css/loader.css"); + document.head.appendChild(css); + const holder = document.createElement("div"); + holder.classList.add("overlay"); + const loadCirc = document.createElement("div"); + loadCirc.classList.add("load-circle"); + loadCirc.innerHTML = ``; + + holder.appendChild(loadCirc); + document.body.appendChild(holder); + return holder; } function showMediaRules() { @@ -125,7 +138,69 @@ function showMediaRules() { } function showMediaEditor(namespace, fileType) { + const media = uploadData.media[namespace]; + + const css = document.createElement("link"); + css.setAttribute("rel", "stylesheet"); + css.setAttribute("href", "css/media-editor.css"); + document.head.appendChild(css); + const holder = document.createElement("div"); + holder.classList.add("overlay"); + const editor = document.createElement("div"); + editor.classList.add("editor"); + editor.innerHTML = ` +