Difference between revisions 140995 and 140996 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.435;
   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
    * published by the Free Software Foundation; either version 2 of the
    * License, or (at your option) any later version.
    *
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    * GNU General Public License for more details.
    *
    * You should have received a copy of the GNU General Public License
    * along with this program;
    * if not, write to the Free Software Foundation, Inc.,
    * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    * http://www.gnu.org/copyleft/gpl.html
    */



   /*
   What links here: Global usage
   </nowiki>
   [[File:Apple-touch-icon-red-commons.png]]
   [[File:Apple-touch-icon-red-mediawiki.png]]
   [[File:Apple-touch-icon-red-wikinews.png]]
   [[File:Apple-touch-icon-red-wikipedia.png]]
   [[File:Apple-touch-icon-red-wiktionary.png]]
   [[File:Apple-touch-icon-red-wmf.png]]
   [[File:Favicon-red-commons.png]]
   [[File:Favicon-red-mediawiki.png]]
   [[File:Favicon-red-meta.png]]
   [[File:Favicon-red-testwiki.png]]
   [[File:Favicon-red-wikibooks.png]]
   [[File:Favicon-red-wikinews.png]]
   [[File:Favicon-red-wikipedia.png]]
   [[File:Favicon-red-wikiquote.png]]
   [[File:Favicon-red-wikisource.png]]
   [[File:Favicon-red-wikiversity.png]]
   [[File:Favicon-red-wmf.png]]
   <nowiki>
   */



   mw.libs.paneMarker.facilitate  =  function () {
      // Set document title to relevant page name and site name
      // Postcondition:
      //    document.title has been set
(contracted; show full)      //    .flip()
      //    .favicon()
      // 2012-08-20 [email protected]
      var lenient  =  true;
      this.lazy    =  false;
      if ( typeof this.opt === "object"  &&  this.opt ) {
         this.config  =  this.opt;
         if ( typeof this.
config.faviconopt.lazy === "boolean" ) {
            this.lazy  =  ! this.opt.faviconlazy;
         }
      } else {
         this.config  =  { };
      }
      this.site  =  mw.config.get( "wgDBname" );
      this.nsN   =  mw.config.get( "wgNamespaceNumber" );
mw.log({loud:true},"this.lazy="+this.lazy,0);
       if ( ! this.lazy ) {
         if ( jQuery.browser ) {
            if ( jQuery.browser.msie ) {
               if ( jQuery.browser.version < 10 ) {
                  this.lazy  =  true;
               }
            }
         }
(contracted; show full)// Emacs
// Local Variables:
// encoding: utf-8-dos
// coding: utf-8-dos
// fill-column: 80
// End:

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