function copyToHidden(e){
    const current_input = $(this);
    if(current_input.val() != ""){
        let current_input_index = 0;

        const inputs = $(".code-block-input");
        let text = "";
        for (let i = 0; i < inputs.length; i++) {
            console.log(inputs.eq(i)[0]);
            console.log(current_input[0]);

            if (inputs.eq(i)[0] == current_input[0]) { current_input_index = i; }
            text += inputs.eq(i).val();
        }
        $("#hidden-code").val(text);

        if (current_input_index + 1 < inputs.length) {
            inputs.eq(current_input_index + 1).focus()
        }
        else {
            inputs.eq(0).focus()
        }
    }
}
// Copis the divided code blocks into one input for join part
Copis the divided code blocks into one input for join part
Copis the divided code blocks into one input for join part
function copyToHidden(e){
    const current_input = $(this);
    if(current_input.val() != ""){
        let current_input_index = 0;
        const inputs = $(".code-block-input");
        let text = "";
        for (let i = 0; i < inputs.length; i++) {
            console.log(inputs.eq(i)[0]);
            console.log(current_input[0]);
            if (inputs.eq(i)[0] == current_input[0]) { current_input_index = i; }
            text += inputs.eq(i).val();
        }
        $("#hidden-code").val(text);
        if (current_input_index + 1 < inputs.length) {
            inputs.eq(current_input_index + 1).focus()
        }
        else {
            inputs.eq(0).focus()
        }
    }
}
function copyToHidden ( e ) { const current_input = $ ( this ) ; if ( current_input . val ( ) != "" ) { let current_input_index = 0 ; const inputs = $ ( ".code-block-input" ) ; let text = "" ; for ( let i = 0 ; i < inputs . length ; i ++ ) { console . log ( inputs . eq ( i ) [ 0 ] ) ; console . log ( current_input [ 0 ] ) ; if ( inputs . eq ( i ) [ 0 ] == current_input [ 0 ] ) { current_input_index = i ; } text += inputs . eq ( i ) . val ( ) ; } $ ( "#hidden-code" ) . val ( text ) ; if ( current_input_index + 1 < inputs . length ) { inputs . eq ( current_input_index + 1 ) . focus ( ) } else { inputs . eq ( 0 ) . focus ( ) } } }
Copis the divided code blocks into one input for join part
Copis the divided code blocks into one input for join part