Mercurial > web
comparison index.html @ 14:8f0b52a3cb69
add module on front page
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 31 May 2021 11:55:12 -0400 |
parents | e7ca289b45ec |
children | 7bfa77838f33 |
comparison
equal
deleted
inserted
replaced
13:e7ca289b45ec | 14:8f0b52a3cb69 |
---|---|
68 left: 5px; | 68 left: 5px; |
69 bottom: 5px; | 69 bottom: 5px; |
70 position: absolute; | 70 position: absolute; |
71 } | 71 } |
72 </style> | 72 </style> |
73 <script> | |
74 window['libopenmpt'] = {}; | |
75 libopenmpt.locateFile = function (filename) { | |
76 return filename; | |
77 }; | |
78 libopenmpt.onRuntimeInitialized = function () { | |
79 var player; | |
80 if (document.referrer) { | |
81 init(); | |
82 path = "overoff-f.mod"; | |
83 if (player != undefined) { | |
84 player.load(path, afterLoad.bind(this, path)); | |
85 } | |
86 } | |
87 else { | |
88 document.getElementById('button').style.visibility = "visible"; | |
89 } | |
90 function init() { | |
91 if (player == undefined) { | |
92 player = new ChiptuneJsPlayer(new ChiptuneJsConfig(-1)); | |
93 } | |
94 else { | |
95 player.stop(); | |
96 player = undefined; | |
97 } | |
98 }; | |
99 function afterLoad(path, buffer) { | |
100 player.play(buffer); | |
101 }; | |
102 document.getElementById('button').onclick = function() { | |
103 init(); | |
104 path = "overoff-f.mod"; | |
105 if (player != undefined) { | |
106 player.load(path, afterLoad.bind(this, path)); | |
107 } | |
108 document.getElementById('button').style.visibility = "hidden"; | |
109 }; | |
110 } | |
111 </script> | |
112 <script src="libopenmpt.js"></script> | |
113 <script src="chiptune2.js"></script> | |
73 <link rel="stylesheet" href="style.css"> | 114 <link rel="stylesheet" href="style.css"> |
74 </head> | 115 </head> |
75 <body> | 116 <body> |
76 <div class="wrapper"></div> | 117 <div class="wrapper"></div> |
77 <h1>Heys!</h1> | 118 <h1>Heys!</h1> |
92 <img src="img/1080p.gif" width="88" height="31"> | 133 <img src="img/1080p.gif" width="88" height="31"> |
93 <a href="https://cock.li"><img src="img/cockli.png" width="88" height="31"></a> | 134 <a href="https://cock.li"><img src="img/cockli.png" width="88" height="31"></a> |
94 <img src="img/h-free-anim.gif" width="88" height="31"> | 135 <img src="img/h-free-anim.gif" width="88" height="31"> |
95 </p> | 136 </p> |
96 <p><a href="cool.html">cool shit</a></p> | 137 <p><a href="cool.html">cool shit</a></p> |
138 <input id="button" type="submit" name="button" value="music" style="visibility: hidden;"> | |
97 <div class="disclaimer">rainbow css stolen from <a href="https://codepen.io/nohoid/pen/kIfto">here</a></div> | 139 <div class="disclaimer">rainbow css stolen from <a href="https://codepen.io/nohoid/pen/kIfto">here</a></div> |
98 </body> | 140 </body> |