Skip to content

Commit

Permalink
Merge pull request #5 from Grovkillen/mega
Browse files Browse the repository at this point in the history
Added copy to clipboard on log page
  • Loading branch information
Grovkillen authored Apr 23, 2018
2 parents e2da8ec + c35fe3d commit 41e4705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/WebServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3040,13 +3040,14 @@ void handle_log() {
sendHeadandTail(F("TmplStd"),_HEAD);

TXBuffer += F("<script>function RefreshMe(){window.location = window.location}setTimeout('RefreshMe()', 3000);</script>");
TXBuffer += F("<table class='normal'><TR><TH style='width:150px;' align='left'>Log<TR><TD>");
TXBuffer += F("<table class='normal'><TR><TH style='width:150px;' align='left'>Log<TR><TD id='copyText_1'>");
for (int i = 0; i< LOG_STRUCT_MESSAGE_LINES; i++){
Logging.get(TXBuffer.buf, F("<BR>"),i);

}
//Logging.getAll(TXBuffer.buf, F("<BR>"));
TXBuffer += F("</table>");
addCopyButton(F("copyText"), F("Copy log to clipboard"));
sendHeadandTail(F("TmplStd"),_TAIL);
TXBuffer.endStream();
}
Expand Down

0 comments on commit 41e4705

Please sign in to comment.