Support for \tooltip{}{} and \statusline{}{}
itex2MML 1.3.16 add a \tooltip{}{} command which, like \statusline{}{}, produces an <maction> element. Neither of these is natively supported by Mozilla/Firefox. Add some Javascript to work around that weakness.
This commit is contained in:
parent
c99ca26a8d
commit
977da29f68
4 changed files with 27 additions and 3 deletions
|
@ -41,7 +41,22 @@ function fixRunIn() {
|
|||
});
|
||||
}
|
||||
|
||||
function mactionWorkarounds() {
|
||||
$$('maction[actiontype="tooltip"]').each( function(mtool){
|
||||
Element.writeAttribute(mtool, 'title', mtool.lastChild.firstChild.data);
|
||||
});
|
||||
$$('maction[actiontype="statusline"]').each( function(mstatus){
|
||||
Event.observe(mstatus, 'mouseover', function(){
|
||||
window.status = mstatus.lastChild.firstChild.data;
|
||||
});
|
||||
Event.observe(mstatus, 'mouseout', function(){
|
||||
window.status = '';
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
window.onload = function (){
|
||||
extractBlockquoteCitations();
|
||||
fixRunIn();
|
||||
mactionWorkarounds();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue