Difference between revisions 141036 and 141042 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#
/// @license GPL [//www.mediawiki.org/w/COPYING] (+GFDL, LGPL, CC-BY-SA)
/// <nowiki>
/* jshint curly:true, eqeqeq:true, undef:true, white:false             */
/* global document: true, jQuery: true, mediaWiki: true, window: true  */
/*jslint  plusplus: true, white: true                                  */
/*globals document: true, jQuery: true, mediaWiki: true, window: true  */



( function ( mw, $ ) {
   "use strict";
   if ( typeof mw.libs.paneMarker !== "object" ) {
      mw.libs.paneMarker  =  {  opt:  { }  };
   }
   mw.libs.paneMarker.vsn    =  -1.44;
   mw.libs.paneMarker.heads  =  "|dewiki|"; //             +"|testwiki|";
   mw.libs.paneMarker.type   =  "paneMarker";



   /*
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License as
(contracted; show full)            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 ) {
            if ( ! this.config.leave ) {
               if ( action === "Links" ) {
                  this.facilitate();
               }
            }
            if ( typeof c === "number" ) {
               if ( c > 0 ) {
                  c  =  String.fromCharCode( c );
               }
            }
            if ( typeof c === "string" ) {
mw.log({loud:true},".flag() string="+c,0);
               if ( this.config.rightleft ) {
                  document.title  =  document.title + " " + c;
               } else {
                  c  =  c + " ";
                  if ( document.title.indexOf( c )  !==  0 ) {
                     document.title  =  c + document.title;
                  }
               }
(contracted; show full)// Emacs
// Local Variables:
// encoding: utf-8-dos
// coding: utf-8-dos
// fill-column: 80
// End:

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