// Controls Spin
$(document).ready(function() {  
  	// Resize the browser window
	window.resizeTo(550, 550);
	
	// Update the Meta Title with taunting
	$('head title').html('You Got Dick Rolled! Google Rape You Long Time!');
	
	// Actions that trigger when window is resized
	var intervalTime = 500;
		
	window.setInterval("actions();", intervalTime);
	
	// Trigger when someone tries to leave
	window.onbeforeunload = nevaGonnaLetYouGo;
});

// Actions
function actions(){
	const minValue = -600,
		  maxValue = 600;
	
	window.moveBy(randBetween(minValue, maxValue), randBetween(minValue, maxValue));
}

function randBetween(l,u){
	return Math.floor((Math.random() * (u-l+1))+l);
}

function nevaGonnaLetYouGo() {
	var messages =  ["Don't fear the meat baby.",
					"Does your mother know you have a fixation for men?",
					"You know you want it.",
					"Gonna spin you right 'round!",
					"Neva gonna let you go!",
					"Mmm, you have a taste for the sausage.",
					"Your boyfriend called and wants his bar of soap.",
					"Neva gonna give you up.",
					"Mmmm, you gonna get loved tenderly.",
					"Fap fap fap fap fap.",
					"Is it wrong if I want to cuddle?",
					"I... just wanna tell you how I'm feeling.",
					"Me love you long time.",
					"Let me show you love, prison style.",
					"Don't leave, I just want to give you a massage.",
					"Never gonna say good bye."],
		message,
		stay = true;
	
		while (stay == true){
			message = randBetween(0, messages.length - 1);
			confirm(messages[message]);
			stay == true;
		}
}
