diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-15 09:38:41 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-15 09:38:41 +0200 |
commit | 8046748b424f95a92ab599ecc973f57eb05246ce (patch) | |
tree | e3a2a66569337662a58cf8eba71125f7154c799a /tpl/js.html | |
parent | 3e188a7c8de484a57c05126072f76860c7746b39 (diff) | |
download | wallabag-8046748b424f95a92ab599ecc973f57eb05246ce.tar.gz wallabag-8046748b424f95a92ab599ecc973f57eb05246ce.tar.zst wallabag-8046748b424f95a92ab599ecc973f57eb05246ce.zip |
découpage des vues dans plusieurs fichiers tpl
Diffstat (limited to 'tpl/js.html')
-rw-r--r-- | tpl/js.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tpl/js.html b/tpl/js.html new file mode 100644 index 00000000..a02212b0 --- /dev/null +++ b/tpl/js.html | |||
@@ -0,0 +1,22 @@ | |||
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 | ||