Changeset 27126
- Timestamp:
- Feb 1, 2014, 2:34:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Slide/js/slideshow.js
r26915 r27126 77 77 } 78 78 79 $('ul',ele).append($('<li />').addClass('img-' + i).append($('<div />').addClass('contenerImg').width(options.width).height(cont_h).append(blockImg))); 80 79 $('ul',ele).append($('<li />').addClass('img-' + i).append($('<div />').addClass('contenerImg').width(options.width).height(cont_h).append(blockImg))); 80 81 var $block = $('.img-'+ i ,ele); 82 _resizeSlideshowImag($block) ; 81 83 82 84 }); 83 85 84 _resizeSlideshowImag() ;85 86 86 87 //resize and center image_____________________________________________________________________________________________________ 87 88 88 function _resizeSlideshowImag (){ 89 var e = $('ul',ele); 90 91 e.each(function(){ 92 93 var $img = e.find('img'), 94 $descr = e.find('.descr'), 89 function _resizeSlideshowImag ($block){ 90 91 var $img = $block.find('img'), 92 $descr = $block.find('.descr'), 95 93 $img_w = $img.width(), 96 94 $img_h = $img.height(), … … 101 99 $new_h, 102 100 $new_w; 103 104 101 105 102 if(($img_h > $box_h) || ($img_w > $box_w)){ … … 132 129 bottom : (($box_h / 2)-($new_h / 2)) + 'px', 133 130 }) 134 })131 // }) 135 132 }; 136 133 //slide_____________________________________________________________________________________________
Note: See TracChangeset
for help on using the changeset viewer.