88 lines
No EOL
3.7 KiB
HTML
88 lines
No EOL
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>I EAT ROCKS</title>
|
|
|
|
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
|
|
|
<link rel="stylesheet" href="style.css?v=3">
|
|
|
|
<script src="drag.js?v=4" defer></script>
|
|
<script src="commands.js?v=2" defer></script>
|
|
</head>
|
|
<body>
|
|
<div class="icons">
|
|
<div class="app" ondblclick="createWindow('apps/welcome.html', 'welcome', '350px', '550px')">
|
|
<p><img src="images/icons/home.png" width="48px" height="48px" /><sub>Welcome</sub></p>
|
|
</div>
|
|
<div class="app" ondblclick="createWindow('apps/notepad.html', 'notepad', '500px', '450px')">
|
|
<p><img src="images/icons/home.png" width="48px" height="48px" /><sub>notepad</sub></p>
|
|
</div>
|
|
<div class="app" ondblclick="createWindow('https://bandcamp.com/EmbeddedPlayer/album=3902721364/size=large/bgcol=181a1b/linkcol=056cc4/tracklist=false/artwork=small/track=3286219329/transparent=true', 'rock music', '400px', '120px')">
|
|
<p><img src="images/icons/music.svg" width="48px" height="48px" /><sub>rock music</sub></p>
|
|
</div>
|
|
<div class="app" ondblclick="createWindow('https://www.youtube.com/embed/zOnMIjl19g8?si=1J3CPY5fF8B0SWEW', 'rock', '384px', '216px')">
|
|
<p><img src="images/icons/home.png" width="48px" height="48px" /><sub>rock</sub></p>
|
|
</div>
|
|
<div class="app" ondblclick="createWindow('apps/famous/', 'famous rocks', '500px', '500px')">
|
|
<p><img src="images/icons/home.png" width="48px" height="48px" /><sub>famous rocks</sub></p>
|
|
</div>
|
|
<div class="app" ondblclick="createWindow('apps/terminal.html', 'terminal', '800px', '500px')">
|
|
<p><img src="images/icons/terminal.png" width="48px" height="48px" /><sub>terminal</sub></p>
|
|
</div>
|
|
</div>
|
|
<div class="icons">
|
|
<div class="app" ondblclick="createWindow('apps/do.html', 'should I eat rocks?', '300', '300')">
|
|
<p><img src="images/icons/rock.png" width="48px" height="48px" /><sub>eat rocks?</sub></p>
|
|
</div>
|
|
<div class="app" ondblclick="createWindow('https://www3.cbox.ws/box/?boxid=3540114&boxtag=qbEaqt', 'rockchat', '300', '450')">
|
|
<p><img src="images/icons/home.png" width="48px" height="48px" /><sub>chatroom</sub></p>
|
|
</div>
|
|
<div class="app" ondblclick="createWindow('apps/guestbook', 'guestbook', '500px', '600px')">
|
|
<p><img src="images/icons/home.png" width="48px" height="48px" /><sub>guestbook</sub></p>
|
|
</div>
|
|
</div>
|
|
|
|
<nav></nav>
|
|
|
|
<script defer>
|
|
function getTopLevelUrl() {
|
|
try {
|
|
return window.top.location.href;
|
|
} catch (e) {
|
|
return window.location.href;
|
|
}
|
|
}
|
|
|
|
function inList(list, val) {
|
|
for (var i = 0; i < list.length; i++) {
|
|
if (list[i] === val) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
addEventListener("DOMContentLoaded", e => {
|
|
var topLevelUrl = getTopLevelUrl().split("/")[2];
|
|
const allowedURLs = ["i-eat.rocks", "possiblyaxolotl.itch.io", "127.00.1:5500"];
|
|
|
|
if (inList(allowedURLs, topLevelUrl) == false) {
|
|
const divs = document.querySelectorAll("div");
|
|
divs.forEach(div => {
|
|
div.remove();
|
|
});
|
|
|
|
createWindow('apps/piracy.html', 'wuh oh!', '350px', '330px');
|
|
} else {
|
|
createWindow('apps/welcome.html', 'welcome', '350px', '550px');
|
|
}
|
|
})
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html> |