-
Notifications
You must be signed in to change notification settings - Fork 0
/
18 project hero info.html
84 lines (83 loc) · 1.79 KB
/
18 project hero info.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
<!DOCTYPE html>
<html>
<head>
<title>INFX: 18 project hero info</title>
<style>
#sketchImage {
width: 1200px; height: 1793px;
background-image: url("18 project hero info.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="javascript:history.back()">
<div
class="link";
style="left:1036px; top:360px; width:60px; height:74px";>
</div>
</a>
<a href="javascript:history.back()">
<div
class="link";
style="left:610px; top:1391px; width:383px; height:194px";>
</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>