annotate tomoko.html @ 13:e7ca289b45ec

add icons
author Paper <mrpapersonic@gmail.com>
date Mon, 31 May 2021 11:21:27 -0400
parents e22a954c2714
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
1 <!DOCTYPE html>
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
2 <head>
13
e7ca289b45ec add icons
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
3 <link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
e7ca289b45ec add icons
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
4 <link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
e7ca289b45ec add icons
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
5 <link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
e7ca289b45ec add icons
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
6 <link rel="manifest" href="icons/site.webmanifest">
e7ca289b45ec add icons
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
7 <link rel="shortcut icon" href="icons/favicon.ico">
e7ca289b45ec add icons
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
8 <meta name="msapplication-TileColor" content="#da532c">
e7ca289b45ec add icons
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
9 <meta name="msapplication-config" content="icons/browserconfig.xml">
e7ca289b45ec add icons
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
10 <meta name="theme-color" content="#ffffff">
e7ca289b45ec add icons
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
11 <title>it is a mystery</title>
6
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
12 <style>
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
13 body{
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
14 margin:0;
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
15 background-image: url("tomoko.gif");
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
16 background-position: center top;
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
17 background-size: 100% auto;
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
18 text-align: center;
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
19 }
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
20 </style>
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
21 <script>
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
22 window['libopenmpt'] = {};
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
23 libopenmpt.locateFile = function (filename) {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
24 return filename;
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
25 };
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
26 libopenmpt.onRuntimeInitialized = function () {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
27 if (document.referrer) {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
28 init();
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
29 path = "https://api.modarchive.org/downloads.php?moduleid=37049#christms.xm";
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
30 if (player != undefined) {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
31 player.load(path, afterLoad.bind(this, path));
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
32 }
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
33 }
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
34 else {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
35 document.getElementById('button').style.visibility = "visible";
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
36 }
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
37 var player;
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
38 function init() {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
39 if (player == undefined) {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
40 player = new ChiptuneJsPlayer(new ChiptuneJsConfig(-1));
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
41 }
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
42 else {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
43 player.stop();
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
44 player = undefined;
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
45 }
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
46 };
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
47 function afterLoad(path, buffer) {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
48 player.play(buffer);
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
49 };
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
50 document.getElementById('button').onclick = function() {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
51 init();
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
52 path = "https://api.modarchive.org/downloads.php?moduleid=37049#christms.xm";
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
53 if (player != undefined) {
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
54 player.load(path, afterLoad.bind(this, path));
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
55 }
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
56 document.getElementById('button').style.visibility = "hidden";
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
57 };
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
58 }
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
59 </script>
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
60 <script src="libopenmpt.js"></script>
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
61 <script src="chiptune2.js"></script>
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
62 </head>
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
63 <body id="body">
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
64 <br>
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
65 <input id="button" type="submit" name="button" value="epicness" style="visibility: hidden;">
ac2f9715807c first version
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
66 </body>