User:PerfektesChaos/js/fragmentAnchors/r.js: Difference between revisions

Content deleted Content added
1.2
1.3
Line 1:
/// Gadget/fragmentAnchors/r.js
/// 2016-04-1819 PerfektesChaos@de.wikipedia
/// Fingerprint:#0#2D1FA4DB2140A8C9#
///<nowiki>
(function(mw,$){
"use strict";
var Version=1.23,FANCY="fragmentAnchors",FASC={cfg:{},siblings:"error-repeated-id",source0:"6/62/Anchor_pictogram.svg",source1:"d/d6/Anchor_pictogram_red.svg",vsn:Version
};
if(typeof mw.libs[FANCY]!=="object"||!mw.libs[FANCY]){
Line 77:
};
FASC.cfg.fire=function(){
var launch,lock,portlet;
if(typeof FANCY.large==="boolean"){
FASC.large=FANCY.large;}
if(typeof FANCY.launch==="boolean"){
launch=FANCY.launch;}
if(typeof FANCY.lock==="boolean"){
lock=FANCY.lock;}
if(!(lock||launch)){
portlet=mw.util.addPortletLink("p-tb","#"," ","t-"+FASC.sign);
FASC.cfg.$portlet=$(portlet);
Line 89 ⟶ 91:
FASC.cfg.$portlet.attr({title:FASC.sign+" "+FASC.vsn});}
mw.hook(FANCY.type+".ready").fire(FANCY);
if(launch){
FASC.cfg.live=true;
fiat();
}else{
FASC.cfg.live=true;}
};
FASC.cfg.$flag=function(){