Skip to content

Commit da0eaf0

Browse files
authored
Update index.html
1 parent 5b10e83 commit da0eaf0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,24 @@
292292
margin-bottom: 15px;
293293
}
294294

295+
#loader {
296+
position: fixed;
297+
left: 0;
298+
top: 0;
299+
width: 100%;
300+
height: 100%;
301+
z-index: 9999;
302+
background: #232526;
303+
display: flex;
304+
justify-content: center;
305+
align-items: center;
306+
font-size: 2rem;
307+
color: #4CAF50;
308+
}
295309
</style>
296310
</head>
297311
<body>
312+
<div id="loader">Loading...</div>
298313
<div class="container">
299314
<h1>Wall Ball Rep Tracker</h1>
300315
<p>Use your camera to count your wall ball reps automatically.</p>
@@ -475,6 +490,9 @@ <h2>Session History</h2>
475490
}
476491
});
477492

493+
const loader = document.getElementById('loader');
494+
loader.style.display = 'none';
495+
478496
async function detect() {
479497
const poses = await detector.estimatePoses(video);
480498
ctx.clearRect(0, 0, canvas.width, canvas.height);

0 commit comments

Comments
 (0)