client/splunk.ui.charting.js
function(p, s){
            s = s || window.location.search;
            if(!s){
                return null;
            }
            if(!(s.indexOf(p+'=')+1)){
                return null;
            }
            return s.split(p+'=')[1].split('&')[0];
        }
function(p, s){
            s = s || window.location.search;
            if(!s){
                return null;
            }
            if(!(s.indexOf(p+'=')+1)){
                return null;
            }
            return s.split(p+'=')[1].split('&')[0];
        }
function ( p , s ) { s = s || window . location . search ; if ( ! s ) { return null ; } if ( ! ( s . indexOf ( p + '=' ) + 1 ) ) { return null ; } return s . split ( p + '=' ) [ 1 ] . split ( '&' ) [ 0 ] ; }
Retrieve a GET parameter from the window.location. Type casting is not performed.
@param {String} p The param value to retrieve.
@param {String} s Optional string to search through instead of window.location.search
@return {String || null} The string value or null if it does not exist.
Retrieve a GET parameter from the window . location . Type casting is not performed .