Skip to content

Commit 4e51b29

Browse files
committed
show brush size better
1 parent e75a29c commit 4e51b29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

static/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
pointer-events: none;
5656
}
5757

58-
#mini {
58+
#brush {
5959
margin-top: 0;
6060
margin-bottom: 0;
6161
margin-right: auto;
@@ -71,7 +71,7 @@
7171
<div id="bar">
7272
<h1>draw together!</h1>
7373
<div id = "flex-me-away">
74-
<p id="mini">Brush Size</p>
74+
<p id="brush">Brush Size (5px)</p>
7575
<input id="height" type="range" min="1" max="250" value="5">
7676
</div>
7777
<div id="flex-me-away">
@@ -236,6 +236,8 @@ <h1>draw together!</h1>
236236

237237
document.getElementById('height').addEventListener('input', (e) => {
238238
height = parseInt(e.target.value)
239+
240+
document.getElementById('brush').innerText = `Brush Size (${height}px)`
239241
})
240242

241243
/**

0 commit comments

Comments
 (0)