diff --git a/index.html b/index.html index a47046e..bb01c67 100644 --- a/index.html +++ b/index.html @@ -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 () { @@ -86,7 +86,7 @@ >
- +