correct back to menu, also added "Refrseh" button to main

This commit is contained in:
openshwprojects
2022-08-20 12:37:33 +02:00
parent 4fd6a292d5
commit d8ccb05fad
3 changed files with 4 additions and 2 deletions

View File

@ -481,7 +481,7 @@ int http_fn_index(http_request_t *request) {
PingWatchDog_GetTotalLost(),PingWatchDog_GetTotalReceived());
poststr(request,htmlReturnToMenu);
poststr(request,htmlRefresh);
HTTP_AddBuildFooter(request);
poststr(request,htmlEnd);
@ -1525,7 +1525,7 @@ int http_fn_cfg(http_request_t *request) {
}
#endif
#endif
poststr(request,htmlReturnToMenu);
HTTP_AddBuildFooter(request);
poststr(request,htmlEnd);
poststr(request, NULL);

View File

@ -22,6 +22,7 @@ const char httpMimeTypeBinary[] = "application/octet-stream" ; // binary/file
const char htmlHeader[] = "<!DOCTYPE html><html><head><style>div,fieldset,input,select{padding:5px;font-size:1em;margin: 0 0 0.2em 0}fieldset{background:#4f4f4f;}p{margin:0.5em 0;}input{width:100%;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#dddddd;color:#000000;}form{margin-bottom:0.5em}input[type=checkbox],input[type=radio]{width:1em;margin-right:6px;vertical-align:-1px;}input[type=range]{width:99%;}select{width:100%;background:#dddddd;color:#000000;}textarea{resize:vertical;width:98%;height:318px;padding:5px;overflow:auto;background:#1f1f1f;color:#65c115;}body{text-align:center;font-family:verdana,sans-serif;background:#21333e; color:#eaeaea}h1 a{background:#21333e; color:#eaeaea}td{padding:0px;}input[type=submit]{border:0;border-radius:0.3rem;background:#1fa3ec;color:#faffff;line-height:2.4rem;font-size:1.2rem;width:100%;-webkit-transition-duration:0.4s;transition-duration:0.4s;cursor:pointer;margin-buttom:0.5em}input[type=submit]:hover{background:#0e70a4;}.bred{background:#d43535 !important;}.bred:hover{background:#931f1f !important;}.bgrn{background:#47c266 !important;}.bgrn:hover{background:#5aaf6f !important;}a{color:#1fa3ec;text-decoration:none;}.p{float:left;text-align:left;}.q{float:right;text-align:right;}.r{border-radius:0.3em;padding:2px;margin:6px 2px;}.hf{display:none;}.hdiv{width:95%;white-space:nowrap;}.hele{width:210px;display:inline-block;margin-left:2px;}</style></head><body><div style=\"text-align:left; display:inline-block; color:#eaeaea; min-width:340px;max-width:800px;\">" ;
const char htmlEnd[] = "</div></body></html>" ;
const char htmlReturnToMenu[] = "<a href=\"index\">Return to menu</a>";
const char htmlRefresh[] = "<a href=\"index\">Refresh</a>";
const char htmlReturnToCfg[] = "<a href=\"cfg\">Return to cfg</a>";
// make sure that USER_SW_VER is set on all platforms

View File

@ -10,6 +10,7 @@ extern const char httpMimeTypeBinary[];
extern const char htmlHeader[];
extern const char htmlEnd[];
extern const char htmlReturnToMenu[];
extern const char htmlRefresh[];
extern const char htmlReturnToCfg[];
extern const char *htmlPinRoleNames[];