-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHyCUBE 4x4 sum visual.html
75 lines (64 loc) · 1.98 KB
/
HyCUBE 4x4 sum visual.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
<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<head>
<title>CGRA Interactive Viewer</title>
<script type "text/javascipt" src="../thirdparty/vis/dist/vis-network.min.js"></script>
<link href="../thirdparty/vis/dist/vis-network.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
html,
body {
margin: 0;
height: 100%;
}
</style>
</head>
<body onload="draw()">
<script src="context-div.js"></script>
<style type="text/css">
div.tabcontent {
width: 100%;
height: calc(100% - 45px);
}
div.tab {
overflow: hidden;
border: 1px solid #ccc;
background-color: #f1f1f1;
}
div.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
}
div.tab button:hover {
background-color: #ddd;
}
div.tab button.active {
background-color: #ccc;
}
</style>
<script type="text/javascript">
function showContext(event, ii) {
var i, tabcontent, tablinks;
// Hide content
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
// Hide link
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(ii).style.display = "block";
event.currentTarget.className += " active";
}
document.getElementById("defaultOpen").click();
</script>
<script type "text/javascipt" src="CGRA.js"></script>
</body>
</html>