source: extensions/floPure/Pure_default/local_head.tpl @ 12007

Last change on this file since 12007 was 12007, checked in by flop25, 13 years ago

width adjusted for long names

File size: 738 bytes
Line 
1{footer_script require='jquery'}
2{literal}
3var max_dim_width = 0;
4var max_dim_height = 0;
5$(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    jQuery(".wrap1")
16      .css('width', max_dim_width+'px');
17  });
18});
19{/literal}
20{/footer_script}
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.