Content deleted Content added
3.6 |
3.8 |
||
Line 1:
/// User:PerfektesChaos/js/lintHint/r.js
///
/// Fingerprint:#0#
/// @license GPL [//www.mediawiki.org/w/COPYING](+GFDL,LGPL,CC-BY-SA)
///<nowiki>
(function(mw,$){
"use strict";
var Version=3.
"proofread-index":true,
"proofread-page":true},doc:"en:User:PerfektesChaos/js/"+Signature,errors:["bogus-image-options","deletable-table-tag","fostered","html5-misnesting","ignored-table-attr","misc-tidy-replacement-issues","misnested-tag","missing-end-tag","missing-start-tag","mixed-content","multi-colon-escape","multiline-html-table-in-list","multiple-unclosed-formatting-tags","obsolete-tag","pwrap-bug-workaround","self-closed-tag","stripped-tag","tidy-font-bug","tidy-whitespace-bug","unclosed-quotes-in-heading"],idRev:0,last:true,later:false,launch:false,launched:false,layer:null,lazy:false,live:false,ltr:true,source:false,
using:["mediawiki.api","mediawiki.storage","mediawiki.util","user.options"],$body:false,$page:false,$textarea:false},API={Api:false,errors:false,scream:false,server:"api/rest_v1/",scanner:"transform/wikitext/to/lint",swift:"page/lint"},BOX={bgc:"FFFF00",bgcErr:"FFE4E1",bgcOk:"ADFF2F",bgcRun:"C0C0C0",boc:"808080",fgc:"000000",fgcRun:"A0A0A0",swift:false,$box:false,$collapsed:false,$failure:false,$null:false,$other:false,$pagename:false,$swift:false,$tbody:false,$table:false,$top:false},CODMIRROR={cm:false},EDIT={listen:false,live:false,source:false,$source:false},GUIDER={last:false,live:false,reTrim:false,using:["jquery.textSelection","mediawiki.ui.button","mediawiki.ui.input"],$pagename:false},LINTER={live:false},PREGO={app:false,live:false,maxage:604813,pars:[["last","boolean"],["later","boolean"],["launch
HINT.texts={
"desc":{"en":"Show LintErrors analysis live.",
Line 37:
"de":"Löse die Analyse automatisch beim Seitenbesuch in den Namensräumen aus, statt sie manuell über den angebotenen Knopf zu starten.",
"it":"Esegui automaticamente l’analisi nei namespace all’accesso, piuttosto che avviandola manualmente tramite bottone."},
"^^lazy":{"en":"Suppress small label if no error detected.",
"de":"Unterdrücke das kleine grüne Feld, falls bei einer Seitendarstellung kein Problem gefunden wurde.",
Line 75 ⟶ 72:
if(typeof apply.launch==="boolean"){
HINT.launch=apply.launch;}
if(typeof apply.layer==="boolean"){▼
if(typeof apply.lazy==="boolean"){
HINT.lazy=apply.lazy;
Line 270 ⟶ 265:
BOX.facet=function($activate){
if($activate){
$activate.css({"display":"block",
"float":(HINT.ltr?"right":"left")}); BOX.$box.append($activate);}
};
Line 302 ⟶ 298:
$e=$("<button>");
$e.click(BOX.flip).css({"color":"#FF0000",
"display":"block",
"float":(HINT.ltr?"right":"left"),
"font-weight":"bolder"}).css("margin-"+(HINT.ltr?"right":"left"),
"6px").text("X"); BOX.$box.append($e);
BOX.focus(BOX.$box);
Line 510 ⟶ 508:
}else{
BOX.$collapsed=$("<button>");
BOX.$collapsed.attr({id:Signature+"-collapsed"}).click(BOX.full).css({/*"clear":(HINT.ltr?"right":
"left"),*/ "display":"block",
"float":(HINT.ltr?"right": "left"), "margin-bottom":"3px",
"padding":"2px"}).text(Signature);
Line 525 ⟶ 526:
};
BOX.focus=function($apply){
var learn=(!BOX.$top),$e;
if(
BOX.$top=$("<div>");
BOX.$top.addClass("noprint").attr({id:Signature+"-top"})
.css({"clear":"both", "width":"100%"});
$e=$("<div>");
$e.css({"clear":"both"});
HINT.$page.prepend(BOX.$top,$e);}
$apply.addClass("noprint");
BOX.$top.prepend($apply);
if(learn&&window.document.___location.hash){
window.document.___location=window.document.___location.href;}
};
BOX.full=function(){
Line 648 ⟶ 653:
if($table.length){
if(typeof $table.tablesorter==="function"){
$table.tablesorter();}}
};
GUIDER.facet=function($activate){
Line 755 ⟶ 745:
$b=$("<input>");
$b.addClass("mw-ui-button").append($x).attr({type:"reset"})
.click(GUIDER.flat).css({"display":"block",
"float":(HINT.ltr?"right":"left")}); GUIDER.$formText.append($b);
$div.css({"clear":"both"});
Line 847 ⟶ 838:
s=v[0];
if(typeof applied[s]===v[1]){
HINT[s]=applied[s];
delete applied.layer;
mw.hook(PREGO.signature+".forward").fire(Signature,applied);}}
if(HINT.spaces){
HINT.spaces=HINT.spaces.trim();}
Line 918 ⟶ 912:
"de":"//de"+support},
dialog,opts;
opts=[{signature:"spaces",type:"text",show:HINT.texts["^^spaces"],val:(HINT.spaces?HINT.spaces:""),field:PREGO.field},{signature:"launch",type:"checkbox",show:HINT.texts["^^launch"],val:HINT.launch},{signature:"last",type:"checkbox",show:HINT.texts["^^last"],val:HINT.last},{signature:"lazy",type:"checkbox",show:HINT.texts["^^lazy"],val:HINT.lazy
dialog={script:Signature,support:docs,suffix:HINT.texts["^suffix"],opts:opts};
mw.hook(PREGO.signature+".form").fire(dialog);
|