docs: update README.md with new content

This commit is contained in:
Hernâni Marques 2026-09-30 13:01:15 +02:00
parent ff934ce5e9
commit 8a09314eaf
No known key found for this signature in database
11 changed files with 133 additions and 60 deletions

View file

@ -0,0 +1,24 @@
(function () {
var nodes = document.querySelectorAll(".cascade-bar [data-tip]");
if (!nodes.length) return;
fetch("/branch-status.json", { cache: "no-store" })
.then(function (res) {
if (!res.ok) throw new Error("status");
return res.json();
})
.then(function (data) {
var tips = {};
var list = (data && data.branches) || [];
for (var i = 0; i < list.length; i++) {
var row = list[i];
if (row && row.branch && row.tip) tips[row.branch] = row.tip;
}
for (var j = 0; j < nodes.length; j++) {
var el = nodes[j];
var name = el.getAttribute("data-tip");
var tip = tips[name];
if (tip) el.textContent = name + " @ " + tip;
}
})
.catch(function () {});
})();