Repository navigation
Expand file tree
/
Copy pathenquiry.html
More file actions
403 lines (347 loc) · 25.9 KB
/
Copy pathenquiry.html
File metadata and controls
403 lines (347 loc) · 25.9 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
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<!DOCTYPE html>
<html>
<head>
<title>Make It You - Personalised Invitations for any Occasion- Enquiry</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/makeityou.main.css">
<link rel="stylesheet" type="text/css" href="css/makeityou.enquiry.css">
<link rel="stylesheet" type="text/css" href="css/makeityou.nav.css">
<link href="css/hover.css" rel="stylesheet" media="all">
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="icon" type="image/png" sizes="16x16" href="favicon.png">
<link href='http://fonts.googleapis.com/css?family=Quicksand' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Great+Vibes' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
</head>
<body onload="open_section()">
<!--Main header and navigation bar-->
<div class="container-fluid">
<nav class="navbar navbar-default" style="margin-bottom: 20px;">
<div class="container-fluid">
<div>
<div class="navbar-header">
<!--Collapse button, only visible when window is small-->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<h1 style="padding:0px 75px 0px 25px; ">Make it you</h1>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<!--Main links-->
<ul class="nav navbar-nav" style="margin-top:45px;">
<li class="nav-button"><a href="index.html" class="hvr-underline-reveal">Home</a></li>
<li class="nav-button"><a href="about.html" class="hvr-underline-reveal">About</a></li>
<li class="nav-button dropdown">
<a data-toggle="dropdown" class="dropdown-toggle hvr-underline-reveal">Selection <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="cards.html">Cards</a></li>
<li><a href="scrapbooks.html">Scrapbooks</a></li>
</ul>
</li>
<li class="active nav-button"><a href="enquiry.html" class="hvr-underline-reveal">Enquiry</a></li>
</ul>
<!--Icon links to facebook, e-mail and phone-->
<ul class="nav navbar-nav navbar-right" style="margin-top:45px;">
<li class="nav-button-small"><a href="https://www.facebook.com/makeityouinvitations?fref=ts"><i class="fa fa-facebook-square"></i></a></li>
<li class="nav-button-small"><a href="mailto:rachel.x@hotmail.co.nz"><i class="fa fa-envelope-o"></i></a></li>
<li class="nav-button-small"><a href="#" type="button" data-toggle="modal" data-target="#myModal"><i class="fa fa-phone"></i></a></li>
</ul>
</div>
</div>
</div>
</nav>
</div>
<!--Main content area-->
<div class="container">
<!--Panel containing multiple text areas, drop downs and a card selector-->
<div class="row">
<div class="panel panel-normal">
<h2>Enquiry</h2>
<hr style="margin: 10px 40px;">
<p>
To get in contact please fill out the form, we can then discuss your exact specifications <br />
further either by phone or email.<br /> <br />
Don't be afraid to request something that isn't listed on the site, anything is possible so just ask!
</p>
<hr style="margin: 10px 40px;">
<form name="enquiryform" action="takeform.php" method="post">
<!--Email and name inputs-->
<p><input name="email" size="64" maxlength="64" placeholder="Your Email Address" /></p>
<p><input name="name" size="64" maxlength="64" placeholder="Your name" /></p>
<!--Enquiry subject drop down-->
<p>
<select id="subject" name="subject" onchange="update_purchase()">
<option value="" disabled selected>Select your enquiry type</option>
<option value="Question">Question</option>
<option value="Product">Product</option>
<option value="Purchase">Purchase</option>
<option value="Other">Other</option>
</select>
</p>
<!--Purchase drop down-->
<p>
<select id="purchase" name="purchase" onchange="update_type()" style="display:none;">
<option value="" disabled selected>Select what you'd like to purchase</option>
<option value="Card">Card</option>
<option value="Scrapbook">Scrapbook</option>
<option value="Weddingpackage">Wedding package</option>
</select>
</p>
<!--Card type drop down-->
<p>
<select id="cardtype" name="cardtype" onchange="update_invitations()" style="display:none;">
<option value="" disabled selected>Select your invitation type</option>
<option value="Wedding">Wedding</option>
<option value="Anniversary">Anniversary</option>
<option value="Birthday">Birthday</option>
<option value="Babyshower">Baby shower</option>
<option value="Thankyou">Thank you</option>
<option value="Savethedate">Save the date</option>
<!--<option value="other">Other</option>-->
</select>
</p>
<!--Input for any promo codes-->
<p><input id="promo" name="promo" size="64" maxlength="64" placeholder="Promo code (if you have one)" style="display:none;" /></p>
<!--Div containing value of card chosen-->
<p style="display:none;"><input id="carddiv" name="cardselected" value="none" size="64" maxlength="64"></p>
<!--Multiple panels for each card type-->
<!--Wedding panel-->
<div name="cardpanel" id="weddingpanel" class="panel panel-alt" style="max-width:100%; width:526px; margin:10px auto; display:none;">
<p style="font-size:16px; margin:8px 0px 0px 0px;">
Choose the card you'd like to enquire about<br>
(Leave blank if you'd like a unique one made.)
</p>
<div style="margin:auto;">
<div class="mini-image" onclick="select_card('wedding', 0)"><img name="weddingcard" id="wedding0" alt="blackboard hearts" src="images/wedding/blackboardhearts.jpg" class="img-rounded image"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('wedding', 1)"><img name="weddingcard" id="wedding1" alt="dress" src="images/wedding/dress.jpg" class="img-rounded image"><p class="image-footer ">$3.50</p></div>
<div class="mini-image" onclick="select_card('wedding', 2)"><img name="weddingcard" id="wedding2" alt="japanese" src="images/wedding/fan.jpg" class="img-rounded image"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('wedding', 3)"><img name="weddingcard" id="wedding3" alt="heart crossed lovers" src="images/wedding/heartswithsuit.jpg" class="img-rounded image"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('wedding', 4)"><img name="weddingcard" id="wedding4" alt="sparkly red heart" src="images/wedding/redheart.jpg" class="img-rounded image"><p class="image-footer ">$2.50</p></div>
<div class="mini-image" onclick="select_card('wedding', 5)"><img name="weddingcard" id="wedding5" alt="rustic" src="images/wedding/rustic.jpg" class="img-rounded image"><p class="image-footer ">$2.50</p></div>
</div>
</div>
<!--Anniversary panel-->
<div name="cardpanel" id="anniversarypanel" class="panel panel-alt" style="max-width:100%; width:525px; margin:10px auto; display:none;">
<p style="font-size:16px; margin:8px 0px 0px 0px;">
Choose the card you'd like to enquire about<br>
(Leave blank if you'd like a unique one made.)
</p>
<div style="margin:auto;">
<div class="mini-image" onclick="select_card('anniversary', 0)"><img name="anniversarycard" id="anniversary0" alt="25year" src="images/anniversary/25year.jpg" class="img-rounded image"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('anniversary', 1)"><img name="anniversarycard" id="anniversary1" alt="hearts" src="images/anniversary/hearts.jpg" class="img-rounded image"><p class="image-footer ">$3.50</p></div>
</div>
</div>
<!--Birthday panel-->
<div name="cardpanel" id="birthdaypanel" class="panel panel-alt" style="max-width:100%; width:526px; margin:10px auto; display:none;">
<p style="font-size:16px; margin:8px 0px 0px 0px;">
Choose the card you'd like to enquire about<br>
(Leave blank if you'd like a unique one made.)
</p>
<div style="margin:auto;">
<div class="mini-image" onclick="select_card('birthday', 0)"><img name="birthdaycard" id="birthday0" alt="bee" src="images/birthday/bee.jpg" class="img-rounded image"><p class="image-footer ">$2.80</p></div>
<div class="mini-image" onclick="select_card('birthday', 1)"><img name="birthdaycard" id="birthday1" alt="blue balloons" src="images/birthday/blueballoons.jpg" class="img-rounded image"><p class="image-footer ">$2.50</p></div>
<div class="mini-image" onclick="select_card('birthday', 2)"><img name="birthdaycard" id="birthday2" alt="one year crown" src="images/birthday/oneyearcrown.jpg" class="img-rounded image"><p class="image-footer ">$2.00</p></div>
<div class="mini-image" onclick="select_card('birthday', 3)"><img name="birthdaycard" id="birthday3" alt="pirate" src="images/birthday/pirate.jpg" class="img-rounded image"><p class="image-footer ">$2.00</p></div>
<div class="mini-image" onclick="select_card('birthday', 4)"><img name="birthdaycard" id="birthday4" alt="owl" src="images/birthday/owl1.jpg" class="img-rounded image"><p class="image-footer ">$3.20</p></div>
<div class="mini-image" onclick="select_card('birthday', 5)"><img name="birthdaycard" id="birthday5" alt="yellow balloons" src="images/birthday/yellowballoons.jpg" class="img-rounded image"><p class="image-footer ">$2.50</p></div>
</div>
</div>
<!--Baby shower panel-->
<div name="cardpanel" id="babyshowerpanel" class="panel panel-alt" style="max-width:100%; width:526px; margin:10px auto; display:none;">
<p style="font-size:16px; margin:8px 0px 0px 0px;">
Choose the card you'd like to enquire about<br>
(Leave blank if you'd like a unique one made.)
</p>
<div style="margin:auto;">
<div class="mini-image" onclick="select_card('babyshower', 0)"><img name="babyshowercard" id="babyshower0" alt="its a boy" src="images/babyshower/itsaboy.jpg" class="img-rounded image"><p class="image-footer ">$2.00</p></div>
<div class="mini-image" onclick="select_card('babyshower', 1)"><img name="babyshowercard" id="babyshower1" alt="nappy" src="images/babyshower/nappy.jpg" class="img-rounded image"><p class="image-footer ">$2.75</p></div>
<div class="mini-image" onclick="select_card('babyshower', 2)"><img name="babyshowercard" id="babyshower2" alt="pram" src="images/babyshower/pinkpram.jpg" class="img-rounded image"><p class="image-footer ">$2.00</p></div>
</div>
</div>
<!--Thank you panel-->
<div name="cardpanel" id="thankyoupanel" class="panel panel-alt" style="max-width:100%; width:526px; margin:10px auto; display:none;">
<p style="font-size:16px; margin:8px 0px 0px 0px;">
Choose the card you'd like to enquire about<br>
(Leave blank if you'd like a unique one made.)
</p>
<div style="margin:auto;">
<div class="mini-image" onclick="select_card('thankyou', 0)"><img name="thankyoucard" id="thankyou0" alt="gold and black hearts" src="images/thankyou/goldandblackhearts.jpg" class="img-rounded image"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('thankyou', 1)"><img name="thankyoucard" id="thankyou1" alt="three hearts" src="images/thankyou/threehearts.jpg" class="img-rounded image"><p class="image-footer ">$2.00</p></div>
</div>
</div>
<!--Save the date panel-->
<div name="cardpanel" id="savethedatepanel" class="panel panel-alt" style="max-width:100%; width:526px; margin:10px auto; display:none;">
<p style="font-size:16px; margin:8px 0px 0px 0px;">
Choose the card you'd like to enquire about<br>
(Leave blank if you'd like a unique one made.)
</p>
<div style="margin:auto;">
<div class="mini-image" onclick="select_card('savethedate', 0)"><img name="savethedatecard" id="savethedate0" alt="cartoon" src="images/savethedate/cartoon.jpg" class="img-rounded image"><p class="image-footer ">$2.30</p></div>
<div class="mini-image" onclick="select_card('savethedate', 1)"><img name="savethedatecard" id="savethedate1" alt="green" src="images/savethedate/green.jpg" class="img-rounded image"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('savethedate', 2)"><img name="savethedatecard" id="savethedate2" alt="squares" src="images/savethedate/squares.jpg" class="img-rounded image"><p class="image-footer ">$2.00</p></div>
</div>
</div>
<!--Other panel-->
<!--<div name="cardpanel" id="otherpanel" class="panel panel-alt" style="max-width:100%; width:526px; margin:10px auto; display:none;">
<p style="font-size:16px; margin:8px 0px 0px 0px;">
Choose the card you'd like to enquire about<br>
(Leave blank if you'd like a unique one made.)
</p>
<div style="margin:auto;">
<div class="mini-image" onclick="select_card('other', 0)"><img name="othercard" id="other0" src="images/hearts.jpg" class="img-rounded image" width="100" height="120"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('other', 1)"><img name="othercard" id="other1" src="images/bee.jpg" class="img-rounded image" width="100" height="120"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('other', 2)"><img name="othercard" id="other2" src="images/dress.jpg" class="img-rounded image" width="100" height="120"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('other', 3)"><img name="othercard" id="other3" src="images/bee.jpg" class="img-rounded image" width="100" height="120"><p class="image-footer ">$3.00</p></div>
<div class="mini-image" onclick="select_card('other', 4)"><img name="othercard" id="other4" src="images/hearts.jpg" class="img-rounded image" width="100" height="120"><p class="image-footer ">$3.00</p></div>
</div>
</div>-->
<p><i>Please enter the text of your message in the field that follows.</i></p>
<textarea name="message" rows="10" cols="72"></textarea>
<p><input class="makeityou-button hvr-grow-shadow" type="submit" name="send" value="Place enquiry" /></p>
</form>
</div>
</div>
</div>
<!-- Modal showing phone number -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h2 style="color:#000000" class="modal-title">Phone</h2>
</div>
<div class="modal-body">
<p style="color:#000000; font-size:20px;">Contact Rachel at <br />027 714 3438</p>
</div>
</div>
</div>
</div>
<!--Footer-->
<div class="container-fluid">
<footer class="panel-footer">
<a style="display:inline-block" href="index.html">Home</a><p style="display:inline-block"> | </p>
<a style="display:inline-block" href="about.html">About</a><p style="display:inline-block"> | </p>
<a style="display:inline-block" href="enquiry.html">Contact</a>
<p>Website created by <a href="mailto:vincent.tetau@gmail.com">Vincent Te Tau</a>. <br /> Make it you: Rachel Hannah Te Tau - Contact information: <a href="mailto:rachel@makeityou.co.nz">rachel@makeityou.co.nz</a>.</p>
</footer>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="carousel-initialization.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="slick/slick.min.js"> </script>
<script>
var currentCard = null;
//Ran when enquiry.html is opened to show a specific card, if selected
function open_section() {
var GET = {};
var query = window.location.search.substring(1).split("&");
if (query[0] === "") return;
var param = query[0].split("=");
document.getElementById('cardtype').style.display = "inline";
document.getElementById('promo').style.display = "inline";
alert(document.getElementById('cardtype').options.indexOf("Wedding"));
if (param[1] == "wedding") document.getElementById('cardtype').selectedIndex = document.getElementById('cardtype').options.indexOf("Wedding");
//alert(document.getElementById('cardtype').selectedIndex);
}
//Shows cardtype dropdown if purchase subject is chosen, otherwise it hides it
function update_type() {
subject = document.getElementById('purchase');
// Clear all cardpanels first
document.getElementById('cardtype').style.display = "none";
document.getElementById('promo').style.display = "none";
card_panels = document.getElementsByName('cardpanel');
for (i = 0; i < card_panels.length; i++) {
card_panels[i].style.display = "none";
}
// Check if card or scrapbook were selected and update accordingly
if (subject.options[subject.selectedIndex].innerHTML == "Card") {
update_invitations();
} else if (subject.options[subject.selectedIndex].innerHTML == "Scrapbook") {
update_scrapbooks();
} else if (subject.options[subject.selectedIndex].innerHTML == "Wedding package") {
update_weddingpackage();
}
}
//Shows cardtype dropdown if purchase subject is chosen, otherwhise it hides it
function update_purchase() {
subject = document.getElementById('subject');
if (subject.options[subject.selectedIndex].innerHTML == "Purchase") {
document.getElementById('purchase').style.display = "inline";
document.getElementById('promo').style.display = "inline";
if (document.getElementById('purchase').options[subject.selectedIndex].innerHTML == "Card") update_invitations();
else if (document.getElementById('purchase').options[subject.selectedIndex].innerHTML == "Scrapbook") update_scrapbooks();
} else {
document.getElementById('purchase').style.display = "none";
document.getElementById('promo').style.display = "none";
card_panels = document.getElementsByName('cardpanel');
for (i = 0; i < card_panels.length; i++) {
card_panels[i].style.display = "none";
}
}
}
// To be expanded when more scrapbooks are added
function update_scrapbooks() {
document.getElementById('promo').style.display = "inline";
}
// To be expanded when Full wedding package is added
function update_weddingpackage() {
document.getElementById('promo').style.display = "inline";
}
//Updates the type of cards shown (e.g. Baby shower)
function update_invitations() {
document.getElementById('cardtype').style.display = "inline";
document.getElementById('promo').style.display = "inline";
subject = document.getElementById('cardtype');
card_panels = document.getElementsByName('cardpanel');
for (i = 0; i < card_panels.length; i++) {
card_panels[i].style.display = "none";
}
if (subject.options[subject.selectedIndex].innerHTML == "Wedding") document.getElementById('weddingpanel').style.display = "block";
else if (subject.options[subject.selectedIndex].innerHTML == "Anniversary") document.getElementById('anniversarypanel').style.display = "block";
else if (subject.options[subject.selectedIndex].innerHTML == "Birthday") document.getElementById('birthdaypanel').style.display = "block";
else if (subject.options[subject.selectedIndex].innerHTML == "Baby shower") document.getElementById('babyshowerpanel').style.display = "block";
else if (subject.options[subject.selectedIndex].innerHTML == "Thank you") document.getElementById('thankyoupanel').style.display = "block";
else if (subject.options[subject.selectedIndex].innerHTML == "Save the date") document.getElementById('savethedatepanel').style.display = "block";
else if (subject.options[subject.selectedIndex].innerHTML == "Other") document.getElementById('otherpanel').style.display = "block";
}
//Selects a certain card, the border colour is changed and it becomes less opaque
function select_card(type, index) {
cards = document.getElementsByName(type + "card");
for (i = 0; i < cards.length; i++) {
if (i == index && currentCard != cards[index]) {
cards[i].style.opacity = 1;
cards[i].style.border = '2px solid #FFFFFF';
} else {
cards[i].style.border = '2px solid black';
cards[i].style.opacity = 0.8;
}
}
//Set the currentCard and the carddiv value
if (currentCard != cards[index]) {
currentCard = cards[index];
document.getElementById("carddiv").value = currentCard.alt;
} else {
currentCard = null;
document.getElementById("carddiv").value = "none";
}
}
</script>
<!--Google analytics-->
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-64121805-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>