Content deleted Content added
make the switch labels the index number within the list |
make number for screen reader only |
||
Line 39:
local sortedLines = nonRandom and galleryLines or randomModule.main('array', randomiseArgs)
for i = 1, #sortedLines do
sortedLines[i] = sortedLines[i]:gsub("__SWITCHLABELPLACEHOLDER__", "<span class='randomSlideshow-sr-only'>Image "..tostring(i).."</span>")
end
local galleryContent = table.concat(sortedLines, '\n')
|