Scripts
diff --git a/resources/js/index.js b/resources/js/index.js
index 82a9610..f407bb9 100644
--- a/resources/js/index.js
+++ b/resources/js/index.js
@@ -313,6 +313,12 @@ async function openSettings() {
killSwitch.checked = config.enableKillswitch
}
+async function closeSettings() {
+ const settings = document.querySelector('#settingsPanel')
+
+ settings.style.display = 'none'
+}
+
async function toggleKillSwitch() {
const killSwitch = document.querySelector('#killswitchOption')
const config = await getCfg()
diff --git a/resources/style/index.css b/resources/style/index.css
index c467530..a262b37 100644
--- a/resources/style/index.css
+++ b/resources/style/index.css
@@ -66,6 +66,21 @@ body {
font-weight: normal;
}
+#settingsClose {
+ display: inline-block;
+ margin-left: 65%;
+ transition: filter 0.1s ease-in-out;
+}
+
+#settingsClose img {
+ height: 20px;
+}
+
+#settingsClose:hover {
+ filter: invert(85%) sepia(31%) saturate(560%) hue-rotate(329deg) brightness(100%) contrast(92%);
+ cursor: pointer;
+}
+
#ipList {
position: absolute;
z-index: 99;