function decrypt_somethings(password_input, encrypted_something) {
    var html_item = '';
    for (const [name, tag] of Object.entries(encrypted_something)) {
        if (tag[1] == 'id') {
            html_item = [document.getElementById(name)];
        } else if (tag[1] == 'class') {
            html_item = document.getElementsByClassName(name);
        } else {
            console.log('WARNING: Unknow tag html found, check "encrypted_something" configuration.');
        }
        if (html_item) {
            for (i = 0; i < html_item.length; i++) {
                // grab the cipher bundle if something exist
                if (html_item[i]) {
                    var parts = html_item[i].innerHTML.split(';');
                    // decrypt it
                    if (parts[0], parts[1], parts[2]) {
                        var content = decrypt_content(password_input.value, parts[0], parts[1], parts[2]);
                    };
                    if (content) {
                        // success; display the decrypted content
                        html_item[i].innerHTML = content;
                        html_item[i].style.display = null;
                        // any post processing on the decrypted content should be done here
                    };
                }
            }
        }
    }
}
/* Decrypt speficique html entry from docums configuration */
Decrypt speficique html entry from docums configuration
Decrypt speficique html entry from docums configuration
function decrypt_somethings(password_input, encrypted_something) {
    var html_item = '';
    for (const [name, tag] of Object.entries(encrypted_something)) {
        if (tag[1] == 'id') {
            html_item = [document.getElementById(name)];
        } else if (tag[1] == 'class') {
            html_item = document.getElementsByClassName(name);
        } else {
            console.log('WARNING: Unknow tag html found, check "encrypted_something" configuration.');
        }
        if (html_item) {
            for (i = 0; i < html_item.length; i++) {
                if (html_item[i]) {
                    var parts = html_item[i].innerHTML.split(';');
                    if (parts[0], parts[1], parts[2]) {
                        var content = decrypt_content(password_input.value, parts[0], parts[1], parts[2]);
                    };
                    if (content) {
                        html_item[i].innerHTML = content;
                        html_item[i].style.display = null;
                    };
                }
            }
        }
    }
}
function decrypt_somethings ( password_input , encrypted_something ) { var html_item = '' ; for ( const [ name , tag ] of Object . entries ( encrypted_something ) ) { if ( tag [ 1 ] == 'id' ) { html_item = [ document . getElementById ( name ) ] ; } else if ( tag [ 1 ] == 'class' ) { html_item = document . getElementsByClassName ( name ) ; } else { console . log ( 'WARNING: Unknow tag html found, check "encrypted_something" configuration.' ) ; } if ( html_item ) { for ( i = 0 ; i < html_item . length ; i ++ ) { if ( html_item [ i ] ) { var parts = html_item [ i ] . innerHTML . split ( ';' ) ; if ( parts [ 0 ] , parts [ 1 ] , parts [ 2 ] ) { var content = decrypt_content ( password_input . value , parts [ 0 ] , parts [ 1 ] , parts [ 2 ] ) ; } ; if ( content ) { html_item [ i ] . innerHTML = content ; html_item [ i ] . style . display = null ; } ; } } } } }
Decrypt speficique html entry from docums configuration
Decrypt speficique html entry from docums configuration
// grab the cipher bundle if something exist // decrypt it // success; display the decrypted content // any post processing on the decrypted content should be done here