Content deleted Content added
-4.2 |
-4.3 |
||
Line 1:
/// User:PerfektesChaos/js/lintHint/d.js
/// 2020-09-
// Show LintErrors analysis live
// ResourceLoader: compatible;
Line 17:
( function ( mw, $ ) {
"use strict";
var Version = -4.
Signature = "lintHint",
HINT = { cmodels: { "wikitext": true,
Line 711:
// (BOX.flip)
// (BOX.facet)
//
var $a, $e;
if ( HINT.live ) {
Line 744:
"color": "#" + BOX.fgc,
"margin-bottom": "1em",
"
"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)
//
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" ),
"
"float": ( HINT.ltr
"
"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()
//
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)
//
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
//
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-
var $v = $( "head" ),
$e = $v.find( "title" );
Line 2,016 ⟶ 2,025:
: "right" ),
"margin-bottom": "1em",
"
"padding": "4px",
"pointer-events": "all" } )
.hide();
HINT.$page.before( GUIDER.$pagename );
|