-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreserve.html
More file actions
573 lines (505 loc) · 29 KB
/
Copy pathreserve.html
File metadata and controls
573 lines (505 loc) · 29 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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fellowship Event Hall</title>
<link rel="stylesheet" href="styles.css">
<link rel="icon" type="image/x-icon" href="sourcefiles/logo.ico">
<style>
/* Always-visible floating total price badge */
#price {
position: fixed;
right: 20px;
bottom: 20px;
z-index: 1000;
background: rgba(255, 255, 255, 0.9);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0 8px 24px rgba(0,0,0,0.15);
color: #205a25;
padding: 10px 16px;
border-radius: 999px;
font-weight: 700;
font-size: 18px;
margin: 0 !important;
text-align: center;
}
@media (max-width: 600px) {
#price {
left: 50%;
right: auto;
transform: translateX(-50%);
width: calc(100% - 32px);
}
}
/* Enhanced form styling additions */
#formbox {
background: linear-gradient(135deg, rgba(255,250,244,0.95), rgba(253,245,236,0.95));
border: 1px solid rgba(0,0,0,0.06);
backdrop-filter: blur(4px);
transition: background-color 240ms ease;
}
#reserve-form label { font-weight:600; color:#333; }
#reserve-form input[type="text"],
#reserve-form input[type="tel"],
#reserve-form input[type="date"] { width:fit-content; transition:border-color 160ms ease, box-shadow 160ms ease; }
#reserve-form input:focus { outline:none; border-color:#4CAF50 !important; box-shadow:0 0 0 4px rgba(76,175,80,0.25); }
.option-grid { display:flex; flex-wrap:wrap; gap:16px; }
.option-card { position:relative; border-radius:12px; overflow:hidden; cursor:pointer; transition:transform 160ms ease, box-shadow 160ms ease, border 160ms ease; border:2px solid transparent; background:#fff; text-align:center; }
.option-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,0.15); }
.option-card.selected { border-color:#4CAF50; box-shadow:0 6px 18px rgba(76,175,80,0.35); }
.option-card img { display:block; width:150px; height:100px; object-fit:cover; }
.option-card p { margin:8px 0 8px; font-weight:600; font-size:14px; }
@media (max-width:640px){ .option-card img{ width:130px; height:86px; } }
.required-note { font-size:12px; color:#b30000; margin:-4px 0 12px; }
.error-ring { animation:errorPulse 600ms ease; }
@keyframes errorPulse { 0%{ box-shadow:0 0 0 0 rgba(244,67,54,0.6);} 70%{ box-shadow:0 0 0 6px rgba(244,67,54,0);} 100%{ box-shadow:0 0 0 0 rgba(244,67,54,0);} }
/* gabe's button but beefed up */
.btn {
--btn-bg: #4CAF50;
--btn-bg-hover: #43a047;
--btn-bg-active: #388e3c;
--btn-shadow: 0 2px 4px rgba(0,0,0,0.15);
--btn-shadow-hover: 0 4px 12px rgba(0,0,0,0.18);
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: .5rem;
font-family: inherit;
font-size: 15px;
font-weight: 600;
line-height: 1.2;
padding: 14px 20px;
border-radius: 14px;
border: 1px solid rgba(0,0,0,0.08);
background: linear-gradient(135deg,var(--btn-bg),var(--btn-bg-hover));
color: #fff;
cursor: pointer;
transition: background .22s ease, transform .18s ease, box-shadow .22s ease, border-color .22s ease;
box-shadow: var(--btn-shadow);
text-decoration: none;
width: 100%;
-webkit-tap-highlight-color: transparent;
}
.btn:hover {
background: linear-gradient(135deg,var(--btn-bg-hover),var(--btn-bg));
box-shadow: var(--btn-shadow-hover);
transform: translateY(-2px);
}
.btn:active {
background: linear-gradient(135deg,var(--btn-bg-active),var(--btn-bg-hover));
transform: translateY(0);
box-shadow: 0 2px 6px rgba(0,0,0,0.2) inset, 0 2px 4px rgba(0,0,0,0.2);
}
.btn:focus-visible {
outline: 3px solid rgba(76,175,80,0.35);
outline-offset: 2px;
}
.btn:disabled {
opacity: .55;
cursor: not-allowed;
transform: none;
}
.btn-danger { --btn-bg:#f44336; --btn-bg-hover:#e53935; --btn-bg-active:#c62828; }
.btn-danger:focus-visible { outline-color: rgba(244,67,54,0.4); }
.btn-outline { background: transparent; color: var(--btn-bg); }
@media (min-width: 640px) {
/* Allow natural width on larger screens while keeping alignment */
.btn { width: auto; min-width: 160px; }
.btn + .btn { margin-left: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
}
</style>
</head>
<body>
<div id="navbar"></div>
<div id="main-content" style="position: relative; padding: 20px; font-family: Arial, sans-serif;">
<div id="formbox" style="max-width: 600px; margin: 0 auto; padding: 20px 20px 80px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); background-color: rgb(253, 245, 236); position:relative;">
<form id="reserve-form">
<h1 style="text-align: center;">Reserve Venue</h1>
<label for="name" style="display: block; margin-bottom: 8px; ">Your Name *</label>
<input type="text" id="name" name="name" required aria-required="true" placeholder="John Doe" style="padding: 8px; margin-bottom: 16px; border: 1px solid #ccc; border-radius: 8px; width: 200px;">
<label for="phone" style="display: block; margin-bottom: 8px;">Phone Number *</label>
<input type="tel" id="phone" name="phone" required aria-required="true" pattern="[0-9]{7,15}" title="Enter digits only (7-15)." placeholder="5551234567" style="padding: 8px; margin-bottom: 16px; border: 1px solid #ccc; width:100px; border-radius: 8px;">
<label for="date" style="display: block; margin-bottom: 8px;">Date *</label>
<input type="date" id="date" name="date" required aria-required="true" style="padding: 8px; margin-bottom: 12px; border: 1px solid #ccc; border-radius: 8px;">
<div class="required-note">* Required fields</div>
<input type="hidden" id="event-type-hidden" name="event-type" />
<label for="event-type" style="display: block; margin-bottom: 8px;">Event Type *</label>
<div id="event-type-options" class="option-grid" style="margin-bottom: 16px;">
<div class="option-card" onclick="selectEventType(this, 'party')"><img src="sourcefiles/party.jpg" alt="Party"><p>Party</p></div>
<div class="option-card" onclick="selectEventType(this, 'company-meeting')"><img src="sourcefiles/company-meeting.jpg" alt="Company Meeting"><p>Company Meeting</p></div>
<div class="option-card" onclick="selectEventType(this, 'company-get-together')"><img src="sourcefiles/company-get-together.jpg" alt="Company Get Together"><p>Company Get Together</p></div>
<div class="option-card" onclick="selectEventType(this, 'quinceanera')"><img src="sourcefiles/quinceanera.jpg" alt="Quinceañera"><p>Quinceañera</p></div>
<div class="option-card" onclick="selectEventType(this, 'wedding')"><img src="sourcefiles/wedding.jpg" alt="Wedding"><p>Wedding</p></div>
<div class="option-card" onclick="selectEventType(this, 'birthday')"><img src="sourcefiles/birthday.jpg" alt="Birthday"><p>Birthday</p></div>
<div class="option-card" onclick="selectEventType(this, 'conference')"><img src="sourcefiles/conference.jpg" alt="Conference"><p>Conference</p></div>
<div class="option-card" onclick="selectEventType(this, 'other')"><img src="sourcefiles/other.jpg" alt="Other"><p>Other</p></div>
</div>
<label for="catering" style="display: block; margin-bottom: 8px;">Catering Options</label>
<div id="catering-options" class="option-grid" style="margin-bottom: 16px;">
<div class="option-card" onclick="toggleSelection(this, 'romanian-cuisine')">
<img src="sourcefiles/romanian.png" alt="Romanian Cuisine">
<p style="margin-top: 8px;">Romanian Cuisine</p>
</div>
<div class="option-card" onclick="toggleSelection(this, 'romanian-desserts')">
<img src="sourcefiles/romanian-desserts.png" alt="Romanian Desserts">
<p style="margin-top: 8px;">Romanian Desserts</p>
</div>
<div class="option-card" onclick="toggleSelection(this, 'italian')">
<img src="sourcefiles/italian-cuisine.jpg" alt="Italian Cuisine">
<p style="margin-top: 8px;">Italian Cuisine</p>
</div>
<div class="option-card" onclick="toggleSelection(this, 'bbq')">
<img src="sourcefiles/bbq.jpg" alt="BBQ">
<p style="margin-top: 8px;">BBQ</p>
</div>
<div class="option-card" onclick="toggleSelection(this, 'vegan')">
<img src="sourcefiles/vegan-options.jpg" alt="Vegan Options">
<p style="margin-top: 8px;">Vegan Options</p>
</div>
<div class="option-card" onclick="toggleSelection(this, 'desserts')">
<img src="sourcefiles/desserts.jpg" alt="Desserts">
<p style="margin-top: 8px;">Desserts</p>
</div>
</div>
<label for="extra-services" style="display: block; margin-bottom: 8px;">Extra Services</label>
<div id="extra-services-options" class="option-grid" style="margin-bottom: 16px;">
<div class="option-card" onclick="toggleSelection(this, 'lighting')">
<img src="sourcefiles/lighting.jpg" alt="Lighting">
<p style="margin-top: 8px;">Lighting</p>
</div>
<div class="option-card" onclick="toggleSelection(this, 'sound')">
<img src="sourcefiles/sound-system.jpg" alt="Sound System">
<p style="margin-top: 8px;">Sound System</p>
</div>
</div>
<label for="decorations" style="display: block; margin-bottom: 8px;">Decorations</label>
<div id="decorations-options" class="option-grid" style="margin-bottom: 16px;">
<div class="option-card" onclick="selectDecorationOption(this, 'basic-decorations')">
<img src="sourcefiles/basic-decorations.jpg" alt="Basic Decorations">
<p style="margin-top: 8px;">Standard Decorations</p>
</div>
<div class="option-card" onclick="selectDecorationOption(this, 'enhanced-decorations')">
<img src="sourcefiles/enhanced-decorations.jpg" alt="Enhanced Decorations">
<p style="margin-top: 8px;">Enhanced Decorations</p>
</div>
</div>
<div id="theme-colors" style="display: none; margin-bottom: 16px;">
<label for="theme-color" style="display: block; margin-bottom: 8px;">Select Theme Color</label>
<div style="display: flex; gap: 16px;">
<div class="option-card" onclick="selectThemeColor(this, 'red')">
<img src="sourcefiles/red-theme.jpg" alt="Red Theme">
<p style="margin-top: 8px;">Red</p>
</div>
<div class="option-card" onclick="selectThemeColor(this, 'blue')">
<img src="sourcefiles/blue-theme.jpg" alt="Blue Theme">
<p style="margin-top: 8px;">Blue</p>
</div>
<div class="option-card" onclick="selectThemeColor(this, 'green')">
<img src="sourcefiles/green-theme.jpg" alt="Green Theme">
<p style="margin-top: 8px;">Green</p>
</div>
<div class="option-card" onclick="selectThemeColor(this, 'gold')">
<img src="sourcefiles/gold-theme.jpg" alt="Gold Theme">
<p style="margin-top: 8px;">Gold</p>
</div>
</div>
</div>
<label for="photography-services" style="display: block; margin-bottom: 8px;">Event Photography Services</label>
<div id="photography-options" class="option-grid" style="margin-bottom: 16px;">
<div class="option-card" onclick="selectSingleOption(this, 'basic-photography', 'photography-options')">
<img src="sourcefiles/basic-photography.jpg" alt="Basic Photography">
<p style="margin-top: 8px;">Basic</p>
</div>
<div class="option-card" onclick="selectSingleOption(this, 'premium-photography', 'photography-options')">
<img src="sourcefiles/premium-photography.jpg" alt="Premium Photography">
<p style="margin-top: 8px;">Premium</p>
</div>
</div>
<!-- Actions -->
<div class="form-actions" style="margin-top:24px;">
<button type="submit" class="btn" aria-label="Reserve venue">Reserve</button>
<button type="reset" class="btn btn-danger" aria-label="Reset form">Reset</button>
</div>
</form>
</div>
<script>
const form = document.getElementById('reserve-form');
// Prefill and persist user's name from/to localStorage
(function(){
const nameInput = document.getElementById('name');
if (nameInput) {
try {
const storedName = localStorage.getItem('userName');
if (storedName) nameInput.value = storedName;
nameInput.addEventListener('input', ()=>{
const v = nameInput.value.trim();
if (v) localStorage.setItem('userName', v);
});
} catch(_) {}
}
})();
// create or reference floating price badge outside form to avoid layout interference
let priceElement = document.getElementById('price');
if (!priceElement) {
priceElement = document.createElement('div');
priceElement.id = 'price';
priceElement.textContent = 'Total Price: $0';
document.body.appendChild(priceElement);
}
// Enforce date at least 5 days in the future
const dateInput = document.getElementById('date');
const minDateObj = new Date();
minDateObj.setDate(minDateObj.getDate() + 5);
const minDateIso = minDateObj.toISOString().split('T')[0];
dateInput.min = minDateIso;
const selectedOptions = new Set();
const mainContent = document.getElementById('main-content');
let currentEventType = null; // track selected event type
const eventTypePrices = {
// Synced with pricing.html (Venue Packages)
party: 650,
'company-meeting': 500,
'company-get-together': 550,
quinceanera: 1200,
wedding: 2200,
birthday: 450,
conference: 1000,
other: 1500
};
function toggleSelection(element, value) {
if (selectedOptions.has(value)) {
selectedOptions.delete(value);
element.style.border = 'none';
element.classList.remove('selected');
if (value === 'decorations') {
document.getElementById('theme-colors').style.display = 'none';
}
} else {
selectedOptions.add(value);
element.style.border = '2px solid #4CAF50';
element.classList.add('selected');
if (value === 'decorations') {
document.getElementById('theme-colors').style.display = 'block';
}
}
calculatePrice();
}
function calculatePrice() {
let price = 0;
// include base price of selected event type if any
if (currentEventType && eventTypePrices[currentEventType]) {
price += eventTypePrices[currentEventType];
}
selectedOptions.forEach(option => {
// Catering (per 50 guests baseline)
// Assumed pricing for new Romanian options (adjust as needed)
if (option === 'romanian-cuisine') price += 1300; // assumption: slightly higher than Italian
if (option === 'romanian-desserts') price += 600; // assumption: slightly higher than generic desserts
if (option === 'italian') price += 1250;
if (option === 'bbq') price += 1050;
if (option === 'vegan') price += 1350;
if (option === 'desserts') price += 550;
// Decorations
if (option === 'basic-decorations') price += 250;
if (option === 'enhanced-decorations') price += 600; // includes theme colors
// Extras
if (option === 'lighting') price += 300;
if (option === 'sound') price += 350;
// Photography
if (option === 'basic-photography') price += 500;
if (option === 'premium-photography') price += 1100;
});
// Theme Color add-on applies only to Standard (basic) decorations
const hasThemeColor = Array.from(selectedOptions).some(o => typeof o === 'string' && o.startsWith('theme-color:'));
if (hasThemeColor && selectedOptions.has('basic-decorations') && !selectedOptions.has('enhanced-decorations')) {
price += 100;
}
priceElement.textContent = `Total Price: $${price}`;
}
function selectSingleOption(element, value, groupId) {
const group = document.getElementById(groupId);
const options = group.querySelectorAll('div');
options.forEach(option => {
option.style.border = 'none';
option.classList.remove('selected');
});
selectedOptions.delete('basic-photography');
selectedOptions.delete('premium-photography');
selectedOptions.add(value);
element.style.border = '2px solid #4CAF50';
element.classList.add('selected');
calculatePrice();
}
function selectThemeColor(element, color) {
const themeColors = document.getElementById('theme-colors');
const options = themeColors.querySelectorAll('div[onclick]');
options.forEach(option => {
option.style.border = 'none';
option.classList.remove('selected');
});
// Remove any previously selected theme-color:* entries before adding new
Array.from(selectedOptions)
.filter(o => typeof o === 'string' && o.startsWith('theme-color:'))
.forEach(o => selectedOptions.delete(o));
selectedOptions.add(`theme-color:${color}`);
element.style.border = '2px solid #4CAF50';
element.classList.add('selected');
const formBox = document.getElementById('formbox');
// Override full background (not just backgroundColor) so gradient doesn't mask theme change
// Apply color-themed gradient based on selected color
switch(color) {
case 'red':
formBox.style.background = 'linear-gradient(135deg,#ffe5e7,#ffcfd2)';
break;
case 'blue':
formBox.style.background = 'linear-gradient(135deg,#e3f2fd,#bbdefb)';
break;
case 'green':
formBox.style.background = 'linear-gradient(135deg,#e8f5e9,#c8e6c9)';
break;
case 'gold':
formBox.style.background = 'linear-gradient(135deg,#fff9e7,#ffecb3)';
break;
default:
formBox.style.background = 'linear-gradient(135deg, rgba(255,250,244,0.95), rgba(253,245,236,0.95))';
}
calculatePrice();
}
function selectDecorationOption(element, value) {
const decorationsGroup = document.getElementById('decorations-options');
const options = decorationsGroup.querySelectorAll('div');
options.forEach(option => {
option.style.border = 'none';
option.classList.remove('selected');
});
selectedOptions.delete('basic-decorations');
selectedOptions.delete('enhanced-decorations');
selectedOptions.add(value);
element.style.border = '2px solid #4CAF50';
element.classList.add('selected');
if (value === 'enhanced-decorations') {
document.getElementById('theme-colors').style.display = 'block';
} else {
document.getElementById('theme-colors').style.display = 'none';
// When Standard decorations are selected, revert formbox theme to default gold
if (value === 'basic-decorations') {
// clear any previously selected theme-color from state and UI
Array.from(selectedOptions)
.filter(o => typeof o === 'string' && o.startsWith('theme-color:'))
.forEach(o => selectedOptions.delete(o));
const themeColorsEl = document.getElementById('theme-colors');
if (themeColorsEl) {
const themeOptions = themeColorsEl.querySelectorAll('div[onclick]');
themeOptions.forEach(opt => { opt.style.border = 'none'; });
}
// revert full background to original gradient so override is complete
document.getElementById('formbox').style.background = 'linear-gradient(135deg, rgba(255,250,244,0.95), rgba(253,245,236,0.95))';
}
}
calculatePrice();
}
function selectEventType(element, type) {
const options = document.querySelectorAll('#event-type-options .option-card');
options.forEach(option => option.classList.remove('selected'));
element.classList.add('selected');
// set current event type
currentEventType = type;
document.getElementById('event-type-hidden').value = type;
// update background with a 10% black tint overlay
const imagePath = `sourcefiles/${type}.jpg`;
mainContent.style.backgroundImage = `linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('${imagePath}')`;
mainContent.style.backgroundSize = 'cover';
mainContent.style.backgroundPosition = 'center';
mainContent.style.backgroundRepeat = 'no-repeat';
mainContent.style.backgroundAttachment = 'fixed'; // keep background stagnant during scroll
// recalculate total to include base price + selected options
calculatePrice();
}
form.addEventListener('submit', function(event) {
event.preventDefault();
try {
const requiredIds = ['name','phone','date'];
let invalid = false;
requiredIds.forEach(id => {
const el = document.getElementById(id);
if (!el.value.trim()) { el.classList.add('error-ring'); invalid = true; setTimeout(()=>el.classList.remove('error-ring'),800); }
});
if (!document.getElementById('event-type-hidden').value) {
alert('Please select an event type.');
invalid = true;
}
// Validate date is >= min (5 days ahead)
const chosenDate = document.getElementById('date').value;
if (chosenDate && chosenDate < minDateIso) {
alert(`Date must be at least ${minDateIso} or later (5 days from today).`);
const el = document.getElementById('date');
el.classList.add('error-ring');
setTimeout(()=>el.classList.remove('error-ring'),800);
invalid = true;
}
if (invalid) return;
const reservationData = {
name: document.getElementById('name').value.trim(),
phone: document.getElementById('phone').value.trim(),
eventType: document.getElementById('event-type-hidden').value,
date: document.getElementById('date').value,
options: Array.from(selectedOptions),
price: priceElement.textContent.replace('Total Price: $', '')
};
localStorage.setItem('reservationData', JSON.stringify(reservationData));
window.location.href = 'receipt.html';
} catch (e) {
console.error('Submission error', e);
alert('Unexpected error. Please try again.');
}
});
form.addEventListener('reset', function() {
// Clear selected options
selectedOptions.clear();
// Reset the price to $0
priceElement.textContent = 'Total Price: $0';
// Reset current event type and background
currentEventType = null;
mainContent.style.backgroundImage = 'none';
mainContent.style.backgroundAttachment = ''; // remove fixed attachment on reset
// Remove visual selections for specific groups
const groupsToReset = ['#event-type-options', '#catering-options', '#extra-services-options', '#decorations-options', '#photography-options'];
groupsToReset.forEach(groupId => {
const group = document.querySelector(groupId);
if (group) {
const options = group.querySelectorAll('div');
options.forEach(option => {
option.style.border = 'none';
option.classList.remove('selected');
});
}
});
// Hide theme colors section
document.getElementById('theme-colors').style.display = 'none';
// Restore default form background color
document.getElementById('formbox').style.backgroundColor = 'rgb(253, 245, 236)';
document.getElementById('event-type-hidden').value = '';
});
</script>
</div>
<div id="footer"></div>
<script>
// get the navbar element in sourcefiles/navbar.html and insert it here
fetch('sourcefiles/navbar.html')
.then(response => response.text())
.then(data => {
document.getElementById('navbar').innerHTML = data;
});
fetch('sourcefiles/footer.html')
.then(response => response.text())
.then(data => {
document.getElementById('footer').innerHTML = data;
});
</script>
</body>
</html>