diff --git a/main_view.html b/main_view.html index 33c4110..2f1119b 100644 --- a/main_view.html +++ b/main_view.html @@ -180,19 +180,20 @@ } } + const TOGGLE_ON_CLASS = "gamepaddialog_On_3ld7T" + function setToggleState(toggle, state) { - const ENABLED_CLASS = "gamepaddialog_On_yLrDA"; - if (state && !toggle.classList.contains(ENABLED_CLASS)) { - toggle.classList.add(ENABLED_CLASS); + if (state && !toggle.classList.contains(TOGGLE_ON_CLASS)) { + toggle.classList.add(TOGGLE_ON_CLASS); } - if (!state && toggle.classList.contains(ENABLED_CLASS)) { - toggle.classList.remove(ENABLED_CLASS); + if (!state && toggle.classList.contains(TOGGLE_ON_CLASS)) { + toggle.classList.remove(TOGGLE_ON_CLASS); } } function getToggleState(toggle) { - return toggle.classList.contains("gamepaddialog_On_yLrDA"); + return toggle.classList.contains(TOGGLE_ON_CLASS); } function sleep(ms) { @@ -200,79 +201,79 @@ } - +
-
-
-
-
-
+
+
+
+
+
Custom Fan Curve
-
-
-
-
+
+
+
+
-
Overrides SteamOS fan curve
+
Overrides SteamOS fan curve
-
+
Some text to show that something is broken :(
Click to add/remove points on the fan curve.
-
-
-
-
-
+
+
+
+
+
Linear Interpolation
-
-
-
-
+
+
+
+
-
Pretends a straight line connects points
+
Pretends a straight line connects points
-
+
-
-
-
-
Current Fan Speed
-
-
(|-_-|)
+
+
+
+
Current Fan Speed
+
+
(|-_-|)
-
-
-
-
Current Temperature
-
-
(|-_-|)
+
+
+
+
Current Temperature
+
+
(|-_-|)