Alt attribute on play and load icons
-
For validation purpose you should add the alt attributes to your pre-loaded play and load icons.
In the frontend.js file within the function triggerPlayload() you should add something like .attr(‘alt’, ‘…’):
/** * Trigger the play / load icon (and preload them). */ function triggerPlayLoad() { // preload images if (bgState === undefined) { [fvpdata.playicon, fvpdata.loadicon].forEach(function(val) { $('body').append( $('<img />', { src: val }).hide().attr('alt', '...') ); }); } // trigger image bgState = bgState === playBg ? loadBg : playBg; $loader.css({ backgroundImage: bgState }); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Alt attribute on play and load icons’ is closed to new replies.