Compare

373ad68600de9d1a438d7ef7ea2a999a95dfbaebmain · 4 commits

merge base 373ad68600de…

Changed files

FileChanges
css/main.css +1 −0 raw
index.bak +0 −206 raw
index.html +15 −7 raw

Commits

HashSubjectAuthorDate
74fe1808 it seems as though i had the skill issue all along Ryan Schanzenbacher
06351d7c cursor trail fix Ryan Schanzenbacher
f74c01ef Delete index.bak Ryan Schanzenbacher
06fcaba5 chatgpt fixed bug Ryan Schanzenbacher
diff --git a/css/main.css b/css/main.css
index c37c0fa..8e67332 100644
--- a/css/main.css
+++ b/css/main.css
@@ -7,6 +7,7 @@
.trail {
position: absolute;
z-index: 9999;
+ pointer-events: none;
}
body {
diff --git a/index.bak b/index.bak
deleted file mode 100644
index 833f4d4..0000000
--- a/index.bak
+++ /dev/null
@@ -1,206 +0,0 @@
-<!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 949b29e..2eda64d 100644
--- a/index.html
+++ b/index.html
@@ -151,14 +151,22 @@
}
}
+ var lastX = 0;
+ var lastY = 0;
+
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);
- }
-}
+ if (lastX !== e.pageX || lastY !== e.pageY) {
+ for (let i = 0; i < path.length; i++) {
+ setTimeout(function() {
+ path[i].style.top = (e.pageY) + 'px';
+ path[i].style.left = (e.pageX) + 'px';
+ }, i * delay);
+ }
+ }
+
+ lastX = e.pageX;
+ lastY = e.pageY;
+ }
document.addEventListener('mousemove', moveTrail);
createMouseTrail();