Skip to content

Commit 74c4dba

Browse files
Add new button layout and style
Make the "Play Wave" and "Stop Wave" buttons bigger and make them appear side-by-side.
1 parent 9d8c27b commit 74c4dba

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

WavePlayerJS.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
}
1919
textarea { height: 80px; }
2020
label { font-weight: bold; }
21+
button {
22+
border-radius: 20px;
23+
padding-top: 10px;
24+
padding-bottom: 10px;
25+
flex: 0 0 50%;
26+
}
27+
.buttons {
28+
display: flex;
29+
gap: 0.5rem;
30+
}
2131
</style>
2232
</head>
2333
<body>
@@ -36,8 +46,10 @@ <h1>WavePlayerJS</h1>
3646
<label for="vp">Parameter (vp):</label>
3747
<input type="number" id="vp" value="1" step="0.1">
3848

39-
<button id="playBtn">Play Wave</button>
40-
<button id="stopBtn">Stop Wave</button>
49+
<div class="buttons">
50+
<button id="playBtn">Play Wave</button>
51+
<button id="stopBtn">Stop Wave</button>
52+
</div>
4153

4254
<br/>
4355
<p>Use ** instead of ^ for exponents</p>
@@ -92,3 +104,4 @@ <h1>WavePlayerJS</h1>
92104
</body>
93105
</html>
94106

107+

0 commit comments

Comments
 (0)