label for comic nav

This commit is contained in:
mi
2025-11-14 18:59:13 +10:00
parent 660e4a516f
commit a0b9bb8bfb
2 changed files with 2 additions and 1 deletions

View File

@@ -179,6 +179,7 @@
if (currentNumber < totalComics) { if (currentNumber < totalComics) {
const link = document.createElement('a'); const link = document.createElement('a');
link.href = `/comic/${currentNumber + 1}`; link.href = `/comic/${currentNumber + 1}`;
link.setAttribute('aria-label', 'Click to view next comic');
link.onclick = (e) => { link.onclick = (e) => {
e.preventDefault(); e.preventDefault();
loadComic(currentNumber + 1); loadComic(currentNumber + 1);

View File

@@ -18,7 +18,7 @@
<div class="comic-image" id="comic-image-focus" tabindex="-1"> <div class="comic-image" id="comic-image-focus" tabindex="-1">
{% if comic.number < total_comics %} {% if comic.number < total_comics %}
<a href="{{ url_for('comic', comic_id=comic.number + 1) }}"> <a href="{{ url_for('comic', comic_id=comic.number + 1) }}" aria-label="Click to view next comic">
{% if comic.mobile_filename %} {% if comic.mobile_filename %}
<picture> <picture>
<source media="(max-width: 768px)" srcset="{{ url_for('static', filename='images/comics/' + comic.mobile_filename) }}"> <source media="(max-width: 768px)" srcset="{{ url_for('static', filename='images/comics/' + comic.mobile_filename) }}">