Compare

d2888aee101d3d709aa6ac5555fce77377a4f144 .. 373ad68600de9d1a438d7ef7ea2a999a95dfbaeb · 1 commits

Changed files

FileChanges
css/cursor.gif binary raw
css/main.css +6 −0 raw
index.bak +206 −0 raw
index.html +34 −0 raw

Commits

HashSubjectAuthorDate
373ad686 added cursor trail courtesy chatgpt Ryan Schanzenbacher
diff --git a/css/cursor.gif b/css/cursor.gif
new file mode 100644
index 0000000..f1247cf
Binary files /dev/null and b/css/cursor.gif differ
diff --git a/css/main.css b/css/main.css
index 22aee34..c37c0fa 100644
--- a/css/main.css
+++ b/css/main.css
@@ -4,12 +4,18 @@
font-display: swap;
}
+.trail {
+ position: absolute;
+ z-index: 9999;
+}
+
body {
font-family: 'Comic';
color: yellow;
font-size: 20px;
margin: 0;
padding: 0;
+ overflow-x: hidden;
}
#overview {
min-width: min-content;
diff --git a/index.bak b/index.bak
new file mode 100644
index 0000000..833f4d4
--- /dev/null
+++ b/index.bak
@@ -0,0 +1,206 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <meta charset="utf-8" />
+ <title>The Second Fire Station of Henrietta, NY</title>
+ <meta
+ name="keywords"
+ content="student, housing, on-campus, student housing, apex, apex apartments, apartments, rochester, ny, new york, RIT, RIT housing, RIT student housing, off campus housing"
+ />
+ <meta name="robots" content="index, nofollow" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="language" content="English" />
+ <meta name="revisit-after" content="5 days" />
+ <link rel="stylesheet" href="./css/main.css" />
+ </head>
+
+ <body>
+ <div><div><div id="mainBod">
+ <div id="content">
+ <div class="container">
+ <div id="overview">
+ <div class="navctr">
+ <ul class="nav">
+ <li>
+ <a class="nav-link"
+ href="https://www.rochesterapex.com/">
+ Eye candy
+ </a>
+ </li>
+
+ <li>
+ <a class="nav-link"
+ href="https://discord.gg/hERdQvH">
+ <img src="index_files/new.gif" class="nav-img" />
+ Shout into the void
+ </a>
+ </li>
+
+ <li>
+ <a class="nav-link"
+ href="https://rochesterapex.com/alarms">
+ <img src="index_files/hot.gif" class="nav-img" />
+ Timestamps of agony
+ </a>
+ </li>
+ <li>
+ <a class="nav-link"
+ href="https://rochesterapex.com/testimonial">
+ Submit a "review"
+ </a>
+ </li>
+ </ul>
+ </div>
+ </div>
+
+ <div class="addBanner">Ad Banner</div>
+ <img
+ src="index_files/apex1.gif"
+ style="margin-left: auto; margin-right: auto; display: block"
+ />
+ <img src="index_files/firebar.gif" style="width: 100%; height: 50px" />
+ <div style="margin-left: auto; margin-right: auto; width: 400px">
+ <img src="index_files/firealarm2.gif" />
+ <img src="index_files/firealarm2.gif" />
+ <img src="index_files/firealarm2.gif" />
+ <img src="index_files/firealarm2.gif" />
+ </div>
+ <blink>
+ <marquee class="apexAlert">
+ Rochester's premier housing for desperate rich students with no
+ hopes, dreams, options, or cooking skills.
+ </marquee>
+ </blink>
+ <blink>
+ <marquee>
+ <a href="index_files/apex_moment.jpg"
+ class="apexAlert">
+ Now with 100% more parking lot fires!
+ </a>
+ </marquee>
+ </blink
+ >
+ <div style="margin-left: auto; margin-right: auto; white-space: nowrap">
+ <img
+ src="index_files/firetruck-ani.gif"
+ style="transform: scaleX(-1)"
+ />
+ <img src="index_files/helmetline.gif" />
+ <img src="index_files/firetruck-ani.gif"/>
+ </div>
+ </div>
+ </div>
+ <a href="https://rochesterapex.com/mj66t">
+ <img src="index_files/buttons/dontklick.gif" />
+ </a>
+ <img src="index_files/buttons/moist.gif" />
+ <img src="index_files/buttons/netscapenow40.gif" />
+ <a href="./arch.html">
+ <img src="index_files/buttons/archlinux.gif" />
+ </a>
+ <img src="index_files/buttons/gnu-linux.gif" />
+ <img src="index_files/buttons/mswin98_89.gif" />
+ <img src="index_files/buttons/macmade-blkwtbrdrspin.gif" />
+ <img src="index_files/buttons/hatemac_b.gif"/>
+ <img src="index_files/buttons/vim.vialle.love.anim.gif" />
+ <img src="index_files/buttons/madewithamiga2.gif" />
+ <img src="index_files/buttons/shockwave.gif" />
+ <img src="index_files/buttons/graphicdesign.gif" />
+ <img src="index_files/buttons/nedscape_now.gif" />
+ <img src="index_files/buttons/netscape5.gif" />
+ <details id="eyes">
+ <summary>
+ <img src="index_files/buttons/best_viewed_with_eyes.gif" />
+ </summary>
+ <div id="no_eyes"></div>
+ </details>
+ <img src="index_files/buttons/bestviewed16bit.gif" style="cursor: pointer;" onclick="document.documentElement.classList.toggle('dither')" />
+ <img src="index_files/buttons/wow.gif" />
+ <a href="https://validator.w3.org/nu/?doc=https%3A%2F%2Frochesterapex.com">
+ <img src="index_files/buttons/valid-bad.gif" />
+ </a>
+ <a href="https://rochesterapex.com/source">
+ <img src="index_files/buttons/gethtmlnow.gif"/>
+ </a>
+ <input type="checkbox" id="yeah-toggle" style="display: none;">
+ <label for="yeah-toggle" id="yeah">
+ <div id="yeah-off">Yeah!</div>
+ <div id="yeah-on">Unyeah</div>
+ </label>
+ </div></div></div>
+ <!-- <script>
+ /* oohhh icky javascript gross. But cursor trail oohhhh */
+ var cursor = "/css/cursor.gif"
+ var trailLength = 12
+
+ function initTrail() {
+ imgs = new Array()
+ for (i=0; i < parseInt(trailLength); i++) {
+ imgs[i] = new Image()
+ imgs[i].src = cursor
+ }
+ coords = new Array()
+ for (i=0; i < imgs.length*3; i++) {
+ coords[i] = 0;
+ }
+ for (i=0; i<imgs.len; i++) {
+ var div = document.createElement("div")
+ div.id = "cur" + i
+ div.style.position = "absolute"
+ div.style.zIndex = "9999"
+ div.style.height = "0"
+ div.style.width = "0"
+ var img = document.createElement("img")
+ img.src = imgs[i].src
+ div.appendChild(img)
+ document.body.appendChild(div)
+ }
+ trail()
+ }
+ function trail() {
+ var d = 0
+ for (i=0; i < imgs.length; i++) {
+ document.getElementById("cur"+i).style.top = coords[d]+'px'
+ document.getElementById("cur"+i).style.left = + coords[d+1]+'px'
+ d = d+2
+ }
+ for (i = coords.length; i >= 2; i--) {
+ storage[i] = storage[i-2]
+ }
+ var timer = setTimeout("trail()", 10)
+ }
+ function processEvent(e){
+ coords[0] = e.pageY
+ coords[1] = e.pageX
+ }
+ initTrail()
+ document.onmousemove = processEvent
+ </script> -->
+ <script>
+ var trailLength = 30;
+var path = [];
+
+function createMouseTrail() {
+ for (var i = 0; i < trailLength; i++) {
+ var div = document.createElement('div');
+ div.setAttribute('class', 'trail');
+ div.style.top = '-200px';
+ div.style.left = '-200px';
+ document.body.appendChild(div);
+ path.push(div);
+ }
+}
+
+function moveTrail(e) {
+ for (var i = 0; i < path.length; i++) {
+ path[i].style.top = (e.clientY + i) + 'px';
+ path[i].style.left = (e.clientX + i) + 'px';
+ }
+}
+
+document.addEventListener('mousemove', moveTrail);
+createMouseTrail();
+ </script>
+ </body>
+</html>
diff --git a/index.html b/index.html
index 53b2c2a..949b29e 100644
--- a/index.html
+++ b/index.html
@@ -129,5 +129,39 @@
<div id="yeah-on">Unyeah</div>
</label>
</div></div></div>
+ <script>
+ var trailLength = 12;
+ var path = [];
+ var delay = 100;
+ var lastX = 0;
+ var lastY = 0;
+
+ function createMouseTrail() {
+ for (var i = 0; i < trailLength; i++) {
+ var div = document.createElement('div');
+ div.setAttribute('class', 'trail');
+ div.style.top = '-200px';
+ div.style.left = '-200px';
+ div.style.backgroundImage = 'url(/css/cursor.gif)';
+ div.style.backgroundSize = 'cover';
+ div.style.width = '11px';
+ div.style.height = '19px';
+ document.body.appendChild(div);
+ path.push(div);
+ }
+ }
+
+ function moveTrail(e) {
+ for (let i = 0; i < path.length; i++) {
+ setTimeout(function() {
+ path[i].style.top = (e.clientY) + 'px';
+ path[i].style.left = (e.clientX) + 'px';
+ }, i * delay);
+ }
+}
+
+ document.addEventListener('mousemove', moveTrail);
+ createMouseTrail();
+ </script>
</body>
</html>