Leave blank for an open network. Passphrases may be up to 63 characters; a 64-character key must be hexadecimal.
@@ -611,6 +621,16 @@ function $(s){return document.querySelector(s)}
function $$(s){return Array.prototype.slice.call(document.querySelectorAll(s))}
function toast(m){var t=$("#toast");t.textContent=m;t.classList.add("show");clearTimeout(t._h);t._h=setTimeout(function(){t.classList.remove("show")},2600)}
function esc(s){return String(s).replace(/[&<>"]/g,function(c){return{"&":"&","<":"<",">":">",'"':"""}[c]})}
+function toggleWiFiPassword(btn){
+ var input=document.getElementById(btn.getAttribute("aria-controls"));
+ if(!input)return;
+ var show=input.type==="password";
+ input.type=show?"text":"password";
+ btn.textContent=show?"Hide":"Show";
+ btn.setAttribute("aria-pressed",show?"true":"false");
+ btn.setAttribute("aria-label",(show?"Hide":"Show")+" WiFi password");
+ input.focus();
+}
// build.sh embeds base[.build][-observer][-channel]-hash, e.g.
// v1.16.0.5-observer-beta-dev-a1b2c3d. What identifies a build to a person is
// the base, the published build number and the channel -- the -observer variant