summaryrefslogtreecommitdiff
path: root/src/index.html
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-10-31 03:24:28 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-10-31 03:24:28 +0000
commit15be06b415c693dfe6a10750e619d3128b0b59de (patch)
tree6612c79573216026c5b1601fbb33ad37e10112ff /src/index.html
parentbcb38594492aec4f1116b3fdf0e9821d4016903a (diff)
downloadthrow_simulation-15be06b415c693dfe6a10750e619d3128b0b59de.tar
throw_simulation-15be06b415c693dfe6a10750e619d3128b0b59de.tar.gz
throw_simulation-15be06b415c693dfe6a10750e619d3128b0b59de.zip
Add image support, page title; fix sleep issue
Passing the ?image query param will use that as the background-image for the throwable div. I also had to add a `true` to the applyImpulse call to stop the ball from going unresponsive (this is because it can go to "sleep", the extra parameter ensures it's woken up.)
Diffstat (limited to 'src/index.html')
-rw-r--r--src/index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/index.html b/src/index.html
index aa49141..da667a9 100644
--- a/src/index.html
+++ b/src/index.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Document</title>
+ <title>Throw</title>
<script type="module" src="index.js"></script>
<style>
html,
@@ -14,8 +14,9 @@
div#throwable {
position: fixed;
transform: translate(-50%, -50%);
- background-color: red;
border-radius: 50%;
+ background-color: black;
+ background-size: cover;
}
</style>
</head>