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