From 5d4377c081d18d89e64184c60d3fa97504768c81 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Tue, 12 Apr 2022 02:27:39 +0300 Subject: Restructuring Settings Structure --- src/pages/options/medium/medium.html | 85 +++++++++++++++++++----------------- src/pages/options/medium/medium.js | 4 +- 2 files changed, 46 insertions(+), 43 deletions(-) (limited to 'src/pages/options/medium') diff --git a/src/pages/options/medium/medium.html b/src/pages/options/medium/medium.html index bc0b9d69..fde374eb 100644 --- a/src/pages/options/medium/medium.html +++ b/src/pages/options/medium/medium.html @@ -144,51 +144,54 @@
- -
-
-

Default Instances

-
-
-
-
-

Custom Instances

-
-
+
+
- - +

Default Instances

- -
-
- -
-
-

Default Instances

-
-
-
-
-

Custom Instances

+
+
+
+

Custom Instances

+
+
+
+ + +
+
+
-
+ +
- - +

Default Instances

- -
+
+
+
+

Custom Instances

+
+
+
+ + +
+
+
+
@@ -198,4 +201,4 @@ - + \ No newline at end of file diff --git a/src/pages/options/medium/medium.js b/src/pages/options/medium/medium.js index dcc4b4a4..5337e413 100644 --- a/src/pages/options/medium/medium.js +++ b/src/pages/options/medium/medium.js @@ -16,8 +16,8 @@ protocolElement.addEventListener("change", ); function changeProtocolSettings(protocol) { - let normalDiv = document.getElementById("normal"); - let torDiv = document.getElementById("tor"); + let normalDiv = document.getElementsByClassName("normal")[0]; + let torDiv = document.getElementsByClassName("tor")[0]; if (protocol == 'normal') { normalDiv.style.display = 'block'; torDiv.style.display = 'none'; -- cgit 1.4.1