-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.html
712 lines (618 loc) · 25.8 KB
/
about.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
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<!-- main stuff -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Miro Storm - About Me</title>
<meta name="description" content="My website, including portfolio and more info about myself about a graphic designer." />
<meta name="keywords" content="graphic, design, animation, photography, miro, storm, polfliet, antwerp, illustration, post, cards, posters, portfolio, video, editing, 3d, web" />
<meta name="author" content="Miro Storm" />
<!-- Favicon -->
<link rel="shortcut icon" href="assets/img/favicon.png"> <!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Astloch:wght@400;700&family=Megrim&family=Unica+One&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://use.typekit.net/zhq0vyf.css">
<link rel="stylesheet" href="assets/css/font-awesome.css">
<link rel="stylesheet" href="assets/css/font-awesome.css">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- Vendor CSS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="assets/css/style.css" />
<link href="assets/vendor/dmenu/css/menu.css" rel="stylesheet">
<link href="assets/vendor/hamburgers/css/hamburgers.min.css" rel="stylesheet">
<link href="assets/vendor/mmenu/css/mmenu.min.css" rel="stylesheet">
<link href="assets/vendor/filepond/css/filepond.css" rel="stylesheet">
<!-- Main CSS -->
<link rel="stylesheet" type="text/css" href="assets/css/style.css" />
<link rel="stylesheet" type="text/css" href="assets/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="assets/css/component.css" />
<link rel="stylesheet" type="text/css" href="assets/css/sendy.css" />
<link rel="stylesheet" type="text/css" href="assets/css/mediaqueries.css" />
<script>
document.documentElement.className = "js";
var supportsCssVars = function() { var e, t = document.createElement("style"); return t.innerHTML = "root: { --tmp-var: bold; }", document.head.appendChild(t), e = !!(window.CSS && window.CSS.supports && window.CSS.supports("font-weight", "var(--tmp-var)")), t.parentNode.removeChild(t), e };
supportsCssVars() || alert("Please view this website in a modern browser that supports CSS Variables.");
</script>
</head>
<body>
<main role="main" class="main-content">
<div class="loader loader--active">
<div class="loader__icon">
<svg id="loader-1" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="40px" height="40px" viewBox="0 0 40 40" enable-background="new 0 0 40 40" xml:space="preserve">
<path opacity="0.2" fill="#000" d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"></path>
<path fill="#000" d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0C22.32,8.481,24.301,9.057,26.013,10.047z"></path>
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 20 20" to="360 20 20" dur="0.5s" repeatCount="indefinite"></animateTransform>
</svg>
</div>
<div class="loader__tile"></div>
<div class="loader__tile"></div>
<div class="loader__tile"></div>
<div class="loader__tile"></div>
<div class="loader__tile"></div>
</div>
<canvas id="noise" class="noise"></canvas>
<div class="topnav ml-auto" id="myTopnav">
<a href="index.html" class="leftfloater">mirostorm.graphics</a>
<a href="index.html">Home</a>
<a href="about.html" class="active">About Me</a>
<div class="dropmenu">
<button class="dropbtn">Portfolio
<i class="bx bx-down-arrow-alt"></i>
</button>
<div class="dropmenu-content">
<a href="graphicdesign.html">Graphic Design</a>
<a href="photography.html">Photography</a>
<a href="animation.html">3D Animation</a>
<a href="video.html">Video Editing</a>
<a href="webdesign.html">Web Design</a>
</div>
</div>
<a href="contact.html">Contact</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">☰</a>
</div>
<div class="pageTitle animate__animated animate__fadeInRightBig">
<a class="pageTitle__item-link"></a>
<div class="pageTitle_marquee">
<div class="pageTitle_marquee__inner">
<span>About Me</span>
<span>About Me</span>
<span>About Me</span>
<span>About Me</span>
</div>
</div>
</div>
<div class="container ">
<div class="row">
<div class="col animate__animated animate__shakeX animate__delay-1s">
<hr style="height: 10px; opacity: 100; width: 80%; margin: 3rem auto; border: none; align-self: center;">
</div>
</div>
<div class="row pageContainer">
<div class="col">
<img src="https://via.placeholder.com/500/fff" alt="">
</div>
<div class="col colContainer">
<strong><i>I am a graphic designer and developer based in Antwerp, Belgium.</i></strong>
</div>
</div>
</div> <!-- ======= Contact Us Section ======= -->
<div class="container ">
<div class="row">
<div class="col animate__animated animate__shakeX animate__delay-1s">
<hr style="height: 10px; opacity: 100; width: 80%; margin: 0 auto 3rem; border: none; align-self: center; color: #E46425;">
</div>
</div>
</div>
<section id="contact" class="contact section-bg">
<div class="total-contact-wrapper">
<div class="infos contact-info-wrapper contact-wrap">
<div class="info info-1">
<a href="" target="_blank" class="infoBtn-wrap">
<i class="bx bxl-instagram-alt bx-lg"></i>
<div class="portInfoBtn">
<h4>Instagram</h4>
<p>Check out my Instagram!</p>
</div>
</a>
</div>
<div class="info info-2">
<a href="" target="_blank" class="infoBtn-wrap">
<i class="bx bxl-pinterest bx-lg"></i>
<div class="portInfoBtn">
<h4>Pinterest</h4>
<p>Check out my pins on Pinterest!</p>
</div>
</a>
</div>
<div class="info info-3">
<a href="" target="_blank" class="infoBtn-wrap">
<i class="bx bxl-youtube bx-lg"></i>
<div class="portInfoBtn">
<h4>YouTube</h4>
<p>Check out my YouTube channel!</p>
</div>
</a>
</div>
<div class="info info-4">
<a href="mailto:miro@mirostorm.graphics" class="infoBtn-wrap" target="_blank" rel="noopener noreferrer">
<i class="bx bxs-envelope bx-lg"></i>
<div class="portInfoBtn">
<h4>MAIL</h4>
<p>miro@mirostorm.graphics</p>
</div>
</a>
</div>
</div> <div class="contact">
<div class="container contact-form-wrap contact-wrap">
<!-- Form -->
<form method="POST" id="contactForm" name="contactForm" action="assets/php/send_phpmailer_file_attachment.php">
<div class="row">
<div id="mainContent">
<div class="row section-title intro-wrap">
<h2>Contact Me</h2>
<p>
For any inquiry, or info about my work, I highly encourage you to contact me through this form. Otherwise, you could also mail me yourself, or even call me in between my working hours.
</p>
</div>
<!-- Personal Details -->
<div class="row box first">
<div class="col-md-12 col-sm-12">
<div class="input input-first input-name input--jiro form-group">
<input id="username" class="input__field input__field--jiro form-control" name="username" type="text" placeholder="e.g.: John Doe" data-parsley-pattern="^[a-zA-Z\s.]+$" required />
<label class="input__label input__label--jiro">
<span class="input__label-content input__label-content--jiro">Your Full Name</span>
</label>
</div>
</div>
<div class="col-md-12 col-sm-12">
<div class="input input-first input-email input--jiro form-group">
<input id="email" class="input__field input__field--jiro form-control" name="email" placeholder="e.g.: john.doe@mail.com" type="email" required />
<label class="input__label input__label--jiro">
<span class="input__label-content input__label-content--jiro">Your E-mail</span>
</label>
</div>
</div>
<div class="col-md-12 col-sm-12">
<div class="input input-first input-email input--jiro form-group">
<input id="phone" class="input__field input__field--jiro form-control" name="phone" placeholder="e.g.: +32401234567" type="text" data-parsley-pattern="^\+{1}[0-9]+$" />
<label class="input__label input__label--jiro">
<span class="input__label-content input__label-content--jiro">Your Phone Number</span>
</label>
</div>
</div>
</div>
<!-- Personal Details End -->
<!-- Subject -->
<div class="col-md-12 col-sm-12">
<div class="input input--jiro form-group">
<input id="hidden" class="input__field input__field--jiro form-control" name="subject" placeholder="enter subject" type="text" required />
<label class="input__label input__label--jiro">
<span class="input__label-content input__label-content--jiro">Subject</span>
</label>
</div>
</div>
<!-- Subject End -->
<!-- Message -->
<div class="col-md-12">
<div class="input input--jiro form-group">
<textarea id="inputMessage" class="input__field input__field--jiro form-control" name="message" placeholder="enter message" rows="8" data-parsley-pattern="^[a-zA-Z0-9\s.:,!?']+$"
required></textarea>
<label class="input__label input__label--jiro">
<span class="input__label-content input__label-content--jiro">Message</span>
</label>
</div>
</div>
<!-- Message End -->
<!-- File Uploader -->
<div class="col-md-12">
<div class="input input--jiro form-group">
<input type="file" name="filepond[]" />
</div>
</div>
<!-- File Uploader End -->
<!-- Terms -->
<div class="col-md-12">
<div class="input input--jiro form-group">
<input type="checkbox" id="cbx" class="inp-cbx" name="terms" value="yes" required />
<label class="cbx terms" for="cbx">
<span>
<svg width="12px" height="10px" viewbox="0 0 12 10">
<polyline points="1.5 6 4.5 9 10.5 1"></polyline>
</svg>
</span>
<span>Accept<a href="pdf/terms.pdf" class="terms-link" target="_blank">Terms and Conditions</a>.</span>
</label>
</div>
</div>
<!-- Terms End -->
<!-- Submit-->
<div class="col-12">
<div class="input input--jiro form-group">
<button type="submit" name="submit" class="btn-form-func">
<span class="btn-form-func-content">Submit</span>
<span class="icon submit-icon"><i class="fa fa-paper-plane" aria-hidden="true"></i></span>
</button>
</div>
</div>
<!-- Submit -->
</div>
</div>
</form>
<!-- Form End -->
</div>
</div>
</div>
</section>
<!-- End Contact Us Section -->
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6 footer-info">
<h3>Miro Storm</h3>
<p>
<span style="color: #fff">
2000 Antwerp, <br>
Belgium <br><br>
</span>
<strong>Phone:</strong> <span style="color: #fff">+32 484 343 091</span><br>
<strong>Email:</strong> <span style="color: #fff">miro@mirostorm.graphics</span><br>
</p>
<div class="social-links mt-3">
<a href="#" class="twitter"><i class="bx bxl-twitter"></i></a>
<a href="#" class="facebook"><i class="bx bxl-facebook"></i></a>
<a href="#" class="instagram"><i class="bx bxl-instagram"></i></a>
<a href="#" class="linkedin"><i class="bx bxl-linkedin"></i></a>
<a href="#" class="youtube"><i class="bx bxl-youtube"></i></a>
</div>
</div>
<div class="col-lg-2 col-md-6 footer-links">
<h4>Useful Links</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="home.html">Home</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="about.html" class="active-footer">About Me</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="home.html">Portfolio</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="contact.html">Contact</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="terms-of-service.html">Terms of Service</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="privacy-policy.html">Privacy Policy</a></li>
</ul>
</div>
<div class="col-lg-3 col-md-6 footer-links">
<h4>Portfolio</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="graphicdesign.html">Graphic Design</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="photography.html">Photography</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="animation.html">3D Animation</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="video.html">Video Editing</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="webdesign.html">Web Design</a></li>
</ul>
</div> <div class="col-lg-4 col-md-6 footer-newsletter">
<h4>My Newsletter (WORK IN PROGRESS)</h4>
<p>Subscribe to my newsletter to receive monthly updates about my work!</p>
<form action="" method="post">
<span class="input input-news input--jiro">
<input class="input__field input__field--jiro" name="email" type="email" id="input-15 email" required/>
<label class="input__label input__label--jiro" for="input-15 email">
<span class="input__label-content input__label-content--jiro">Your E-mail</span>
</label>
</span>
<button class="link link--kumya" type="submit" style="font-weight: 600"><span data-letters="Subscribe">Subscribe</span></button>
</form>
</div>
</div>
</div>
</div>
<div class="row ultimate-footer">
<p>© Made by Miro Storm. All rights reserved.</p>
</div>
</footer><!-- End Footer -->
</main>
<!-- End #main -->
<a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
<!-- Vendor JS Files -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/easing/js/easing.min.js"></script>
<script src="assets/vendor/parsley/js/parsley.min.js"></script>
<script src="assets/vendor/nice-select/js/jquery.nice-select.min.js"></script>
<script src="assets/vendor/theia-sticky-sidebar/js/ResizeSensor.min.js"></script>
<script src="assets/vendor/theia-sticky-sidebar/js/theia-sticky-sidebar.min.js"></script>
<script src="assets/vendor/mmenu/js/mmenu.min.js"></script>
<script src="assets/vendor/filepond/js/filepond-plugin-file-validate-size.js"></script>
<script src="assets/vendor/filepond/js/filepond-plugin-file-validate-type.js"></script>
<script src="assets/vendor/filepond/js/filepond.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/form.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/vendor/purecounter/purecounter.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<script src="assets/vendor/waypoints/noframework.waypoints.js"></script>
<script type="text/javascript">
document.addEventListener('contextmenu', event => event.preventDefault());
document.onkeydown = function(e) {
if (e.ctrlKey &&
(e.keyCode === 67 ||
e.keyCode === 86 ||
e.keyCode === 85 ||
e.keyCode === 117)) {
return false;
} else {
return true;
}
};
</script>
<!-- Main JS File -->
<script src="assets/js/main.js"></script>
<script src="assets/js/pagetrans.js"></script>
<script src="assets/js/scripts.js"></script>
<script src="assets/js/classie.js"></script>
<script src="assets/js/clipboard.min.js"></script>
<script>
(function() {
[].slice.call(document.querySelectorAll('.filterbox')).forEach(function(filterbox) {
var filterboxItems = filterbox.querySelectorAll('.filterbox__link'),
setCurrent = function(ev) {
ev.preventDefault();
var item = ev.target.parentNode; // li
// return if already current
if (classie.has(item, 'filterbox__item--current')) {
return false;
}
// remove current
classie.remove(filterbox.querySelector('.filterbox__item--current'), 'filterbox__item--current');
// set current
classie.add(item, 'filterbox__item--current');
};
[].slice.call(filterboxItems).forEach(function(el) {
el.addEventListener('click', setCurrent);
});
});
[].slice.call(document.querySelectorAll('.link-copy')).forEach(function(link) {
link.setAttribute('data-clipboard-text', location.protocol + '//' + location.host + location.pathname + '#' + link.parentNode.id);
new Clipboard(link);
link.addEventListener('click', function() {
classie.add(link, 'link-copy--animate');
setTimeout(function() {
classie.remove(link, 'link-copy--animate');
}, 300);
});
});
})(window);
</script>
<!-- noise script -->
<script>
const noise = () => {
let canvas, ctx;
let wWidth, wHeight;
let noiseData = [];
let frame = 0;
let loopTimeout;
// Create Noise
const createNoise = () => {
const idata = ctx.createImageData(wWidth, wHeight);
const buffer32 = new Uint32Array(idata.data.buffer);
const len = buffer32.length;
for (let i = 0; i < len; i++) {
if (Math.random() < 0.5) {
buffer32[i] = 0xff000000;
}
}
noiseData.push(idata);
};
// Play Noise
const paintNoise = () => {
if (frame === 9) {
frame = 0;
} else {
frame++;
}
ctx.putImageData(noiseData[frame], 0, 0);
};
// Loop
const loop = () => {
paintNoise(frame);
loopTimeout = window.setTimeout(() => {
window.requestAnimationFrame(loop);
}, (1000 / 25));
};
// Setup
const setup = () => {
wWidth = window.innerWidth;
wHeight = window.innerHeight;
canvas.width = wWidth;
canvas.height = wHeight;
for (let i = 0; i < 10; i++) {
createNoise();
}
loop();
};
// Reset
let resizeThrottle;
const reset = () => {
window.addEventListener('resize', () => {
window.clearTimeout(resizeThrottle);
resizeThrottle = window.setTimeout(() => {
window.clearTimeout(loopTimeout);
setup();
}, 200);
}, false);
};
// Init
const init = (() => {
canvas = document.getElementById('noise');
ctx = canvas.getContext('2d');
setup();
})();
};
noise();
</script> <!-- end noise script -->
<!-- dropdown responsive script -->
<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>
<script>
(function() {
// trim polyfill : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim
if (!String.prototype.trim) {
(function() {
// Make sure we trim BOM and NBSP
var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
String.prototype.trim = function() {
return this.replace(rtrim, '');
};
})();
}
[].slice.call( document.querySelectorAll( 'input.input__field' ) ).forEach( function( inputEl ) {
// in case the input is already filled..
if( inputEl.value.trim() !== '' ) {
classie.add( inputEl.parentNode, 'input--filled' );
}
// events:
inputEl.addEventListener( 'focus', onInputFocus );
inputEl.addEventListener( 'blur', onInputBlur );
} );
function onInputFocus( ev ) {
classie.add( ev.target.parentNode, 'input--filled' );
}
function onInputBlur( ev ) {
if( ev.target.value.trim() === '' ) {
classie.remove( ev.target.parentNode, 'input--filled' );
}
}
})();
</script>
<script>
(function() {
// trim polyfill : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim
if (!String.prototype.trim) {
(function() {
// Make sure we trim BOM and NBSP
var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
String.prototype.trim = function() {
return this.replace(rtrim, '');
};
})();
}
[].slice.call( document.querySelectorAll( 'textarea.input__field' ) ).forEach( function( inputEl ) {
// in case the input is already filled..
if( inputEl.value.trim() !== '' ) {
classie.add( inputEl.parentNode, 'input--filled' );
}
// events:
inputEl.addEventListener( 'focus', onInputFocus );
inputEl.addEventListener( 'blur', onInputBlur );
} );
function onInputFocus( ev ) {
classie.add( ev.target.parentNode, 'input--filled' );
}
function onInputBlur( ev ) {
if( ev.target.value.trim() === '' ) {
classie.remove( ev.target.parentNode, 'input--filled' );
}
}
})();
</script>
<script>
window.requestAnimFrame = (function(callback) {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame ||
function(callback) {
window.setTimeout(callback, 1000 / 60);
};
})();
var requestId, jolttime;
var c = document.getElementById('canv');
var $ = c.getContext('2d');
var s = 18; //grid square size
var mv = 10; //moving areas
var sp = 1; //move speed
var clm = 23; //columns
var rw = 10; //rows
var x = []; //x array
var y = []; //y array
var X = []; //starting X array
var Y = []; //starting Y array
c.width = c.offsetWidth;
c.height = c.offsetHeight;
for (var i = 0; i < clm * rw; i++) {
x[i] = ((i % clm) - 0.5) * s;
y[i] = (Math.floor(i / clm) - 0.5) * s;
X[i] = x[i];
Y[i] = y[i];
}
var t = 0;
function jolt() {
$.fillRect(0, 0, c.width, c.height);
for (var i = 0; i < clm * rw; i++) {
if (i % clm != clm - 1 && i < clm * (rw - 1) - 1) {
$.fillStyle = "hsla(0,0,0,1)";
$.strokeStyle = "#95D384";
$.lineWidth = 1;
$.beginPath();
$.moveTo(x[i], y[i]);
$.lineTo(x[i + 1], y[i + 1]);
$.lineTo(x[i + clm + 1], y[i + clm + 1]);
$.lineTo(x[i + clm], y[i + clm]);
$.closePath();
$.stroke();
$.fill();
}
}
for (var i = 0; i < rw * clm; i++) {
if ((x[i] < X[i] + mv) && (x[i] > X[i] - mv) && (y[i] < Y[i] + mv) && (y[i] > Y[i] - mv)) {
x[i] = x[i] + Math.floor(Math.random() * (sp * 2 + 1)) - sp;
y[i] = y[i] + Math.floor(Math.random() * (sp * 2 + 1)) - sp;
} else if (x[i] >= X[i] + mv) {
x[i] = x[i] - sp;
} else if (x[i] <= X[i] - mv) {
x[i] = x[i] + sp;
} else if (y[i] >= Y[i] + mv) {
y[i] = y[i] - sp;
} else if (y[i] <= Y[i] + mv) {
y[i] = y[i] + sp;
}
}
//controls time of electric shake> when counter equals 0, it will reset for 5s then start again.
if (t % c.width == 0) {
jolttime = setTimeout('jolt()', 5);
t++;
} else {
jolttime = setTimeout('jolt()', 5);
t++;
}
}
function start() {
if (!requestId) {
requestId = window.requestAnimFrame(jolt);
}
}
function stop() {
if (requestId) {
clearTimeout(jolttime);
window.cancelAnimationFrame(requestId);
requestId = undefined;
}
}
document.querySelector('a.link--asiri').addEventListener('mouseenter', start);
document.querySelector('a.link--asiri').addEventListener('mouseleave', stop);
</script>
</body>
</html>