-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (76 loc) · 2.54 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
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="arch">
<div id="left">
<h1 id="maintitle">NINE</h1>
<h3 id="subtitle">[CONCEPT]
</h3>
</div>
<div id="right">
<div id="container">
<div id="one" class="row">
<div class="cell" onclick="rvl('cellOne')"><img class="art" src="images/place-revenge.jpg">
<div class="middle"><text>INFORMATION</text></div>
<div id="cellOne" class="cellExpand">Integral information</div>
</div>
<div class="cell"><img class="art" src="images/huckleberry.jpg">
<div class="middle"><text>INFORMATION</text></div>
<div id="cellTwo" class="cellExpand">Integral information</div>
</div>
<div class="cell"><img class="art" src="images/aksuttin.jpg">
<div class="middle"><text>INFORMATIONtext></div>
<div class="cellExpand">Integral information</div>
</div>
</div>
<div id="two" class="row">
<div class="cell"><img class="art" src="images/loosies2.jpg">
<div class="middle"><text>INFORMATION</text></div>
<div class="cellExpand">Integral informations</div>
</div>
<div class="cell"><img class="art" src="images/shadeemus.jpg">
<div class="middle"><text>INFORMATION</text></div>
</div>
<div class="cell"><img class="art" src="images/slaps-flowey.jpg">
<div class="middle"><text>INFORMATION</text></div>
</div>
</div>
<div id="three" class="row">
<div class="cell"><img class="art" src="images/diti.jpg">
<div class="middle"><text>INFORMATION</text></div>
</div>
<div class="cell"><img class="art" src="images/type0419.jpg">
<div class="middle"><text>INFORMATION</text></div>
</div>
<div class="cell"><img class="art" src="images/afronaut-zu.jpg">
<div class="middle"><text>INFORMATION</text></div>
</div>
</div>
</div>
</div>
</div>
<script type ="application/javascript">
function rvl(music){
var i, content;
content = document.getElementsByClassName('cellExpand');
for(i = 0; i < content.length; i++){
content[i].style.display = "none";
console.log(cellExpand);
}
//call individual cells
document.getElementById(music).style.display = "block";
document.querySelectorAll('.cell').addEventListener("click", rvl);
}
document.getElementById("cellOne").click();
//document.querySelectorAll('.cell').forEach(item => {
//item.addEventListener('click', reveal);
//To do
//Find way of presenting cellExpand
//Event Listeners
//Find parent to present information
</script>
</body>
</html>