scripts/aiv_ui.js
/**
     * @function checkBIOGRIDServerStatus - Check BIOGRID webservice status
     */
@function checkBIOGRIDServerStatus - Check BIOGRID webservice status
@function checkBIOGRIDServerStatus - Check BIOGRID webservice status
function checkBIOGRIDServerStatus(){
        $.ajax({
            url: "//bar.utoronto.ca/interactions2/cgi-bin/psicquic_biogrid_proxy.php?request=AT1G01010",
            type: "GET"
        })
            .then((res, text, xhr)=>{
                if (xhr.status !== 200 ) throw Error;
                document.getElementById("spinnerBioGrid").style.display = 'none';
                $("<img src='images/activeServer.png'/>").insertAfter("#BioGridSpan");
                document.getElementById("queryBioGrid").parentNode.classList.remove('not-allowed');
                document.getElementById("queryBioGrid").disabled = false;
            })
            .catch(()=>{
                document.getElementById("spinnerBioGrid").style.display = 'none';
                $("<img src='images/inactiveServer.png'/>").insertAfter("#BioGridSpan");
            });
    }
function checkBIOGRIDServerStatus ( ) { $ . ajax ( { url : "//bar.utoronto.ca/interactions2/cgi-bin/psicquic_biogrid_proxy.php?request=AT1G01010" , type : "GET" } ) . then ( ( res , text , xhr ) => { if ( xhr . status !== 200 ) throw Error ; document . getElementById ( "spinnerBioGrid" ) . style . display = 'none' ; $ ( "<img src='images/activeServer.png'/>" ) . insertAfter ( "#BioGridSpan" ) ; document . getElementById ( "queryBioGrid" ) . parentNode . classList . remove ( 'not-allowed' ) ; document . getElementById ( "queryBioGrid" ) . disabled = false ; } ) . catch ( ( ) => { document . getElementById ( "spinnerBioGrid" ) . style . display = 'none' ; $ ( "<img src='images/inactiveServer.png'/>" ) . insertAfter ( "#BioGridSpan" ) ; } ) ; }
@function checkBIOGRIDServerStatus - Check BIOGRID webservice status
@function checkBIOGRIDServerStatus - Check BIOGRID webservice status