-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
36 lines (30 loc) · 835 Bytes
/
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
---
layout: default
---
<script>
var loaded = false;
function loadBg(event) {
if (loaded) {
return;
}
var img = new Image();
img.onload = function () {
console.log('onload')
document.querySelector('.homepage-banner').className += ' image--loaded';
loaded = true;
};
img.src = './images/salfordquays.jpg';
}
if (window.addEventListener) {
window.addEventListener('resize', loadBg);
window.addEventListener('load', loadBg);
} else {
loadBg()
}
</script>
<div class="homepage-banner">
<div class="vertical">
<div class="home-header-main">Alexander Perry</div>
<div class="home-header-sub">Manchester Based Web Developer</div>
</div>
</div>