Merge pull request #1670 from yurydelendik/thumbs-alt
Accessibility labels for page previews
This commit is contained in:
commit
adbe74c7a6
@ -40,3 +40,5 @@ download_label=Download
|
|||||||
zoom_out_label=Zoom Out
|
zoom_out_label=Zoom Out
|
||||||
zoom_in_label=Zoom In
|
zoom_in_label=Zoom In
|
||||||
zoom.title=Zoom
|
zoom.title=Zoom
|
||||||
|
thumb_page_title=Page {{page}}
|
||||||
|
thumb_page_canvas=Thumbnail of Page {{page}}
|
||||||
|
@ -40,3 +40,5 @@ download_label=<<<_ÐOẂпḻOãÐ_>>>
|
|||||||
zoom_out_label=<<<_ƩOOм Oȗţ_>>>
|
zoom_out_label=<<<_ƩOOм Oȗţ_>>>
|
||||||
zoom_in_label=<<<_ƩOOм iп_>>>
|
zoom_in_label=<<<_ƩOOм iп_>>>
|
||||||
zoom.title=<<<_ƩOOм_>>>
|
zoom.title=<<<_ƩOOм_>>>
|
||||||
|
thumb_page_title=<<<_Þãģε {{page}}_>>>
|
||||||
|
thumb_page_canvas=<<<_ţНȗмьпãiḻ O£ Þãģε {{page}}_>>>
|
||||||
|
@ -1070,7 +1070,8 @@ var PageView = function pageView(container, pdfPage, id, scale,
|
|||||||
var ThumbnailView = function thumbnailView(container, pdfPage, id) {
|
var ThumbnailView = function thumbnailView(container, pdfPage, id) {
|
||||||
var anchor = document.createElement('a');
|
var anchor = document.createElement('a');
|
||||||
anchor.href = PDFView.getAnchorUrl('#page=' + id);
|
anchor.href = PDFView.getAnchorUrl('#page=' + id);
|
||||||
anchor.onclick = function stopNivigation() {
|
anchor.title = mozL10n.get('thumb_page_title', {page: id}, 'Page {{page}}');
|
||||||
|
anchor.onclick = function stopNavigation() {
|
||||||
PDFView.page = id;
|
PDFView.page = id;
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
@ -1103,6 +1104,8 @@ var ThumbnailView = function thumbnailView(container, pdfPage, id) {
|
|||||||
canvas.width = canvasWidth;
|
canvas.width = canvasWidth;
|
||||||
canvas.height = canvasHeight;
|
canvas.height = canvasHeight;
|
||||||
canvas.className = 'thumbnailImage';
|
canvas.className = 'thumbnailImage';
|
||||||
|
canvas.setAttribute('aria-label', mozL10n.get('thumb_page_canvas',
|
||||||
|
{page: id}, 'Thumbnail of Page {{page}}'));
|
||||||
|
|
||||||
div.setAttribute('data-loaded', true);
|
div.setAttribute('data-loaded', true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user