Ignore:
Timestamp:
Mar 6, 2014, 12:37:01 PM (10 years ago)
Author:
Miklfe
Message:

Change theme.css
Slideshow fixed
compatibility with MyPiwiShop(futur)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Slide/js/slide.js

    r27026 r27566  
    313313                                _GThumb()
    314314                        };
     315                        if($('body').hasClass('MyPiwiShop')||$('body').hasClass('MyPiwiShopReady')) {
     316                                _MyPiwiShop()
     317                        };
     318
    315319                };             
    316320               
     
    543547                                        var $next       = $(html).find('.pwg-button-icon-right').attr('href'),
    544548                                                $title  = $(html).find('#imageHeaderBar h2').text(),
    545                                                 $img    = $(html).find('#theImage img').attr('src');
    546                                         _stock_img($img,$title);
     549                                                $img    = $(html).find('#theImage #imgContent').data('src'),
     550                                                $img_h  = $(html).find('#theImage #imgContent').data('height'),
     551                                                $img_w  = $(html).find('#theImage #imgContent').data('width');
     552                                               
     553                                        _stock_img($img,$title,$img_h,$img_w);
    547554                                        if(typeof $next != "undefined"){
    548555                                                _load_slideshow($next,$slideW)
     
    565572                };
    566573
    567                 function _stock_img($href,$title){
    568                         var $img = {src : $href  , title : $title , descr : $title};
     574                function _stock_img($href,$title,$height,$width){
     575                        var $img = {src : $href  , title : $title , descr : $title , height : $height , width : $width};
     576                console.debug($img);
    569577                        $slideshow.push($img);
    570578                };
Note: See TracChangeset for help on using the changeset viewer.