Skip to content

Instantly share code, notes, and snippets.

View PierreAmmeloot's full-sized avatar
🏠
Working from home

Pierre Ammeloot PierreAmmeloot

🏠
Working from home
View GitHub Profile
<script>
function getSearchParameters() {
var prmstr = window.location.search.substr(1);
return prmstr != null && prmstr != "" ? transformToAssocArray(prmstr) : {};
}
function transformToAssocArray( prmstr ) {
var params = {};
var prmarr = prmstr.split("&");
for ( var i = 0; i < prmarr.length; i++) {