-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (69 loc) · 2.34 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
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
<?php
error_reporting(E_ALL);
$images = array();
$image_number = isset($_REQUEST['image']) ? $_REQUEST['image'] : array_rand($images);
$image = $images[$image_number];
?>
<html>
<head>
<title>Eric Koleda</title>
<style type="text/css">
body { overflow: hidden; background-color: #333333; }
h1 { margin-top: 0; }
ul { padding-left: 0; }
li { list-style-type: none; margin-bottom:5px; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
#background { width:100%; position:absolute; top:0; left:0; z-index:-1; opacity:0.7; }
#box {
position: absolute;
font-family: 'Lucida Grande', sans-serif;
background-color: white;
padding: 30px;
border-radius: 15px;
opacity: 0.6;
display: none;
}
#box:hover { opacity: 0.9; }
</style>
</head>
<body>
<img id="background" src="" selectable="false"/>
<div id="box">
<div class="content">
<h1>Eric Koleda</h1>
<ul>
<li><a href="/blog">Blog</a></li>
<li><a href="https://get.google.com/albumarchive/113107703310572380052">Photos</a>
<li><a href="http://www.youtube.com/user/ekoleda">Videos</a>
<li><a href="/recipes">Recipes</a></li>
</ul>
<hr/>
<ul>
<li><a href="https://profiles.google.com/ekoleda" rel="me">Google+</a></li>
<li><a href="http://www.facebook.com/ekoleda">Facebook</a></li>
<li><a href="https://www.linkedin.com/in/ekoleda/">LinkedIn</a></li>
</ul>
</div>
</div>
<script>
var images = [
{ path: 'images/beach.jpg', top: 30, left: 65 },
{ path: 'images/waterfall.jpg', top: 30, left: 60 },
{ path: 'images/zoo.jpg', top: 25, left: 15 },
{ path: 'images/skiprock.jpg', top: 27, left: 60 },
{ path: 'images/hiking.jpg', top: 15, left: 60 },
{ path: 'images/maryland.jpg', top: 15, left: 25 },
{ path: 'images/sakura.jpg', top: 25, left: 60 }
];
var index = Math.floor(Math.random() * images.length);
var image = images[index];
document.getElementById('background').src = image.path;
var box = document.getElementById('box');
box.style.top = image.top + '%';
box.style.left = image.left + '%';
box.style.display = 'block';
</script>
</body>
</html>