bgpicciano.com/contact.html

83 lines
2.0 KiB
HTML
Raw Normal View History

2022-03-16 03:34:16 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs -->
<meta charset="utf-8">
<title>Brian Picciano - Freelance Developer</title>
<meta name="author" content="Brian Picciano">
<!-- No favicon -->
<link rel="shortcut icon" href="#" />
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="header">
<div class="tab"><a href="index.html">/resume</a></div><!--
2022-11-03 17:16:15 +00:00
--><div class="selected tab">/contact</div>
2022-03-16 03:34:16 +00:00
<div class="x">X</div>
</div>
<div class="container">
<h1>Contact Me</h1>
<p>
Please direct all questions and inquiries to:
2023-08-23 15:43:06 +00:00
<a href="mailto:me@mediocregopher.com"/>me@mediocregopher.com</a>
</p>
2022-03-16 03:34:16 +00:00
</div>
<div class="footer">
<div class="scrollpos" id="scrollpos">---</div>
</div>
<script>
function getScrollPct() {
const heightOfWindow = window.innerHeight,
contentScrolled = window.pageYOffset,
bodyHeight = document.body.offsetHeight;
if(bodyHeight - contentScrolled <= heightOfWindow) {
return "Bot";
} else if (contentScrolled == 0) {
return "Top";
} else {
const total = bodyHeight - heightOfWindow,
got = contentScrolled,
percent = parseInt((got/total) * 100);
return percent + "%"
}
}
const scrollposEl = document.getElementById("scrollpos");
scrollposEl.textContent = getScrollPct();
window.addEventListener("scroll", (event) => {
scrollposEl.textContent = getScrollPct();
});
</script>
</body>
</html>