User:PerfektesChaos/js/refNames/core/d.js: Difference between revisions

Content deleted Content added
-0.0
-0.0
Line 34:
0x22, // "
0x23, // #
0x25, v[ 0 ]// - 1 )%
"cursor": "pointer" 0x26, // &
0x27, // '
0x3C, // <
Line 145 ⟶ 147:
s = s + " " + apply;
}
$r.addClass( [ "mw-error", "error" ),
"remindErrorMessages-invisible" ] )
.hide()
.text( s );
Line 352 ⟶ 355:
case 0x0009: // CHARACTER TABULATION
case 0x000A: // LINE FEED
case 0x005F: // _
case 0x00A0: // nbsp
case 0x1680: // OGHAM SPACE MARK
Line 519 ⟶ 523:
// Retrieve <ref> tag attributes
// Precondition:
// all -- string, with entire story
// at -- int, first possible position in all
// after -- int, position of '>' in all
// Postcondition:
// Returns object with name="", or not
Line 583 ⟶ 587:
}
i = PARSER.first( all, i, after );
if ( i !=== after ) {
if ( r && ! r.name ) {
r = false;
}
} else {
PARSER.lock = true;
PARSER.fault( i, "Trailing garbage" );
Line 1,029 ⟶ 1,037:
v = PARSER.finish( all, n + 1 );
if ( v ) {
r.content = all.substring( n + 1, v[ 0 ] )
v[ 0 ] - 1 )
.trim();
r.next = v[ 1 ] + 1;
Line 1,163 ⟶ 1,170:
"border-style": "solid",
"border-width": "2px",
"cursor": "pointer",
"float": ( THIS.ltr ? "left"
: "right" ) } );
Line 1,207 ⟶ 1,213:
"font-family": "sans-serif",
"font-size": ( m - 4 ) + "px",
"font-weight": "bold",
"min-width": m + "px",
"text-align": "center",
Line 1,603 ⟶ 1,610:
// Uses:
// > THIS.$content
// > THIS.lapsus
// < THIS.$references
// < VIEW.reNamed
// < VIEW.offered
// mw.hook()
// (VIEW.fill)
// 2022-07-01 PerfektesChaos@de.wikipedia
Line 1,613 ⟶ 1,622:
VIEW.offered = { };
THIS.$references.each( VIEW.fill );
if ( THIS.lapsus ) {
mw.hook( "remindErrorMessages.refresh" )
.fire( THIS.$references );
}
}
}; // VIEW.fire()