-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
185 lines (163 loc) · 3.7 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>bennerhq.com</title>
<style type="text/css">
body {
background-color: white;
color: black;
}
.body {
}
.logo {
font: 61.0px Helvetica;
font-weight: bold;
font-style: italic;
margin-left: 30px;
margin-top: 30px;
letter-spacing: -4px;
cursor: pointer;
}
.contact {
font: 17.0px Helvetica;
position: absolute;
bottom: 30px;
right: 30px;
color: darkgray;
border-top-style: solid;
border-top-color: #F0F0F0;
border-top-width: 1px;
padding-top: 5px;
}
.name {
display: inline-block;
font-style: italic;
border-right-width: 1px;
border-right-style: solid;
border-color: #F0F0F0;
padding-right: 10px;
}
#github {
display: none;
}
.phone {
display: inline-block;
font-style: italic;
border-right-width: 1px;
border-right-style: solid;
border-color: #F0F0F0;
padding-right: 10px;
}
.email {
display: inline-block;
font-style: italic;
}
span.high {
color: gray;
}
span.hq {
color: #CD0403; /* dark red */
}
span.hq:hover {
cursor: default;
color: gray;
}
#game {
position: relative;
width: 596px;
height: 350px;
margin: 0px auto;
display: none;
}
#field {
width: 100%;
height: 100%;
}
.info {
margin-top: 5px;
margin-right: 2px;
padding-top: 3px;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #F0F0F0;
}
.score {
float: left;
font: 13.0px Helvetica;
color: darkgray;
}
.hi {
float: right;
font: 13.0px Helvetica;
color: darkgray;
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="js/downtown.js"></script>
<script>
var dn = null;
var game = null;
var github = null;
function dn_start() {
if (dn == null) return;
game.style.display = 'block';
github.style.display = 'inline-block';
dn.start();
}
function dn_hide() {
if (game == null) return;
if (game.style.display == 'none') {
game.style.display = 'block';
github.style.display = 'inline-block';
if (dn.isPaused()) {
dn.pauseToggle();
}
}
else {
game.style.display = 'none';
github.style.display = 'none';
if (dn.isRunning()) {
dn.pauseToggle();
}
}
}
function dn_pause() {
if (game == null) return;
if (game.style.display != 'none') {
dn.pauseToggle();
}
}
$(document).ready(function() {
game = document.getElementById('game');
github = document.getElementById('github');
dn = new Downtown('field', 'score', 'hi');
});
</script>
</head>
<body class="bg">
<div class="logo">
<span onmousedown="dn_hide(); event.stopPropagation();">benner</span><span class="hq" onmousedown="dn_start(); event.stopPropagation();">hq</span><span onmousedown="dn_pause(); event.stopPropagation();">.com</span>
</div>
<div id="game">
<div id="field"></div>
<div class="info">
<div class='score'>Score: <span id='score'></span></div>
<div class='hi'>Hi: <span id='hi'></span></div>
</div>
</div>
<div class="contact">
<div class="name">
jens kaas benner,
<a href="http://dk.linkedin.com/in/jenskaasbenner"><span class="high">cv</span></a><span id="github">, <a href="https://github.com/bennerhq"><span class="high">github</span></a></span>
</div>
<div class="phone">
<span class="high">m:</span> +45.20.911.103
</div>
<div class="email">
<span class="high">e:</span> [email protected]
</div>
</div>
</body>
</html>