summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.py2
-rw-r--r--script.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/build.py b/build.py
index 0da32e3..16ba007 100755
--- a/build.py
+++ b/build.py
@@ -97,6 +97,8 @@ def write_features(f, id, features):
f.write('>')
for feat, data in features.items():
f.write('<li><a')
+ if 'flag' in data:
+ f.write(' title="{}"'.format(data['flag']))
url = data['url']
if url:
f.write(f' href="{url}"')
diff --git a/script.js b/script.js
index b823b9c..aa08083 100644
--- a/script.js
+++ b/script.js
@@ -44,6 +44,8 @@
a.textContent = feat.title;
a.innerHTML = a.innerHTML.replaceAll(/`(.+?)`/g, (_, x) => `<code>${x}</code>`);
a.href = feat.url;
+ if (feat.flag)
+ a.title = feat.flag;
li.appendChild(a);
ul.appendChild(li);
}