]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/immae/history/assets/js/script.js
Add history page
[perso/Immae/Config/Nix.git] / 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 (file)
index 0000000..65115d3
--- /dev/null
@@ -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