This commit is contained in:
zyqunix 2024-11-22 21:48:10 +01:00
parent 464282848a
commit 2f1c6ba41b
10 changed files with 34 additions and 60 deletions

View file

@ -2,6 +2,13 @@
CSS CODE.. I DON'T KNOW WHAT ELSE TO SAY. IT WORKS, BUT COULD BE IMPROVED
*/
@font-face {
font-family: 'Hack';
src: url('https://easyfiles.cc/2024/11/07377006-c12a-461a-b3c6-0d602bac58bf/Hack-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
display: flex;
justify-content: center;
@ -14,7 +21,8 @@ body {
}
* {
font-family: monospace;
font-family: 'Hack', monospace;
font-size: medium;
}
button, p {

BIN
fonts/Hack-Bold.ttf Normal file

Binary file not shown.

BIN
fonts/Hack-BoldItalic.ttf Normal file

Binary file not shown.

BIN
fonts/Hack-Italic.ttf Normal file

Binary file not shown.

BIN
fonts/Hack-Regular.ttf Normal file

Binary file not shown.

View file

@ -3,14 +3,13 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Click Test</title>
<title>Keyboard Test</title>
<meta name="description" content="Keyboard Test Without Any Trackers, Fully Open-Source on GitHub!">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="https://easyfiles.cc/2024/10/bbacd5fc-c1bc-45da-9eb1-9057256cfe23/RFbdMMB.png" type="image/x-icon">
<link rel="shortcut icon" href="https://rimgo.pussthecat.org/RFbdMMB.png" type="image/x-icon">
</head>
<body>
<!-- NOT REALLY A NAVBAR BUT WHATEVER.. I DON'T KOW WHAT ELSE TO CALL IT -->
<div id="navBar" class="navBar">
<a target="_blank" title="Link to my GitHub" id="github" class="github" href="https://github.com/zyqunix/tools" target="_blank" rel="noopener noreferrer">
<svg width="32px" height="32px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#f4f4f4" style="--darkreader-inline-fill: #f4f4f4;" data-darkreader-inline-fill=""><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <title>github [#142]</title><desc>Created with Sketch.</desc><defs> </defs> <g id="Page-1" stroke="none" stroke-width="1" fill="f4f4f4" fill-rule="evenodd" style="--darkreader-inline-stroke: none;" data-darkreader-inline-stroke=""> <g id="Dribbble-Light-Preview" transform="translate(-140.000000, -7559.000000)" fill="#747474" style="--darkreader-inline-fill: #000000;" data-darkreader-inline-fill=""> <g id="icons" transform="translate(56.000000, 160.000000)"> <path d="M94,7399 C99.523,7399 104,7403.59 104,7409.253 C104,7413.782 101.138,7417.624 97.167,7418.981 C96.66,7419.082 96.48,7418.762 96.48,7418.489 C96.48,7418.151 96.492,7417.047 96.492,7415.675 C96.492,7414.719 96.172,7414.095 95.813,7413.777 C98.04,7413.523 100.38,7412.656 100.38,7408.718 C100.38,7407.598 99.992,7406.684 99.35,7405.966 C99.454,7405.707 99.797,7404.664 99.252,7403.252 C99.252,7403.252 98.414,7402.977 96.505,7404.303 C95.706,7404.076 94.85,7403.962 94,7403.958 C93.15,7403.962 92.295,7404.076 91.497,7404.303 C89.586,7402.977 88.746,7403.252 88.746,7403.252 C88.203,7404.664 88.546,7405.707 88.649,7405.966 C88.01,7406.684 87.619,7407.598 87.619,7408.718 C87.619,7412.646 89.954,7413.526 92.175,7413.785 C91.889,7414.041 91.63,7414.493 91.54,7415.156 C90.97,7415.418 89.522,7415.871 88.63,7414.304 C88.63,7414.304 88.101,7413.319 87.097,7413.247 C87.097,7413.247 86.122,7413.234 87.029,7413.87 C87.029,7413.87 87.684,7414.185 88.139,7415.37 C88.139,7415.37 88.726,7417.2 91.508,7416.58 C91.513,7417.437 91.522,7418.245 91.522,7418.489 C91.522,7418.76 91.338,7419.077 90.839,7418.982 C86.865,7417.627 84,7413.783 84,7409.253 C84,7403.59 88.478,7399 94,7399" id="github-[#142]"> </path> </g> </g> </g> </g></svg>
@ -37,7 +36,6 @@
<!-- MAIN CONTAINER/VALUE STUFF -->
<div class="container" id="container">
<h1>Keyboard Tester</h1>
<h3>A minimalist keyboard test without ads or trackers.</h3>
@ -45,7 +43,6 @@
<div class="counter" id="key-counters"></div>
</div>
<!-- MAIN/ONLY JAVASCRIPT -->
<script src="script.js"></script>
</body>
</html>

View file

@ -9,6 +9,13 @@ CSS CODE.. I DON'T KNOW WHAT ELSE TO SAY. IT WORKS, BUT COULD BE IMPROVED
font-style: normal;
}
@font-face {
font-family: 'Hack';
src: url('https://easyfiles.cc/2024/11/07377006-c12a-461a-b3c6-0d602bac58bf/Hack-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
display: flex;
justify-content: center;
@ -21,8 +28,8 @@ body {
}
* {
font-family: monospace;
outline: none;
font-family: 'Hack', monospace;
font-size: medium;
}
button, p {

View file

@ -3,6 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="https://rimgo.pussthecat.org/RFbdMMB.png" type="image/x-icon">
<title>My Awesum Webzite!</title>
<style>
body {

View file

@ -1,51 +0,0 @@
let slideIndex = 0;
let autoScrollTimer;
const media = [
{ type: "image", src: "https://files.catbox.moe/2hhmit.png" },
{ type: "image", src: "https://files.catbox.moe/6706jd.png" },
{ type: "video", src: "https://files.catbox.moe/qyatl9.mp4" }
];
function showSlide(n) {
const container = document.querySelector(".slideshow-container");
container.querySelectorAll(".tool-media").forEach(el => el.remove());
slideIndex = (n + media.length) % media.length;
const currentMedia = media[slideIndex];
let element;
if (currentMedia.type === "image") {
element = document.createElement("img");
element.className = "tool-media";
element.src = currentMedia.src;
} else if (currentMedia.type === "video") {
element = document.createElement("video");
element.className = "tool-media";
element.src = currentMedia.src;
element.autoplay = true;
element.loop = true;
element.muted = true;
}
container.prepend(element);
}
function changeSlide(n) {
showSlide(slideIndex + n);
resetAutoScroll();
}
function resetAutoScroll() {
clearTimeout(autoScrollTimer);
autoScrollTimer = setTimeout(() => changeSlide(1), 11130);
}
function autoScroll() {
autoScrollTimer = setTimeout(() => {
changeSlide(1);
autoScroll();
}, 11130);
}
showSlide(slideIndex);
autoScroll();

View file

@ -1,10 +1,18 @@
@font-face {
font-family: 'Hack';
src: url(fonts/Hack-Regular.ttf) format('truetype');
font-weight: normal;
font-style: normal;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
min-height: 100%;
font-family: monospace;
font-family: 'Hack', monospace;
font-size: small;
background-color: #2a2a2a;
transition: background-color 0.3s, color 0.3s;
color: #f0f0f0;
@ -25,6 +33,9 @@ html {
img {
user-select: none;
perspective: 1000px;
transform-origin: center;
transition: transform 0.1s ease;
}
.topbar {