Add captions [only once] for easy searching (#83)

* Added captions. This allows for easy searching in the README.md

* Added captions. This allows for easy searching in HTML

* Add the label just once, not after every change of radius. Fixed issue with the label being added multiple times
This commit is contained in:
florisluiten
2017-11-28 22:48:04 +01:00
committed by Terence Eden
parent dcd24e0087
commit 1356d62c0d

View File

@@ -79,7 +79,10 @@
var urls = items.map(item => 'images/svg/' + item + '.svg');
var icons;
Promise.all(urls.map(url => fetch(url).then(res => res.text()))).then(all => {
icons = all;
icons = all.map(icon => {
return icon + '<b>' + icon.match(/aria-label\=\"(.*?)\"/)[1] + '</b>';
});
render(range.value);
});