-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (53 loc) · 1.58 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>samuel prashker</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="main.css">
</head>
<body>
<header>
<canvas id="background" height="0" width="0"></canvas>
<section id="links">
<ul>
<li><a href="http://facebook.com/prashker">Facebook</a></li>
<li><a href="https://www.linkedin.com/in/prashker">LinkedIn</a></li>
<li><a href="http://www.freelancer.ca/u/sonicsamz.html">Freelancer</a></li>
<li><a href="https://github.com/prashker">GitHub</a></li>
</ul>
</section>
<section id="logo">
<img src="name.png"></img>
</section>
<section id="contact">
<ul>
<li><a href="resume.pdf">Resume</a></li>
<li><a href="mailto:[email protected]">Contact Me</a></li>
</ul>
</section>
</header>
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.4.0/trianglify.min.js"></script>
<script>
var regenerate = function() {
var pattern = Trianglify({
height: window.innerHeight,
width: window.innerWidth,
variance: "1",
seed: null,
x_colors: 'random',
y_colors: 'match_x',
stroke_width: 0.5,
cell_size: 50 + Math.random()*30,
});
// Bind to a canvas
pattern.canvas(document.getElementById('background'));
}
// Regenerate on resize
window.addEventListener("resize", regenerate);
regenerate();
</script>
</body>
</html>