From 7130402cfecc196ce79c8f07a9dba71974f085e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 7 Jun 2020 18:24:25 +0200 Subject: Add history page --- .../private/websites/immae/history/assets/js/script.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/private/websites/immae/history/assets/js/script.js (limited to 'modules/private/websites/immae/history/assets/js/script.js') 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 @@ +$(function() { + var options = { + padding: 0, + nextSelector: 'a.next-page:last', + contentSelector: '.post_list', + autoTrigger: false, + debug: true + }; + + $('.post_list').jscroll(options); + $(document).on('click', '#expand-list', function(){ + $('.post-content').hide(); + }); + $(document).on('click', '#collapse-list', function(){ + $('.post-content').show(); + }); +}); \ No newline at end of file -- cgit v1.2.3