User:PerfektesChaos/js/citoidWikitext/core/d.js: Difference between revisions

Content deleted Content added
-3.0
-3.2
Line 1:
/// User:PerfektesChaos/js/citoidWikitext/core.js
// Execute core functionality for citoid on wikitext source editing
/// 2017-05-0417 PerfektesChaos@de.wikipedia
// ResourceLoader: compatible;
// dependencies: --
Line 17:
( function ( mw, $ ) {
"use strict";
var Version = -3.12,
MW_LIB = "citoidWikitext",
Sub = "core",
Line 177:
// (APIC.fault)
// Remark: Used as event handler -- 'this' is not APIC
// 2017-05-0416 PerfektesChaos@de.wikipedia
var f, i, seek, service;
if ( typeof APIC.jq !== "object" ) {
Line 197:
APIC.jq.type = "POST";
} else if ( APIC.stateless ) {
serviceAPIC.site = window.___location.protocol + "//" +
window.___location. hostname + APIC.stateless;
} else {
APIC.jq.data = APIC.data;
Line 216:
APIC.jq.data = JSON.stringify( APIC.data );
} else if ( APIC.stateless ) {
APIC.jq.url = serviceAPIC.site + encodeURIComponent( seek );
} else {
APIC.jq.data.search = seek;
Line 402:
// > PROJ
// mw.config.get()
// 20152017-05-1217 PerfektesChaos@de.wikipedia
var r = false,
env, got, i, ns, sign, space, suffix;
Line 440:
case "DNB":
case "DOI":
case "ISBN":
case "LCCN":
case "OCLC":
case "PMC":
case "PMID":
case "RFC":
got = /^\|\s*([^|}]+)\s*[|}]/.exec( suffix );
if ( got ) {