diff options
author | neodarz <neodarz@neodarz.net> | 2017-05-04 03:27:33 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-05-04 03:27:33 +0200 |
commit | 785bde84dd4888817bb9825ba5ab388ec2b7c4b7 (patch) | |
tree | eb572026c9c953dbd67e3acc2104db11117b4e5f /source/js/code_scrollbar.js | |
parent | 15c05dbb86fe3d98ec6e6ebe7743fd85b860dcc6 (diff) | |
download | my_new_personal_website-785bde84dd4888817bb9825ba5ab388ec2b7c4b7.tar.xz my_new_personal_website-785bde84dd4888817bb9825ba5ab388ec2b7c4b7.zip |
Update to date
Diffstat (limited to 'source/js/code_scrollbar.js')
-rw-r--r-- | source/js/code_scrollbar.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/js/code_scrollbar.js b/source/js/code_scrollbar.js new file mode 100644 index 00000000..b99914c8 --- /dev/null +++ b/source/js/code_scrollbar.js @@ -0,0 +1,10 @@ +$(function() +{ + $('.sourceCode diff').jScrollPane(); +}); + +$(window).bind('resize', function() { + var scroll = $('.sourceCode diff').jScrollPane(); + location.reload(); + scroll.reinitialise(); +}); |