2024-08-15 04:38:56 +00:00
|
|
|
<!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>
|
|
|
|
|
2024-08-15 06:26:51 +00:00
|
|
|
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
|
|
|
|
2024-08-16 05:45:22 +00:00
|
|
|
<link rel="stylesheet" href="style.css?v=3">
|
2024-08-15 04:38:56 +00:00
|
|
|
|
2024-08-16 05:45:22 +00:00
|
|
|
<script src="drag.js?v=4" defer></script>
|
|
|
|
<script src="commands.js?v=2" defer></script>
|
2024-08-15 22:09:42 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-08-16 05:45:22 +00:00
|
|
|
<div class="icons">
|
2024-08-17 02:40:22 +00:00
|
|
|
<div class="app" ondblclick="createWindow('apps/welcome.html', 'welcome', '350px', '550px')">
|
2024-08-16 05:45:22 +00:00
|
|
|
<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')">
|
2024-08-16 20:45:56 +00:00
|
|
|
<p><img src="images/icons/music.svg" width="48px" height="48px" /><sub>rock music</sub></p>
|
2024-08-16 05:45:22 +00:00
|
|
|
</div>
|
2024-08-16 20:45:56 +00:00
|
|
|
<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>
|
2024-08-17 02:40:00 +00:00
|
|
|
<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>
|
2024-08-16 20:45:56 +00:00
|
|
|
<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>
|
2024-08-16 05:45:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="icons">
|
2024-08-16 20:45:56 +00:00
|
|
|
<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>
|
2024-08-16 06:08:05 +00:00
|
|
|
</div>
|
2024-08-16 05:45:22 +00:00
|
|
|
<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>
|
2024-08-16 20:45:56 +00:00
|
|
|
<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>
|
2024-08-16 05:45:22 +00:00
|
|
|
</div>
|
2024-08-15 04:38:56 +00:00
|
|
|
|
2024-08-18 03:17:43 +00:00
|
|
|
<nav></nav>
|
|
|
|
|
2024-08-16 02:26:40 +00:00
|
|
|
<script defer>
|
2024-08-18 03:45:35 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2024-08-16 02:26:40 +00:00
|
|
|
addEventListener("DOMContentLoaded", e => {
|
2024-08-18 03:45:35 +00:00
|
|
|
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');
|
|
|
|
}
|
2024-08-16 02:26:40 +00:00
|
|
|
})
|
2024-08-18 03:17:43 +00:00
|
|
|
|
2024-08-18 03:45:35 +00:00
|
|
|
|
2024-08-16 02:26:40 +00:00
|
|
|
</script>
|
2024-08-15 04:38:56 +00:00
|
|
|
</body>
|
|
|
|
</html>
|