-
Notifications
You must be signed in to change notification settings - Fork 0
/
21 project-hero new.html
96 lines (95 loc) · 2.02 KB
/
21 project-hero new.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
<!DOCTYPE html>
<html>
<head>
<title>INFX: 21 project-hero new</title>
<style>
#sketchImage {
width: 1200px; height: 1793px;
background-image: url("21 project-hero new.png");
background-size: contain;
background-color: #cccccc;
border: 1px solid #cccccc;
}
.link {
display: block;
position: absolute;
background-color: transparent;
}
.linkExternal {
display: block;
position: absolute;
background-color: transparent;
}
.linkInvalid {
display: block;
position: absolute;
background-color: transparent;
}
.linkInvalidExternal {
display: block;
position: absolute;
background-color: transparent;
}
#notes {
max-width: 1200px;
margin-top: 10px;
margin-left: 10px;
margin-right: 10px;
white-space: pre-wrap;
}
@keyframes fadeValid {
from { background-color: orange; }
to { background-color: transparent; }
}
@keyframes fadeInvalid {
from { background-color: gray; }
to { background-color: transparent; }
}
</style>
</head>
<body style="margin: 0px">
<div id="sketchImage" onclick="blinkLinks()">
</div>
<a href="31 menu.html">
<div
class="link";
style="left:6px; top:4px; width:114px; height:94px";>
</div>
</a>
<a href="46 profile.html">
<div
class="link";
style="left:1070px; top:0px; width:124px; height:76px";>
</div>
</a>
<a href="javascript:history.back()">
<div
class="link";
style="left:1081px; top:133px; width:69px; height:67px";>
</div>
</a>
<a href="14 welcome.html">
<div
class="link";
style="left:510px; top:11px; width:106px; height:89px";>
</div>
</a>
<div id="notes">
</div>
</body>
<script>
var links = document.querySelectorAll(".link, .linkExternal, .linkInvalid, .linkInvalidExternal");
function blinkLinks() {
var x;
for (x of links) {
x.addEventListener("animationend", animEnd);
if ((x.className == "link") || (x.className == "linkExternal")) {
x.style.animation = "fadeValid 1000ms";
} else {
x.style.animation = "fadeInvalid 1000ms";
}
}
}
function animEnd() { this.style.animation = "" }
</script>
</html>