-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
36 lines (27 loc) · 1.2 KB
/
app.js
File metadata and controls
36 lines (27 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//console.log ('qusai')
alert('welcom to wadiram');
var wadiRam= prompt('please enter the camp name?!');
var wadiRum= prompt('please enter your time?!');
if(wadiRum >= 18){
document.write('Good Evening');
document.write('<img src="https://cf.bstatic.com/images/hotel/max1024x768/159/159016236.jpg">');
}else if(wadiRum >= 12){
document.write('Good Afternoon');
document.write('<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQkd1K_9Taf2Z4Wh95Hd8kfkXpigEQFFYBSUg&usqp=CAU">')
}else if (wadiRum >= 0){
document.write('Good Morning');
document.write('<img src="https://cf.bstatic.com/images/hotel/max1024x768/236/236994988.jpg">')
}
while(wadiRam !== 'mars'&& wadiRam !== 'bedouin'){
wadiRam = prompt('Please enter the name mars or bedouin');
}
var userChoose;
if(wadiRam === 'mars'){
userChoose='<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQoak-JfCYdONQ2EiwN3xl3cGaeqvmjqEi4Zw&usqp=CAU">';
}else if (wadiRam === 'bedouin'){
userChoose='<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTBw6YJR55FzWF2dDjgluO-ns4qyEi80RKDAA&usqp=CAU">';
}
var imagesNumber=prompt('how many image?');
for(var i=0 ; i < imagesNumber; i++){
document.write(userChoose);
}