diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-07 18:24:25 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-07 19:13:08 +0200 |
commit | 7130402cfecc196ce79c8f07a9dba71974f085e3 (patch) | |
tree | 072e82de987c0a1f9d1fac8be9c8f097e9a9f37f /modules/private/websites/immae/history/assets/js/script.js | |
parent | fe4199f8ab922735b81557f71199fa73a378e540 (diff) | |
download | Nix-7130402cfecc196ce79c8f07a9dba71974f085e3.tar.gz Nix-7130402cfecc196ce79c8f07a9dba71974f085e3.tar.zst Nix-7130402cfecc196ce79c8f07a9dba71974f085e3.zip |
Add history page
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 | ||