Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var rng = document.querySelector("input");
- read("mousedown");
- read("mousemove");
- function read(evtType) {
- rng.addEventListener(evtType, function() {
- window.requestAnimationFrame(function () {
- document.querySelector("div").innerHTML = rng.value;
- });
- });
- }
- </script>
- <div>50</div><input type="range"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement