github-stats

fetch stats about github repos  https://p.ce9e.org/github-stats/
git clone https://git.ce9e.org/github-stats.git

commit
4b7d7b97706338ac95cf7559466062cb6d3557eb
parent
c1364993238cf815c8d4eaf3a0eedddda8d1ea01
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-09-05 08:16
change button text while loading

Diffstat

M script.js 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/script.js b/script.js

@@ -5,7 +5,9 @@ var setValue = function(name, value) {
    5     5 };
    6     6 
    7     7 var setBusy = function(busy) {
    8    -1 	document.querySelector('button').disabled = busy;
   -1     8 	var btn = document.querySelector('button');
   -1     9 	btn.disabled = busy;
   -1    10 	btn.textContent = busy ? 'Loading…' : 'Get stats!';
    9    11 };
   10    12 
   11    13 var getDuration = function(x) {