added alt text to spaceweather images via js
This commit is contained in:
parent
ad12cd0f92
commit
a51c44307c
@ -22,10 +22,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
: 'https://quinten0508.com/api/spaceweather/ovation-south.jpg';
|
: 'https://quinten0508.com/api/spaceweather/ovation-south.jpg';
|
||||||
|
|
||||||
ovationImage.src = imageUrl;
|
ovationImage.src = imageUrl;
|
||||||
|
ovationImage.alt = isNorthOvation ? 'Northern Hemisphere Aurora Ovatio visualization'
|
||||||
|
: 'Southern Hemisphere Aurora Ovation visualization';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetchOverviewImage() {
|
function fetchOverviewImage() {
|
||||||
overview.src = 'https://quinten0508.com/api/spaceweather/overview.gif';
|
overview.src = 'https://quinten0508.com/api/spaceweather/overview.gif';
|
||||||
|
overview.alt = 'Solar flux and geomagnetic activity graphed'
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleButton.addEventListener('click', function() {
|
toggleButton.addEventListener('click', function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user