From 2a3c267906c5c23418c9e2d67db086f9b15a765e Mon Sep 17 00:00:00 2001 From: lumapu Date: Sat, 22 Oct 2022 23:35:56 +0200 Subject: [PATCH] added link to git commit from git sha in footer (feature request from @stefan123t) --- tools/esp8266/html/api.js | 9 +++++++++ tools/esp8266/html/index.html | 13 ++++++++----- tools/esp8266/html/serial.html | 4 +++- tools/esp8266/html/setup.html | 4 +++- tools/esp8266/html/update.html | 4 +++- tools/esp8266/html/visualization.html | 11 +++++++---- tools/esp8266/scripts/auto_firmware_version.py | 2 +- 7 files changed, 34 insertions(+), 13 deletions(-) diff --git a/tools/esp8266/html/api.js b/tools/esp8266/html/api.js index d3288c8b..d628ad17 100644 --- a/tools/esp8266/html/api.js +++ b/tools/esp8266/html/api.js @@ -93,3 +93,12 @@ function span(val, cl=null, id=null) { function br() { return document.createElement('br'); } + +function link(dst, text, target=null) { + var a = document.createElement('a'); + var t = document.createTextNode(text); + a.href = dst; + a.target = target; + a.appendChild(t); + return a; +} diff --git a/tools/esp8266/html/index.html b/tools/esp8266/html/index.html index cc7f5f08..86febfdb 100644 --- a/tools/esp8266/html/index.html +++ b/tools/esp8266/html/index.html @@ -65,7 +65,7 @@

REST API