Skip to content

Commit 0011d53

Browse files
committed
Added folders and styles to the branch
1 parent bc913a6 commit 0011d53

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

hire.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<link rel="stylesheet" href="./css/css/bootstrap.css">
7+
<link rel="stylesheet" href="./css/hire.css">
78
<link rel="stylesheet" href="./css/styles.css">
89
<script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>
10+
<script src="./js/hire.js"></script>
911
<title>GAME-NIGHT RENTALS</title>
1012
</head>
1113
<body>

js/hire.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ function itemCash(item){
158158

159159

160160
function relayMessage(game, userLocation){
161-
162161
var pricing = itemCash(game)
163162
var getDelivery = chargeDeliver(userLocation.toString())
164163

@@ -171,7 +170,10 @@ function relayMessage(game, userLocation){
171170
}
172171
else{
173172

173+
var phone = prompt("Enter your phone number for delivery")
174+
174175
alert("You have ordered a "+game+" which costs "+pricing+" Your delivery location is "+userLocation+" the delivery cost is "+getDelivery+" and the total cost is "+tottal)
176+
alert("We will reach you on this number "+phone+" upon arrival")
175177

176178
}
177179

0 commit comments

Comments
 (0)