mirror of
https://github.com/Alvin-Zilverstand/Schoolkantine.git
synced 2026-03-06 13:26:27 +01:00
Add random order number display to payment confirmation page
This commit is contained in:
@@ -9,11 +9,20 @@
|
||||
<link rel="stylesheet" href="betaal.css">
|
||||
</head>
|
||||
|
||||
<script>
|
||||
window.onload = function() {
|
||||
var number = Math.floor((Math.random() * 999) + 1);
|
||||
document.getElementById("random-number").innerHTML = "Uw Bestellings nummer = #" + number;
|
||||
}
|
||||
</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>Uw Bestellings nummer=</h1>
|
||||
<h1 id="random-number"></h1>
|
||||
</body>
|
||||
|
||||
<script src="script.js"></script>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user