-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
74 lines (58 loc) · 3.08 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
<!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="Andrew Hiles, Web Developer, Coder, Photographer, Christian, Irish">
<meta name="author" content="Andrew Hiles">
<link href='http://fonts.googleapis.com/css?family=Merriweather:300,700' rel='stylesheet' type='text/css'>
<link href="css/style.css" rel="stylesheet" type="text/css">
<title>.: andrewhil.es :.</title>
</head>
<body>
<div class="banner">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="aboutContainer">
<h1>andrewhil.es</h1>
<p class="introBlurb">Hi. My name's Andrew Hiles. I'm a web developer from Northern Ireland.</p>
<p class="introBlurb">I'm currently working at <a class="linx" href="http://www.liberty-it.co.uk">Liberty Information Technology, Belfast</a>. You can <a class="linx" href="http://www.twitter.com/hiler88">tweet</a> me, read my <a class="linx" href="http://blog.andrewhil.es">blog</a>, audit my <a class="linx" href="http://www.rdio.com/people/hiler88/">music</a> choices or simply send me an <a class="linx" href="mailto:[email protected]">email</a> :)</p>
</div>
<!-- Container div - JS will append images to this... -->
<div class="holdingContainer">
</div>
<!-- jQuery source link -->
<script src="js/jquery-2.1.1.js"></script>
<!-- jQuery/JS logic (random image sorting) -->
<script>
$(document).ready(function() {
generateImageContent();
});
// Shuffle function
function Shuffle(o) {
for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
};
function generateImageContent() {
// Set directory
var dir = 'assets/';
// Image list
var images = ['festivalLightsStare.jpg', 'berlinStadiumPosing.jpg', 'beamer.jpg', 'berlinCathedral.jpg', 'berlinTraffic.jpg', 'stadiumBerlin.jpg', 'mazinDogBerlin.jpg', 'precious.jpg', 'helenWideAngle.jpg', 'belfastSatAvio.jpg', 'helenHay.jpg', 'pfeffer.jpg', 'light.jpg', 'chimney.jpg', 'cyprusAvenue.jpg', 'creepyBfast.jpg', 'landrover.jpg', 'castlewellanCastle.jpg', 'helen.jpg', 'dan.jpg', 'fadeWalk.jpg', 'oldTaxi.jpg', 'sunShinesThru.jpg', 'portaferrySunRays.jpg', 'helenaSunset.jpg', 'mountstewartOne.jpg', 'mountstewartTwo.jpg', 'mountstewartThree.jpg', 'mountstewartFour.jpg', 'mountstewartFive.jpg', 'vintageLight.jpg', 'berlin_retro.jpg', 'berlin_vwlight.jpg', 'berlin_me.jpg'];
// Traverse through 8 random images and serve to page
Shuffle(images);
$(function() {
for (var i = 0; i < 8; i++) {
$(".holdingContainer").append('<img class="mainImage" src="' + dir + images[i] + '" />');
}
});
}
</script>
</body>
</html>