Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
wrath121803 authored Mar 12, 2024
0 parents commit 4675639
Show file tree
Hide file tree
Showing 15 changed files with 402 additions and 0 deletions.
90 changes: 90 additions & 0 deletions AMOGUS.CSS
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
@font-face {
font-family: Grizzly;
src: url(AMOGUS.ttf);
}

html, body {
margin: 0;
padding: 0;
overflow: hidden;
cursor: url(AMOGUS.cur), auto;
}

body {
height: 100vh;
width: 100vw;
font-family: Grizzly;
font-size: 2vmin;
background-color: #000000;
}

audio {
position: absolute;
width: 50px;
}

button {
display: none;
position: absolute;
padding: 1vmin 2vmin;
min-width: 30vmin;
max-width: 30vmin;
cursor: url(AMOGUS.cur), auto;

background-color: #FF0000;
border: dashed;
color: white;

text-align: center;
text-decoration: none;
font-family: Grizzly;
font-size: 4vmin;
}

.beginning {
text-align: center;
color: #FFFFFF;
}

.fill {
position: absolute;
min-width: 100%;
min-height: 100%;
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: fill;
}

.amongiygas {
background-image: url("AMOGUS.png");
background-repeat: repeat;
}

.ruined {
text-align: center;
font-size: 2.5vmin;
font-weight: 900;
position: fixed;
left: 50%;
top: 50%;
}

.sus {
position: absolute;
width: 50vmin;
}

.sus-text {
position: absolute;
font-family: 'Times New Roman';
font-size: 10vmin;
font-weight: 400;
color: #000000;
text-shadow: -2px -2px 2px rgb(140, 60, 60), 2px 2px 2px rgb(140, 60, 60);
}

.hidden-audio {
display: none;
}
143 changes: 143 additions & 0 deletions AMOGUS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
var i = 0, opacity = 50, susOpacity = 0, hideAudio, beginning, clickedBeginning, audio, video, amongiygas, sus, susText, susImage, dotTimer, tooManyDots, susImages = [
"SUS1.jpg", "SUS2.png", "SUS3.png", "SUS4.png", "SUS5.png", "SUS6.png", "SUS7.png", "SUS8.png",
"SUS9.png", "SUS10.png", "SUS11.png", "SUS12.jpg", "SUS13.jpg", "SUS14.png", "SUS15.png", "SUS16.jpg",
"SUS17.jpg", "SUS18.png", "SUS19.png", "SUS20.png", "SUS21.png", "SUS22.png", "SUS23.jpg", "SUS24.png"
];

window.addEventListener('load', () => {
beginning = document.getElementsByClassName("beginning")[0];
audio = document.getElementById("audio");
video = document.getElementById("video");
amongiygas = document.getElementsByClassName("amongiygas")[0];
sus = document.getElementsByClassName("sus");
susText = document.getElementsByClassName("sus-text");
susImage = document.getElementById("sus-image");

dotTimer = setInterval(function() {
if (beginning.innerHTML.length == 10) {
tooManyDots = true;
beginning.innerHTML = "";
}
beginning.innerHTML += tooManyDots ? '\u2B24' : '.';
}, 500);

setTimeout(function() {
document.onmousemove = moveAudio;
document.onmouseup = moveAudio;
}, 1500);

setInterval(function() {
if (tooManyDots)
beginning.style.transform = "translate(0%, " + (Math.random() * 50 - 25) + "%)";
if (!hideAudio)
return;

document.title = zalgo.generate("FLOYD");
let intensity = (Math.sin(i * 4 / 360) / 2 + .5) * 100, intensity_p = (Math.sin(i * 4 / 360 + 45) / 2 + .5) * 150;
amongiygas.style.filter = "saturate(" + (intensity / 2 + 50) + "%) contrast(" + (intensity / 2 + 100) + "%) brightness(" + (intensity_p + 100) + "%)";
amongiygas.style.backgroundSize = ((Math.sin(i * 2 / 360) / 2 + .5) * 80 + 20) + "vmin " + ((Math.cos(i * 2 / 360) / 2 + .5) * 80 + 20) + "vmin";
amongiygas.style.backgroundPosition = (Math.sin(i * 4 / 360) * 500 + 500) + "% " + (Math.cos(i * 4 / 360) * 500 + 500) + "%";

let text = document.getElementsByClassName("ruined")[0];
text.style.transform = "translate(" + -(Math.random() * 2 + 49) + "%, " + -(Math.random() * 2 + 49) + "%)";

let lum = Math.round(Math.random() * 0x7F + 0x80), rgb = "rgb(255, " + lum + ", " + lum + ")";
text.style.color = rgb;

let shadow = "0px 0px 8px rgb(0, 0, 0)";
rgb = "rgb(95, " + lum * 0.375 + ", " + lum * 0.375 + ")";
text.style.textShadow = "2px 2px " + rgb + ", -2px -2px " + rgb + ", " + shadow;

for (let j = 0; j < sus.length; j++) {
if (!(i % 32)) {
sus[j].style.left = (Math.random() * (document.body.clientWidth - sus[j].offsetWidth)) + "px";
sus[j].style.top = (Math.random() * (document.body.clientHeight - sus[j].offsetHeight)) + "px";
} else {
const rect = sus[j].getBoundingClientRect();
sus[j].style.left = (Math.random() * 60 - 30 + rect.left) + "px";
sus[j].style.top = (Math.random() * 60 - 30 + rect.top) + "px";
}
}

for (let j = 0; j < susText.length; j++) {
susText[j].innerHTML = zalgo.generate("Floyd!") + ' ' + String.fromCodePoint(0x1F633);
if (!((i + 8) % 64)) {
const rect = susText[j].getBoundingClientRect();
susText[j].style.left = (Math.random() * (document.body.clientWidth - susText[j].offsetWidth)) + "px";
susText[j].style.top = (Math.random() * (document.body.clientHeight - susText[j].offsetHeight)) + "px";
susText[j].style.fontSize = (Math.random() * 18 + 2) + "vmin";
}
}

opacity = Math.abs(opacity + Math.random() * 8 - 4);
video.style.filter = "opacity(" + opacity + "%)";
while (opacity > 90)
opacity -= Math.random();

if (!(i % Math.round(Math.random() * 50 + 250))) {
susImage.onload = function() { susOpacity = 1; };
susImage.src = susImages[Math.round(Math.random() * (susImages.length - 1))];
}
susImage.style.opacity = susOpacity;
if (susOpacity > 0)
susOpacity -= .01;
if (susOpacity < 0)
susOpacity = 0;
i++;
}, 10);
});

function playSus() {
let _audio = new Audio("AMOGUS.mp3");
_audio.loop = true;
_audio.play();
video.play();

audio.style.display = "none";
hideAudio = true;

let beginning = document.getElementsByClassName("beginning")[0];
beginning.style.display = "none";

let elements = document.getElementsByClassName("hidden-audio");
for (let j = 0; j < elements.length; j++)
elements[j].style.display = "inherit";
}

function moveAudio(e) {
if (hideAudio)
return;
tooManyDots = false;
if (dotTimer != 0) {
clearInterval(dotTimer);
dotTimer = 0;
}

if (audio.style.display != "inherit") {
audio.style.display = "inherit";
beginning.innerHTML = "click it."
}

if (e.type == "mousemove") {
let x = (window.Event) ? e.pageX : event.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft),
y = (window.Event) ? e.pageY : event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
audio.style.left = (x - audio.offsetWidth / 2) + "px";
audio.style.top = (y - audio.offsetHeight / 2) + "px";
} else if (!clickedBeginning) {
clickedBeginning = true;
audio.style.left = (document.body.clientWidth / 2 - audio.offsetWidth / 2) + "px";
audio.style.top = (document.body.clientHeight / 2 - audio.offsetHeight / 2) + "px";
}
}

function vh(v) {
return (v * Math.max(document.documentElement.clientHeight, window.innerHeight || 0)) / 100;
}

function vw(v) {
return (v * Math.max(document.documentElement.clientWidth, window.innerWidth || 0)) / 100;
}

