function getUrlParameter(name) {
name = name.replace(/[\[\]]/g, "\\$&"); // Escape special characters
const url = window.location.href;
const regex = new RegExp("[?&]" + name + "(=([^]*)|&|#|$)");
const results = regex.exec(url);
if (!results || !results[2]) return null;
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
const user = getUrlParameter('palletID');