User:PerfektesChaos/js/logidTooltip/d.js: Difference between revisions

Content deleted Content added
-1.0
 
-1.1
Line 15:
( function ( mw, $ ) {
"use strict";
var Version = -1.01,
LIT = { signature: "logidTooltip",
source: "0f/Arrow Blue UpperRight 001.svg",
Line 93:
// Create popup
// Precondition:
// assigned -- string, with logid
// $anchor -- element to be attached to
// OOjs-ui ready
Line 105:
var illusive = 0.75,
// margin = 10,
optionsoffset = { align: "backwards"$anchor.offset(),
options = { anchor: true,
horizontalPosition: "end",
padded: true,
position: "below",
verticalPosition: "below",
width: "16em",
$floatableContainer: $anchor },
shift = "Special:Redirect/logid/" + assigned,
$a = $( "<a>" ),
r;
options.width = ( 12 + assigned.length * 0.7 ) + "em";
if ( offset.left < 0.5 * window.innerWidth ) {
options.align = "forwards";
options.horizontalPosition = "start";
} else {
options.align = "backwards";
options.horizontalPosition: = "end",;
}
$a.addClass( LIT.signature + "-text plainlinks" )
.attr( { "dir": "ltr",