Difference between revisions 141026 and 141036 on testwiki

/// mw:User:PerfektesChaos/js/paneMarker/?.js
/// 2012-08-20 [email protected]
// Mark browser panes (tabbed or window) if particular action taken.
// Try to exchange wiki-favicon for a red one if editing a wiki page.
// Insert indicating character before document title.
// User defined changes of page title and favicon.
// ResourceLoader:  compatible; dependencies: user, mediawiki.util
/// Fingerprint: #0#0#
(contracted; show full)         learn  =  false;
      }
      if ( typeof this.config.chars === "boolean" ) {
         if ( c === true ) {
            c  =  this.config.chars;
         }
      }

mw.log({loud:true},".flag() 0="+c,0);
      if ( c ) {
         if ( learn ) {
            c  =  this.config[ "char" + action ];
            if ( c === undefined ) {
               c  =  true;
            } else {
               learn  =  false;
            }
         }
         if ( learn ) {
mw.log({loud:true},".flag() learn="+c,0);
            switch ( action ) {
               case "Diff" :
                  c  =  ( this.config.lowChar ? "±" :  916 );   // 'Δ'
                  break;
               case "History" :
                  c  =  ( this.config.lowChar ? "^" : 8595 );   // '↓'
                  break;
               case "Links" :
                  c  =  ( this.config.lowChar ? ">" : 8594 );   // '→'
                  break;
               case "Vitally" :
                  if ( c  &&  ! this.lazy ) {
                     c  =  false;
                     if ( ! this.config.leave ) {
                        this.facilitate();
                     }
                     break;
                  }
                  c  =  "*";
                  break;
               default:
                  c  =  false;
            }   // switch action
         }
         if ( c ) {
mw.log({loud:true},".flag()="+c,0);
            if ( ! this.config.leave ) {
               if ( action === "Links" ) {
                  this.facilitate();
               }
            }
            if ( typeof c === "number" ) {
               if ( c > 0 ) {
                  c  =  String.fromCharCode( c );
(contracted; show full)// Emacs
// Local Variables:
// encoding: utf-8-dos
// coding: utf-8-dos
// fill-column: 80
// End:

/// EOF </nowiki>   paneMarker/?.js