1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Add alt text to Elephants images (#1292)

This commit is contained in:
Adam Cable
2025-07-11 03:18:56 +01:00
committed by GitHub
parent 522c73a195
commit bb65d6c4f0

View File

@@ -426,6 +426,7 @@ $(document).ready(function () {
link.attr('href', photo.url);
link.attr('title', photo.title);
image = $('<img>');
image.attr('alt', '');
image.attr('src', 'data:image/jpeg;base64,' + photo.data);
$(node).append(link.append(image));
}