Add configuration, order processing, and item retrieval functionality

This commit is contained in:
vista-man
2025-02-26 09:53:42 +01:00
parent 07373c8fea
commit 8272c1a95f
19 changed files with 327 additions and 232 deletions

View File

@@ -11,18 +11,21 @@
<script>
window.onload = function() {
var number = Math.floor((Math.random() * 999) + 1);
document.getElementById("random-number").innerHTML = "Uw Bestellings nummer = #" + number;
const urlParams = new URLSearchParams(window.location.search);
const orderNumber = urlParams.get('order_number');
if (orderNumber) {
document.getElementById("order-number").innerText = `Uw Bestellings nummer = ${orderNumber}`;
} else {
document.getElementById("order-number").innerText = "Uw Bestellings nummer kon niet worden opgehaald.";
}
}
</script>
<body>
<h1>Bedankt voor uw bestelling!</h1>
<p>Uw bestelling is succesvol geplaatst. U kunt dit tabblad nu sluiten.</p>
<button onclick="window.close()">Sluit dit tabblad</button>
<h1 id="random-number"></h1>
<h1 id="order-number">Uw Bestellings nummer = </h1>
</body>
<script src="script.js"></script>
</html>