-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (50 loc) · 2.22 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
<title>MathewMoon.net</title>
<meta name="description" content="Personal website for Mathew Moon">
<meta name="author" content="Stefan Thomas">
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css"/>
<link rel="stylesheet" href="main.css" media="all">
<script>
$(document).ready(function(){
var t = 3000;
$('h1').fadeIn(t);
$('#links').fadeIn(t);
$('#separator').fadeIn(t);
$('#moon').fadeIn(t);
$('.icons').fadeIn(t);
function makeNewPosition(){
// Get viewport dimensions (remove the dimension of the div)
var h = $(window).height() - 50;
var w = $(window).width() - 50;
var nh = Math.floor(Math.random() * h);
var nw = Math.floor(Math.random() * w);
return [nh,nw];
}
function animateDiv(){
var newq = makeNewPosition();
$('#resume').animate({ top: newq[0], left: newq[1] }, 6000,function(){
animateDiv();
});
};
animateDiv();
});
</script>
</head>
<body style="background-image:url(bg.jpg)" >
<div id="content">
<h1 id="name">Mathew Moon</h1>
<img src="line.png" id="separator" /><br/>
<a href="https://github.com/mathewmoon" target=”_blank” class="github icons"><img src="github.png" class="icons"></a>
<a href="https://www.linkedin.com/in/bash1liner/" target=”_blank” class="linkedin icons"><img src="linkedin.png" class="icons"></a>
<a href="https://www.pypi.org/user/bashism" target=”_blank” class="instagram icons"><img src="pypi.png" class="icons"></a><br/>
<div style="position: fixed" id="resume" ><a href="mathewmoon.pdf" target="_blank"><img src="resume.png" class="icons"/></a></div></br>
<img src="moon2.png" id="moon" />
</div>
</body>
</html>