Content deleted Content added
-3.0 |
-3.0 |
||
Line 1:
/// User:PerfektesChaos/js/citoidWikitext/core.js
// Execute core functionality for citoid on wikitext source editing
/// 2017-
// ResourceLoader: compatible;
// dependencies: --
Line 82:
APIC.site = "https://citoid.wikimedia.org/api";
APIC.stateless = "/api/rest_v1/data/citation/mediawiki/";
Line 166 ⟶ 167:
// > .server
// > APIC.site
// > APIC.stateless
// > APIC.queries
// >< APIC.data
Line 175 ⟶ 177:
// (APIC.fault)
// Remark: Used as event handler -- 'this' is not APIC
// 2017-
var f, i, seek, service;
if ( typeof APIC.jq !== "object" ) {
Line 194 ⟶ 196:
if ( APIC.legacy ) {
APIC.jq.type = "POST";
} else if ( APIC.stateless ) {
service = window.___location.protocol + "//" +
window.___location. hostname + APIC.stateless;
} else {
APIC.jq.data = APIC.data;
Line 210 ⟶ 215:
APIC.data.url = seek;
APIC.jq.data = JSON.stringify( APIC.data );
} else if ( APIC.stateless ) {
APIC.jq.url = service + encodeURIComponent( seek );
} else {
APIC.jq.data.search = seek;
|