var pause = undefined;
var play = undefined;
var audio = undefined;
var canvas = undefined;
var tapesound = undefined;
// var staticsound = undefined;

function endstatic()
{
	document.body.style.backgroundImage = "none";
	document.body.style.backgroundColor = "black";

//	staticsound.pause();
}

function audioloop()
{
		if (audio && !audio.paused && !audio.ended) {
				context.drawImage(audio, 0, 0, canvas.width, canvas.height);
				requestAnimationFrame(audioloop);
		}
}

function startmusic()
{
	canvas.style.display = "inline";
	audio.play();
}

function playoff()
{
	play.style.display = "none";
}

function startsound()
{
	tapesound.play();
}

function onplay(e)
{
	pause.style.display = "none";
	play.style.display = "inline";

	setTimeout(playoff, 7000);
	setTimeout(startmusic, 5000);
	setTimeout(endstatic, 2000);
	setTimeout(startsound, 1000);
}

function reset()
{
	pause.style.display = "inline";
	play.style.display = "none";
	canvas.style.display = "none";

	audio.currentTime = 0;
	audio.pause();

	tapesound.currentTime = 0;
	tapesound.pause();

 // staticsound.play();

	var string = "/img/tiled static.gif";
	document.body.style.backgroundImage = "url('" + string + "')";
	document.body.style.backgroundColor = "white";
}

window.onload = function()
{
	pause = document.getElementById("pause");
	play = document.getElementById("play");
	console.log("load successed");
	pause.onclick = onplay;

	tapesound = document.createElement("audio");
	tapesound.src = "/tapefeed.mp3";
	tapesound.pause();

//	staticsound = document.createElement("audio");
//	staticsound.src = "";
//	staticsound.loop = true;
//	staticsound.play();

	audio = document.createElement("audio");
	audio.src = "http://oman.imjake.me/LawBreaker.mp3";
	audio.pause();
	audio.addEventListener('play',function(){
		audioloop();
	},false);
	audio.addEventListener('ended',function(){
		reset();
	},false);

	canvas = document.getElementById("canvas");
	context = canvas.getContext("2d");

	canvas.width = canvas.clientWidth;
	canvas.height = canvas.clientHeight;

	context.clearRect(0, 0, canvas.width, canvas.height);
}

@@ -672,71 +672,8 @@
 e)%0A%7B
-%0A%09pause.style.display = %22none%22;%0A%09play.style.display = %22inline%22;
 %0A%0A%09s
@@ -816,71 +816,8 @@
 )%0A%7B%0A
-%09pause.style.display = %22inline%22;%0A%09play.style.display = %22none%22;%0A
 %09can
@@ -1147,92 +1147,8 @@
 )%0A%7B%0A
-%09pause = document.getElementById(%22pause%22);%0A%09play = document.getElementById(%22play%22);%0A
 %09con
@@ -1179,34 +1179,8 @@
 %22);%0A
-%09pause.onclick = onplay;%0A%0A
 %09tap

Update gdpr.js