<commit_before>var typeIndex = 0;
var typer = 0;

var typeDone = false;
var screenshotDone = false;
var screenshotIsVisible = false;


$(function(){
	checkBrowser();
});

function checkBrowser(){
	if (Modernizr.canvas && Modernizr.video && !jQuery.browser.mobile){
		doHTML5VideoInteractive()
	}else{
		doYoutubeVideo();
	}
}

function doHTML5VideoInteractive(){
	$("input#inpSearch").val("");

	setTimeout(function(){
		$("#googleSearch").show();
	},2000);

	// async screenshot ophalen
	$.getJSON(
		'/getgooglescreenshot',
		{name: name},
		function(data){
			if(data.err){
				console.log(data.err);
			}else{
				$("#googlescreenshot").attr('src', data.screenshot);
				screenshotDone = true;
				showScreenshot();
			}
		});


	$('#myVideo').seeThru({start : 'autoplay' , end : 'stop'});

	$('#myVideo')[0].addEventListener('ended',videoEnds,false);

	pollTime();
}


function pollTime(){
	var time = $('#myVideo')[0].currentTime;


	if(time > 36){
		startTyping();
	}else{
		//check again:
		setTimeout(pollTime,1000);
	}
}

function videoEnds(){<commit_msg>tekstje weg na 4 seconden in de film<commit_after>var typeIndex = 0;
var typer = 0;

var typeDone = false;
var screenshotDone = false;
var screenshotIsVisible = false;


$(function(){
	checkBrowser();
});

function checkBrowser(){
	if (Modernizr.canvas && Modernizr.video && !jQuery.browser.mobile){
		doHTML5VideoInteractive()
	}else{
		doYoutubeVideo();
	}
}

function doHTML5VideoInteractive(){
	$("input#inpSearch").val("");

	setTimeout(function(){
		$("#googleSearch").show();
	},2000);

	// async screenshot ophalen
	$.getJSON(
		'/getgooglescreenshot',
		{name: name},
		function(data){
			if(data.err){
				console.log(data.err);
			}else{
				$("#googlescreenshot").attr('src', data.screenshot);
				screenshotDone = true;
				showScreenshot();
			}
		});


	$('#myVideo').seeThru({start : 'autoplay' , end : 'stop'});

	$('#myVideo')[0].addEventListener('ended',videoEnds,false);

	pollTime();
}


function pollTime(){
	var time = $('#myVideo')[0].currentTime;


	if(time > 4){
		//opacity ipv hide, anders schuift video op
		$('.klikhier').animate({
   			opacity: 0
   		});
	}


	if(time > 36){
		startTyping();
	}else{
		//check again:
		setTimeout(pollTime,1000);
	}
}

function videoEnds(){
{'fraction_non_alphanumeric': 0.18970070422535212, 'fraction_numerical': 0.015404929577464789, 'mean_word_length': 4.437799043062201, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '328546', 'n_tokens_mistral': 928, 'n_tokens_neox': 814, 'n_words': 154}