Last change
on this file since 13748 was
12013,
checked in by flop25, 13 years ago
|
pff Chrome ... jQuery(window).load(function() used instead of $(document).ready
|
File size:
740 bytes
|
Rev | Line | |
---|
[10106] | 1 | {footer_script require='jquery'} |
---|
| 2 | {literal} |
---|
| 3 | var max_dim_width = 0; |
---|
| 4 | var max_dim_height = 0; |
---|
[12013] | 5 | jQuery(window).load(function() { |
---|
[10106] | 6 | $(".thumbnails img").each(function () { |
---|
| 7 | if (jQuery(this).height() > max_dim_height) |
---|
| 8 | max_dim_height = jQuery(this).height() + 10; |
---|
| 9 | if (jQuery(this).width() > max_dim_width) |
---|
| 10 | max_dim_width = jQuery(this).width() + 10; |
---|
| 11 | |
---|
| 12 | jQuery(".wrap2") |
---|
| 13 | .css('width', max_dim_width+'px') |
---|
| 14 | .css('height', max_dim_height+'px'); |
---|
[12007] | 15 | jQuery(".wrap1") |
---|
| 16 | .css('width', max_dim_width+'px'); |
---|
[10106] | 17 | }); |
---|
| 18 | }); |
---|
| 19 | {/literal} |
---|
| 20 | {/footer_script} |
---|
[11928] | 21 | {if isset($MENUBAR) and isset($ELEMENT_CONTENT)} |
---|
| 22 | {html_head}{literal} |
---|
| 23 | <style> |
---|
| 24 | #imageHeaderBar, #imageToolBar { |
---|
| 25 | background-image:none; |
---|
| 26 | } |
---|
| 27 | </style> |
---|
| 28 | {/literal}{/html_head} |
---|
| 29 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.