Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <meta charset="UTF-8">
- <html>
- <head>
- <script type="text/javascript" defer>
- function delivery(){
- var custName1 = prompt('What name will the order be under?');
- var custAddress1 = prompt ('What address should we deliver the order to?');
- var custNumber1 = prompt ('Please enter your phone number (land-line) in case we need to contact you');
- if (custNumber1 < 8600000 || custNumber1 > 9999999){
- while(custNumber1 < 8600000 || custNumber1 > 9999999){
- var custNumber1 = prompt('Please enter a valid 7 digit number.\nfrom 8600000-9999999');
- }
- var custDet1 = confirm('Customer Details\nName: '+custName1+'\nAddress: '+custAddress1+'\nPhone Number: '+custNumber1+'\n\nAre these details correct?');
- }
- }
- </script>
- <title>Pete's Pizza</title>
- </head>
- <body bgcolor="#66FFCC">
- <div id="main"><center><h1>Pete's Pizza</h1>
- <h2><i>"The best pizza in Gisborne!"</i></h2><br>
- <h2><b><font color="red">◄</font> Pete's Pizza Menu <font color="red">►</font></b></h2>
- <br>
- <h3>Standard Pizzas (Hawaiian, Cheese, Veggie, Supreme, Pepperoni) - cost: <font color="red"><b><u>$9:50</u></b></font></h3>
- <h3>Gourmet Pizzas (Meat-lovers, Chicken, Prawn) - Cost: <font color="red"><b><u>$15.50</u></b></font></h3>
- <br><br>
- <hr width="1200px" color="#003300">
- <br>
- <h2><b><font color="#003300">◄ </font>Is this order for 'Pickup' or 'Delivery'?<font color="#003300"> ►</font></b></h2><br>
- <input type=button value="Delivery" onclick="delivery()" id="delivery"> <input type=button value="Pickup" onclick="pickup()" id="pickup">
- </center>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement