Skip to content

Commit

Permalink
Update http_fns.c
Browse files Browse the repository at this point in the history
Add charts to About page
  • Loading branch information
ehorvat1 authored Oct 3, 2024
1 parent 7b7d979 commit d81e4b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/httpserver/http_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,9 @@ int http_fn_about(http_request_t* request) {
http_setup(request, httpMimeTypeHTML);
http_html_start(request, "About");
poststr_h2(request, "Open source firmware for BK7231N, BK7231T, T34, BL2028N, XR809, W600/W601, W800/W801, BL602, LF686 and LN882H by OpenSHWProjects");
if (! DRV_IsRunning("Charts")) {
poststr(request, "<style onload=\"document.getElementById('obkChart').style.display='none'\"></style>");
};
poststr(request, htmlFooterReturnToMainPage);
http_html_end(request);
poststr(request, NULL);
Expand Down

0 comments on commit d81e4b3

Please sign in to comment.