diff options
Diffstat (limited to 'modules/private/websites/immae/history/assets/js/script.js')
-rw-r--r-- | modules/private/websites/immae/history/assets/js/script.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/private/websites/immae/history/assets/js/script.js b/modules/private/websites/immae/history/assets/js/script.js new file mode 100644 index 0000000..65115d3 --- /dev/null +++ b/modules/private/websites/immae/history/assets/js/script.js | |||
@@ -0,0 +1,17 @@ | |||
1 | $(function() { | ||
2 | var options = { | ||
3 | padding: 0, | ||
4 | nextSelector: 'a.next-page:last', | ||
5 | contentSelector: '.post_list', | ||
6 | autoTrigger: false, | ||
7 | debug: true | ||
8 | }; | ||
9 | |||
10 | $('.post_list').jscroll(options); | ||
11 | $(document).on('click', '#expand-list', function(){ | ||
12 | $('.post-content').hide(); | ||
13 | }); | ||
14 | $(document).on('click', '#collapse-list', function(){ | ||
15 | $('.post-content').show(); | ||
16 | }); | ||
17 | }); \ No newline at end of file | ||