Skip to content

Commit

Permalink
scale
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanillumix committed May 4, 2024
1 parent d317bf7 commit 8aadcbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
AFRAME.registerComponent("slider", {
init: function () {
alert("attached");
var scaleSlider = document.querySelector("#scale");

var scaleSlider = document.getElementById("scale");
alert(scaleSlider.value);
scaleSlider.addEventListener(
"input",
function () {
Expand Down Expand Up @@ -86,7 +86,7 @@
></a-image>
</a-scene>
<div style="position: absolute; bottom: 10px; margin: 0 auto">
<input type="range" id="scale" name="scale" min="0" max="50" />
<input type="range" id="scale" name="scale" min="0" max="50" value="10" />
<label for="scale">Scale</label>
</div>
</body>
Expand Down

0 comments on commit 8aadcbf

Please sign in to comment.