Skip to content

Commit

Permalink
initial project
Browse files Browse the repository at this point in the history
  • Loading branch information
creatoxx authored Jan 11, 2024
1 parent 473e29a commit a2baf5f
Show file tree
Hide file tree
Showing 6 changed files with 417 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Radio/Data/Scripts/PreventDefault.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
document.addEventListener("keydown", function (event) {
if (event.key === 'F11') {
event.preventDefault();
} else if (event.key === 'F1' ||/* event.key === 'F3' ||*/ event.key === 'F6' || event.key === 'F7' || event.key === 'F10') {
event.preventDefault();
}
});

document.addEventListener("wheel", function(event) {
if (event.ctrlKey) {
event.preventDefault();
}
}, { passive: false });
56 changes: 56 additions & 0 deletions Radio/Data/StarAnimation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style>

body {
margin: 0;
overflow: hidden;
background-color: rgb(0, 0, 255, 0.03);
}

.star {
position: absolute;
width: 2px;
height: 2px;
animation: twinkle 7s infinite;
background-color: white;
border-radius: 50%;
}

@keyframes twinkle {
0%, 100% {
opacity: 1;
}
20%, 80% {
opacity: 0;
}
}

</style>
</head>
<body>

<script src="Scripts/PreventDefault.js"></script>

<script>

for (let i = 0; i < 2000; i++) {
createStar();
}

function createStar() {
const star = document.createElement('div');
star.className = 'star';
star.style.animationDelay = `${Math.random() * 7}s`;
star.style.left = `${Math.random() * 100}vw`;
star.style.top = `${Math.random() * 100}vh`;
document.body.appendChild(star);
}

</script>
</body>
</html>
Binary file added Radio/Data/Textures/Background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Radio/Data/Textures/Icons/SVG/StarfieldIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Radio/Data/Textures/StarfieldBanner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a2baf5f

Please sign in to comment.