-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
531 lines (487 loc) · 28.9 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mahira | VCard | CV HTML Template</title>
<!-- Stylesheets -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<!--Favicon-->
<link rel="shortcut icon" href="images/favicon.png" type="image/x-icon">
<link rel="icon" href="images/favicon.png" type="image/x-icon">
<!-- Responsive -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!--[if lt IE 9]><script src="js/html5shiv.js"></script><![endif]-->
<!--[if lt IE 9]><script src="js/respond.js"></script><![endif]-->
</head>
<body>
<script>
function clickEffect() {
let balls = [];
let longPressed = false;
let longPress;
let multiplier = 0;
let width, height;
let origin;
let normal;
let ctx;
const colours = ["#F73859", "#14FFEC", "#00E0FF", "#FF99FE", "#FAF15D"];
const canvas = document.createElement("canvas");
document.body.appendChild(canvas);
canvas.setAttribute("style", "width: 100%; height: 100%; top: 0; left: 0; z-index: 99999; position: fixed; pointer-events: none;");
const pointer = document.createElement("span");
pointer.classList.add("pointer");
document.body.appendChild(pointer);
if (canvas.getContext && window.addEventListener) {
ctx = canvas.getContext("2d");
updateSize();
window.addEventListener('resize', updateSize, false);
loop();
window.addEventListener("mousedown", function (e) {
pushBalls(randBetween(10, 20), e.clientX, e.clientY);
document.body.classList.add("is-pressed");
longPress = setTimeout(function () {
document.body.classList.add("is-longpress");
longPressed = true;
}, 500);
}, false);
window.addEventListener("mouseup", function (e) {
clearInterval(longPress);
if (longPressed == true) {
document.body.classList.remove("is-longpress");
pushBalls(randBetween(50 + Math.ceil(multiplier), 100 + Math.ceil(multiplier)), e.clientX, e.clientY);
longPressed = false;
}
document.body.classList.remove("is-pressed");
}, false);
window.addEventListener("mousemove", function (e) {
let x = e.clientX;
let y = e.clientY;
pointer.style.top = y + "px";
pointer.style.left = x + "px";
}, false);
} else {
console.log("canvas or addEventListener is unsupported!");
}
function updateSize() {
canvas.width = window.innerWidth * 2;
canvas.height = window.innerHeight * 2;
canvas.style.width = window.innerWidth + 'px';
canvas.style.height = window.innerHeight + 'px';
ctx.scale(2, 2);
width = (canvas.width = window.innerWidth);
height = (canvas.height = window.innerHeight);
origin = {
x: width / 2,
y: height / 2
};
normal = {
x: width / 2,
y: height / 2
};
}
class Ball {
constructor(x = origin.x, y = origin.y) {
this.x = x;
this.y = y;
this.angle = Math.PI * 2 * Math.random();
if (longPressed == true) {
this.multiplier = randBetween(14 + multiplier, 15 + multiplier);
} else {
this.multiplier = randBetween(6, 12);
}
this.vx = (this.multiplier + Math.random() * 0.5) * Math.cos(this.angle);
this.vy = (this.multiplier + Math.random() * 0.5) * Math.sin(this.angle);
this.r = randBetween(8, 12) + 3 * Math.random();
this.color = colours[Math.floor(Math.random() * colours.length)];
}
update() {
this.x += this.vx - normal.x;
this.y += this.vy - normal.y;
normal.x = -2 / window.innerWidth * Math.sin(this.angle);
normal.y = -2 / window.innerHeight * Math.cos(this.angle);
this.r -= 0.3;
this.vx *= 0.9;
this.vy *= 0.9;
}
}
function pushBalls(count = 1, x = origin.x, y = origin.y) {
for (let i = 0; i < count; i++) {
balls.push(new Ball(x, y));
}
}
function randBetween(min, max) {
return Math.floor(Math.random() * max) + min;
}
function loop() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
for (let i = 0; i < balls.length; i++) {
let b = balls[i];
if (b.r < 0) continue;
ctx.fillStyle = b.color;
ctx.beginPath();
ctx.arc(b.x, b.y, b.r, 0, Math.PI * 2, false);
ctx.fill();
b.update();
}
if (longPressed == true) {
multiplier += 0.2;
} else if (!longPressed && multiplier >= 0) {
multiplier -= 0.4;
}
removeBall();
requestAnimationFrame(loop);
}
function removeBall() {
for (let i = 0; i < balls.length; i++) {
let b = balls[i];
if (b.x + b.r < 0 || b.x - b.r > width || b.y + b.r < 0 || b.y - b.r > height || b.r < 0) {
balls.splice(i, 1);
}
}
}
}
clickEffect();
</script>
<div class="page-wrapper default-version">
<!-- Preloader -->
<div class="preloader"></div>
<div class="page-background">
<div class="image-1"><img src="images/icons/shape/icon-1.png" alt=""></div>
<div class="image-7"><img src="images/icons/shape/icon-7.png" alt=""></div>
<canvas id="canvas"></canvas>
</div>
<!-- Mobile menu -->
<div class="mobile-menu">
<div class="container">
<!--Nav Outer-->
<div class="nav-outer clearfix">
<div class="logo"><a href="index.html"><img src="images/logo.png" alt=""></a></div>
<!-- Main Menu -->
<nav class="main-menu">
<div class="navbar-header">
<!-- Toggle Button -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse scroll-nav clearfix">
<ul class="navigation clearfix">
<li class="current"><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#images">Images</a></li>
<li><a href="#pdf">PDF</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
<!-- Main Menu End-->
</div>
<!--Nav Outer End-->
</div>
</div>
<div class="card-outer">
<div class="scroll-box">
<div class="container" data-animation-in="fadeInLeft" data-animation-out="fadeOutLeft">
<div class="card-wrapper">
<div class="author-info" style="background-image:url(images/background/3.jpg)">
<div class="image"><img src="images/resource/user.png" alt=""></div>
<div class="author">
<h3>Jack Cai</h3>
<div class="designation">
Hi i’m
<div class="typing-title">
<p>a <strong>cobjack.</strong></p>
<p>a <strong>pet lovers.</strong></p>
</div>
<span class="typed-title"></span>
</div>
</div>
<ul class="social-icon-two">
<li><a href=""><span class="fa fa-facebook"></span></a></li>
<li><a href=""><span class="fa fa-twitter"></span></a></li>
<li><a href=""><span class="fa fa-google-plus"></span></a></li>
</ul>
</div>
<div class="card-inner-box">
<header class="header wow fadeInLeft" data-wow-duration="1.5s">
<ul class="main-menu">
<li class="active home"><a class="logo" href="#home"><img src="images/logo.png" alt=""></a></li>
<li><a href="#about"><i class="flaticon-social"></i>About</a></li>
<li><a href="#images"><i class="flaticon-tools"></i>Images</a></li>
<li><a href="#pdf"><i class="flaticon-blog"></i>PDF</a></li>
<li><a href="#contact"><i class="flaticon-send-mail"></i>Contact</a></li>
</ul>
</header>
<!-- card item -->
<div class="card-home card-item active" id="home" style="background-image:url(images/background/1.jpg)">
<div class="card-inner wow fadeInUp" data-wow-duration="2s">
<div class="image"><img src="images/resource/user.png" alt=""></div>
<div class="author">
<h3>Jack Cai</h3>
<div class="designation">
Hi i’m
<div class="typing-title">
<p>a <strong>web developer.</strong></p>
<p>a <strong>web Designer.</strong></p>
<p>a <strong>photographer.</strong></p>
</div>
<span class="typed-title"></span>
</div>
</div>
<div class="text">It's true that we aren't always going to succeed in our ventures, even if we put in the time and effort. Results are never guaranteed, and life has a way of throwing curve balls at us.</div>
<div class="link-btn">
<a href="#" class="theme-btn btn-style-one">Have a Nice Day! : )</a>
</div>
<ul class="social-icon-two">
<li><a href="#"><span class="fa fa-facebook"></span></a></li>
<li><a href="#"><span class="fa fa-twitter"></span></a></li>
<li><a href="#"><span class="fa fa-google-plus"></span></a></li>
<li><a href="#"><span class="fa fa-dribbble"></span></a></li>
</ul>
</div>
</div>
<!-- end item -->
<!-- card item -->
<div class="card-about card-item" id="about" style="background-image:url(images/background/2.jpg)">
<div class="card-inner">
<h4 class="title">About Me</h4>
<div class="text">Hello : ).</div>
<div class="info-list">
<div class="row">
<div class="col-md-6">
<ul class="list-style-one">
<li><strong>Name:</strong> Jack Cai</li>
<li><strong>Phone:</strong> (+86) 171 3213 2158</li>
</ul>
</div>
<div class="col-md-6">
<ul class="list-style-one">
<li><strong>Email:</strong> [email protected]</li>
</ul>
</div>
</div>
</div>
<h4 class="title">Skills</h4>
<div class="row">
<!-- About Block -->
<div class="skill-block col-md-3 col-sm-4 col-xs-6">
<div class="inner-box">
<div class="graph-outer">
<input type="text" class="dial" data-fgColor="#9147ff" data-bgColor="#f5f5f5" data-width="90" data-height="90" data-linecap="normal" value="75">
<div class="inner-text count-box"><span class="count-text" data-stop="75" data-speed="2000"></span>%</div>
</div>
<h3>Design</h3>
</div>
</div>
<!-- About Block -->
<div class="skill-block col-md-3 col-sm-4 col-xs-6">
<div class="inner-box">
<div class="graph-outer">
<input type="text" class="dial" data-fgColor="#ff5e7e" data-bgColor="#f5f5f5" data-width="90" data-height="90" data-linecap="normal" value="75">
<div class="inner-text count-box"><span class="count-text" data-stop="75" data-speed="2000"></span>%</div>
</div>
<h3>HTML</h3>
</div>
</div>
<!-- About Block -->
<div class="skill-block col-md-3 col-sm-4 col-xs-6">
<div class="inner-box">
<div class="graph-outer">
<input type="text" class="dial" data-fgColor="#ffc713" data-bgColor="#f5f5f5" data-width="90" data-height="90" data-linecap="normal" value="75">
<div class="inner-text count-box"><span class="count-text" data-stop="75" data-speed="2000"></span>%</div>
</div>
<h3>WordPress </h3>
</div>
</div>
<!-- About Block -->
<div class="skill-block col-md-3 col-sm-4 col-xs-6">
<div class="inner-box">
<div class="graph-outer">
<input type="text" class="dial" data-fgColor="#51dbc3" data-bgColor="#f5f5f5" data-width="90" data-height="90" data-linecap="normal" value="75">
<div class="inner-text count-box"><span class="count-text" data-stop="75" data-speed="2000"></span>%</div>
</div>
<h3>PHP </h3>
</div>
</div>
</div>
</div>
</div>
<!-- end item -->
<!-- card item -->
<div class="card-projects card-item" id="images" style="background-image:url(images/background/2.jpg)">
<div class="card-inner">
<h4 class="title">Images</h4>
<div class="row">
<div class="projects-block col-md-6">
<div class="inner-box">
<figure class="image">
<img src="images/gallery/1.jpg" alt="image">
<div class="overlay">
<a class="lightbox-image option-btn" title="Image Caption Here" data-fancybox-group="example-gallery" href="images/gallery/1.jpg">
<i class="fa fa-search"></i>
</a>
</div>
</figure>
<div class="caption-title">
<h3><a href="#">VT6 Bule</a></h3>
</div>
</div>
</div>
<div class="projects-block col-md-6">
<div class="inner-box">
<figure class="image">
<img src="images/gallery/2.jpg" alt="image">
<div class="overlay">
<a class="lightbox-image option-btn" title="Image Caption Here" data-fancybox-group="example-gallery" href="images/gallery/2.jpg">
<i class="fa fa-search"></i>
</a>
</div>
</figure>
<div class="caption-title">
<h3><a href="#">VT6 Red</a></h3>
</div>
</div>
</div>
<div class="projects-block col-md-6">
<div class="inner-box">
<figure class="image">
<img src="images/gallery/3.jpg" alt="image">
<div class="overlay">
<a class="lightbox-image option-btn" title="Image Caption Here" data-fancybox-group="example-gallery" href="images/gallery/3.jpg">
<i class="fa fa-search"></i>
</a>
</div>
</figure>
<div class="caption-title">
<h3><a href="#">810</a></h3>
</div>
</div>
</div>
<div class="projects-block col-md-6">
<div class="inner-box">
<figure class="image">
<img src="images/gallery/4.jpg" alt="image">
<div class="overlay">
<a class="lightbox-image option-btn" title="Image Caption Here" data-fancybox-group="example-gallery" href="images/gallery/4.jpg">
<i class="fa fa-search"></i>
</a>
</div>
</figure>
<div class="caption-title">
<h3><a href="#">810</a></h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end item -->
<!-- card item -->
<div class="card-blog card-item" id="pdf" style="background-image:url(images/background/2.jpg)">
<div class="card-inner">
<h4 class="title">PDF</h4>
<div class="news-block">
<div class="inner-box">
<div class="image">
<img src="images/resource/blog-1.jpg" alt="">
<div class="overlay">
<a class="link-btn" href="pdf/BEYOND MEDICAL Product Introduction.pdf">
<i class="fa fa-link"></i>
</a>
</div>
</div>
<div class="date"><strong>01</strong> <br>Sep</div>
<div class="lower-content">
<h4><a href="blog-single.html">BEYOND MEDICAL Product Introduction</a></h4>
<div class="post-meta">by admin / <span>Introduction</span></div>
</div>
</div>
</div>
<div class="news-block">
<div class="inner-box">
<div class="image">
<img src="images/resource/blog-2.jpg" alt="">
<div class="overlay">
<a class="link-btn" href="pdf/BYS-820 Infusion Pump.pdf">
<i class="fa fa-link"></i>
</a>
</div>
</div>
<div class="date"><strong>02</strong> <br>Sep</div>
<div class="lower-content">
<h4><a href="blog-single.html">BYS-820 Infusion Pump</a></h4>
<div class="post-meta">by admin / <span>Introduction</span></div>
</div>
</div>
</div>
<div class="news-block">
<div class="inner-box">
<div class="image">
<img src="images/resource/blog-3.jpg" alt="">
<div class="overlay">
<a class="link-btn" href="pdf/BYZ-810 Syringe Pump.pdf">
<i class="fa fa-link"></i>
</a>
</div>
</div>
<div class="date"><strong>03</strong> <br>Sep</div>
<div class="lower-content">
<h4><a href="blog-single.html">BYZ-810 Syringe Pump</a></h4>
<div class="post-meta">by admin / <span>Introduction</span></div>
</div>
</div>
</div>
</div>
</div>
<!-- end item -->
<!-- card item -->
<div class="card-contact card-item" id="contact" style="background-image:url(images/background/2.jpg)">
<div class="card-inner">
<h3 class="title">Contact</h3>
<h4>Keep In Touch</h4>
<div class="row clearfix">
<div class="col-md-6">
<ul class="list-style-two">
<li><span class="icon flaticon-smartphone"></span>(+86) 171 3213 2158 <br>(+86) 171 3213 2168 </li>
<li><span class="icon flaticon-note-1"></span>[email protected]</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--End pagewrapper-->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="js/owl.js"></script>
<script src="js/wow.js"></script>
<script src="js/appear.js"></script>
<script src="js/jquery.fancybox.js"></script>
<script src="js/element-in-view.js"></script>
<script src="js/knob.js"></script>
<script src="js/validate.js"></script>
<script src="js/mousemoveparallax.js"></script>
<script src="js/pagenav.js"></script>
<script src="js/jquery-type.js"></script>
<script src="js/jquery.nicescroll.min.js"></script>
<script src="js/particle-alone.js"></script>
<script src="js/script.js"></script>
<!--Google Map APi Key-->
<script src="http://ditu.google.cn/maps/api/js?key=AIzaSyATY4Rxc8jNvDpsK8ZetC7JyN4PFVYGCGM"></script>
<script src="js/gmaps.js"></script>
<script src="js/map-script.js"></script>
<!--End Google Map APi-->
</body>
</html>