-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
805 lines (688 loc) · 34.2 KB
/
index.php
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
<?php
if(isset($_POST['send']))
{
if(!empty($_POST['firstname']) AND !empty($_POST['email']) AND !empty($_POST['message']))
{
$firstnameright = htmlspecialchars($_POST['firstname']);
$emailright = htmlspecialchars($_POST['email']);
$messageright = htmlspecialchars($_POST['message']);
$firstnamelength= strlen($firstnameright);
if ($firstnamelength >= 2 AND $firstnamelength <= 255) {
if (filter_var($emailright, FILTER_VALIDATE_EMAIL)) {
$header="MIME-Version: 1.0\r\n";
$header.='From:"Yoannchevessier.fr"<hello@yoannchevessier.fr>'."\n";
$header.='Content-Type:text/html; charset="UFT8"'."\n";
$header.='Content-Transfer-Encoding: 8bit';
$message='
<html>
<body>
<div align="center">
<u>Nom de l\'expéditeur :</u>'."\n".$_POST['firstname'].'<br />
<u>Mail de l\'expéditeur :</u>'."\n".$_POST['email'].'<br />
<br />
'.nl2br($_POST['message']).'
</div>
</body>
</html>
';
mail("hello@yoannchevessier.fr", "CONTACT - Yoannchevessier.fr", $message, $header);
$alert="Votre message a bien été envoyé !";
}
else {
$alert="Votre adresse email n'est pas valide !";
}
}
else {
$alert="Votre pseudo doit contenir entre 2 et 255 caractères !";
}
}
else
{
$alert="Tous les champs doivent être complétés !";
}
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="Portfolio consacré à Yoann CHEVESSIER, étudiant dans les métiers du multimédia et de l'internet">
<meta name="keywords" content="Portfolio, Web, Conception, Yoann, CHEVESSIER">
<meta name="author" content="Yoann CHEVESSIER">
<link rel="icon" type="image/png" href="svg/logo_2.png" />
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="animation/effects.css">
<link rel="stylesheet" href="fonts/stylesheet.css">
<link rel="stylesheet" href="animation/animate.css">
<title>Yoann Chevessier</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBjelwyV3a_eZ3MzLvoucrymsMOgRA4VOE"></script>
<script type="text/javascript" src="js/jquery.mixitup.min.js"></script>
</head>
<body>
<div class="noty_bottom">
<p>Ce site est actuellement en version de test et il est possible que vous rencontriez certains bugs. Contactez moi si vous en rencontrer. <br/>Merci 🙏</p>
<div class="noty_close"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Grey_close_x.svg/1024px-Grey_close_x.svg.png" alt="close" /> </div>
</div>
<nav>
<a href="index.php"><img src="svg/logo.svg" alt="Logo" class="logo"></a>
<ul>
<li><a href="#about" id="nav_1">About</a></li>
<li>
<a href="#experience" id="nav_2">Experience</a></li>
<li>
<a href="#projects" id="nav_3">Projets</a></li>
<li>
<a href="#services" id="nav_4">Services</a></li>
<li>
<a href="#contact" id="nav_5">Contact</a></li>
<li class="language">
<a href="lang/en/index.php">En</a>
</li>
</ul>
</nav>
<header>
<div>
<h1 class="wow fadeInTitleRight">Yoann CHEVESSIER</h1>
<h2 class="wow fadeInTitleLeft">étudiant en production multimédia</h2>
<a href="#about" class="scrollDown"></a>
</div>
</header>
<main>
<section class="qualities">
<article>
<div>
<img src="images/ios-world-outline.svg" alt="" />
</div>
<h4>Développement web</h4>
</article>
<article>
<div>
<img src="images/icon_design.svg" alt="" />
</div>
<h4>Graphisme</h4>
</article>
<article>
<div>
<img src="images/ios-lightbulb-outline.svg" alt="" />
</div>
<h4>Autres</h4>
</article>
</section>
<section class="about" id="about">
<article>
<h2 class="wow fadeInDown">ABOUT ME</h2>
<hr>
<p class="wow fadeInUp">Originaire d'un petit village de l'agglomération de Tours, je suis actuellement en 1ère année de DUT des <span style="font-weight: bold;">Métiers du Multimédia et de l'Internet</span> <span style="font-style: italic;">(anciennement appelé SRC)</span>. J'ai <span style="font-weight: bold;">18 ans</span> et je suis un mordu des nouvelles technologiques depuis tout petit, et passionné depuis maintenant plus de deux ans par un domaine tout particulier : le <span style="font-weight: bold;">WEB</span>. Je possède une très bonne maîtrise des <span style="font-weight: bold;">langages de programmation</span>, mais aussi des <span style="font-weight: bold;">logiciels de création graphique</span>.</p>
</article>
</section>
<section class="experience" id="experience">
<article>
<h2>EXPERIENCE</h2>
<hr>
<p>Passionné et aussi grâce à ma formation, je réalise mes projets grâce aux différentes compétences que j'ai pu acquérir en programmation comme en infographie ainsi que dans d'autres domaines comme la mise en forme de document, la gestion d'un projet d'équipe et pleins d'autres encore...</p>
<table>
<tr>
<td>
<h4>HTML/CSS</h4>
<div>
<div class="wow progress1"></div>
</div>
</td>
<td class="second_row">
<h4>Jquery</h4>
<div>
<div class="wow progress2"></div>
</div>
</td>
</tr>
<tr>
<td>
<h4>Illustrator</h4>
<div>
<div class="wow progress3"></div>
</div>
</td>
<td class="second_row">
<h4>Photoshop</h4>
<div>
<div class="wow progress4"></div>
</div>
</td>
</tr>
<tr>
<td>
<h4>PHP/DATABASE</h4>
<div>
<div class="wow progress5"></div>
</div>
</td>
<td class="second_row">
<h4>MICROSOFT OFFICE</h4>
<div>
<div class="wow progress6"></div>
</div>
</td>
</tr>
</table>
<div class="bar_experience wow fadeInUp2">
<div class="step_point step_point_1 wow fadeInLeft" data-wow-delay="1s"><span>2013 : Maintenance en informatique</span></div>
<div class="step_point step_point_2 wow fadeInRight" data-wow-delay="1s"><span>2016 : Baccalauréat STI2D</span></div>
<div class="step_point step_point_3 wow fadeInLeft" data-wow-delay="1s"><span>2016 : Première année MMI</span></div>
<div class="step_point step_point_4 wow fadeInRight" data-wow-delay="1s"><span>2017 : Projet 27h MMI</span></div>
<div class="step_point step_point_5 wow fadeInLeft" data-wow-delay="1s"><span>Le futur est merveilleux</span></div>
</div>
</article>
</section>
<section class="cv">
<article>
<div>
<img src="images/icon_cv.svg" alt="" />
</div>
<a href="lang/fr/cv.pdf" target="_blank" class="hvr-shutter-in-horizontal">
<h4>Télécharger mon CV</h4>
</a>
</article>
</section>
<section class="projets" id="projects">
<article>
<h2>PROJETS</h2>
<hr>
<ul id="filters" class="clearfix">
<li><span class="filter active" data-filter=".web, .design, .video, .other">Tous</span></li>
<li><span class="filter" data-filter=".web">Web</span></li>
<li><span class="filter" data-filter=".design">Design</span></li>
<li><span class="filter" data-filter=".video">Vidéo</span></li>
<li><span class="filter" data-filter=".other">Autres</span></li>
</ul>
<div id="portfoliolist">
<div class="portfolio web wow fadeIn" data-cat="design">
<div class="portfolio-wrapper">
<img src="images/Portfolio.gif" alt="Portfolio Yoann CHEVESSIER" />
<div class="label">
<a></a>
<div class="label-text">
<h3>Portfolio</h3>
<p>Site web regroupant mon parcours</p>
</div>
</div>
</div>
</div>
<div class="portfolio video wow fadeIn" data-cat="video">
<a href="https://www.youtube.com/watch?v=Mxc4rBCp69c" target="_blank">
<div class="portfolio-wrapper">
<img src="images/Lola.jpg" alt="LOLA - Short film" />
<div class="label">
<div class="label-text">
<h3>LOLA</h3>
<p>Court-métrage avec des amis</p>
</div>
</div>
</div>
</a>
</div>
<div class="portfolio design wow fadeIn" data-cat="design">
<div class="portfolio-wrapper">
<img src="images/street_spirit.jpg" alt="Street spirit promotion" />
<div class="label">
<a></a>
<div class="label-text">
<h3>Street Spirit</h3>
<p>Poster pour la marque de Streetwear "Street spirit"</p>
</div>
</div>
</div>
</div>
<div class="portfolio web wow fadeIn" data-cat="web">
<div class="portfolio-wrapper">
<img src="images/bruxelles_nancy.jpg" alt="Website History Nancy and Bruxelles" />
<div class="label">
<a></a>
<div class="label-text">
<h3>Nancy & Bruxelles</h3>
<p>Site web sur l'Art nouveau à Nancy & Bruxelles</p>
</div>
</div>
</div>
</div>
<div class="portfolio design wow fadeIn" data-cat="design">
<div class="portfolio-wrapper">
<img src="images/Geneve.jpg" alt="Grand Prix Rétro Geneve Affiche" />
<div class="label">
<a></a>
<div class="label-text">
<h3>Grand prix rétro</h3>
<p>Création graphique pour le Grand Prix Rétro de Genève</p>
</div>
</div>
</div>
</div>
<div class="portfolio other wow fadeIn" data-cat="other">
<div class="portfolio-wrapper">
<img src="images/communique_de_presse.jpg" alt="O'gliss Park Press release" />
<div class="label">
<a></a>
<div class="label-text">
<h3>O'gliss Park</h3>
<p>Communiqué de presse pour le parc aquatique O'gliss</p>
</div>
</div>
</div>
</div>
<div class="portfolio web wow fadeIn" data-cat="web">
<div class="portfolio-wrapper">
<img src="images/digital_creature.jpg" alt="Website Digital Creature" />
<div class="label">
<a></a>
<div class="label-text">
<h3>DigitalCREATURE</h3>
<p>Création d'un site web responsive grâce une maquette</p>
</div>
</div>
</div>
</div>
<div class="portfolio design wow fadeIn" data-cat="design">
<div class="portfolio-wrapper">
<img src="images/cinema.jpg" alt="Cinema Promotion" />
<div class="label">
<a></a>
<div class="label-text">
<h3>Cinéma</h3>
<p>Affiche de promotion d'un évènement cinématographique</p>
</div>
</div>
</div>
</div>
<div class="portfolio web wow fadeIn" data-cat="web">
<div class="portfolio-wrapper">
<img src="images/lettre_motivation.jpg" alt="Website Lettre Motivation MMI" />
<div class="label">
<a></a>
<div class="label-text">
<h3>Lettre de Motivation - MMI</h3>
<p>Création d'une lettre de motivation à travers un site web pour MMI</p>
</div>
</div>
</div>
</div>
<div class="portfolio other wow fadeIn" data-cat="other">
<div class="portfolio-wrapper">
<img src="images/new_york.jpg" alt="Press New York" />
<div class="label">
<a></a>
<div class="label-text">
<h3>NEW YORK</h3>
<p>Mise en page d'un journal numérique</p>
</div>
</div>
</div>
</div>
<div class="portfolio design wow fadeIn" data-cat="design">
<div class="portfolio-wrapper">
<img src="images/blackberry.jpg" alt="Promotion Blackberry" />
<div class="label">
<a></a>
<div class="label-text">
<h3>BLACKBERRY</h3>
<p>Bannière web pour promouvoir la nouvelle communication digitale de la marque</p>
</div>
</div>
</div>
</div>
<div class="portfolio web wow fadeIn" data-cat="web">
<div class="portfolio-wrapper">
<img src="images/rock_en_delire.jpg" alt="Website Rock en Délire" />
<div class="label">
<a></a>
<div class="label-text">
<h3>ROCK EN DéLIRE</h3>
<p>Création de 3 pages d'un site web pour un festival de rock</p>
</div>
</div>
</div>
</div>
</div>
</article>
</section>
<section class="projects_stats">
<article class="wow fadeIn">
<ul>
<li>
<h3 class="number">5</h3>
<p>Clients</p>
</li>
<li>
<h3 class="number">15</h3>
<p>Projets</p>
</li>
<li>
<h3 class="number">37</h3>
<p>Collaborations</p>
</li>
<li>
<h3 class="number">853</h3>
<p>Heures</p>
</li>
</ul>
</article>
</section>
<section class="services" id="services">
<article>
<h2>Services</h2>
<hr>
<p>Je propose mes services à quiconque ayant un projet plus ou moins définit et ayant besoin des services que vous pourrez retrouver ci-dessous. Je tiens à préciser que ces services ne sont pas gratuits et qu'ils dépendront du temps libre dont je disposerais. Pour vos projets, je vous invite à me contacter via le formulaire dans l'onglet "Contact" ou m'envoyer un @Mail expliquant votre projet et ce que vous attendez de moi.</p>
<table align="center">
<tr>
<td class="wow bounceIn">
<img src="images/087-display.svg" alt="" />
<h4>Développement</h4>
</td>
<td class="wow bounceIn">
<img src="images/ios-world-outline.svg" alt="" />
<h4>Web design</h4>
</td>
<td class="wow bounceIn">
<img src="images/ios-compose-outline.svg" alt="" />
<h4>Infographie</h4>
</td>
<td class="wow bounceIn">
<img src="images/ico_data.svg" alt="" />
<h4>SQL - Data</h4>
</td>
</tr>
<tr>
<td class="wow bounceIn">
<img src="images/ios-camera-outline.svg" alt="" />
<h4>Photomontage</h4>
</td>
<td class="wow bounceIn">
<img src="images/ios-videocam-outline.svg" alt="" />
<h4>Vidéo - Montage</h4>
</td>
<td class="wow bounceIn">
<img src="images/social-wordpress-outline.svg" alt="" />
<h4>CMS</h4>
</td>
<td class="wow bounceIn">
<img src="images/ios-more-outline.svg" alt="" />
<h4>Etc</h4>
</td>
</tr>
</table>
</article>
</section>
<section class="create_together">
<article>
<h2 class="wow fadeInTitleLeft">Créons ensemble vos propres projets</h2>
<a href="#contact" class="hvr-shutter-in-horizontal contact_us wow fadeInUp" data-wow-delay="0.3s">Commencer</a>
</article>
</section>
<section class="contact" id="contact">
<article>
<h2>Contact</h2>
<hr>
<form action="index.php" method="POST">
<div>
<span><input id="firstname" type="text" name="firstname" placeholder="Nom *" /></span>
<span><input id="email" type="email" name="email" placeholder="@Mail *" /></span>
</div>
<textarea id="message" name="message" cols="40" rows="10" placeholder="Message *"></textarea>
<button type="submit" name="send" class="hvr-shutter-in-horizontal submit">Envoyer</button>
<label id="name_error" class="error">Veuillez renseigner votre nom (et prénom) !</label>
<label id="email_error" class="error">Veuillez renseigner votre adresse @mail !</label>
<label id="msg_error" class="error">Veuillez renseigner votre message !</label>
<?php if(isset($alert)) { echo $alert; } ?>
</form>
<div class="information_content">
<div>
<img src="images/ios-telephone-outline.svg" alt="" class="wow swing" />
<h4>Téléphone</h4>
<span>+33 6 05 47 22 81</span>
</div>
<div>
<img src="images/ios-email-outline.svg" alt="" class="wow swing" />
<h4>EMAIL</h4>
<span>hello@yoannchevessier.fr</span>
</div>
</div>
<div id="map">
<div class="lock"></div>
</div>
</article>
</section>
</main>
<footer>
<section class="socials_networks">
<article>
<h1>Yoann CHEVESSIER</h1>
<hr>
<div>
<a href="https://www.linkedin.com/in/yoannchevessier/" target="_blank"><img src="images/linkedin-logo.svg" alt="Logo Linkedin" /></a>
<a href="https://www.behance.net/hello8145" target="_blank"><img src="images/behance-logo.svg" alt="Logo Behance" /></a>
<a href="https://codepen.io/YoannCHVSR/" target="_blank"><img src="images/social-codepen.svg" alt="Logo CodePen" /></a>
<a href="https://twitter.com/YoannCHVSR" target="_blank"><img src="images/social-twitter.svg" alt="Logo Twitter" /></a>
<a href="https://www.youtube.com/channel/UCV3Xdqx1mNFf9HY6UGzZS-A" target="_blank"><img src="images/social-youtube.svg" alt="Logo YouTube" /></a>
</div>
</article>
</section>
<section class="legacies">
<article>
<p>© 2017. Yoann CHEVESSIER. Tous droits réservés.</p>
</article>
</section>
</footer>
<!-- \\------------SCRIPT------------// -->
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/wow.js"></script>
<script>
new WOW().init();
</script>
<!-- \\------------CODE JQUERY------------// -->
<script>
var mapOptions = {
center: new google.maps.LatLng(47.58609209999999, 1.3359474999999748),
zoom: 12,
scrollwheel: false,
disableDoubleClickZoom: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById('map'), mapOptions);
var markerOptions = {
position: new google.maps.LatLng(47.58609209999999, 1.3359474999999748)
};
var marker = new google.maps.Marker(markerOptions);
marker.setMap(map);
</script>
<script>
var $win = $(window),
winH = $win.height() - 90,
$transform_nav = $('nav'),
$transform_a = $('nav ul li a'),
$transform_border = $('.language'),
$transform_logo = $('.logo'),
$button = $('.scrollDown'),
$work_together = $('.contact_us'),
$nav_link1 = $('#nav_1'),
$nav_link2 = $('#nav_2'),
$nav_link3 = $('#nav_3'),
$nav_link4 = $('#nav_4'),
$nav_link5 = $('#nav_5');
$(document).ready(function() {
if ($(this).scrollTop() > winH) {
$transform_nav.addClass('transform');
$transform_a.addClass('color');
$transform_border.addClass('border');
$transform_logo.attr('src', 'svg/logo_2.svg');
} else {
$transform_nav.removeClass('transform');
$transform_a.removeClass('color');
$transform_border.removeClass('border');
$transform_logo.attr('src', 'svg/logo.svg');
}
});
$(window).scroll(function() {
var $position1 = $('.about').offset().top - 70,
$position2 = $('.experience').offset().top - 70,
$position3 = $('.projets').offset().top - 70,
$position4 = $('.services').offset().top - 71,
$position5 = $('.contact').offset().top - 71,
$position6 = $('footer').offset().top;
if ($(this).scrollTop() > winH) {
$transform_nav.addClass('transform');
$transform_a.addClass('color');
$transform_border.addClass('border');
$transform_logo.attr('src', 'svg/logo_2.svg');
} else {
$transform_nav.removeClass('transform');
$transform_a.removeClass('color');
$transform_border.removeClass('border');
$transform_logo.attr('src', 'svg/logo.svg');
}
if ($(this).scrollTop() >= $position1 && $(this).scrollTop() < $position2) {
$nav_link1.addClass('active');
} else {
$nav_link1.removeClass('active');
}
if ($(this).scrollTop() >= $position2 && $(this).scrollTop() < $position3) {
$nav_link2.addClass('active');
} else {
$nav_link2.removeClass('active');
}
if ($(this).scrollTop() >= $position3 && $(this).scrollTop() < $position4) {
$nav_link3.addClass('active');
} else {
$nav_link3.removeClass('active');
}
if ($(this).scrollTop() >= $position4 && $(this).scrollTop() < $position5) {
$nav_link4.addClass('active');
} else {
$nav_link4.removeClass('active');
}
if ($(this).scrollTop() >= $position5 && $(this).scrollTop() < $position6) {
$nav_link5.addClass('active');
} else {
$nav_link5.removeClass('active');
}
});
$button.click(function() {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top - 70
}, 1500, 'easeInOutExpo');
event.preventDefault();
});
$work_together.click(function() {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top - 70
}, 1500, 'easeInOutExpo');
event.preventDefault();
});
$('nav ul li a').click(function() {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top - 70
}, 1500, 'easeInOutExpo');
event.preventDefault();
});
</script>
<script>
var compteur = 0;
$(window).scroll(function() {
if ($(this).scrollTop() > 3500 && $(this).scrollTop() < 4500 && compteur < 4) {
$('.number').addClass('count');
$('.count').each(function() {
$(this).prop('Counter', 0).animate({
Counter: $(this).text()
}, {
duration: 2000,
easing: 'swing',
step: function(now) {
$(this).text(Math.ceil(now));
}
});
compteur++;
});
};
})
</script>
<script type="text/javascript">
$(function() {
var filterList = {
init: function() {
$('#portfoliolist').mixItUp({
selectors: {
target: '.portfolio',
filter: '.filter'
},
load: {
filter: '.web, .design, .video, .other'
}
});
}
};
filterList.init();
});
</script>
<script type="text/javascript">
$(function() {
$('.error').hide();
$(".submit").click(function() {
$('.error').hide();
var name = $("#firstname").val();
if (name == "") {
$("#name_error").show();
$("#firstname").focus();
return false;
}
var email = $("#email").val();
if (email == "") {
$("#email_error").show();
$("#email").focus();
return false;
}
var message = $("#message").val();
if (message == "") {
$("#msg_error").show();
$("#message").focus();
return false;
}
});
});
</script>
<script>
var winHi = $win.height() - 600,
$noty = $('.noty_bottom'),
compt = 0;
$(document).ready(function() {
if ($(this).scrollTop() > winHi) {
$noty.css('z-index', '1000000');
$noty.css('opacity', '1');
$noty.css('bottom', '20px');
} else {
$noty.css('z-index', '0');
$noty.css('opacity', '0');
$noty.css('bottom', '0');
}
});
$(window).scroll(function() {
if ($(this).scrollTop() > winHi && compt < 1) {
$noty.css('z-index', '1000000');
$noty.css('opacity', '1');
$noty.css('bottom', '20px');
} else {
$noty.css('z-index', '0');
$noty.css('opacity', '0');
$noty.css('bottom', '0');
}
});
$(".noty_close").on("click", function() {
$(".noty_bottom").animate({
"bottom": "-400px"
}, "slow");
compt++;
});
</script>
</body>
</html>