view tomoko.html @ 13:e7ca289b45ec

add icons
author Paper <mrpapersonic@gmail.com>
date Mon, 31 May 2021 11:21:27 -0400
parents e22a954c2714
children
line wrap: on
line source

<!DOCTYPE html>
<head>
	<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
	<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
	<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
	<link rel="manifest" href="icons/site.webmanifest">
	<link rel="shortcut icon" href="icons/favicon.ico">
	<meta name="msapplication-TileColor" content="#da532c">
	<meta name="msapplication-config" content="icons/browserconfig.xml">
	<meta name="theme-color" content="#ffffff">
	<title>it is a mystery</title>
	<style>
		body{
			margin:0;
		    background-image: url("tomoko.gif");
			background-position: center top;
			background-size: 100% auto;
			text-align: center;
		}
	</style>
	<script>
		window['libopenmpt'] = {};
		libopenmpt.locateFile = function (filename) {
			return filename;
		};
		libopenmpt.onRuntimeInitialized = function () {
			if (document.referrer) {
				init();
				path = "https://api.modarchive.org/downloads.php?moduleid=37049#christms.xm";
				if (player != undefined) {
					player.load(path, afterLoad.bind(this, path));
				}
			}
			else {
				document.getElementById('button').style.visibility = "visible";
			}
			var player;
			function init() {
				if (player == undefined) {
					player = new ChiptuneJsPlayer(new ChiptuneJsConfig(-1));
				}
				else {
					player.stop();
					player = undefined;
				}
			};
			function afterLoad(path, buffer) {
				player.play(buffer);
			};
			document.getElementById('button').onclick = function() {
				init();
				path = "https://api.modarchive.org/downloads.php?moduleid=37049#christms.xm";
				if (player != undefined) {
					player.load(path, afterLoad.bind(this, path));
				}
				document.getElementById('button').style.visibility = "hidden";
			};
		}
	</script>
	<script src="libopenmpt.js"></script>
	<script src="chiptune2.js"></script>
</head>
<body id="body">
	<br>
	<input id="button" type="submit" name="button" value="epicness" style="visibility: hidden;">
</body>