Browse Source

try to make the demo visible

main
Robey 1 year ago
parent
commit
7890fb2bcc
  1. 59
      demo/demo.html
  2. 2
      demo/netgraph.js
  3. BIN
      demo/ping-demo-internet.rrd
  4. BIN
      demo/ping-demo-modem.rrd
  5. BIN
      demo/ping-demo-nat.rrd
  6. BIN
      demo/ping_droprate-demo-internet.rrd
  7. BIN
      demo/ping_droprate-demo-modem.rrd
  8. BIN
      demo/ping_droprate-demo-nat.rrd

59
demo/demo.html

@ -0,0 +1,59 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<script src="netgraph.js"></script>
<style type="text/css">
h1, h2, h3, h4 {
font-family: sans-serif;
padding-top: 1em;
padding-bottom: 1em;
margin: 0px;
}
.netgraph-group {
display: flex;
flex-direction: row;
padding-bottom: 2em;
width: 100%;
height: 15em;
}
.netgraph {
display: flex;
flex: 1 1 auto;
width: 100%;
margin-left: 1em;
margin-right: 1em;
font-family: mono;
}
</style>
<rrd name="internet-ping" path="ping-demo-internet.rrd" data="value:MAX"></rrd>
<rrd name="internet-dropped" path="ping_droprate-demo-internet.rrd" data="value:MAX"></rrd>
<rrd name="modem-ping" path="ping-demo-modem.rrd" data="value:MAX"></rrd>
<rrd name="modem-dropped" path="ping_droprate-demo-modem.rrd" data="value:MAX"></rrd>
<rrd name="nat-ping" path="ping-demo-nat.rrd" data="value:MAX"></rrd>
<rrd name="nat-dropped" path="ping_droprate-demo-nat.rrd" data="value:MAX"></rrd>
</head>
<body>
<h3> Latency to internet </h3>
<div class="netgraph-group" line="internet-ping" error="internet-dropped" error-threshold="0.5" unit="ms" colors="red, orange" time="2021-04-01T17:02:00Z">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
<h3> Latency to modem </h3>
<div class="netgraph-group" line="modem-ping" error="modem-dropped" error-threshold="0.5" unit="ms" colors="red, orange" time="2021-04-01T17:02:00Z">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
<h3> Latency to NAT </h3>
<div class="netgraph-group" line="nat-ping" error="nat-dropped" error-threshold="0.5" unit="ms" colors="red, orange" time="2021-04-01T17:02:00Z">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
</body>
</html>

2
demo/netgraph.js

File diff suppressed because one or more lines are too long

BIN
demo/ping-demo-internet.rrd

Binary file not shown.

BIN
demo/ping-demo-modem.rrd

Binary file not shown.

BIN
demo/ping-demo-nat.rrd

Binary file not shown.

BIN
demo/ping_droprate-demo-internet.rrd

Binary file not shown.

BIN
demo/ping_droprate-demo-modem.rrd

Binary file not shown.

BIN
demo/ping_droprate-demo-nat.rrd

Binary file not shown.
Loading…
Cancel
Save