-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathh2.html
213 lines (151 loc) · 7.67 KB
/
h2.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Donation Hub</title>
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>
<div class="feedworld3">
<img src="images/istockphoto-654922866-612x612.jpg" height="870" width="1480">
<div class="slideshow08">
</div>
<form id="feedbox1" class="input-feedworld">
<input type="number" class="input-field" placeholder="Quantity(Number of persons)" required>
<input type="number" class="input-field" placeholder="Expiry date (mm/yyyy)" required>
<input type="text" class="input-field" placeholder="Any other important info" required><br><br><br><br><br>
<button type="submit" class="submit-btn">Go</button>
</form>
<div id="feedbox6">
<h2>Time and date please</h2>
<form class="input-feedworld">
<input type="time" class="input-field" required>
<input type="date" class="input-field" required>
</form>
</div>
<div id="feedbox7">
<h2>Location</h2>
<form class="input-feedworld">
<input type="text" class="input-field" placeholder="House no." required>
<input type="text" class="input-field" placeholder="Street name" required>
<input type="text" class="input-field" placeholder="Locality" required>
<input type="text" class="input-field" placeholder="District(PIN), state" required><br><br>
<button type="submit" class="submit-btn">Go</button>
</form>
</div>
<div id="feedbox3">
<h2>please describe the dish</h2>
<textarea name="Describe" cols="40" row="10">Description please!</textarea>
</div>
<div id="feedbox2">
<h2>Picture of dish</h2>
<span class="image-preview__default-text">Image Preview</span>
<div class="preview">
<img id="file-ip-1-preview">
</div>
<label for="file-ip-1">Upload image</label>
<input type="file" id="file-ip-1" accept="image/jpg, image/jpeg" onchange="showPreview(event);">
</div>
<div id="feedbox4">
<div class="input-feedworld"></div>
<h2>Select the type-</h2>
<label for="abc">
<input type="checkbox" name="abc" id="check">
Homemade
</label>
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<form>
<input type="number" placeholder="Quantity(Number of persons)" required>
<input type="number" placeholder="Best before" required>
<input type ="radio" name="radio">
<input type="text" placeholder="Any other important info"
required><br><br><br><br><br>
<br><br><br><br><br>
<button type="submit" class="submit-btn">Go</button>
</form>
</div>
</div>
<label for="abc">
<input type="checkbox" name="abc" id="check2">
Packed
</label>
<div id="myModal2" class="modal2">
<!-- Modal content -->
<div class="modal-content2">
<span class="close2">×</span>
<form>
<input type="number" placeholder="Quantity(Number of persons)" required>
<input type="number" placeholder="Best before" required>
<input type="text" placeholder="Any other important info"
required><br><br><br><br><br>
<br><br><br><br><br>
<button type="submit" class="submit-btn">Go</button>
</form>
</div>
</div>
</div>
</div>
</section>
<script type="text/javascript">
// Get the modal
var modal2 = document.getElementById("myModal2");
// Get the button that opens the modal
var btn2 = document.getElementById("check2");
// Get the <span> element that closes the modal
var span2 = document.getElementsByClassName("close2")[0];
// When the user clicks on the button, open the modal
btn2.onclick = function () {
modal2.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span2.onclick = function () {
modal2.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function (event) {
if (event.target == modal2) {
modal2.style.display = "none";
}
}</script>
<script type="text/javascript">
// Get the modal
var modal = document.getElementById("myModal");
// Get the button that opens the modal
var btn = document.getElementById("check");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks on the button, open the modal
btn.onclick = function () {
modal.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function () {
modal.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
}</script>
<script type="text/javascript">
function showPreview(event) {
if (event.target.files.length > 0) {
var src = URL.createObjectURL(event.target.files[0]);
var preview = document.getElementById("file-ip-1-preview");
preview.src = src;
preview.width = "345";
preview.height = "250";
preview.style.display = "block";
}
}
</script>
</body>
</html>