aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/js.html
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/js.html')
-rw-r--r--tpl/js.html36
1 files changed, 18 insertions, 18 deletions
diff --git a/tpl/js.html b/tpl/js.html
index a02212b0..3a51af6e 100644
--- a/tpl/js.html
+++ b/tpl/js.html
@@ -1,22 +1,22 @@
1 <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script> 1 <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
2 <script type="text/javascript" src="js/poche.js"></script> 2 <script type="text/javascript" src="js/poche.js"></script>
3 3
4 {if="$load_all_js == '1'"} 4 {if="$load_all_js == '1'"}
5 <script type="text/javascript" src="js/jquery.masonry.min.js"></script> 5 <script type="text/javascript" src="js/jquery.masonry.min.js"></script>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 $( window ).load( function() 7 $( window ).load( function()
8 { 8 {
9 var columns = 3, 9 var columns = 3,
10 setColumns = function() { columns = $( window ).width() > 640 ? 3 : $( window ).width() > 320 ? 2 : 1; }; 10 setColumns = function() { columns = $( window ).width() > 640 ? 3 : $( window ).width() > 320 ? 2 : 1; };
11 11
12 setColumns(); 12 setColumns();
13 $( window ).resize( setColumns ); 13 $( window ).resize( setColumns );
14 14
15 $( '#content' ).masonry( 15 $( '#content' ).masonry(
16 { 16 {
17 itemSelector: '.entrie', 17 itemSelector: '.entrie',
18 columnWidth: function( containerWidth ) { return containerWidth / columns; } 18 columnWidth: function( containerWidth ) { return containerWidth / columns; }
19 });
19 }); 20 });
20 }); 21 </script>
21 </script> 22 {/if} \ No newline at end of file
22 {/if} \ No newline at end of file