diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-10-31 12:07:30 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-10-31 12:07:30 +0000 |
commit | 19def0070044c1594f70ea1413232967b68d91d0 (patch) | |
tree | 169714cdf9cb8676c6da83cd4264a59251e38187 /src/index.html | |
parent | 15be06b415c693dfe6a10750e619d3128b0b59de (diff) | |
download | throw_simulation-19def0070044c1594f70ea1413232967b68d91d0.tar throw_simulation-19def0070044c1594f70ea1413232967b68d91d0.tar.gz throw_simulation-19def0070044c1594f70ea1413232967b68d91d0.zip |
Add scoring system
Diffstat (limited to 'src/index.html')
-rw-r--r-- | src/index.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/index.html b/src/index.html index da667a9..b7ba10f 100644 --- a/src/index.html +++ b/src/index.html @@ -11,16 +11,29 @@ margin: 0; } - div#throwable { + #throwable { position: fixed; transform: translate(-50%, -50%); border-radius: 50%; background-color: black; background-size: cover; } + + #scoreboard { + position: fixed; + transform: translate(-50%, -50%); + top: 70%; + left: 50%; + font-family: monospace; + } </style> </head> <body> + <div id="scoreboard"> + SCORE <span id="score"></span> + <br /> + HIGH SCORE <span id="high-score"></span> + </div> <div id="throwable"></div> </body> </html> |