Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a4e48cc05 | |||
| 5f5228db90 | |||
| bb2671e031 |
-97
@@ -1,97 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>CoBiE Analog Clock</title>
|
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
<style>
|
|
||||||
body, html {
|
|
||||||
height: 100%;
|
|
||||||
margin: 0;
|
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
|
|
||||||
color: #e0e0e0;
|
|
||||||
}
|
|
||||||
.analog-clock-container {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
#clock {
|
|
||||||
position: relative;
|
|
||||||
width: 80vmin;
|
|
||||||
height: 80vmin;
|
|
||||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
|
||||||
border-radius: 50%;
|
|
||||||
background: radial-gradient(circle at center, #0a0e27 0%, #1a1f3a 100%);
|
|
||||||
box-shadow: 0 0 25px rgba(0, 255, 255, 0.2), inset 0 0 40px rgba(255, 0, 255, 0.2);
|
|
||||||
}
|
|
||||||
#clock::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
width: 1.2em;
|
|
||||||
height: 1.2em;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
background: #ffffff;
|
|
||||||
border-radius: 50%;
|
|
||||||
box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
.marker {
|
|
||||||
position: absolute;
|
|
||||||
width: 2em;
|
|
||||||
height: 2em;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 2em;
|
|
||||||
font-family: 'Courier New', monospace;
|
|
||||||
font-size: 1.1em;
|
|
||||||
color: #ffffff;
|
|
||||||
text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
.hand {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform-origin: bottom;
|
|
||||||
transition: transform 0.5s ease-in-out;
|
|
||||||
border-radius: 2px;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
.hand.xeno {
|
|
||||||
width: 4px;
|
|
||||||
height: 40%;
|
|
||||||
background: #00ffff;
|
|
||||||
box-shadow: 0 0 6px #00ffff;
|
|
||||||
}
|
|
||||||
.hand.quantic {
|
|
||||||
width: 3px;
|
|
||||||
height: 35%;
|
|
||||||
background: #ff00ff;
|
|
||||||
box-shadow: 0 0 6px #ff00ff;
|
|
||||||
}
|
|
||||||
.hand.chronon {
|
|
||||||
width: 2px;
|
|
||||||
height: 30%;
|
|
||||||
background: #ffff00;
|
|
||||||
box-shadow: 0 0 6px #ffff00;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="analog-clock-container">
|
|
||||||
<div id="clock">
|
|
||||||
<div class="hand chronon" id="handChronon"></div>
|
|
||||||
<div class="hand quantic" id="handQuantic"></div>
|
|
||||||
<div class="hand xeno" id="handXeno"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script src="clock.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -950,6 +950,9 @@ function enterEdit() {
|
|||||||
input.style.color = 'inherit';
|
input.style.color = 'inherit';
|
||||||
input.style.textAlign = 'center';
|
input.style.textAlign = 'center';
|
||||||
input.style.width = '12ch';
|
input.style.width = '12ch';
|
||||||
|
// keep the input visually centered like the original span
|
||||||
|
input.style.display = 'block';
|
||||||
|
input.style.margin = '0 auto';
|
||||||
span.replaceWith(input);
|
span.replaceWith(input);
|
||||||
input.focus();
|
input.focus();
|
||||||
input.setSelectionRange(1, val.length);
|
input.setSelectionRange(1, val.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user