source: extensions/stripped_black_bloc/local_head.tpl @ 11677

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

masonry works for thumbnails album and thumbnails pics
all max-width cancelled
menu switch works

File size: 1.3 KB
Line 
1{if ($BODY_ID=='theCategoryPage')}
2{combine_script id='jquery.masonry' load='header' require='jquery' path='themes/stripped_black_bloc/js/masonry.js'}
3{html_head}{literal}
4<script type="text/javascript">
5function tnb_resize() {
6        $('#subcontent').masonry({
7                singleMode: true,
8                columnWidth: 200,
9                itemSelector: '.bloc',
10                animate: true
11        });
12
13}
14jQuery(document).ready(function(jQuery){
15       
16        jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
17        var sidemenu = jQuery.cookie('side-menu');
18        var isdisplayed;
19                // if cookie says the menu is hiding, keep it hidden!
20        if (sidemenu == 'hiding') {
21                jQuery("#subcontent").css({'margin-left' : '0'});
22                isdisplayed=false;
23        }
24        if (sidemenu == 'showing') {
25                jQuery("#subcontent").css({'margin-left' : '20em'});
26                isdisplayed=true;
27        }
28        // creates a variable with the contents of the cookie side-menu
29        jQuery("#menuswitcher").click(function(){
30                if (jQuery("#menubar").is(":hidden") || isdisplayed==false ) {
31                        jQuery("#subcontent").css({'margin-left' : '20em'});
32                        isdisplayed=true;
33                } else {
34                        jQuery("#subcontent").css({'margin-left' : '0'});
35                        isdisplayed=false;
36                }
37        });
38
39        jQuery('#subcontent').masonry({
40                  singleMode: true,
41                columnWidth: 200,
42                itemSelector: '.bloc',
43                animate: true
44        });
45});
46  </script>
47{/literal}
48{/html_head}
49{/if}
Note: See TracBrowser for help on using the repository browser.