MediaWiki:Gadget-ReferenceTooltips.js: различия между версиями

м
нет описания правки
(Новая страница: «// See mw:Reference Tooltips window.pg || $(document).ready( function($) { // Make sure we are in article, project, or help namespace if ( wgCanonic…»)
 
мНет описания правки
 
Строка 39: Строка 39:
                     } else {
                     } else {
                             var h = findRef( refLink );
                             var h = findRef( refLink );
                             h && (h.style.border = "");
                             //h && (h.style.border = "");
                            h && (h.style.outline = "");
                     }
                     }
             }
             }
Строка 101: Строка 102:
                             if( !h ){return};
                             if( !h ){return};
                             if( !isTouchscreen && ( window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0 ) + $(window).height() > $( h ).offset().top + h.offsetHeight ) {
                             if( !isTouchscreen && ( window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0 ) + $(window).height() > $( h ).offset().top + h.offsetHeight ) {
                                     h.style.border = "#080086 2px solid";
                                     //h.style.border = "#080086 2px solid";
                                    h.style.outline = "2px solid #8FB4DF";
                                     return;
                                     return;
                             }
                             }