scripts/aiv_ui.js
/**
     * @function tissueDropdownChangeSelectColor - simple event listener that will change the options
     * node's background colour to the according dropdown menu choice
     * @param {object} AIVObj - reference to global namespace AIV object, with access to cytoscape methods
     */
@function tissueDropdownChangeSelectColor - simple event listener that will change the options
node's background colour to the according dropdown menu choice
@param {object} AIVObj - reference to global namespace AIV object, with access to cytoscape methods
@function tissueDropdownChangeSelectColor - simple event listener that will change the options node ' s background colour to the according dropdown menu choice @param { object } AIVObj - reference to global namespace AIV object with access to cytoscape methods
function tissueDropdownChangeSelectColor(AIVObj){
        document.getElementById('dropdownTissues').addEventListener('change', function(event){
            let dropdown = event.target;
            dropdown.style.backgroundColor = dropdown[dropdown.selectedIndex].style.backgroundColor;
            AIVObj.exprLoadState = {absolute: false, relative: false};
            if (document.getElementById('exprnOverlayChkbox').checked) {
                overlayExpression(AIVObj, false);
            }
        });
    }
function tissueDropdownChangeSelectColor ( AIVObj ) { document . getElementById ( 'dropdownTissues' ) . addEventListener ( 'change' , function ( event ) { let dropdown = event . target ; dropdown . style . backgroundColor = dropdown [ dropdown . selectedIndex ] . style . backgroundColor ; AIVObj . exprLoadState = { absolute : false , relative : false } ; if ( document . getElementById ( 'exprnOverlayChkbox' ) . checked ) { overlayExpression ( AIVObj , false ) ; } } ) ; }
@function tissueDropdownChangeSelectColor - simple event listener that will change the options
 node's background colour to the according dropdown menu choice
 @param {object} AIVObj - reference to global namespace AIV object, with access to cytoscape methods
@function tissueDropdownChangeSelectColor - simple event listener that will change the options node ' s background colour to the according dropdown menu choice @param { object } AIVObj - reference to global namespace AIV object with access to cytoscape methods