Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mrchimp/hashy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: creativedotdesign/hashy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 20, 2019

  1. Copy the full SHA
    496ed88 View commit details
Showing with 4 additions and 3 deletions.
  1. +4 −3 hashy.js
7 changes: 4 additions & 3 deletions hashy.js
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@

if (this.offset_elem.length) {
this.offset_elem.each(function () {
offset_height += (jQuery(this).height() - extra_offset);
offset_height += (jQuery(this).outerHeight() - extra_offset);
});
}

@@ -97,11 +97,12 @@

// Scroll to hash on page load. The browser does this by
// default but this will compensate for sticky headers

if (window.location.hash) {
jQuery(window).on('load', function () {
window.setTimeout(function() {
this.scrollToHash(window.location.hash, true);
}.bind(this), 200);
this.scrollToHash(window.location.hash, true, false, extra_offset);
}.bind(this), 0);
}.bind(this));
}
}