From 50e472287341b92c91d506df02d551d15b3aeb10 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 11 Jun 2019 14:56:05 +0200 Subject: [PATCH] Update xdrv_01_webserver.ino Oneliner - more free bytes --- sonoff/xdrv_01_webserver.ino | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino index 286d568f8..b83523214 100644 --- a/sonoff/xdrv_01_webserver.ino +++ b/sonoff/xdrv_01_webserver.ino @@ -62,12 +62,7 @@ const char HTTP_HEAD[] PROGMEM = "return document.querySelector(s);" "}" "function sp(i){" // Toggle password visibility - "var x=eb(i);" - "if(x.type==='text'){" - "x.type='password';" - "}else{" - "x.type='text';" - "}" + "eb(i).type=(eb(i).type==='text'?'password':'text');" "}" // https://www.htmlgoodies.com/beyond/javascript/article.php/3724571/Using-Multiple-JavaScript-Onload-Functions.htm "function wl(f){" // Execute multiple window.onload