Spaces:
Sleeping
Sleeping
Upload client.html
Browse files- public/client.html +92 -92
public/client.html
CHANGED
|
@@ -1,92 +1,92 @@
|
|
| 1 |
-
<!doctype html>
|
| 2 |
-
<html>
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset='utf-8'/>
|
| 5 |
-
<title>Stopwatch Client</title>
|
| 6 |
-
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
| 7 |
-
<link rel='stylesheet' href='/style.css'/>
|
| 8 |
-
<style>
|
| 9 |
-
/* Fullscreen, center, extra-large clock */
|
| 10 |
-
html, body { height: 100%; }
|
| 11 |
-
body { margin: 0; background: #0f1115; }
|
| 12 |
-
.container {
|
| 13 |
-
height: 100%;
|
| 14 |
-
width: 100%;
|
| 15 |
-
max-width: none;
|
| 16 |
-
display: grid;
|
| 17 |
-
place-items: center;
|
| 18 |
-
background: radial-gradient(80% 80% at 50% 30%, #12151c 0%, #0f1115 70%);
|
| 19 |
-
border-radius: 0;
|
| 20 |
-
border: none;
|
| 21 |
-
padding: 0;
|
| 22 |
-
box-shadow: none;
|
| 23 |
-
position: relative;
|
| 24 |
-
overflow: hidden;
|
| 25 |
-
}
|
| 26 |
-
.time {
|
| 27 |
-
/* Huge responsive type for a stage screen */
|
| 28 |
-
font-size: clamp(72px, 22vw, 320px);
|
| 29 |
-
line-height: 1;
|
| 30 |
-
letter-spacing: 0.02em;
|
| 31 |
-
text-shadow: 0 0 20px rgba(0,0,0,.35);
|
| 32 |
-
font-variant-numeric: tabular-nums;
|
| 33 |
-
}
|
| 34 |
-
/* Kiosk controls bar */
|
| 35 |
-
.controls {
|
| 36 |
-
position: fixed;
|
| 37 |
-
bottom: 16px;
|
| 38 |
-
left: 50%;
|
| 39 |
-
transform: translateX(-50%);
|
| 40 |
-
display: flex;
|
| 41 |
-
gap: 10px;
|
| 42 |
-
background: rgba(24,27,34,0.7);
|
| 43 |
-
border: 1px solid #2f3746;
|
| 44 |
-
border-radius: 999px;
|
| 45 |
-
padding: 6px 10px;
|
| 46 |
-
backdrop-filter: blur(6px);
|
| 47 |
-
}
|
| 48 |
-
.controls button {
|
| 49 |
-
font-size: .95rem;
|
| 50 |
-
padding: 8px 14px;
|
| 51 |
-
border-radius: 999px;
|
| 52 |
-
}
|
| 53 |
-
.hint {
|
| 54 |
-
position: fixed;
|
| 55 |
-
top: 10px;
|
| 56 |
-
right: 12px;
|
| 57 |
-
color: #a9b4c2;
|
| 58 |
-
font-size: .85rem;
|
| 59 |
-
opacity: .9;
|
| 60 |
-
user-select: none;
|
| 61 |
-
}
|
| 62 |
-
/* Blackout overlay */
|
| 63 |
-
#blackOverlay {
|
| 64 |
-
position: fixed;
|
| 65 |
-
inset: 0;
|
| 66 |
-
background: #000;
|
| 67 |
-
opacity: 0;
|
| 68 |
-
pointer-events: none;
|
| 69 |
-
transition: opacity 0.4s ease;
|
| 70 |
-
}
|
| 71 |
-
#blackOverlay.active {
|
| 72 |
-
opacity: 1;
|
| 73 |
-
pointer-events: all;
|
| 74 |
-
}
|
| 75 |
-
</style>
|
| 76 |
-
</head>
|
| 77 |
-
<body>
|
| 78 |
-
<div class='container'>
|
| 79 |
-
<div id='display' class='time'>00.00</div>
|
| 80 |
-
<div id="blackOverlay"></div>
|
| 81 |
-
|
| 82 |
-
<div class="hint">Double-click or press <b>F</b> for fullscreen</div>
|
| 83 |
-
<div class="controls">
|
| 84 |
-
<button id="fsBtn" class="primary">Fullscreen</button>
|
| 85 |
-
<button id="hideBtn">Hide Controls</button>
|
| 86 |
-
</div>
|
| 87 |
-
</div>
|
| 88 |
-
|
| 89 |
-
<script src='/socket.io/socket.io.js'></script>
|
| 90 |
-
<script type='module' src='/client.js'></script>
|
| 91 |
-
</body>
|
| 92 |
-
</html>
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset='utf-8'/>
|
| 5 |
+
<title>Stopwatch Client</title>
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
| 7 |
+
<link rel='stylesheet' href='/style.css'/>
|
| 8 |
+
<style>
|
| 9 |
+
/* Fullscreen, center, extra-large clock */
|
| 10 |
+
html, body { height: 100%; }
|
| 11 |
+
body { margin: 0; background: #0f1115; }
|
| 12 |
+
.container {
|
| 13 |
+
height: 100%;
|
| 14 |
+
width: 100%;
|
| 15 |
+
max-width: none;
|
| 16 |
+
display: grid;
|
| 17 |
+
place-items: center;
|
| 18 |
+
background: radial-gradient(80% 80% at 50% 30%, #12151c 0%, #0f1115 70%);
|
| 19 |
+
border-radius: 0;
|
| 20 |
+
border: none;
|
| 21 |
+
padding: 0;
|
| 22 |
+
box-shadow: none;
|
| 23 |
+
position: relative;
|
| 24 |
+
overflow: hidden;
|
| 25 |
+
}
|
| 26 |
+
.time {
|
| 27 |
+
/* Huge responsive type for a stage screen */
|
| 28 |
+
font-size: clamp(72px, 22vw, 320px);
|
| 29 |
+
line-height: 1;
|
| 30 |
+
letter-spacing: 0.02em;
|
| 31 |
+
text-shadow: 0 0 20px rgba(0,0,0,.35);
|
| 32 |
+
font-variant-numeric: tabular-nums;
|
| 33 |
+
}
|
| 34 |
+
/* Kiosk controls bar */
|
| 35 |
+
.controls {
|
| 36 |
+
position: fixed;
|
| 37 |
+
bottom: 16px;
|
| 38 |
+
left: 50%;
|
| 39 |
+
transform: translateX(-50%);
|
| 40 |
+
display: flex;
|
| 41 |
+
gap: 10px;
|
| 42 |
+
background: rgba(24,27,34,0.7);
|
| 43 |
+
border: 1px solid #2f3746;
|
| 44 |
+
border-radius: 999px;
|
| 45 |
+
padding: 6px 10px;
|
| 46 |
+
backdrop-filter: blur(6px);
|
| 47 |
+
}
|
| 48 |
+
.controls button {
|
| 49 |
+
font-size: .95rem;
|
| 50 |
+
padding: 8px 14px;
|
| 51 |
+
border-radius: 999px;
|
| 52 |
+
}
|
| 53 |
+
.hint {
|
| 54 |
+
position: fixed;
|
| 55 |
+
top: 10px;
|
| 56 |
+
right: 12px;
|
| 57 |
+
color: #a9b4c2;
|
| 58 |
+
font-size: .85rem;
|
| 59 |
+
opacity: .9;
|
| 60 |
+
user-select: none;
|
| 61 |
+
}
|
| 62 |
+
/* Blackout overlay */
|
| 63 |
+
#blackOverlay {
|
| 64 |
+
position: fixed;
|
| 65 |
+
inset: 0;
|
| 66 |
+
background: #000;
|
| 67 |
+
opacity: 0;
|
| 68 |
+
pointer-events: none;
|
| 69 |
+
transition: opacity 0.4s ease;
|
| 70 |
+
}
|
| 71 |
+
#blackOverlay.active {
|
| 72 |
+
opacity: 1;
|
| 73 |
+
pointer-events: all;
|
| 74 |
+
}
|
| 75 |
+
</style>
|
| 76 |
+
</head>
|
| 77 |
+
<body>
|
| 78 |
+
<div class='container'>
|
| 79 |
+
<div id='display' class='time'>00.00</div>
|
| 80 |
+
<div id="blackOverlay"></div>
|
| 81 |
+
|
| 82 |
+
<div class="hint">Double-click or press <b>F</b> for fullscreen</div>
|
| 83 |
+
<div class="controls">
|
| 84 |
+
<button id="fsBtn" class="primary">Fullscreen</button>
|
| 85 |
+
<button id="hideBtn">Hide Controls</button>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
|
| 89 |
+
<script src='/socket.io/socket.io.js'></script>
|
| 90 |
+
<script type='module' src='/client.js'></script>
|
| 91 |
+
</body>
|
| 92 |
+
</html>
|