mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-09-26 20:31:11 +08:00
style(network): add flex-grow to network div and move script tag
This commit is contained in:
@@ -18,11 +18,15 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#network {
|
||||
flex-grow: 1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script src="main.js"></script>
|
||||
<div id="network"></div>
|
||||
<script src="main.js"></script>
|
||||
<script>
|
||||
let network;
|
||||
let nodes = new vis.DataSet();
|
||||
@@ -65,7 +69,7 @@
|
||||
} else {
|
||||
const positions = network.getPositions();
|
||||
|
||||
network.setData(data)
|
||||
network.setData(data);
|
||||
|
||||
for (const nodeId in positions) {
|
||||
if (positions.hasOwnProperty(nodeId)) {
|
||||
@@ -85,5 +89,4 @@
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user