Skip to content

Commit

Permalink
Add back charset, fix visited link
Browse files Browse the repository at this point in the history
  • Loading branch information
DTTerastar committed Aug 24, 2023
1 parent 6b6a8d1 commit 5783e69
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/AsyncWiFiSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,26 +393,10 @@ void AsyncWiFiSettingsClass::httpSetup(bool wifi) {

if (interactive && onPortalView) onPortalView();

response->print(F("<!DOCTYPE html>\n<title>"));
response->print(F("<!DOCTYPE html>\n<meta charset=UTF-8><title>"));
response->print(html_entities(hostname));
response->print(F("</title><meta name=viewport content='width=device-width,initial-scale=1'>"
"<style>"
"*{box-sizing:border-box} "
"html{background:#444;font:10pt sans-serif;width:100vw;max-width:100%} "
"body{background:#ccc;color:black;max-width:30em;padding:1em;margin:1em auto}"
"a:link{color:#000;text-decoration: none} "
"label{clear:both}"
"select,input:not([type^=c]){display:block;width:100%;border:1px solid #444;padding:.3ex}"
"input[type^=s]{display:inline;width:auto;background:#de1;padding:1ex;border:1px solid #000;border-radius:1ex}"
"[type^=c]{float:left;margin-left:-1.5em}"
":not([type^=s]):focus{outline:2px solid #d1ed1e}"
".w::before{content:'\\26a0\\fe0f'}"
"p::before{margin-left:-2em;float:left;padding-top:1ex}"
".i::before{content:'\\2139\\fe0f'}"
".c{display:block;padding-left:2em}"
".w,.i{display:block;padding:.5ex .5ex .5ex 3em}"
".w,.i{background:#aaa;min-height:3em}"
"</style>"
"<style>.c,.i,.w{display:block}*{box-sizing:border-box}html{background:#444;font:10pt sans-serif;width:100vw;max-width:100%}body{background:#ccc;color:#000;padding:1em;margin:1em auto}a{color:#000;text-decoration:none}label{clear:both}input:not([type^=c]),select{display:block;width:100%;border:1px solid #444;padding:.3ex}input[type^=s]{display:inline;width:auto;background:#de1;padding:1ex;border:1px solid #000;border-radius:1ex}[type^=c]{float:left;margin-left:-1.5em}:not([type^=s]):focus{outline:#d1ed1e solid 2px}.w::before{content:'\\26a0\\fe0f'}p::before{margin-left:-2em;float:left;padding-top:1ex}.i::before{content:'\\2139\\fe0f'}.c{padding-left:2em}.i,.w{padding:.5ex .5ex .5ex 3em;background:#aaa;min-height:3em}</style>"
"<form action=/restart method=post>"));
response->print(F("<input type=submit value=\""));
response->print(_WSL_T.button_restart);
Expand Down

0 comments on commit 5783e69

Please sign in to comment.