-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
123 lines (94 loc) · 4.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>David Sparkman</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/style.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<!-- Custom Fonts -->
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic"
rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body id="colorful">
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
<div class="container">
<div class="row">
<div class="col-lg-6 col-sm-6 col-centered">
<div class="card hovercard">
<div class="cardheader">
</div>
<div class="avatar">
<img alt="" src="img/bg.jpg">
</div>
<br />
<div class="info">
<div class="title">
<a target="_blank" href="mailto:[email protected]">David Sparkman</a>
</div>
<div class="desc">Software Developer</div>
<div class="desc">Emergency Medical Technician</div>
<div class="desc">Photographer</div>
</div>
<br />
<div class="bottom">
<a class="btn btn-primary" href="https://flickr.com/photos/125396864@N02/">
<i class="fa fa-flickr"></i>
</a>
<a class="btn btn-primary" rel="github" href="https://github.com/David-Sparky">
<i class="fa fa-github"></i>
</a>
<a class="btn btn-primary" rel="linkedin" href="https://www.linkedin.com/in/david-sparkman-03848a123/">
<i class="fa fa-linkedin"></i>
</a>
<a class="btn btn-primary" rel="resume" href="files/DavidSparkmanResume.pdf">
<i class="fa fa-file-text-o"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<script src="scripts/main.js"></script>
</body>
<script src="js/colorful-background-css-generator.min.js" type="text/javascript"></script>
<script type="text/javascript">
// The Generator
var generator = new ColorfulBackgroundGenerator();
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// This adds 5 layers to the generator
// The parameters are: degree[0-360], hue[0-360], saturation[0-100], lightness[0-100], positionColor[0-100], positionTransparency[0-100]
// The lowest layer (at the bottom) in the css is the first added layer.
generator.addLayer(new ColorfulBackgroundLayer(getRandomInt(0,360), getRandomInt(0,360), getRandomInt(80,100), getRandomInt(40,60), getRandomInt(0,100))); // bottom layer
generator.addLayer(new ColorfulBackgroundLayer(getRandomInt(0,360), getRandomInt(0,360), getRandomInt(80,100), getRandomInt(40,60), getRandomInt(0,100), getRandomInt(0,100))); // bottom layer
// generator.addLayer(new ColorfulBackgroundLayer(getRandomInt(0,360), getRandomInt(0,360), getRandomInt(80,100), getRandomInt(40,60), getRandomInt(0,100), getRandomInt(0,100))); // bottom layer
// generator.addLayer(new ColorfulBackgroundLayer(getRandomInt(0,360), getRandomInt(0,360), getRandomInt(80,100), getRandomInt(40,60), getRandomInt(0,100), getRandomInt(0,100))); // bottom layer
generator.addLayer(new ColorfulBackgroundLayer(getRandomInt(0,360), getRandomInt(0,360), getRandomInt(80,100), getRandomInt(40,60), getRandomInt(0,100), 100)); // top layer
// Assign generated style to the element identified by it's id
generator.assignStyleToElementId("colorful");
</script>
</body>
</html>