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:32] – 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> | ||
| Line 14: | Line 16: | ||
| </ | </ | ||
| - | < | ||
| - | < | ||
| - | <meta charset=" | ||
| - | <meta name=" | ||
| - | < | ||
| - | < | ||
| - | /* Label for the ramble meter */ | ||
| - | .ramble-label { | ||
| - | text-align: center; | ||
| - | font-family: | ||
| - | font-size: 18px; | ||
| - | font-weight: | ||
| - | margin-bottom: | ||
| - | color: #333; | ||
| - | } | ||
| - | /* Container for the gauge */ | ||
| - | .ramble-meter-container { | ||
| - | display: flex; | ||
| - | align-items: | ||
| - | flex-direction: | ||
| - | justify-content: | ||
| - | margin: 20px 0; | ||
| - | } | ||
| - | |||
| - | /* The gauge itself */ | ||
| - | .ramble-meter { | ||
| - | position: relative; | ||
| - | width: 300px; | ||
| - | 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); | ||
| - | } | ||
| - | |||
| - | /* The needle */ | ||
| - | .needle { | ||
| - | position: absolute; | ||
| - | top: -5px; | ||
| - | left: 50%; /* Default position */ | ||
| - | width: 4px; | ||
| - | height: 50px; | ||
| - | background: black; | ||
| - | transform-origin: | ||
| - | z-index: 2; | ||
| - | } | ||
| - | |||
| - | /* Tooltip styling */ | ||
| - | .tooltip { | ||
| - | visibility: hidden; | ||
| - | width: 250px; | ||
| - | background-color: | ||
| - | color: #fff; | ||
| - | text-align: center; | ||
| - | padding: 10px; | ||
| - | border-radius: | ||
| - | position: absolute; | ||
| - | top: -60px; | ||
| - | left: 50%; | ||
| - | transform: translateX(-50%); | ||
| - | font-size: 12px; | ||
| - | z-index: 10; | ||
| - | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); | ||
| - | } | ||
| - | |||
| - | /* Show tooltip on hover */ | ||
| - | .ramble-meter-container: | ||
| - | visibility: visible; | ||
| - | } | ||
| - | </ | ||
| - | < | ||
| - | document.addEventListener(" | ||
| - | const needle = document.querySelector(" | ||
| - | const rambleMeter = document.querySelector(" | ||
| - | const level = rambleMeter.getAttribute(" | ||
| - | needle.style.left = `${Math.min(Math.max(level, | ||
| - | }); | ||
| - | </ | ||
| - | </ | ||
| - | < | ||
| - | <!-- Label --> | ||
| - | <div class=" | ||
| - | |||
| - | <!-- Ramble Meter --> | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | <div class=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||