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:
committed by
Terence Eden
parent
dcd24e0087
commit
1356d62c0d
@@ -79,7 +79,10 @@
|
|||||||
var urls = items.map(item => 'images/svg/' + item + '.svg');
|
var urls = items.map(item => 'images/svg/' + item + '.svg');
|
||||||
var icons;
|
var icons;
|
||||||
Promise.all(urls.map(url => fetch(url).then(res => res.text()))).then(all => {
|
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);
|
render(range.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user