docs/js/customscripts.js
function getBlock(control) {
        var block = control.parentNode;
        while (block.getAttribute("role") !== "tablist") {
            block = block.parentNode;
        }
        return block;
    }
function getBlock(control) {
        var block = control.parentNode;
        while (block.getAttribute("role") !== "tablist") {
            block = block.parentNode;
        }
        return block;
    }
function getBlock ( control ) { var block = control . parentNode ; while ( block . getAttribute ( "role" ) !== "tablist" ) { block = block . parentNode ; } return block ; }
climb up DOM to get block element
climb up DOM to get block element