-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcommunity.html
817 lines (525 loc) · 27.5 KB
/
community.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
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
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
<<<<<<< HEAD
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<!-- DO NOT EDIT ANYTHING HERE -->
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<title>Relay For Life Website | Community</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
<meta name="format-detection" content="telephone=no" />
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- CSS
================================================== -->
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/colors/purple.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/btn.css">
<link rel="stylesheet" href="css/flexslider.css">
<link rel="stylesheet" href="css/superfish.css">
<!-- Google Fonts -->
<link href='http://fonts.googleapis.com/css?family=Archivo+Narrow:400,400italic,700,700italic|Oswald:400,300,700' rel='stylesheet' type='text/css'>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Favicons
================================================== -->
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="apple-touch-icon" href="img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
</head>
<!-- YOU MAY EDIT CONTENT IN THE BODY -->
<body class="purpScheme">
<!--topbar-->
<div class="topBar">
<div class="container">
<div class="sixteen columns">
<ul class="topBarMenu clearfix">
<li class="contactModule">
<a class="contact" href="#">Contact</a>
<div class="footerModule clearfix">
<h2>LET'S KEEP IN TOUCH<a href="#" class="contactClose">X</a></h2>
<h3 class="contactTitle"><span class="moduleLabel" style="width: 95%;">LEAVE A COMMENT</span></h3>
<div class="contactForm clearfix">
<form id="contactForm" class="clearfix" action="processForm.php" method="post">
<ul>
<li>
<label for="senderName">Your Name</label>
<input type="text" name="senderName" id="senderName" placeholder="" required maxlength="40" />
</li>
<li>
<label for="senderEmail">Your Email Address</label>
<input type="email" name="senderEmail" id="senderEmail" placeholder="" required maxlength="50" />
</li>
<li>
<label for="message" style="padding-top: .5em;">Your Message</label>
<textarea name="message" id="message" placeholder="" required cols="80" rows="10" maxlength="10000"></textarea>
</li>
</ul>
<input type="submit" class="button-small rounded3 purple" id="sendMessage" name="sendMessage" value="Send Email" />
</form>
<div id="sendingMessage" class="statusMessage"><p>Sending your message. Please wait...</p></div>
<div id="successMessage" class="statusMessage"><p>Thanks for sending your message! We'll get back to you shortly.</p></div>
<div id="failureMessage" class="statusMessage"><p>There was a problem sending your message. Please try again.</p></div>
<div id="incompleteMessage" class="statusMessage"><p>Please complete all the fields in the form before sending.</p></div>
</div>
</div>
</li>
</ul>
<div class="topBarSearch">
<form method="get" id="searchform">
<!-- Search Feature -->
<input id="s" type="text" onblur="if(this.value=='')this.value='';" onfocus="if(this.value=='')this.value='';" value="" name="s">
</form>
</div>
</div>
</div>
</div>
<!-- end topbar -->
<!--header start -->
<header>
<div class="container clearfix">
<div class="sixteen columns">
<div class="logo">
<a href="index.html">
<img src="img/logo.png" alt="" />
</a>
</div>
<nav class="mainNav">
<ul class="nav clearfix sf-menu sf-js-enabled sf-shadow">
<li><a href="index.html">Home</a></li>
<li><a class="active" href="community.html">Community</a></li>
<li><a href="nation.html">Nation</a></li>
<li><a href="wwide.html">Worldwide</a></li>
<li><a href="funds.html">Fundraising</a></li>
</ul>
<div class="container mobileNav">
<div class="sixteen columns"></div>
</div>
</nav>
</div>
</div>
</header>
<!--end header -->
<div class="pageInfo">
<div class="container">
<div class="eight columns pageTitle">
<h1>COMMUNITY</h1>
</div>
<div class="eight columns breadcrumb">
<a href="index.html">HOME</a>
<span>COMMUNITY</span>
</div>
</div>
</div>
<!-- starting up the actual content -->
<div class="pageContentWrapper">
<div class="container">
<div class="sixteen columns">
<div class="pageContent">
<!--START EDITING CONTENT HERE -->
<h4>COMMUNITY INFORMATION</h4>
<hr>
<p>Relay for Life has affected our community in many ways.<img style="margin-top: 25px !important; width:350px!important;" src="img/skids.jpg" class="alignright" alt="" /> There is actually a Relay for Life club here at Mill Creek High School, and there is also Relay for Life events that happen right here in Gwinnet County. MC's relay for life has done things like sponsor a "Pink-Out" game in honor of Breast Cancer Awareness Month and/ or the Dr. Jim L Markham Golf Classic. There are about 100 teams participating in Relay for Life of Gwinnett County. The top donating team is our fellow GCPS, Peachtree Ridge High School, giving over 10,000 dollars to this Non-Profit organization. At the events many fighters, survivors, caregivers, and supporters come together to help celebrate the fight against cancer. The video (above/below) shows a recent Relay for Life event in May 2012, hundreds of people met at Gwinnet County Fairgrounds and shared their stories, made friends, and related to their fellow cancer patients/survivors. Relay for Life plays a huge role in many communities around the nation, giving everyone a chance to share their story.</p>
<!-- STAHP EDITING -->
</div>
</div>
</div>
</div>
<!-- footer start -->
<footer>
<div class="container clearfix">
<div class="one-third column">
<img style="margin-bottom: 15px;" src="img/logo.png" alt="" />
<p>Fusce justo erat, pretium sed consequat ultricies, gravida ut est. Ut ullamcorper luctus metus et lobortis. Donec iaculis commodo massa non eleifend. Donec sem urna, vehicula dictum lacinia quis, euismod.</p>
<a class="button-small-theme rounded3" href="#">MORE INFO</a>
</div>
<div class="one-third column">
<div class="footerModule clearfix">
<h2>MONEY RAISED</h2>
<h3 class="odd"><span class="moduleLabel">January</span><span class="moduleDescription">$12,600.32</span></h3>
<h3><span class="moduleLabel">February</span><span class="moduleDescription">$8,750.00</span></h3>
<h3 class="odd"><span class="moduleLabel">March</span><span class="moduleDescription">$4,000.00</span></h3>
</div>
</div>
<div class="one-third column">
<div class="footerModule clearfix">
<h2>UPCOMING WALKS</h2>
<h3 class="odd"><span class="moduleLabel">Dec, 12th.</span><span class="moduleDescription">05:00 AM - 10:00 PM</span></h3>
<h3><span class="moduleLabel">Dec, 20th.</span><span class="moduleDescription">05:00 AM - 10:00 PM</span></h3>
<h3 class="odd"><span class="moduleLabel">Dec, 25th.</span><span class="moduleDescription">05:00 AM - 10:00 PM</span></h3>
</div>
</div>
</div>
</footer>
<!-- footer stahp -->
<!-- (c) content -->
<div class="smallFooter">
<div class="container">
<div class="contentRight">DESIGNED WITH LOVE BY <a href="http://darthdesigns.com">DARTH DESIGNS</a>.</div>
</div>
</div>
<!-- EDIT NOTHING BELOW THIS COMMENT. NOTHING. NOTHING. NOTHING. -->
<!-- include jQuery -->
<script src="js/jquery-1.8.0.min.js"></script>
<!-- Include the plug-in -->
<script src="js/script.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/jquery.flexslider-min.js"></script>
<script type="text/javascript" src="js/superfish.js"></script>
<script type="text/javascript" src="js/hoverIntent.js"></script>
<script type="text/javascript">
var messageDelay = 2000; // How long to display status messages (in milliseconds)
// Init the form once the document is ready
$( init );
// Initialize the form
function init() {
// Hide the form initially.
// Make submitForm() the form's submit handler.
// Position the form so it sits in the centre of the browser window.
$('#contactForm').submit( submitForm );
// When the "Send us an email" link is clicked:
// 1. Fade the content out
// 2. Display the form
// 3. Move focus to the first field
// 4. Prevent the link being followed
$('a[href="#contactForm"]').click( function() {
$('#content').fadeTo( 'slow', .2 );
$('#contactForm').fadeIn( 'slow', function() {
$('#senderName').focus();
} )
return false;
} );
// When the "Cancel" button is clicked, close the form
$('#cancel').click( function() {
$('#content').fadeTo( 'slow', 1 );
} );
// When the "Escape" key is pressed, close the form
$('#contactForm').keydown( function( event ) {
if ( event.which == 27 ) {
$('#content').fadeTo( 'slow', 1 );
}
} );
}
// Submit the form via Ajax
function submitForm() {
var contactForm = $(this);
// Are all the fields filled in?
if ( !$('#senderName').val() || !$('#senderEmail').val() || !$('#message').val() ) {
// No; display a warning message and return to the form
$('#incompleteMessage').fadeIn().delay(messageDelay).fadeOut();
delay(messageDelay).fadeIn();
} else {
// Yes; submit the form to the PHP script via Ajax
$('#sendingMessage').fadeIn();
$.ajax( {
url: contactForm.attr( 'action' ) + "?ajax=true",
type: contactForm.attr( 'method' ),
data: contactForm.serialize(),
success: submitFinished
} );
}
// Prevent the default form submission occurring
return false;
}
// Handle the Ajax response
function submitFinished( response ) {
response = $.trim( response );
$('#sendingMessage').fadeOut();
if ( response == "success" ) {
// Form submitted successfully:
// 1. Display the success message
// 2. Clear the form fields
// 3. Fade the content back in
$('#successMessage').fadeIn().delay(messageDelay).fadeOut();
$('#senderName').val( "" );
$('#senderEmail').val( "" );
$('#message').val( "" );
$('#content').delay(messageDelay+500).fadeTo( 'slow', 1 );
var t=setTimeout(function(){
jQuery('.contact').click();
},2000)
} else {
// Form submission failed: Display the failure message,
// then redisplay the form
$('#failureMessage').fadeIn().delay(messageDelay).fadeOut();
$('#contactForm').delay(messageDelay+500).fadeIn();
}
}
</script>
</body>
</html>
=======
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<!-- DO NOT EDIT ANYTHING HERE -->
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<title>Relay For Life Website | Home</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
<meta name="format-detection" content="telephone=no" />
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- CSS
================================================== -->
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/colors/purple.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/btn.css">
<link rel="stylesheet" href="css/flexslider.css">
<link rel="stylesheet" href="css/superfish.css">
<!-- Google Fonts -->
<link href='http://fonts.googleapis.com/css?family=Archivo+Narrow:400,400italic,700,700italic|Oswald:400,300,700' rel='stylesheet' type='text/css'>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Favicons
================================================== -->
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="apple-touch-icon" href="img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
</head>
<!-- YOU MAY EDIT CONTENT IN THE BODY -->
<body class="purpScheme">
<!--topbar-->
<div class="topBar">
<div class="container">
<div class="sixteen columns">
<ul class="topBarMenu clearfix">
<li class="contactModule">
<a class="contact" href="#">Contact</a>
<div class="footerModule clearfix">
<h2>LET'S KEEP IN TOUCH<a href="#" class="contactClose">X</a></h2>
<h3 class="contactTitle"><span class="moduleLabel" style="width: 95%;">LEAVE A COMMENT</span></h3>
<div class="contactForm clearfix">
<form id="contactForm" class="clearfix" action="processForm.php" method="post">
<ul>
<li>
<label for="senderName">Your Name</label>
<input type="text" name="senderName" id="senderName" placeholder="" required maxlength="40" />
</li>
<li>
<label for="senderEmail">Your Email Address</label>
<input type="email" name="senderEmail" id="senderEmail" placeholder="" required maxlength="50" />
</li>
<li>
<label for="message" style="padding-top: .5em;">Your Message</label>
<textarea name="message" id="message" placeholder="" required cols="80" rows="10" maxlength="10000"></textarea>
</li>
</ul>
<input type="submit" class="button-small rounded3 purple" id="sendMessage" name="sendMessage" value="Send Email" />
</form>
<div id="sendingMessage" class="statusMessage"><p>Sending your message. Please wait...</p></div>
<div id="successMessage" class="statusMessage"><p>Thanks for sending your message! We'll get back to you shortly.</p></div>
<div id="failureMessage" class="statusMessage"><p>There was a problem sending your message. Please try again.</p></div>
<div id="incompleteMessage" class="statusMessage"><p>Please complete all the fields in the form before sending.</p></div>
</div>
</div>
</li>
</ul>
<div class="topBarSearch">
<form method="get" id="searchform">
<!-- Search Feature -->
<input id="s" type="text" onblur="if(this.value=='')this.value='';" onfocus="if(this.value=='')this.value='';" value="" name="s">
</form>
</div>
</div>
</div>
</div>
<!-- end topbar -->
<!--header start -->
<header>
<div class="container clearfix">
<div class="sixteen columns">
<div class="logo">
<a href="index.html">
<img src="img/logo.png" alt="" />
</a>
</div>
<nav class="mainNav">
<ul class="nav clearfix sf-menu sf-js-enabled sf-shadow">
<li><a href="index.html">Home</a></li>
<li><a class="active" href="community.html">Community</a></li>
<li><a href="nation.html">Nation</a></li>
<li><a href="wwide.html">Worldwide</a></li>
<li><a href="funds.html">Fundraising</a></li>
</ul>
<div class="container mobileNav">
<div class="sixteen columns"></div>
</div>
</nav>
</div>
</div>
</header>
<!--end header -->
<div class="pageInfo">
<div class="container">
<div class="eight columns pageTitle">
<h1>COMMUNITY</h1>
</div>
<div class="eight columns breadcrumb">
<a href="index.html">HOME</a>
<span>COMMUNITY</span>
</div>
</div>
</div>
<!-- starting up the actual content -->
<div class="pageContentWrapper">
<div class="container">
<div class="sixteen columns">
<div class="pageContent">
<!--START EDITING CONTENT HERE -->
<h4>COMMUNITY INFORMATION</h4>
<hr>
<p>Relay for Life has affected our community in many ways.<img style="margin-top: 25px !important; width:350px!important;" src="img/skids.jpg" class="alignright" alt="" /> There is actually a Relay for Life club here at Mill Creek High School, and there is also Relay for Life events that happen right here in Gwinnet County. MC's relay for life has done things like sponsor a "Pink-Out" game in honor of Breast Cancer Awareness Month and/ or the Dr. Jim L Markham Golf Classic. There are about 100 teams participating in Relay for Life of Gwinnett County. The top donating team is our fellow GCPS, Peachtree Ridge High School, giving over 10,000 dollars to this Non-Profit organization. At the events many fighters, survivors, caregivers, and supporters come together to help celebrate the fight against cancer. The video (above/below) shows a recent Relay for Life event in May 2012, hundreds of people met at Gwinnet County Fairgrounds and shared their stories, made friends, and related to their fellow cancer patients/survivors. Relay for Life plays a huge role in many communities around the nation, giving everyone a chance to share their story.
<br /><br />
Watch a video about Relay for Life in our community: <a href="http://www.gwinnettdailypost.com/videos/2012/may/05/207/" target="_blank">Here</a>.</p>
<!-- STAHP EDITING -->
</div>
</div>
</div>
</div>
<!-- footer start -->
<footer>
<div class="container clearfix">
<div class="one-third column">
<img style="margin-bottom: 15px;" src="img/logo.png" alt="" />
<p>Find events in your community! Anyone who joins as a volunteer or committee member helps in the fight against cancer, and participates in forming teams and raising money. Get together with you team to discuss fundraising ideas and save lives.</p>
<a class="button-small-theme rounded3" href="community.html">MORE INFO</a>
</div>
<div class="one-third column">
<div class="footerModule clearfix">
<h2>UPCOMING WALKS</h2>
<h3 class="odd"><span class="moduleLabel">May 10, 2013</span><span class="moduleDescription">12.5 Mi</span></h3>
<h3><span class="moduleLabel">May 31, 2013</span><span class="moduleDescription">12.6 Mi</span></h3>
<h3 class="odd"><span class="moduleLabel">April 26, 2013</span><span class="moduleDescription">15.4 Mi</span></h3>
</div>
</div>
<div class="one-third column">
<div class="footerModule clearfix">
<h2>UPCOMING WALKS</h2>
<h3 class="odd"><span class="moduleLabel">May 10, 2013</span><span class="moduleDescription">5.7 Mi</span></h3>
<h3><span class="moduleLabel">April 26, 2013</span><span class="moduleDescription">6.4 Mi</span></h3>
<h3 class="odd"><span class="moduleLabel">May 10, 2013</span><span class="moduleDescription">9 Mi</span></h3>
</div>
</div>
</div>
</footer>
<!-- footer stahp -->
<!-- (c) content -->
<div class="smallFooter">
<div class="container">
<div class="contentRight">DESIGNED WITH LOVE BY <a href="http://darthdesigns.com">DARTH DESIGNS</a>.</div>
</div>
</div>
<!-- EDIT NOTHING BELOW THIS COMMENT. NOTHING. NOTHING. NOTHING. -->
<!-- include jQuery -->
<script src="js/jquery-1.8.0.min.js"></script>
<!-- Include the plug-in -->
<script src="js/script.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/jquery.flexslider-min.js"></script>
<script type="text/javascript" src="js/superfish.js"></script>
<script type="text/javascript" src="js/hoverIntent.js"></script>
<script type="text/javascript">
var messageDelay = 2000; // How long to display status messages (in milliseconds)
// Init the form once the document is ready
$( init );
// Initialize the form
function init() {
// Hide the form initially.
// Make submitForm() the form's submit handler.
// Position the form so it sits in the centre of the browser window.
$('#contactForm').submit( submitForm );
// When the "Send us an email" link is clicked:
// 1. Fade the content out
// 2. Display the form
// 3. Move focus to the first field
// 4. Prevent the link being followed
$('a[href="#contactForm"]').click( function() {
$('#content').fadeTo( 'slow', .2 );
$('#contactForm').fadeIn( 'slow', function() {
$('#senderName').focus();
} )
return false;
} );
// When the "Cancel" button is clicked, close the form
$('#cancel').click( function() {
$('#content').fadeTo( 'slow', 1 );
} );
// When the "Escape" key is pressed, close the form
$('#contactForm').keydown( function( event ) {
if ( event.which == 27 ) {
$('#content').fadeTo( 'slow', 1 );
}
} );
}
// Submit the form via Ajax
function submitForm() {
var contactForm = $(this);
// Are all the fields filled in?
if ( !$('#senderName').val() || !$('#senderEmail').val() || !$('#message').val() ) {
// No; display a warning message and return to the form
$('#incompleteMessage').fadeIn().delay(messageDelay).fadeOut();
delay(messageDelay).fadeIn();
} else {
// Yes; submit the form to the PHP script via Ajax
$('#sendingMessage').fadeIn();
$.ajax( {
url: contactForm.attr( 'action' ) + "?ajax=true",
type: contactForm.attr( 'method' ),
data: contactForm.serialize(),
success: submitFinished
} );
}
// Prevent the default form submission occurring
return false;
}
// Handle the Ajax response
function submitFinished( response ) {
response = $.trim( response );
$('#sendingMessage').fadeOut();
if ( response == "success" ) {
// Form submitted successfully:
// 1. Display the success message
// 2. Clear the form fields
// 3. Fade the content back in
$('#successMessage').fadeIn().delay(messageDelay).fadeOut();
$('#senderName').val( "" );
$('#senderEmail').val( "" );
$('#message').val( "" );
$('#content').delay(messageDelay+500).fadeTo( 'slow', 1 );
var t=setTimeout(function(){
jQuery('.contact').click();
},2000)
} else {
// Form submission failed: Display the failure message,
// then redisplay the form
$('#failureMessage').fadeIn().delay(messageDelay).fadeOut();
$('#contactForm').delay(messageDelay+500).fadeIn();
}
}
</script>
</body>
</html>
>>>>>>> Updating site files once more