function vmin(v) {
return Math.min(vh(v), vw(v));
}
Binary file added AMOGUS.mp3
Binary file not shown.
Binary file added AMOGUS.png
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 AMOGUS.ttf
Binary file not shown.
Binary file added AMOGUS1.ttf
Binary file not shown.
Binary file added SUS.mp4
Binary file not shown.
Binary file added SUS13.jpg
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 SUS14.png
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 SUS2.png
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 SUS3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
135 changes: 135 additions & 0 deletions ZALGO.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
var zalgo = {
chars: {
0 : [ /* up */
'\u030d', /* ̍ */
'\u030e', /* ÌŽ */
'\u0304', /* Ì„ */
'\u0305', /* Ì… */
'\u033f', /* Ì¿ */
'\u0311', /* Ì‘ */
'\u0306', /* ̆ */
'\u0310', /* ̐ */
'\u0352', /* Í’ */
'\u0357', /* Í— */
'\u0351', /* Í‘ */
'\u0307', /* ̇ */
'\u0308', /* ̈ */
'\u030a', /* ÌŠ */
'\u0342', /* Í‚ */
'\u0343', /* Ì“ */
'\u0344', /* ̈́ */
'\u034a', /* ÍŠ */
'\u034b', /* Í‹ */
'\u034c', /* ͌ */
'\u0303', /* ̃ */
'\u0302', /* Ì‚ */
'\u030c', /* ̌ */
'\u0350', /* ͐ */
'\u0300', /* ̀ */
'\u0301', /* ́ */
'\u030b', /* Ì‹ */
'\u030f', /* ̏ */
'\u0312', /* Ì’ */
'\u0313', /* Ì“ */
'\u0314', /* Ì” */
'\u033d', /* ̽ */
'\u0309', /* ̉ */
'\u0363', /* ͣ */
'\u0364', /* ͤ */
'\u0365', /* ͥ */
'\u0366', /* ͦ */
'\u0367', /* ͧ */
'\u0368', /* ͨ */
'\u0369', /* Í© */
'\u036a', /* ͪ */
'\u036b', /* Í« */
'\u036c', /* ͬ */
'\u036d', /* Í­ */
'\u036e', /* Í® */
'\u036f', /* ͯ */
'\u033e', /* ̾ */
'\u035b', /* Í› */
'\u0346', /* ͆ */
'\u031a' /* Ìš */
], 1 : [ /* down */
'\u0316', /* Ì– */
'\u0317', /* Ì— */
'\u0318', /* ̘ */
'\u0319', /* Ì™ */
'\u031c', /* ̜ */
'\u031d', /* ̝ */
'\u031e', /* Ìž */
'\u031f', /* ÌŸ */
'\u0320', /* Ì */
'\u0324', /* ̤ */
'\u0325', /* ̥ */
'\u0326', /* ̦ */
'\u0329', /* Ì© */
'\u032a', /* ̪ */
'\u032b', /* Ì« */
'\u032c', /* ̬ */
'\u032d', /* Ì­ */
'\u032e', /* Ì® */
'\u032f', /* ̯ */
'\u0330', /* Ì° */
'\u0331', /* ̱ */
'\u0332', /* ̲ */
'\u0333', /* ̳ */
'\u0339', /* ̹ */
'\u033a', /* ̺ */
'\u033b', /* Ì» */
'\u033c', /* ̼ */
'\u0345', /* Í… */
'\u0347', /* ͇ */
'\u0348', /* ͈ */
'\u0349', /* ͉ */
'\u034d', /* ͍ */
'\u034e', /* ÍŽ */
'\u0353', /* Í“ */
'\u0354', /* Í” */
'\u0355', /* Í• */
'\u0356', /* Í– */
'\u0359', /* Í™ */
'\u035a', /* Íš */
'\u0323' /* ̣ */
], 2 : [ /* mid */
'\u0315', /* Ì• */
'\u031b', /* Ì› */
'\u0340', /* ̀ */
'\u0341', /* ́ */
'\u0358', /* ͘ */
'\u0321', /* Ì¡ */
'\u0322', /* ̢ */
'\u0327', /* ̧ */
'\u0328', /* ̨ */
'\u0334', /* Ì´ */
'\u0335', /* ̵ */
'\u0336', /* ̶ */
'\u034f', /* ͏ */
'\u035c', /* ͜ */
'\u035d', /* ͝ */
'\u035e', /* Íž */
'\u035f', /* ÍŸ */
'\u0360', /* Í */
'\u0362', /* ͢ */
'\u0338', /* ̸ */
'\u0337', /* Ì· */
'\u0361', /* Í¡ */
'\u0489' /* Ò‰_ */
]},
random: function(len) {
if (len == 1) return 0;
return !!len ? Math.floor(Math.random() * len + 1) - 1 : Math.random();
},
generate: function(str) {
var str_arr = str.split(''), output = str_arr.map(function(a) {
if (a == " ") return a;
for (let i = 0, l = zalgo.random(16); i < l; i++){
let rand = zalgo.random(3);
a += zalgo.chars[rand][zalgo.random(zalgo.chars[rand].length)];
}
return a;
});
return output.join('');
}
};
Loading

0 comments on commit 4675639

Please sign in to comment.