Why is it that after the range form binds onchange, the first event-triggered assignment succeeds, and then the event-triggered assignment fails?

< div class= "a" >

    <img src=".jpg" alt="JOJO">
</div>
<div class="b">
    <div class="b1">
        <span></span>
        <input type="range" min="0" max="359" step="1" class="b11">
        <input type="checkbox">
    </div>
    <div class="b1">
        <span></span>
        <input type="range" min="0" max="100" step="1" class="b11">
        <input type="checkbox">
    </div>
    <div class="b1">
        <span></span>
        <input type="range" min="0" max="100" step="1" class="b11">
        <input type="checkbox">
    </div>
</div>


<style>
    .a{
        width: 500px;
        height: 500px;
        border: 5px inset -sharpaaa;
        margin: 50px;
        margin-left: 150px;
        position: relative;
        display: inline-block;
    }

    .a>img{
        max-width: 500px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
    }

    .b{
        float: right;
        margin: 50px;
        margin-right: 150px;
    }

    .b1>span{
        display: block;
    }
</style>


<script>
    var pictureNode = document.querySelector(".a").firstElementChild;
    var slideBoxNode = document.querySelectorAll(".b1");

    function bindInput() {
        var i = 0;
        var hueRotate = "hue-rotate(" + document.querySelectorAll(".b11")[0].value + "deg)";
        var saturate = "saturate(" + document.querySelectorAll(".b11")[1].value + "%)";
        var brightness = "brightness(" + document.querySelectorAll(".b11")[2].value + "%)";
        var slideNode = 0;

        for(;i<slideBoxNode.length;iPP){
            slideNode = document.querySelectorAll(".b11")[i];
            slideNode.addEventListener("change", function () {
                return (function () {
                    pictureNode.style.filter = hueRotate + " " + saturate + " " + brightness;
                    console.log(pictureNode.style.filter);
                })(i);
            });
        }
    }
    window.bindInput();
</script>
Mar.16,2021

<div class="a">
    <img src=".jpg" alt="JOJO">
</div>
<div class="b">
    <div class="b1">
        <span></span>
        <input type="range" min="0" max="359" step="1" class="b11" value="0"><!-- value="0" -->
        <input type="checkbox"> 
    </div>
    <div class="b1">
        <span></span>
        <input type="range" min="0" max="100" step="1" class="b11" value="100"><!-- value="100" -->
        <input type="checkbox">
    </div>
    <div class="b1">
        <span></span>
        <input type="range" min="0" max="100" step="1" class="b11" value="100"><!-- value="100" -->
        <input type="checkbox">
    </div>
</div>

var pictureNode = document.querySelector(".a").firstElementChild;
var slideBoxNode = document.querySelectorAll(".b1");

function bindInput() {
    var i = 0
    var blls = document.querySelectorAll(".b11")
    var hueDom = blls[0] // dom
    var saturateDom = blls[1]
    var brightnessDom = blls[2]
    var slideNode = 0;

    for(;i<slideBoxNode.length;iPP){
        slideNode = document.querySelectorAll(".b11")[i];
        slideNode.addEventListener("change", function () {
            return (function () {
                var hueRotate = "hue-rotate(" + hueDom.value + "deg)"; // 
                var saturate = "saturate(" + saturateDom.value + "%)";
                var brightness = "brightness(" + brightnessDom.value + "%)";
                pictureNode.style.filter = hueRotate + " " + saturate + " " + brightness;
                console.log(pictureNode.style.filter);
            })(i)
        });
    }
}
window.bindInput();
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37f28-2c0df.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37f28-2c0df.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?