Sanctuary OS - Console Idle Screen
About this app
Experience the Sanctuary OS, a console idling on its menu without a disc inserted, featuring interactive and colorful visual effects.
Sanctuary OS - Console Idle Screen Sanctuary OS
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Sanctuary OS - Console Idle Screen</title>
<meta name="description" content="Experience the Sanctuary OS, a console idling on its menu without a disc inserted, featuring interactive and colorful visual effects.">
<meta name="keywords" content="Sanctuary OS, console, idle screen,menu, colorful, visual effects">
<!-- Libraries -->
<!-- jQuery (3.6.0) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS (5.3.3) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<!-- Bootstrap JS (5.3.3) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous">
</script>
<!-- Font Awesome (6.6.0) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
let menuItems = ["Play", "Settings", "Gallery", "Exit"];
let currentItem = 0;
function displayMenu() {
$("#menu").empty();
menuItems.forEach((item, index) => {
let listItem = $("<li></li>").text(item).addClass("menu-item");
if (index === currentItem) {
listItem.addClass("active");
}
$("#menu").append(listItem);
});
}
function navigateMenu(e) {
if (e.key === "ArrowDown") {
currentItem = (currentItem + 1) % menuItems.length;
} else if (e.key === "ArrowUp") {
currentItem = (currentItem - 1 + menuItems.length) % menuItems.length;
}
displayMenu();
}
document.addEventListener("DOMContentLoaded", function() {
displayMenu();
document.addEventListener("keydown", navigateMenu);
$("body").css("background-color", "#0d1b2a");
setInterval(() => {
let randomRed = Math.floor(Math.random() * 256);
let randomGreen = Math.floor(Math.random() * 256);
let randomBlue = Math.floor(Math.random() * 256);
$("body").css("background-color", `rgb(${randomRed}, ${randomGreen}, ${randomBlue})`);
}, 3000);
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
body {
font-family: 'Courier New', Monospace;
color: #f2f2f2;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
transition: background-color 0.5s;
}
h1 {
font-size: 3rem;
text-align: center;
}
ul {
list-style: none;
padding: 0;
text-align: left;
}
.menu-item {
font-size: 1.5rem;
padding: 10px;
cursor: pointer;
transition: background 0.3s;
border-radius: 5px;
}
.menu-item:hover {
background: rgba(255, 255, 255, 0.1);
}
.active {
background: rgba(0, 255, 0, 0.4);
color: black;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Sanctuary OS</h1>
<ul id="menu"></ul>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!