File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 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 ) ;
You can’t perform that action at this time.
0 commit comments