Sha256: d444d0b3320f8847c7de9907cffe999284d1270ed69db3b53172a522dc1b603d

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

onHashChange = function() {
	if (window.location.href.indexOf("#") < 0) return;
	var header = $("div#header");
	if (header.css("position") != "fixed") return;
	document.documentElement.scrollTop = document.documentElement.scrollTop - header.height() - 10;
}
window.addEventListener('hashchange', onHashChange, false);
window.addEventListener('load', onHashChange, false);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-charcoal-0.0.8 assets/js/header.js
jekyll-theme-charcoal-0.0.7 assets/js/header.js