Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start [2024/12/06 15:57] – kymki | start [2025/04/15 10:24] (current) – kymki | ||
---|---|---|---|
Line 5: | Line 5: | ||
<p> | <p> | ||
Welcome to my < | Welcome to my < | ||
- | | + | |
The site is meant to serve as both a personal archive and a way to share my work with collaborators and visitors like you. < | The site is meant to serve as both a personal archive and a way to share my work with collaborators and visitors like you. < | ||
It’s built with simplicity and functionality in mind.< | It’s built with simplicity and functionality in mind.< | ||
+ | For your own safety, use the Ramble Meter as an indicator of the state of the information in a post.< | ||
+ | In the < | ||
</p> | </p> | ||
</ | </ | ||
- | </ | ||
- | |||
- | < | ||
- | < | ||
- | <meta charset=" | ||
- | <meta name=" | ||
- | < | ||
- | < | ||
- | /* Container for the entire Ramble Meter */ | ||
- | .ramble-meter-container { | ||
- | display: flex; | ||
- | align-items: | ||
- | justify-content: | ||
- | margin: 20px auto; | ||
- | width: 500px; /* Adjust for layout */ | ||
- | font-family: | ||
- | } | ||
- | |||
- | /* Ramble Meter wrapper */ | ||
- | .ramble-meter-wrapper { | ||
- | display: flex; | ||
- | flex-direction: | ||
- | align-items: | ||
- | } | ||
- | |||
- | /* Ramble Meter */ | ||
- | .ramble-meter { | ||
- | position: relative; | ||
- | width: 200px; /* Scaled down */ | ||
- | height: 40px; | ||
- | background: linear-gradient(to right, green, yellow, orange, red); | ||
- | border-radius: | ||
- | overflow: hidden; | ||
- | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); | ||
- | margin-bottom: | ||
- | } | ||
- | |||
- | /* Needle */ | ||
- | .needle { | ||
- | position: absolute; | ||
- | top: 5px; /* Adjust for centering */ | ||
- | left: 50%; /* Default position */ | ||
- | width: 4px; /* Visible width */ | ||
- | height: 30px; | ||
- | background: black; | ||
- | border-radius: | ||
- | z-index: 2; | ||
- | box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Glow effect */ | ||
- | } | ||
- | |||
- | /* Label in the middle of the meter */ | ||
- | .meter-label { | ||
- | position: absolute; | ||
- | top: 50%; | ||
- | left: 50%; | ||
- | transform: translate(-50%, | ||
- | font-size: 12px; | ||
- | font-weight: | ||
- | color: #fff; | ||
- | text-shadow: | ||
- | z-index: 3; | ||
- | } | ||
- | |||
- | /* Scale below the meter */ | ||
- | .scale { | ||
- | display: flex; | ||
- | justify-content: | ||
- | width: 100%; | ||
- | font-size: 10px; | ||
- | color: white; | ||
- | margin-top: 5px; | ||
- | } | ||
- | |||
- | /* Message box */ | ||
- | .message-box { | ||
- | background: #333; | ||
- | color: #fff; | ||
- | font-size: 12px; | ||
- | padding: 10px; | ||
- | border-radius: | ||
- | width: 200px; | ||
- | text-align: center; | ||
- | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); | ||
- | } | ||
- | |||
- | /* Scale text styling */ | ||
- | .scale-text { | ||
- | margin-top: 5px; | ||
- | font-size: 12px; | ||
- | color: white; | ||
- | text-align: center; | ||
- | } | ||
- | </ | ||
- | < | ||
- | document.addEventListener(" | ||
- | const needle = document.querySelector(" | ||
- | const rambleMeter = document.querySelector(" | ||
- | const level = rambleMeter.getAttribute(" | ||
- | needle.style.left = `${Math.min(Math.max(level, | ||
- | }); | ||
- | </ | ||
- | </ | ||
- | < | ||
- | <div class=" | ||
- | <!-- Ramble Meter --> | ||
- | <div class=" | ||
- | <div class=" | ||
- | <div class=" | ||
- | <div class=" | ||
- | </ | ||
- | <!-- Scale --> | ||
- | <div class=" | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | <!-- Scale text --> | ||
- | <div class=" | ||
- | </ | ||
- | <!-- Message Box --> | ||
- | <div class=" | ||
- | Warning: The ramble level is high! 🗣️ <br> | ||
- | Adjust focus to reduce ramble! | ||
- | </ | ||
- | </ | ||
- | </ | ||
</ | </ | ||