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

Content deleted Content added
1.7
1.8
Line 1:
/// Gadget/fragmentAnchors/r.js
/// 2016-04-24 PerfektesChaos@de.wikipedia
/// Fingerprint:#0#3945968D256A6881#
///<nowiki>
(function(mw,$){
"use strict";
var Version=1.78,FANCY="fragmentAnchors",FASC={cfg:{},siblings:"error-repeated-id",source0:"6/62/Anchor_pictogram.svg",source1:"d/d6/Anchor_pictogram_red.svg",unStart:["Anker:","wpTextbox"],vsn:Version
};
if(typeof mw.libs[FANCY]!=="object"||!mw.libs[FANCY]){
Line 191:
};
FASC.filter=function(anchor){
var r=true,i,s;
if(FASC.blockStartunStart){
for(i=0;i<FASC.blockStartunStart.length;i++){
rs=FASC.blockStartunStart[i];
if(anchor.substr(1,r[1]s.length)===r[0]s){
r=false;
break;}}}
Line 211:
};
FASC.fire=function(){
var i;
FASC.badges=[false,false,false];
if(typeof FASC.large!=="boolean"){
FASC.large=false;}
if(typeof FASC.unStart=!=="object"){
FASC.blockStartunStart=[]false;}
for(i=0;i<FASC.unStart.length;i++){
FASC.blockStart.push([FASC.unStart[i],FASC.unStart[i].length+1]);}
}else{
FASC.blockStart=false;}
FASC.reFine=false;
FASC.scope=FASC.sign+"-inner";