Last change
on this file since 10106 was
10106,
checked in by flop25, 13 years ago
|
less files
prefilter for index.tpl
attempt to prefilter pwg stuff blocks
|
File size:
506 bytes
|
Line | |
---|
1 | {footer_script require='jquery'} |
---|
2 | {literal} |
---|
3 | var max_dim_width = 0; |
---|
4 | var max_dim_height = 0; |
---|
5 | jQuery(document).ready(function() { |
---|
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'); |
---|
15 | }); |
---|
16 | }); |
---|
17 | {/literal} |
---|
18 | {/footer_script} |
---|
Note: See
TracBrowser
for help on using the repository browser.