User:PerfektesChaos/js/lintHint/d.js: Difference between revisions

Content deleted Content added
-4.2
-4.3
Line 1:
/// User:PerfektesChaos/js/lintHint/d.js
/// 2020-09-1920 PerfektesChaos@de.wikipedia
// Show LintErrors analysis live
// ResourceLoader: compatible;
Line 17:
( function ( mw, $ ) {
"use strict";
var Version = -4.23,
Signature = "lintHint",
HINT = { cmodels: { "wikitext": true,
Line 711:
// (BOX.flip)
// (BOX.facet)
// 20182020-0509-0520 PerfektesChaos@de.wikipedia
var $a, $e;
if ( HINT.live ) {
Line 744:
"color": "#" + BOX.fgc,
"margin-bottom": "1em",
"paddingopacity": "0.5em1" } );,
"padding": "0.5em",
"pointer-events": "all" } );
$e = $( "<button>" );
$e.click( BOX.flip )
.css( { "color": "#FF0000",
"display": "block",
"float": ( HINT.ltr ? "right": "left" ),
"font-weight": "bolder" } ),
"pointer-events": "all" } )
.css( "margin-" + ( HINT.ltr ? "right": "left" ),
"6px" )
Line 1,202 ⟶ 1,205:
// EDIT.fine()
// (BOX.full)
// 20182020-09-2520 PerfektesChaos@de.wikipedia
if ( $area && ! HINT.$page ) {
HINT.$page = $area;
Line 1,215 ⟶ 1,218:
BOX.$collapsed.attr( { id: Signature + "-collapsed" } )
.click( BOX.full )
.css( { /* "clear": ( HINT.ltr ? "right":
"left" ), */
"display": "block", */
"floatdisplay": ( HINT.ltr ? "rightblock":,
"float": ( HINT.ltr ? "leftright" ),:
"margin-bottom": "3pxleft" ),
"paddingmargin-bottom": "2px3px" } ),
"padding": "2px",
"pointer-events": "all" } )
.text( Signature );
if ( ! GUIDER.live ) {
Line 1,229 ⟶ 1,234:
}
BOX.$collapsed.css( { "background-color": "#" + BOX.bgc,
"color": "#" + BOX.fgc } );,
"opacity": "1" } );
if ( EDIT.live && ! API.errors ) {
EDIT.fine();
Line 1,287 ⟶ 1,293:
// EDIT.fire()
// API.full()
// 20192020-0309-0220 PerfektesChaos@de.wikipedia
var idRev;
if ( HINT.live ) {
Line 1,305 ⟶ 1,311:
BOX.$collapsed.attr( { disabled: true } )
.css( { "background-color": "#" + BOX.bgcRun,
"color": "#" + BOX.fgcRun },
"opacity": "1" }
);
}
Line 1,462 ⟶ 1,469:
// < EDIT.listen
// (EDIT.focus)
// 20172020-0809-0820 PerfektesChaos@de.wikipedia
if ( EDIT.$source ) {
EDIT.listen = true;
EDIT.$source.focusin( EDIT.focus );
BOX.$collapsed.css( { "background-color": "#" + BOX.bgcOk } );,
"opacity": "1" } );
}
}; // EDIT.fine()
Line 1,508 ⟶ 1,516:
// > BOX.$collapsed
// >< EDIT.listen
// 20172020-0809-0820 PerfektesChaos@de.wikipedia
if ( EDIT.listen ) {
BOX.$collapsed.css( { "background-color": "#" + BOX.bgc } );,
"opacity": "1" } );
EDIT.listen = false;
}
Line 1,939 ⟶ 1,948:
// (GUIDER.foreign)
// (GUIDER.facet)
// 2020-09-1920 PerfektesChaos@de.wikipedia
var $v = $( "head" ),
$e = $v.find( "title" );
Line 2,016 ⟶ 2,025:
: "right" ),
"margin-bottom": "1em",
"paddingopacity": "4px1" } ),
"padding": "4px",
"pointer-events": "all" } )
.hide();
HINT.$page.before( GUIDER.$pagename );