diff --git a/resources/index.html b/resources/index.html
index 81a7e7a..ed5353e 100644
--- a/resources/index.html
+++ b/resources/index.html
@@ -115,6 +115,28 @@
+
diff --git a/resources/js/gcdownloader.js b/resources/js/gcdownloader.js
index 257a5f5..f101690 100644
--- a/resources/js/gcdownloader.js
+++ b/resources/js/gcdownloader.js
@@ -56,7 +56,6 @@ async function downloadGC(branch) {
// Run installer
createCmdWindow(`.\\scripts\\gc_download.cmd ${artiUrl} ${keystoreUrl} ${branch}`)
-
// Display folder after saving config
displayServerFolder()
}
\ No newline at end of file
diff --git a/resources/js/index.js b/resources/js/index.js
index 98b22d8..2656464 100644
--- a/resources/js/index.js
+++ b/resources/js/index.js
@@ -246,6 +246,20 @@ async function handleFavoriteList() {
}
}
+async function openDownloads() {
+ const downloads = document.querySelector('#downloadPanel')
+
+ if (downloads.style.display === 'none') {
+ downloads.style.removeProperty('display')
+ }
+}
+
+async function closeDownloads() {
+ const downloads = document.querySelector('#downloadPanel')
+
+ downloads.style.display = 'none'
+}
+
async function openSettings() {
const settings = document.querySelector('#settingsPanel')
const config = await getCfg()
diff --git a/resources/style/index.css b/resources/style/index.css
index ff31870..0b16237 100644
--- a/resources/style/index.css
+++ b/resources/style/index.css
@@ -157,6 +157,7 @@ a {
#firstTimeNotice,
#loginPanel,
+#downloadPanel,
#settingsPanel {
display: block;
position: absolute;
@@ -172,6 +173,7 @@ a {
font-family: system-ui;
}
+#downloadPanel,
#settingsPanel {
width: 35%;
height: 80%;
@@ -184,6 +186,7 @@ a {
margin-bottom: 10px;
}
+#downloadPanelInner,
#settingsPanelInner {
display: flex;
flex-direction: column;
@@ -192,16 +195,19 @@ a {
padding: 10px 10%;
}
+.downloadRow,
.settingsRow {
width: 100%;
}
+.downloadTitle,
.settingTitle {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 10px;
}
+.downloadLabel,
.settingLabel {
display:inline-block;
font-size: 1em;
@@ -209,12 +215,14 @@ a {
margin: 10px 0px;
}
+.downloadSubtitle,
.settingSubtitle {
color: rgb(165, 165, 165);
font-size: 0.8em;
font-weight: normal;
}
+.downloadSection,
.settingSection {
display: flex;
flex-direction: row;
@@ -222,10 +230,12 @@ a {
justify-content: space-between;
}
+.downloadSection .smolBtn,
.settingSection .smolBtn {
height: 30px;
}
+#downloadTitleBar
#settingsTitleBar {
display: flex;
flex-direction: row;
@@ -233,15 +243,18 @@ a {
justify-content: space-between;
}
+#downloadClose,
#settingsClose {
display: inline-block;
transition: filter 0.1s ease-in-out;
}
+#downloadClose img,
#settingsClose img {
height: 20px;
}
+#downloadClose:hover,
#settingsClose:hover {
filter: invert(85%) sepia(31%) saturate(560%) hue-rotate(329deg) brightness(100%) contrast(92%);
cursor: pointer;