All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.lib.utils.js Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version

function queryParameters(){
    var queryString = window.location.search.substring(1);
    var params = {};

    if (queryString.trim().length > 0){
        _.forEach(queryString.split('&'), function(token){
            var i = token.indexOf("=");
            params[decodeURI(token.substring(0,i))] = decodeURI(token.substring(i + 1));
        })
    }
    return params;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy