Content deleted Content added
-4.7 |
-4.8 |
||
Line 1:
/// User:PerfektesChaos/js/lintHint/d.js
/// 2021-
// Show LintErrors analysis live
// ResourceLoader: compatible;
Line 17:
( function ( mw, $ ) {
"use strict";
var Version = -4.
Signature = "lintHint",
HINT = { cmodels: { "wikitext": true,
Line 28:
"html5-misnesting",
"ignored-table-attr",
"inline-media-caption",
"misc-tidy-replacement-issues",
"misnested-tag",
Line 970 ⟶ 971:
// > HINT.later
// > HINT.selector
// > Signature
// > BOX.bgcErr
// > HINT.$textarea
Line 985 ⟶ 987:
// (BOX.find)
// (BOX.future)
// 2021-
var n = 0,
e, i, k, par, s, $e, $e2, $e3, $td, $tr;
Line 1,005 ⟶ 1,007:
$tr.addClass( HINT.selector + "-" + e.type );
$td = $( "<td>" );
$
$
target: Signature + "SP",
title: "Special:LintErrors/" + e.type } )
.text( s );
$td.append( $e )
.css( { "background-color": "#" + BOX.bgcErr } );
$tr.append( $td );
$td = $( "<td>" );
Line 1,572 ⟶ 1,579:
// fair()
// PREGO.fire()
// 2021-
var dom;
BOX.first();
if ( EDIT.layer ) {
dom = mw.util.addPortletLink( "p-tb",
HINT.$widget = $( dom );
if ( dom.nodeName.toLowerCase() !== "li" ) {
Line 1,606 ⟶ 1,613:
// < EDIT.listen
// < HINT.$textarea
// 2021-
var r, $div;
if ( ! EDIT.$source ) {
Line 1,626 ⟶ 1,633:
}
EDIT.$source = $div.find( EDIT.selector );
if (
if ( EDIT.$source.find( ":hidden" ).length ) {
EDIT.live = false;
}
} else {
EDIT.live = false;
}
Line 2,739 ⟶ 2,750:
document.getElementsByTagName('head')[0].appendChild(script);
}; // WIKED.fire()
|