homebridge-melcloud-control 3.9.0-beta.19 → 3.9.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -153,26 +153,16 @@
|
|
|
153
153
|
configButton.className = configButtonState ? 'btn btn-primary' : 'btn btn-secondary';
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
//
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
togglePassword.dataset.clicked = hidden; // remember permanent toggle
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
togglePassword.addEventListener('mouseenter', () => {
|
|
168
|
-
passwdInput.type = 'text';
|
|
169
|
-
togglePassword.innerHTML = `<i class="fas fa-eye-slash"></i>`;
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
togglePassword.addEventListener('mouseleave', () => {
|
|
173
|
-
if (!togglePassword.dataset.clicked || togglePassword.dataset.clicked === 'false') {
|
|
156
|
+
// Password toggle
|
|
157
|
+
document.getElementById('togglePasswd').addEventListener('click', () => {
|
|
158
|
+
const passwdInput = document.getElementById('passwd');
|
|
159
|
+
const icon = document.querySelector('#togglePasswd i');
|
|
160
|
+
if (passwdInput.type === 'password') {
|
|
161
|
+
passwdInput.type = 'text';
|
|
162
|
+
icon.classList.replace('fa-eye', 'fa-eye-slash');
|
|
163
|
+
} else {
|
|
174
164
|
passwdInput.type = 'password';
|
|
175
|
-
|
|
165
|
+
icon.classList.replace('fa-eye-slash', 'fa-eye');
|
|
176
166
|
}
|
|
177
167
|
});
|
|
178
168
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.9.0-beta.
|
|
4
|
+
"version": "3.9.0-beta.20",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|