Skip to content
Snippets Groups Projects
Commit 763ffe58 authored by Anika Henke's avatar Anika Henke
Browse files

added aria attributes for footnote tooltips

parent 193e2280
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,9 @@ dw_page = {
$fndiv = jQuery(document.createElement('div'))
.attr('id', popup_id)
.addClass('insitu-footnote JSpopup')
.mouseleave(function () {jQuery(this).hide();});
.attr('aria-hidden', 'true')
.mouseleave(function () {jQuery(this).hide().attr('aria-hidden', 'true');})
.attr('role', 'tooltip');
jQuery('.dokuwiki:first').append($fndiv);
}
......@@ -97,7 +99,7 @@ dw_page = {
content = content.replace(/\bid=(['"])([^"']+)\1/gi,'id="insitu__$2');
// now put the content into the wrapper
dw_page.insituPopup(this, 'insitu__fn').html(content).show();
dw_page.insituPopup(this, 'insitu__fn').html(content).show().attr('aria-hidden', 'false');
},
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment