http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84567

Revision: 84567
Author:   kwisatz
Date:     2011-03-22 21:45:28 +0000 (Tue, 22 Mar 2011)
Log Message:
-----------
Created tag REL_0_2 compatible with mw 1.16.x

Added Paths:
-----------
    tags/extensions/GeeQuBox/REL_0_2/
    tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.i18n.php
    tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.php
    tags/extensions/GeeQuBox/REL_0_2/css/
    tags/extensions/GeeQuBox/REL_0_2/css/jquery.lightbox-0.5.css
    tags/extensions/GeeQuBox/REL_0_2/images/
    tags/extensions/GeeQuBox/REL_0_2/images/lightbox-blank.gif
    tags/extensions/GeeQuBox/REL_0_2/images/lightbox-btn-close.gif
    tags/extensions/GeeQuBox/REL_0_2/images/lightbox-btn-next.gif
    tags/extensions/GeeQuBox/REL_0_2/images/lightbox-btn-prev.gif
    tags/extensions/GeeQuBox/REL_0_2/images/lightbox-ico-loading.gif
    tags/extensions/GeeQuBox/REL_0_2/js/
    tags/extensions/GeeQuBox/REL_0_2/js/jquery.lightbox-0.5.min.js

Added: tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.i18n.php
===================================================================
--- tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.i18n.php                          
(rev 0)
+++ tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.i18n.php  2011-03-22 21:45:28 UTC 
(rev 84567)
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * Internationalization file for the GeeQuBox extension.
+ *
+ * @file GeeQuBox.i18n.php
+ *
+ * @author David Raison
+ */
+
+$messages = array();
+
+/** English
+ * @author David Raison
+ */
+$messages['en'] = array(
+       'geequbox-desc' => 'Generates lightbox effects using the jquery 
lightbox plugin'
+);
+


Property changes on: tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.i18n.php
___________________________________________________________________
Added: svn:eol-style
   + native

Added: tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.php
===================================================================
--- tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.php                               
(rev 0)
+++ tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.php       2011-03-22 21:45:28 UTC 
(rev 84567)
@@ -0,0 +1,156 @@
+<?php
+/**
+ * GeeQuBox.php
+ * Written by David Raison
+ * @license: CC-BY-SA 3.0 http://creativecommons.org/licenses/by-sa/3.0/lu/
+ *
+ * @file GeeQuBox.php
+ * @ingroup GeeQuBox
+ *
+ * @author David Raison
+ *
+ * Uses the lightbox jquery plugin written by Leandro Vieira Pinho (CC-BY-SA) 
2007,
+ * http://creativecommons.org/licenses/by-sa/2.5/br/
+ * http://leandrovieira.com/projects/jquery/lightbox/
+ */
+
+if ( !defined( 'MEDIAWIKI' ) ) {
+       die( 'This is a MediaWiki extension, and must be run from within 
MediaWiki.' );
+}
+
+$wgExtensionCredits['parserhook'][] = array(
+       'path' => __FILE__,
+       'name' => 'GeeQuBox',
+       'version' => '0.01',
+       'author' => array( '[http://www.mediawiki.org/wiki/User:Clausekwis 
David Raison]' ), 
+       'url' => 'http://www.mediawiki.org/wiki/Extension:GeeQuBox',
+       'descriptionmsg' => 'geequbox-desc'
+);
+
+// defaults
+$wgGqbDefaultWidth = 640;
+
+$wgExtensionMessagesFiles['GeeQuBox'] = dirname(__FILE__) 
.'/GeeQuBox.i18n.php';
+$wgHooks['LanguageGetMagic'][] = 'wfGeeQuBoxLanguageGetMagic';
+
+$gqb = new GeeQuBox;
+$wgHooks['BeforeParserrenderImageGallery'][] = array($gqb,'gqbAnalyse');
+$wgHooks['BeforePageDisplay'][] = array($gqb,'gqbAddLightbox');
+
+function wfGeeQuBoxLanguageGetMagic( &$magicWords, $langCode = 'en' ) {
+       $magicWords['geequbox'] = array( 0, 'geequbox' );
+       return true;
+}
+
+/**
+ * Class that handles all GeeQuBox operations.
+ */
+class GeeQuBox {
+
+       private static $_page;
+       private $_hasGallery;
+
+       public function gqbAddLightBox( $page ) { 
+               if ( !$this->_hasGallery )
+                       return false;
+
+               try {
+                       self::$_page = $page;
+                       $this->_gqbReplaceHref( $page );
+                       $this->_gqbAddScripts( $page );
+                       return true;
+               } catch ( Exception $e ) {
+                       wfDebug('GeeQuBox::'.$e->getMessage());
+                       return false;
+               }
+       }
+
+       /**
+        * See http://svn.wikimedia.org/doc/classImageGallery.html
+        */
+       public function gqbAnalyse( Parser &$parser, &$gallery ) {
+               // It seems that the file objects are only added to the 
imagegallery object after the
+               // BeforeParserrenderImageGallery hook is run. Thus it will 
always be empty here.
+               // var_dump($gallery->isEmpty(),$gallery->count(),$gallery 
InstanceOf ImageGallery); 
+               if ( $gallery InstanceOf ImageGallery ) {
+                       $this->_hasGallery = true;
+                       return true;
+               } else return false;
+       }
+
+
+       private function _gqbAddScripts() {
+               global $wgExtensionAssetsPath;
+
+               $eDir = $wgExtensionAssetsPath . '/' . 
basename(dirname(__FILE__));
+               self::$_page->includeJQuery();
+               self::$_page->addScript( '<script type="text/javascript" src="' 
+                       . $eDir . '/js/jquery.lightbox-0.5.min.js"></script>' . 
PHP_EOL );
+               self::$_page->addExtensionStyle( $eDir . 
'/css/jquery.lightbox-0.5.css', 'screen' );
+               self::$_page->addInlineScript('$j(document).ready(function(){
+                       $j("div.gallerybox").each(function(el){
+                                var _a = $j("div.thumb a", this);
+                                var title = _a.attr("title");
+                                var caption = $j("div.gallerytext >  p", 
this).text();
+                                if ( caption != "" )
+                                        _a.attr("title", title + caption);
+                        });
+                       $j("div.gallerybox a.image").lightBox({
+                               imageLoading:   "'. $eDir 
.'images/lightbox-ico-loading.gif",
+                               imageBtnClose:  "'. $eDir 
.'images/lightbox-btn-close.gif",
+                               imageBtnPrev:   "'. $eDir 
.'images/lightbox-btn-prev.gif",
+                               imageBtnNext:   "'. $eDir 
.'images/lightbox-btn-next.gif"
+                       });
+               })');
+               /* See _gqbreplaceHref()
+                       var boxWidth = ($j(window).width() - 20);
+                        var rxp = new RegExp(/([0-9]{2,})$/);  
+                        $j("div.gallerybox a.image").each(function(el){
+                                if(boxWidth < 
Number(this.search.match(rxp)[0])){
+                                        this.href = 
this.pathname+this.search.replace(rxp,boxWidth);
+                                }
+                        });
+               */
+               return true;
+       }
+
+       /**
+        * We need to change this: <a href="/wiki/File:8734_f8db_390.jpeg"> into
+        * the href of the actual image file (i.e. $file->getURL()) because that
+        * is what Lightbox expects. (Note that this is not too different from 
the SlimboxThumbs
+        * approach but there doesn't seem to be an alternative approach.)
+        */
+       private function _gqbReplaceHref() {
+               // determine path info
+               global $wgArticlePath;
+               $articlePath = substr( $wgArticlePath, 0, strpos( 
$wgArticlePath, '$1' ) );
+               $pattern = '~href="'.$articlePath.'([^"]+)"\s*class="image"~';  
+               $replaced = 
preg_replace_callback($pattern,'GeeQuBox::_gqbReplaceMatches',self::$_page->getHTML());
+
+               self::$_page->clearHTML();
+               self::$_page->addHTML( $replaced );
+       }
+
+       private static function _gqbReplaceMatches( $matches ) {
+               global $wgGqbDefaultWidth;
+               $titleObj = Title::newFromText( rawurldecode( $matches[1] ) );
+               $image = wfFindFile( $titleObj, false, false, true );
+               $realwidth = (Integer) $image->getWidth();
+               $width = ( $realwidth > $wgGqbDefaultWidth ) ? 
$wgGqbDefaultWidth : $realwidth;
+               $iPath = ( $realwidth < $wgGqbDefaultWidth ) ? $image->getURL() 
: $image->createThumb($width);
+               $title = self::$_page->parse( "'''[[:" . 
$titleObj->getFullText() . "|" . $titleObj->getText() . "]]'''" );
+
+                return 'href="'. $iPath .'" title="'. htmlspecialchars( $title 
)  .'" class="image"';
+       }
+
+       /*
+        * Code used also in SlimboxThumbs to set the size of the displayed 
images
+        * This can only be done in js where the window.width is known.
+               $out->addInlineScript( $jQ.'(document).ready(function(){
+                if('.$jQ.'("table.gallery").val() != undefined){
+        })' );
+
+       */
+
+}
+


Property changes on: tags/extensions/GeeQuBox/REL_0_2/GeeQuBox.php
___________________________________________________________________
Added: svn:eol-style
   + native

Added: tags/extensions/GeeQuBox/REL_0_2/css/jquery.lightbox-0.5.css
===================================================================
--- tags/extensions/GeeQuBox/REL_0_2/css/jquery.lightbox-0.5.css                
                (rev 0)
+++ tags/extensions/GeeQuBox/REL_0_2/css/jquery.lightbox-0.5.css        
2011-03-22 21:45:28 UTC (rev 84567)
@@ -0,0 +1,101 @@
+/**
+ * jQuery lightBox plugin
+ * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar 
(http://www.huddletogether.com/projects/lightbox2/)
+ * and adapted to me for use like a plugin from jQuery.
+ * @name jquery-lightbox-0.5.css
+ * @author Leandro Vieira Pinho - http://leandrovieira.com
+ * @version 0.5
+ * @date April 11, 2008
+ * @category jQuery plugin
+ * @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
+ * @license CCAttribution-ShareAlike 2.5 Brazil - 
http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
+ * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more 
informations about this jQuery plugin
+ */
+#jquery-overlay {
+       position: absolute;
+       top: 0;
+       left: 0;
+       z-index: 90;
+       width: 100%;
+       height: 500px;
+}
+#jquery-lightbox {
+       position: absolute;
+       top: 0;
+       left: 0;
+       width: 100%;
+       z-index: 100;
+       text-align: center;
+       line-height: 0;
+}
+#jquery-lightbox a img { border: none; }
+#lightbox-container-image-box {
+       position: relative;
+       background-color: #fff;
+       width: 250px;
+       height: 250px;
+       margin: 0 auto;
+}
+#lightbox-container-image { padding: 10px; }
+#lightbox-loading {
+       position: absolute;
+       top: 40%;
+       left: 0%;
+       height: 25%;
+       width: 100%;
+       text-align: center;
+       line-height: 0;
+}
+#lightbox-nav {
+       position: absolute;
+       top: 0;
+       left: 0;
+       height: 100%;
+       width: 100%;
+       z-index: 10;
+}
+#lightbox-container-image-box > #lightbox-nav { left: 0; }
+#lightbox-nav a { outline: none;}
+#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
+       width: 49%;
+       height: 100%;
+       zoom: 1;
+       display: block;
+}
+#lightbox-nav-btnPrev { 
+       left: 0; 
+       float: left;
+}
+#lightbox-nav-btnNext { 
+       right: 0; 
+       float: right;
+}
+#lightbox-container-image-data-box {
+       font: 10px Verdana, Helvetica, sans-serif;
+       background-color: #fff;
+       margin: 0 auto;
+       line-height: 1.4em;
+       overflow: auto;
+       width: 100%;
+       padding: 0 10px 0;
+}
+#lightbox-container-image-data {
+       padding: 0 10px; 
+       color: #666; 
+}
+#lightbox-container-image-data #lightbox-image-details { 
+       width: 70%; 
+       float: left; 
+       text-align: left; 
+}      
+#lightbox-image-details-caption { font-weight: bold; }
+#lightbox-image-details-currentNumber {
+       display: block; 
+       clear: left; 
+       padding-bottom: 1.0em;  
+}                      
+#lightbox-secNav-btnClose {
+       width: 66px; 
+       float: right;
+       padding-bottom: 0.7em;  
+}
\ No newline at end of file

Added: tags/extensions/GeeQuBox/REL_0_2/images/lightbox-blank.gif
===================================================================
(Binary files differ)


Property changes on: tags/extensions/GeeQuBox/REL_0_2/images/lightbox-blank.gif
___________________________________________________________________
Added: svn:mime-type
   + image/gif

Added: tags/extensions/GeeQuBox/REL_0_2/images/lightbox-btn-close.gif
===================================================================
(Binary files differ)


Property changes on: 
tags/extensions/GeeQuBox/REL_0_2/images/lightbox-btn-close.gif
___________________________________________________________________
Added: svn:mime-type
   + image/gif

Added: tags/extensions/GeeQuBox/REL_0_2/images/lightbox-btn-next.gif
===================================================================
(Binary files differ)


Property changes on: 
tags/extensions/GeeQuBox/REL_0_2/images/lightbox-btn-next.gif
___________________________________________________________________
Added: svn:mime-type
   + image/gif

Added: tags/extensions/GeeQuBox/REL_0_2/images/lightbox-btn-prev.gif
===================================================================
(Binary files differ)


Property changes on: 
tags/extensions/GeeQuBox/REL_0_2/images/lightbox-btn-prev.gif
___________________________________________________________________
Added: svn:mime-type
   + image/gif

Added: tags/extensions/GeeQuBox/REL_0_2/images/lightbox-ico-loading.gif
===================================================================
(Binary files differ)


Property changes on: 
tags/extensions/GeeQuBox/REL_0_2/images/lightbox-ico-loading.gif
___________________________________________________________________
Added: svn:mime-type
   + image/gif

Added: tags/extensions/GeeQuBox/REL_0_2/js/jquery.lightbox-0.5.min.js
===================================================================
--- tags/extensions/GeeQuBox/REL_0_2/js/jquery.lightbox-0.5.min.js              
                (rev 0)
+++ tags/extensions/GeeQuBox/REL_0_2/js/jquery.lightbox-0.5.min.js      
2011-03-22 21:45:28 UTC (rev 84567)
@@ -0,0 +1,42 @@
+/**
+ * jQuery lightBox plugin
+ * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar 
(http://www.huddletogether.com/projects/lightbox2/)
+ * and adapted to me for use like a plugin from jQuery.
+ * @name jquery-lightbox-0.5.js
+ * @author Leandro Vieira Pinho - http://leandrovieira.com
+ * @version 0.5
+ * @date April 11, 2008
+ * @category jQuery plugin
+ * @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
+ * @license CCAttribution-ShareAlike 2.5 Brazil - 
http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
+ * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more 
informations about this jQuery plugin
+ */
+(function($){$.fn.lightBox=function(settings){settings=jQuery.extend({overlayBgColor:'#000',overlayOpacity:0.8,fixedNavigation:false,imageLoading:'images/lightbox-ico-loading.gif',imageBtnPrev:'images/lightbox-btn-prev.gif',imageBtnNext:'images/lightbox-btn-next.gif',imageBtnClose:'images/lightbox-btn-close.gif',imageBlank:'images/lightbox-blank.gif',containerBorderSize:10,containerResizeSpeed:400,txtImage:'Image',txtOf:'of',keyToClose:'c',keyToPrev:'p',keyToNext:'n',imageArray:[],activeImage:0},settings);var
 jQueryMatchedObj=this;function 
_initialize(){_start(this,jQueryMatchedObj);return false;}
+function _start(objClicked,jQueryMatchedObj){$('embed, object, 
select').css({'visibility':'hidden'});_set_interface();settings.imageArray.length=0;settings.activeImage=0;if(jQueryMatchedObj.length==1){settings.imageArray.push(new
 
Array(objClicked.getAttribute('href'),objClicked.getAttribute('title')));}else{for(var
 i=0;i<jQueryMatchedObj.length;i++){settings.imageArray.push(new 
Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj[i].getAttribute('title')));}}
+while(settings.imageArray[settings.activeImage][0]!=objClicked.getAttribute('href')){settings.activeImage++;}
+_set_image_to_view();}
+function _set_interface(){$('body').append('<div 
id="jquery-overlay"></div><div id="jquery-lightbox"><div 
id="lightbox-container-image-box"><div id="lightbox-container-image"><img 
id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" 
id="lightbox-nav-btnPrev"></a><a href="#" 
id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" 
id="lightbox-loading-link"><img 
src="'+settings.imageLoading+'"></a></div></div></div><div 
id="lightbox-container-image-data-box"><div 
id="lightbox-container-image-data"><div id="lightbox-image-details"><span 
id="lightbox-image-details-caption"></span><span 
id="lightbox-image-details-currentNumber"></span></div><div 
id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img 
src="'+settings.imageBtnClose+'"></a></div></div></div></div>');var 
arrPageSizes=___getPageSize();$('#jquery-overlay').css({backgroundColor:settings.overlayBgColor,opacity:settings.overlayOpacity,width:arrPageSizes[0],height:arrPageSizes[1]}).fadeIn();var
 
arrPageScroll=___getPageScroll();$('#jquery-lightbox').css({top:arrPageScroll[1]+(arrPageSizes[3]/10),left:arrPageScroll[0]}).show();$('#jquery-overlay,#jquery-lightbox').click(function(){_finish();});$('#lightbox-loading-link,#lightbox-secNav-btnClose').click(function(){_finish();return
 false;});$(window).resize(function(){var 
arrPageSizes=___getPageSize();$('#jquery-overlay').css({width:arrPageSizes[0],height:arrPageSizes[1]});var
 
arrPageScroll=___getPageScroll();$('#jquery-lightbox').css({top:arrPageScroll[1]+(arrPageSizes[3]/10),left:arrPageScroll[0]});});}
+function 
_set_image_to_view(){$('#lightbox-loading').show();if(settings.fixedNavigation){$('#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();}else{$('#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();}
+var objImagePreloader=new 
Image();objImagePreloader.onload=function(){$('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]);_resize_container_image_box(objImagePreloader.width,objImagePreloader.height);objImagePreloader.onload=function(){};};objImagePreloader.src=settings.imageArray[settings.activeImage][0];};function
 _resize_container_image_box(intImageWidth,intImageHeight){var 
intCurrentWidth=$('#lightbox-container-image-box').width();var 
intCurrentHeight=$('#lightbox-container-image-box').height();var 
intWidth=(intImageWidth+(settings.containerBorderSize*2));var 
intHeight=(intImageHeight+(settings.containerBorderSize*2));var 
intDiffW=intCurrentWidth-intWidth;var 
intDiffH=intCurrentHeight-intHeight;$('#lightbox-container-image-box').animate({width:intWidth,height:intHeight},settings.containerResizeSpeed,function(){_show_image();});if((intDiffW==0)&&(intDiffH==0)){if($.browser.msie){___pause(250);}else{___pause(100);}}
+$('#lightbox-container-image-data-box').css({width:intImageWidth});$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({height:intImageHeight+(settings.containerBorderSize*2)});};function
 
_show_image(){$('#lightbox-loading').hide();$('#lightbox-image').fadeIn(function(){_show_image_data();_set_navigation();});_preload_neighbor_images();};function
 
_show_image_data(){$('#lightbox-container-image-data-box').slideDown('fast');$('#lightbox-image-details-caption').hide();if(settings.imageArray[settings.activeImage][1]){$('#lightbox-image-details-caption').html(settings.imageArray[settings.activeImage][1]).show();}
+if(settings.imageArray.length>1){$('#lightbox-image-details-currentNumber').html(settings.txtImage+'
 '+(settings.activeImage+1)+' '+settings.txtOf+' 
'+settings.imageArray.length).show();}}
+function 
_set_navigation(){$('#lightbox-nav').show();$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({'background':'transparent
 url('+settings.imageBlank+') 
no-repeat'});if(settings.activeImage!=0){if(settings.fixedNavigation){$('#lightbox-nav-btnPrev').css({'background':'url('+settings.imageBtnPrev+')
 left 15% 
no-repeat'}).unbind().bind('click',function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return
 
false;});}else{$('#lightbox-nav-btnPrev').unbind().hover(function(){$(this).css({'background':'url('+settings.imageBtnPrev+')
 left 15% no-repeat'});},function(){$(this).css({'background':'transparent 
url('+settings.imageBlank+') 
no-repeat'});}).show().bind('click',function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return
 false;});}}
+if(settings.activeImage!=(settings.imageArray.length-1)){if(settings.fixedNavigation){$('#lightbox-nav-btnNext').css({'background':'url('+settings.imageBtnNext+')
 right 15% 
no-repeat'}).unbind().bind('click',function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return
 
false;});}else{$('#lightbox-nav-btnNext').unbind().hover(function(){$(this).css({'background':'url('+settings.imageBtnNext+')
 right 15% no-repeat'});},function(){$(this).css({'background':'transparent 
url('+settings.imageBlank+') 
no-repeat'});}).show().bind('click',function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return
 false;});}}
+_enable_keyboard_navigation();}
+function 
_enable_keyboard_navigation(){$(document).keydown(function(objEvent){_keyboard_action(objEvent);});}
+function _disable_keyboard_navigation(){$(document).unbind();}
+function 
_keyboard_action(objEvent){if(objEvent==null){keycode=event.keyCode;escapeKey=27;}else{keycode=objEvent.keyCode;escapeKey=objEvent.DOM_VK_ESCAPE;}
+key=String.fromCharCode(keycode).toLowerCase();if((key==settings.keyToClose)||(key=='x')||(keycode==escapeKey)){_finish();}
+if((key==settings.keyToPrev)||(keycode==37)){if(settings.activeImage!=0){settings.activeImage=settings.activeImage-1;_set_image_to_view();_disable_keyboard_navigation();}}
+if((key==settings.keyToNext)||(keycode==39)){if(settings.activeImage!=(settings.imageArray.length-1)){settings.activeImage=settings.activeImage+1;_set_image_to_view();_disable_keyboard_navigation();}}}
+function 
_preload_neighbor_images(){if((settings.imageArray.length-1)>settings.activeImage){objNext=new
 Image();objNext.src=settings.imageArray[settings.activeImage+1][0];}
+if(settings.activeImage>0){objPrev=new 
Image();objPrev.src=settings.imageArray[settings.activeImage-1][0];}}
+function 
_finish(){$('#jquery-lightbox').remove();$('#jquery-overlay').fadeOut(function(){$('#jquery-overlay').remove();});$('embed,
 object, select').css({'visibility':'visible'});}
+function ___getPageSize(){var 
xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}else
 
if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
+var 
windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}else{windowWidth=self.innerWidth;}
+windowHeight=self.innerHeight;}else 
if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else
 
if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
+if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
+if(xScroll<windowWidth){pageWidth=xScroll;}else{pageWidth=windowWidth;}
+arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return 
arrayPageSize;};function ___getPageScroll(){var 
xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}else
 
if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}else
 
if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;}
+arrayPageScroll=new Array(xScroll,yScroll);return arrayPageScroll;};function 
___pause(ms){var date=new Date();curDate=null;do{var curDate=new Date();}
+while(curDate-date<ms);};return 
this.unbind('click').click(_initialize);};})(jQuery);
\ No newline at end of file


Property changes on: 
tags/extensions/GeeQuBox/REL_0_2/js/jquery.lightbox-0.5.min.js
___________________________________________________________________
Added: svn:eol-style
   + native


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to