2020-06-03 17:36:46 -05:00
|
|
|
<main>
|
|
|
|
<div class="container">
|
|
|
|
<script>Admin.Analytics(host);</script>
|
2016-03-20 08:56:20 -05:00
|
|
|
|
2020-06-03 17:36:46 -05:00
|
|
|
<h3 class="title is-3"><script>document.write(l10nstrings.strAnalytics)</script></h3>
|
2016-03-20 08:56:20 -05:00
|
|
|
|
2020-06-03 17:36:46 -05:00
|
|
|
<div class="tabs">
|
|
|
|
<ul>
|
2020-09-03 10:49:48 -05:00
|
|
|
<li id="tab-documents-open" class="is-active"><a id="button-memview" href="#memview"><script>document.write(l10nstrings.strMemoryGraph)</script></a></li>
|
2020-06-03 17:36:46 -05:00
|
|
|
<li id="tab-users-online"><a id="button-cpuview" href="#cpuview"><script>document.write(l10nstrings.strCpuGraph)</script></a></li>
|
|
|
|
<li id="tab-users-online"><a id="button-networkview" href="#networkview"><script>document.write(l10nstrings.strNetGraph)</script></a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-03-20 08:56:20 -05:00
|
|
|
|
2020-06-03 17:36:46 -05:00
|
|
|
<div id="memview" class="mtabs">
|
|
|
|
<div class="graph-container">
|
|
|
|
<div>
|
|
|
|
<svg id="MemVisualisation" width="1010" height="510"></svg>
|
2016-03-20 08:56:20 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-03 17:36:46 -05:00
|
|
|
</div>
|
2016-03-20 08:56:20 -05:00
|
|
|
|
2020-06-03 17:36:46 -05:00
|
|
|
<div id="cpuview" class="mtabs">
|
|
|
|
<div class="graph-container">
|
|
|
|
<div>
|
|
|
|
<svg id="CpuVisualisation" width="1010" height="510"></svg>
|
2016-03-20 08:56:20 -05:00
|
|
|
</div>
|
2020-06-03 17:36:46 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="networkview" class="mtabs">
|
|
|
|
<div class="graph-container">
|
|
|
|
<div>
|
|
|
|
<svg id="NetVisualisation" width="1010" height="510"></svg>
|
2017-06-05 20:17:42 -05:00
|
|
|
</div>
|
2016-03-20 08:56:20 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-03 17:36:46 -05:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
document.getElementById('a-analytics-mobile').classList.add('is-active');
|
|
|
|
document.getElementById('a-analytics-tablet').classList.add('is-active');
|
|
|
|
|
2020-07-05 06:37:40 -05:00
|
|
|
window.location.href += '#memview';
|
|
|
|
|
2020-06-03 17:36:46 -05:00
|
|
|
// Switching tabs is done by css rules. We will set "is-active" classes here.
|
|
|
|
document.getElementById('button-memview').onclick = function() {
|
|
|
|
document.getElementById('button-memview').parentNode.className = 'is-active';
|
|
|
|
document.getElementById('button-cpuview').parentNode.className = '';
|
|
|
|
document.getElementById('button-networkview').parentNode.className = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
document.getElementById('button-cpuview').onclick = function() {
|
|
|
|
document.getElementById('button-memview').parentNode.className = '';
|
|
|
|
document.getElementById('button-cpuview').parentNode.className = 'is-active';
|
|
|
|
document.getElementById('button-networkview').parentNode.className = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
document.getElementById('button-networkview').onclick = function() {
|
|
|
|
document.getElementById('button-memview').parentNode.className = '';
|
|
|
|
document.getElementById('button-cpuview').parentNode.className = '';
|
|
|
|
document.getElementById('button-networkview').parentNode.className = 'is-active';
|
|
|
|
}
|
|
|
|
</script>
|