Now we can display a badge of our progress. Downside: needs to be updated manually.

This commit is contained in:
2017-12-16 13:40:45 +01:00
parent 70a2bf39ea
commit 6b771796e9

21
badge.html Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<body>
</body>
<script>
var progress = (3/24)*100
var color = ''
if (progress >= 66)
color = 'green'
else if (progress < 66)
color = 'orange'
else
color = 'red'
var img = document.createElement("img");
img.src = `https://img.shields.io/badge/Progress-${progress}-${color}.svg`;
document.body.appendChild(img);
</script>
</html>