-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (57 loc) · 2.69 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
<!DOCTYPE html>
<html id="html">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:100&display=swap" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="./assets/favicon.png">
<title>Wes Beard</title>
</head>
<body>
<div id="main-text">
<p>Wes Beard</p>
</div>
<div id="top-row">
<div class="top-row-item" onclick="location.href = 'https:\/\/www.github.com/wesbeard'" onmouseover="hoverText('Github')" onmouseout="defaultText()">
<img src="./assets/github_shadow.png">
</div>
</div>
<div id="bottom-row">
<div class="bottom-row-item" onclick="location.href = 'https:\/\/www.instagram.com/wesb1665'" onmouseover="hoverText('Instagram')" onmouseout="defaultText()">
<img src="./assets/instagram_shadow.png">
</div>
<div class="bottom-row-item" onclick="location.href = 'https:\/\/www.linkedin.com/in/wesleybeard'" onmouseover="hoverText('LinkedIn')" onmouseout="defaultText()">
<img src="./assets/linkedin_shadow.png">
</div>
<div class="bottom-row-item" onclick="location.href = 'https:\/\/drive.google.com/file/d/1I-CP0xoIfIYt-nA8ZdeD4l-eDEVLKiAj/view?usp=sharing'" onmouseover="hoverText('Resume')" onmouseout="defaultText()">
<img src="./assets/cv_shadow.png">
</div>
<div class="bottom-row-item" onclick="location.href = 'https:\/\/open.spotify.com/user/0t3pxf697kb53ll49zfcuv16w'" onmouseover="hoverText('Spotify')" onmouseout="defaultText()">
<img src="./assets/spotify_shadow.png">
</div>
</div>
<div id="color-button">
<img src="./assets/color-wheel.png" onclick="randBackground()">
</div>
</body>
</html>
<script>
let colors = ['#393840', '#d18400', '#5f20ab', '#ff9054', '#2fad53', '#25888a'];
let previousIndex = 1;
let randomIndex = 1;
function randBackground()
{
previousIndex = randomIndex;
while (randomIndex === previousIndex) {
randomIndex = Math.ceil(Math.random() * colors.length);
}
document.getElementById('html').style.background = colors[randomIndex - 1];
}
function hoverText(title) {
document.getElementById('main-text').innerHTML = title;
}
function defaultText() {
document.getElementById('main-text').innerHTML = "Wes Beard";
}
</script>