Sha256: e7107dd96cc93581dfdaadd3bef56f1981653a67e350c4ae610a6d9f45a48112
Contents?: true
Size: 710 Bytes
Versions: 87
Compression:
Stored size: 710 Bytes
Contents
<script type="text/javascript"> $().ready(function () { var scrollTo = function (target) { if (target.charAt(0) == '#' && $(target).length) { $('html,body').animate({scrollTop: $(target).offset().top - 70}, 'normal'); return true; } else return false; }; var callback = function (e) { var target = $(this).attr('href'); if (scrollTo(target)) { e.preventDefault(); location.hash = target; } }; $('.toc a').on('click', callback); $('.page a').on('click', callback); scrollTo(location.hash); }); </script>
Version data entries
87 entries across 87 versions & 1 rubygems