<commit_before>$( setup );

function setup(){
	headerScroll()
}

function headerScroll(){
	var header = 	$('header#primary').parent(),
		top = 		$(window).scrollTop(),
		topClass = 	'scrolled-up',
		scrollPt =	15

	$(window).load(function(){
		if (top <= scrollPt){ header.addClass(topClass) } 
	})	
<commit_msg>header shrink at top of post body<commit_after>$( setup );

function setup(){
	headerScroll()
}

function headerScroll(){
	var header = 	$('header#primary').parent(),
		postBody =	$('.article-text').offset().top - 80,
		top = 		$(window).scrollTop(),
		topClass = 	'scrolled-up',
		scrollPt =	postBody

	console.log(postBody);

	$(window).load(function(){
		if (top <= scrollPt){ header.addClass(topClass) } 
	})	

{'fraction_non_alphanumeric': 0.19008264462809918, 'fraction_numerical': 0.005509641873278237, 'mean_word_length': 4.385185185185185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4019601', 'n_tokens_mistral': 269, 'n_tokens_neox': 248, 'n_words': 52}