<commit_before>var mag = $("#mag");
var cyan = $("#cyan");
var yell = $("#yell");

var mouseX;
var t = 0;

$(document).mousemove(function(e){
	mouseX = e.pageY;
});

var render = function(){
	requestAnimationFrame(render);
	if(window.matchMedia("(min-width: 500px)").matches){
		mag.css("top", 10 + Math.sin(mouseX/150) + "%");
		cyan.css("top", 10 + Math.cos(mouseX/150) + "%");
		yell.css("top", 10 + Math.sin(mouseX/150-1) + "%");
	}else{
		mag.css("top", 10 + Math.sin(t/150) + "%");
		cyan.css("top", 10 + Math.cos(t/150) + "%");
		yell.css("top", 10 + Math.sin(t/150-1) + "%");

	}

	t += 5;
}

$("li:nth-of-type(3)").on('click', function(e){
	e.preventDefault();
	$("#container").fadeOut();
	setTimeout(function(){
		$("#work").fadeIn();
	},750);
	history.pushState({foo: "bar"}, "work page" ,"work");
});

$(".back").on('click', function(e){
	e.preventDefault();
	$("#work").fadeOut();
	setTimeout(function(){
		$("#container").fadeIn();
	},750);
	history.pushState({foo: "foo"}, "home page" ,"/");
});

$(window).load(function(){
	render();

	// console.log(window.location.href.split("/"));
});

$(window).load(function(evt){
	$('#background').addClass('first');
	$('#container h1').addClass('first');
	$('#container p').addClass('second');
	$('#container a').addClass('second');
	$('#container p').addClass('second');
	$('#header').addClass('second');<commit_msg>hash routing<commit_after>var mag = $("#mag");
var cyan = $("#cyan");
var yell = $("#yell");

var mouseX;
var t = 0;

$(document).mousemove(function(e){
	mouseX = e.pageY;
});

var render = function(){
	requestAnimationFrame(render);
	if(window.matchMedia("(min-width: 500px)").matches){
		mag.css("top", 10 + Math.sin(mouseX/150) + "%");
		cyan.css("top", 10 + Math.cos(mouseX/150) + "%");
		yell.css("top", 10 + Math.sin(mouseX/150-1) + "%");
	}else{
		mag.css("top", 10 + Math.sin(t/150) + "%");
		cyan.css("top", 10 + Math.cos(t/150) + "%");
		yell.css("top", 10 + Math.sin(t/150-1) + "%");

	}

	t += 5;
}

$("li:nth-of-type(3)").on('click', function(e){
	e.preventDefault();
	$("#container").fadeOut();
	setTimeout(function(){
		$("#work").fadeIn();
	},750);
	history.pushState({foo: "bar"}, "work page" ,"#/work");
});

$(".back").on('click', function(e){
	e.preventDefault();
	$("#work").fadeOut();
	setTimeout(function(){
		$("#container").fadeIn();
	},750);
	history.pushState({foo: "foo"}, "home page" ,"/");
});

$(window).load(function(){
	render();

	// console.log(window.location.href.split("/"));
	console.log(window.location.hash);

	if(window.location.hash == "#/work"){
		$('#container').hide();
		$('#work').show();
	}

});

$(window).load(function(evt){
	$('#background').addClass('first');
	$('#container h1').addClass('first');
	$('#container p').addClass('second');
	$('#container a').addClass('second');
	$('#container p').addClass('second');
	$('#header').addClass('second');
{'fraction_non_alphanumeric': 0.29902642559109877, 'fraction_numerical': 0.03129346314325452, 'mean_word_length': 5.240780911062907, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3332533', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1081, 'n_words': 167}