diff --git a/tools/esp8266/defines.h b/tools/esp8266/defines.h
index 325c4eae..68c2ce51 100644
--- a/tools/esp8266/defines.h
+++ b/tools/esp8266/defines.h
@@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 5
-#define VERSION_PATCH 24
+#define VERSION_PATCH 25
//-------------------------------------
diff --git a/tools/esp8266/html/api.js b/tools/esp8266/html/api.js
index 37fa55c7..07609b66 100644
--- a/tools/esp8266/html/api.js
+++ b/tools/esp8266/html/api.js
@@ -12,11 +12,21 @@ function parseMenu(obj) {
for(var i = 0; i < obj["name"].length; i ++) {
if(obj["name"][i] == "-")
e.appendChild(span("", ["seperator"]));
- else
- e.appendChild(link(obj["link"][i], obj["name"][i], obj["trgt"][i]));
+ else {
+ var l = link(obj["link"][i], obj["name"][i], obj["trgt"][i]);
+ if(obj["link"][i] == window.location.pathname)
+ l.classList.add("active");
+ e.appendChild(l);
+ }
}
}
+function parseVersion(obj) {
+ document.getElementById("version").appendChild(
+ link("https://github.com/lumapu/ahoy/commits/" + obj["build"], "Git SHA: " + obj["build"] + " :: " + obj["version"], "_blank")
+ );
+}
+
function toggle(id, hide) {
var elm = document.getElementById(id);
if(hide) {
diff --git a/tools/esp8266/html/index.html b/tools/esp8266/html/index.html
index 74bc7c97..856bcda5 100644
--- a/tools/esp8266/html/index.html
+++ b/tools/esp8266/html/index.html
@@ -8,7 +8,7 @@
-
-
Uptime:
-
ESP-Time:
-
- Sunrise:
- Sunset:
-
-
WiFi RSSI: dBm
-
- Statistics:
-
-
-
-
-
Every seconds the values are updated
+
+
+
+
Uptime:
+
ESP-Time:
+
+ Sunrise:
+ Sunset:
+
+
WiFi RSSI: dBm
+
+ Statistics:
+
+
+
+
+
Every seconds the values are updated
- This project was started from
this discussion. (Mikrocontroller.net)
+
+
+
+
+
+
+
+
+