Ouvrir le menu principal

Modifications

MediaWiki:Common.js

982 octets ajoutés, 9 juillet 2013 à 00:32
aucun résumé de modification
}
}
 
function drawPosition(context, xPos, yPos, rate)
{
var size = 50 * rate;
var x = xPos * size;
var y = yPos * size;
context.beginPath();
context.moveTo(x, y);
context.lineTo(x+size, y);
context.lineTo(x+size, y+size);
context.lineTo(x, y+size);
context.lineTo(x, y);
context.closePath();
context.stroke();
context.fill();
};
function mouseAction(e)
drawMarker(context, $this.data('areas'));
}
function mouseActionPosition(e) { var $this = $(this), context = $this.data('context'), activate = e.type == 'mouseover'; context.clearRect(0, 0, context.canvas.width, context.canvas.height); if (activate) { drawPosition(context, $this.data('xPos'), $this.data('yPos'), $this.data('rate')); } }  
function pageOfHref(href, cssClass)
{
$(this).bind('mouseover mouseout', function(e) {li.trigger(e);})
$(".smwtable tr").has("td.Localisation:contains("+text.split(' (')[0]+")").bind('mouseover mouseout', function(e) {li.trigger(e);})
 
var mapData = $(".mapData", img.attr('id')).text().split(":");
if(mapData)
{
mapData[2] = w / mapData[2];
$(".smwtable tr").has("td.Localisation:empty").bind('mouseover mouseout', mouseActionPosition).data('context', context).data('xPos', mapData[0]).data('yPos', mapData[1]).data('rate', mapData[2]);
}
});
});