diff options
author | Vincent Tam <sere@live.hk> | 2019-05-19 19:26:09 +0300 |
---|---|---|
committer | Vincent Tam <sere@live.hk> | 2019-05-19 19:26:09 +0300 |
commit | f6cd0a8dba6fa5e06b582b62e7c198b6dfb8f30e (patch) | |
tree | 2a3b526ad0a6636f322d9fe5404fffab4e512500 /static | |
parent | 5c367d2574fec4432820f949cf03be1d940b02ef (diff) |
Corrigé la fct pour staticman
Diffstat (limited to 'static')
-rw-r--r-- | static/js/staticman.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/staticman.js b/static/js/staticman.js index 9ed9630..81800ee 100644 --- a/static/js/staticman.js +++ b/static/js/staticman.js @@ -1,6 +1,6 @@ // Static comments // from: https://github.com/eduardoboucas/popcorn/blob/gh-pages/js/main.js -(function ($) { +$(document).ready(function() { var $comments = $('.js-comments'); $('.js-form').submit(function () { @@ -65,4 +65,4 @@ targetID = "#" + $(targetPostID).parents('.static-comment').attr('id'); $('html, body').animate({ scrollTop: $(targetID).offset().top-$('nav').height() }, 500); }); -})(jQuery); +}); |