-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathonepage.html
227 lines (174 loc) · 6.92 KB
/
onepage.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="onepage.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hungry</title>
<style media="screen">
</style>
</head>
<body>
<div class="wrapper">
<header>
<div class="dropdown">
<button class="dropbtn"><div id="demo"></div></button>
<div class="dropdown-content">
<a href="#" id="home">Home</a>
<a href="#" id="menu">Our menu</a>
<a href="#" id="who">Who are we?</a>
<a href="#" id="map">Map</a>
<a href="#" id="contact">Contact us</a>
</div>
</div>
</header>
<div class="parallax" id="getup"></div>
<div class="element1">
<div class="left">
<img id="myImg" src="https://www.w3schools.com/w3images/tablesetting2.jpg">
</div>
<div class="right">
<main id="myImg2">
<h1>Our menu</h1>
<div class="menu">
<h2>Bread Basket</h2>
<h3>Assortment of fresh baked fruit breads and muffins 5.50</h3>
<h2>Honey Almond Granola with Fruits</h2>
<h3>Natural cereal of honey toasted oats, raisins, almonds and dates 7.00</h3>
<h2>Belgian Waffle</h2>
<h3>Vanilla flavored batter with malted flour 7.50</h3>
<h2>Scrambled eggs</h2>
<h3>Scrambled eggs, roasted red pepper and garlic, with green onions 7.50</h3>
<h2>Blueberry Pancakes</h2>
<h3>With syrup, butter and lots of berries 8.50</h3>
<h2>Belgian Waffle</h2>
<h3>Vanilla flavored batter with malted flour 7.50</h3>
<h2>Scrambled eggs</h2>
<h3>Scrambled eggs, roasted red pepper and garlic, with green onions 7.50</h3>
<h2>Belgian Waffle</h2>
<h3>Vanilla flavored batter with malted flour 7.50</h3>
<h2>Scrambled eggs</h2>
<h3>Scrambled eggs, roasted red pepper and garlic, with green onions 7.50</h3>
<h2>Blueberry Pancakes</h2>
<h3>With syrup, butter and lots of berries 8.50</h3>
<h2>Belgian Waffle</h2>
<h3>Vanilla flavored batter with malted flour 7.50</h3>
<h2>Blueberry Pancakes</h2>
<h3>With syrup, butter and lots of berries 8.50</h3>
</div>
</main>
</div>
</div>
<div class="parallax2"></div>
<div class="element2">
<aside id="myImg3">
<h1>HUNGER</h1>
<h1>WON</h1>
<h1>THE</h1>
<h1>FIRST</h1>
<h1>PLACE</h1>
<h1>IN</h1>
<h1>SERVICING</h1>
<h1>THE</h1>
<h1>MOST</h1>
<h1>DELICIOUS</h1>
<h1>HUMBURGER</h1>
<h1>IN</h1>
<h1>SWEDEN</h1>
</aside>
</div>
<div class="parallax3"></div>
<iframe class="map" title="map" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d8370.188156513443!2d12.330589937519672!3d58.367310755304494!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x46452308d461ec5b%3A0x4e77bf81d2ae9c9f!2sBirger+Sj%C3%B6berggymnasiet!5e0!3m2!1ssv!2sse!4v1552851370375" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
<div class="element">
<div class="container">
<article id="myImg4">
<div class="row">
<div class="col-25">
<label for="fname">First Name</label>
</div>
<div class="col-75">
<input type="text" id="fname" class="firstname" name="firstname" placeholder="Your name..">
<p class="answerF"></p>
</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Last Name</label>
</div>
<div class="col-75">
<input type="text" id="lname" class="lastname" name="lastname" placeholder="Your last name..">
<p class="answerL"></p>
</div>
</div>
<div class="row">
<div class="col-25">
<label for="fname">Number</label>
</div>
<div class="col-75">
<input type="text" id="number" class="number" name="firstname" placeholder="Your number..">
<p class="answerN"></p>
</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Gmail</label>
</div>
<div class="col-75">
<input type="text" id="gmail" class="lastname" name="lastname" placeholder="Your gmail..">
<p class="answerG"></p>
</div>
</div>
<div class="row">
<div class="col-25">
<label for="country">Country</label>
</div>
<div class="col-75">
<select id="country" name="country">
<option value="australia">Australia</option>
<option value="canada">Canada</option>
<option value="usa">USA</option>
</select>
</div>
</div>
<div class="row">
<div class="col-25">
<label for="subject">Subject</label>
</div>
<div class="col-75">
<textarea id="subject" name="subject" placeholder="Write something.." style="height:200px"></textarea>
</div>
</div
<div class="row">
<button type="submit" class="button">submit</button>
</div>
</div>
</article>
</div>
<footer>
<button type="submit" id="top">top</button>
</footer>
</div>
<script src="onepage.js"></script>
<script>
$(document).ready(function(){
function myFunction() {
if (document.body.scrollTop > 350 || document.documentElement.scrollTop > 350) {
document.getElementById("myImg").className = "slideUp";
document.getElementById("myImg2").className = "slideUp2";
}
if (document.body.scrollTop > 1500 || document.documentElement.scrollTop > 1500) {
document.getElementById("myImg3").className = "slideUp3";
}
if (document.body.scrollTop > 2800 || document.documentElement.scrollTop > 2800) {
document.getElementById("myImg4").className = "slideUp3";
}
}
//shoing the elements
window.onscroll = function() {
myFunction();
};
});
</script>
</body>
</html>