Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
mNo edit summary
mNo edit summary
Line 101: Line 101:
  var _tooltipFrameClassName = 'uniwiki-tooltip-frame';
  var _tooltipFrameClassName = 'uniwiki-tooltip-frame';
  var _activeTooltipIdx = -1;
  var _activeTooltipIdx = -1;
  var _posCorrectionX = 50; var _posCorrectionY = 50;
  var _posCorrectionX = 550; var _posCorrectionY = 150;
function checkElementByClassComp() {
function checkElementByClassComp() {
if (document.getElementsByClassName == undefined) {
if (document.getElementsByClassName == undefined) {
Line 149: Line 149:
if(_activeTooltipIdx != -1) {
if(_activeTooltipIdx != -1) {
var parentObj = document.getElementById('tooltipframeidx-' + _activeTooltipIdx);
var parentObj = document.getElementById('tooltipframeidx-' + _activeTooltipIdx);
parentObj.style.left = (x - _posCorrectionX) + 'px';
parentObj.style.left = (x - _posCorrectionX) + 'px'; //500
parentObj.style.top = (y - _posCorrectionY) + 'px';
parentObj.style.top = (y - _posCorrectionY) + 'px'; //105
}
}
return false;
return false;