-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
94 lines (86 loc) · 4.05 KB
/
home.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
<html>
<head>
<meta charset=utf-8 />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui">
<title>Node Net</title>
<link rel='stylesheet' href='/css/style.css' />
<link rel='stylesheet' href='/css/accordion.css' />
</head>
<body>
<div id="mySidepanel" class="sidepanel">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<button class="accordion">I/O</button>
<div class="panel">
<div class="side-panel-grid-container">
<div class="side-panel-grid-item" draggable="true" ondragstart="onDragStart(event);" id="Port" >
<img src="https://img.icons8.com/color/96/000000/network-card.png"/ alt="nic" width="50px" draggable="false">
<div style="padding: 10px;">Port</div>
</div>
<div class="side-panel-grid-item" draggable="true" ondragstart="onDragStart(event);" id="Queue" >
<img src="https://img.icons8.com/color/96/000000/database.png"/ alt="queue" width="50px" draggable="false">
<div style="padding: 10px;">Queue</div>
</div>
</div>
</div>
<button class="accordion">DPDK Apps</button>
<div class="panel">
<div class="side-panel-grid-container">
<div class="side-panel-grid-item" draggable="true" ondragstart="onDragStart(event);" ontouchstart="onTouchStart(event);" ontouchmove="onTouchMove(event);" ontouchend="onTouchEnd(event);" id="l2fwd">
<img src="/images/dpdk_logo.svg" alt="dpdk" width="50px" draggable="false">
<div style="padding: 10px;">DPDK L2FWD</div>
</div>
<div class="side-panel-grid-item" draggable="true" ondragstart="onDragStart(event);" id="l3fwd" >
<img src="/images/dpdk_logo.svg" alt="dpdk" width="50px" draggable="false">
<div style="padding: 10px;">DPDK L3FWD</div>
</div>
<div class="side-panel-grid-item">3</div>
<div class="side-panel-grid-item">4</div>
<div class="side-panel-grid-item">5</div>
<div class="side-panel-grid-item">6</div>
<div class="side-panel-grid-item">7</div>
<div class="side-panel-grid-item">8</div>
<div class="side-panel-grid-item">9</div>
</div>
</div>
<button class="accordion">VPP Apps</button>
<div class="panel">
</div>
<a target="_blank" class="side-panel-icon-link" href="https://icons8.com">Icons by Icons8</a>
</div>
<button class="openbtn" onclick="openNav()">☰</button>
<div id="cy" ondragover="onDragOver(event);" ondrop="onDrop(event);"></div>
<script src="/cytoscape/cytoscape.min.js"></script>
<script src="/popperjs/core/dist/umd/popper.js"></script>
<script src="cytoscape-popper/cytoscape-popper.js"></script>
<script src="/lodash/lodash.js"></script>
<script src="/cytoscape-edgehandles/cytoscape-edgehandles.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io();
</script>
<script src="/js/cytoscape_app.js"></script>
<script>
function openNav() {
document.getElementById("mySidepanel").style.width = "250px";
}
function closeNav() {
document.getElementById("mySidepanel").style.width = "0";
}
</script>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
</script>
</body>
</html>