diff --git a/README.md b/README.md index c0ea36c..e9f3b00 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,6 @@ ## Dependencies - - - +- +- +- diff --git a/include/index.js b/include/index.js index 19a7435..a105dc9 100644 --- a/include/index.js +++ b/include/index.js @@ -1,6 +1,3 @@ -minMem= "2G" -maxMem = "4G" - let launchBtn = document.querySelector('#launch-btn'); let fullProgressBar = document.querySelector('#fullprogressbar') let progressBar = document.querySelector('#progressbar') @@ -17,10 +14,14 @@ launchBtn.addEventListener("click", e => { fullProgressBar.classList.remove('hidden'); loadingMessage.classList.remove('hidden'); ipcRenderer.send('launch', { - minMem: minMem, - maxMem: maxMem + minMem: document.querySelector('#minMem').value, + maxMem: document.querySelector('#maxMem').value }) launchBtn.disabled = true + if(document.querySelector('#minMem').value.trim() && document.querySelector('#maxMem').value.trim()){ + localStorage.setItem("minMem", document.querySelector('#minMem').value.trim()) + localStorage.setItem("maxMem", document.querySelector('#maxMem').value.trim()) + } }) ipcRenderer.on("progress", (e, args) => { @@ -39,4 +40,9 @@ ipcRenderer.on("close", (e, args) => { disconnectBtn.addEventListener('click', e => { ipcRenderer.send('disconnect') +}) + +window.addEventListener("DOMContentLoaded", () => { + document.querySelector('#minMem').value = localStorage.getItem("minMem") != null ? localStorage.getItem("minMem") : "2G" + document.querySelector('#maxMem').value = localStorage.getItem("maxMem") != null ? localStorage.getItem("maxMem") : "4G" }) \ No newline at end of file diff --git a/include/material-icons.css b/include/material-icons.css new file mode 100644 index 0000000..e658455 --- /dev/null +++ b/include/material-icons.css @@ -0,0 +1,23 @@ +/* fallback */ +@font-face { + font-family: 'Material Icons'; + font-style: normal; + font-weight: 400; + src: url(material-icons.woff2) format('woff2'); + } + + .material-icons { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; + line-height: 1; + letter-spacing: normal; + text-transform: none; + display: inline-block; + white-space: nowrap; + word-wrap: normal; + direction: ltr; + -webkit-font-feature-settings: 'liga'; + -webkit-font-smoothing: antialiased; + } \ No newline at end of file diff --git a/include/material-icons.woff2 b/include/material-icons.woff2 new file mode 100644 index 0000000..9d1dfcc Binary files /dev/null and b/include/material-icons.woff2 differ diff --git a/index.html b/index.html index 575c930..1007ca1 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - +
diff --git a/login.html b/login.html index 7162957..238d147 100644 --- a/login.html +++ b/login.html @@ -6,7 +6,7 @@ - +