function getParam(name) { const params = new URLSearchParams(window.location.search); return params.get(name); } const score = getParam("score") || 0; const max = getParam("max") || 10; document.getElementById("scoreText").innerText = `Du hast ${score} von ${max} möglichen Hauspunkten erreicht.`;