forked from fudomunro/fudomunro.github.io
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhome.html
125 lines (115 loc) · 4.48 KB
/
home.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html>
<title>QA Web Automation Activity</title>
<script src="https://code.jquery.com/jquery-3.6.0.slim.min.js" ></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<style>
body,h1,h5 {font-family: "Raleway", sans-serif}
body, html {height: 100%}
.bgimg {
background-image: url('w3images/onepage_restaurant.jpeg');
min-height: 100%;
background-position: center;
background-size: cover;
}
</style>
<body>
<div id="_543jkl_block" class="bgimg w3-display-container w3-text-white">
<div class="w3-display-topleft w3-container w3-xlarge" id="button_container">
<div class='w3-button w3-black' onclick="$('[data-nri-id=\'menu\']').css('display', 'block')" data-nri-id="menu_button">open menu</div>
</div>
<div class="w3-display-bottomleft w3-container">
<p class="w3-xlarge">monday - friday 10-23 | saturday 14-02</p>
<p class="w3-large">42 village St, New York</p>
<p>powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a></p>
</div>
</div>
<!-- Menu Modal -->
<div id="_542jkl_modal" class="w3-modal" data-nri-id="menu">
<div class="w3-modal-content w3-animate-zoom">
<div class="w3-container w3-black w3-display-container">
<span onclick="$('[data-nri-id=\'menu\']').css('display', 'none')" class="w3-button w3-display-topright w3-large">x</span>
<h1>Starters</h1>
</div>
<div class="w3-container">
<h5>Tomato Soup <b>$2.50</b></h5>
<h5>Chicken Salad <b>$3.50</b></h5>
<h5>Bread and Butter <b>$1.00</b></h5>
</div>
<div class="w3-container w3-black">
<h1>Main Courses</h1>
</div>
<div class="w3-container">
<h5>Grilled Fish and Potatoes <b>$8.50</b></h5>
<h5>Italian Pizza <b>$5.50</b></h5>
<h5>Veggie Pasta <b>$4.00</b></h5>
<h5>Chicken and Potatoes <b>$6.50</b></h5>
<h5>Deluxe Burger <b>$5.00</b></h5>
</div>
<div class="w3-container w3-black">
<h1>Desserts</h1>
</div>
<div class="w3-container">
<h5>Fruit Salad <b>$2.50</b></h5>
<h5>Ice cream <b>$2.00</b></h5>
<h5>Chocolate Cake <b>$4.00</b></h5>
<h5>Cheese <b>$5.50</b></h5>
</div>
</div>
</div>
<!-- Contact Modal -->
<div id="_541jkl_modal" class="w3-modal" data-nri-id="contact">
<div class="w3-modal-content w3-animate-zoom">
<div class="w3-container w3-black">
<span onclick="$('[data-nri-id=\'contact\']').css('display', 'none')" class="w3-button w3-display-topright w3-large">x</span>
<h1>Contact</h1>
</div>
<div class="w3-container">
<p>Reserve a table, ask for today's special or just send us a message:</p>
<form action="/action_page.php" target="_blank">
<p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Name" name="Name"></p>
<p><input class="w3-input w3-padding-16 w3-border" type="number" placeholder="How many people" name="People"></p>
<p><input class="w3-input w3-padding-16 w3-border" type="datetime-local" placeholder="Date and time" name="date" value="2020-11-16T20:00"></p>
<p><input class="w3-input w3-padding-16 w3-border" type="text" placeholder="Message \ Special requirements" name="Message"></p>
<p><button class="w3-button" type="submit">SEND MESSAGE</button></p>
</form>
</div>
</div>
</div>
<script>
function open() {
$("[data-nri-id='contact']").css("display", "block");
$("[name='Name']").focus();
setUpClose()
}
function close() {
$("[data-nri-id='contact']").css("display", "none");
setUpOpen()
}
function setUpOpen() {
var button = $("<div data-nri-id='open_button' class='w3-button w3-black'>show contact</div>");
button.click(
function(){
$("[data-nri-id='open_button']").remove();
setTimeout(open, 2000);
})
$("#button_container").append(button);
}
function setUpClose() {
var button = $("<div data-nri-id='close_button' class='w3-button w3-black'>hide contact</div>");
button.click(
function(){
$("[data-nri-id='close_button']").remove();
close();
})
$("#button_container").append(button);
}
$(document).ready(function() {
setUpOpen();
});
</script>
</body>
</html>