diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 08:57:35 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 08:57:35 +0200 |
commit | 2b840e0cfb63a453bea67a98541f3df9c273c5f5 (patch) | |
tree | 8c5aa51ba6481f29f9734373d6abd55917d1a671 /tpl/js.html | |
parent | 8cbb2a88024969f7efd90f8053f3b0805fa2f8fa (diff) | |
download | wallabag-2b840e0cfb63a453bea67a98541f3df9c273c5f5.tar.gz wallabag-2b840e0cfb63a453bea67a98541f3df9c273c5f5.tar.zst wallabag-2b840e0cfb63a453bea67a98541f3df9c273c5f5.zip |
twig implementation
Diffstat (limited to 'tpl/js.html')
-rw-r--r-- | tpl/js.html | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tpl/js.html b/tpl/js.html deleted file mode 100644 index 3a51af6e..00000000 --- a/tpl/js.html +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script> | ||
2 | <script type="text/javascript" src="js/poche.js"></script> | ||
3 | |||
4 | {if="$load_all_js == '1'"} | ||
5 | <script type="text/javascript" src="js/jquery.masonry.min.js"></script> | ||
6 | <script type="text/javascript"> | ||
7 | $( window ).load( function() | ||
8 | { | ||
9 | var columns = 3, | ||
10 | setColumns = function() { columns = $( window ).width() > 640 ? 3 : $( window ).width() > 320 ? 2 : 1; }; | ||
11 | |||
12 | setColumns(); | ||
13 | $( window ).resize( setColumns ); | ||
14 | |||
15 | $( '#content' ).masonry( | ||
16 | { | ||
17 | itemSelector: '.entrie', | ||
18 | columnWidth: function( containerWidth ) { return containerWidth / columns; } | ||
19 | }); | ||
20 | }); | ||
21 | </script> | ||
22 | {/if} \ No newline at end of file | ||