Fix WiFi setup UI and captive portal
This commit is contained in:
parent
77d428db1a
commit
b451ca73a4
|
|
@ -372,7 +372,7 @@ pre{white-space:pre-wrap;background:#f6f6f6;border-radius:10px;padding:12px}
|
|||
<input id="pass" type="password" placeholder="(empty = open network)">
|
||||
<button type="button" class="toggleBtn" onclick="togglePassword(this)">Show</button>
|
||||
</div>
|
||||
<div class="small">After successful connection, the access point %(hostname_note)s will disappear.</div>
|
||||
<div class="small">After successful connection, the access point __HOSTNAME_NOTE__ will disappear.</div>
|
||||
<div style="margin-top:12px"><button onclick="connect()">Connect</button></div>
|
||||
<div class="small" id="msg" style="margin-top:10px"></div>
|
||||
</div>
|
||||
|
|
@ -397,9 +397,8 @@ async function connect(){
|
|||
}
|
||||
</script>
|
||||
</body></html>
|
||||
""" % {
|
||||
"hostname_note": HOSTNAME if HOSTNAME else "device access point"
|
||||
}
|
||||
"""
|
||||
HTML = HTML.replace("__HOSTNAME_NOTE__", HOSTNAME if HOSTNAME else "device access point")
|
||||
|
||||
|
||||
class Handler(BaseHTTPRequestHandler):
|
||||
|
|
|
|||
Loading…
Reference in New Issue