Skip to content

Commit

Permalink
Update htop.html
Browse files Browse the repository at this point in the history
  • Loading branch information
directman66 committed Jul 15, 2019
1 parent f79ce78 commit 155e904
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions templates/camshoter/htop.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<br>

<!--<a href="?view_mode=clearcpu" class="btn btn-default" title="Clear Folder">Clear CPU</i></a> -->
<style>
#container {
Expand All @@ -8,9 +9,27 @@
}
</style>

<!--
<script src="highcharts\highcharts.js"></script>
<script src="highcharts\exporting.js"></script>
<script src="highcharts\export-data.js"></script>
-->


<script src="<#ROOTHTML#>3rdparty/highcharts/camshoter/highcharts.js"></script>
<script src="<#ROOTHTML#>3rdparty/highcharts/camshoter/exporting.js"></script>
<script src="<#ROOTHTML#>3rdparty/highcharts/camshoter/export-data.js"></script>

<!--
<script src="<#ROOTHTML#>3rdparty/highcharts/modules/solid-gauge.js"></script>
<script src="<#ROOTHTML#>3rdparty/highcharts/highcharts-more.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
-->


<div id="container"></div>

Expand Down Expand Up @@ -84,7 +103,7 @@
// pointFormat: '{point.x:%Y-%m-%d %H:%M:%S}<br/>{point.y:.2f}'
// },
legend: {
enabled: true
enabled: false
},
exporting: {
enabled: false
Expand All @@ -93,7 +112,7 @@
plotOptions: {
line: {
dataLabels: {
enabled: true
enabled: false
},
enableMouseTracking: true
}
Expand Down Expand Up @@ -152,6 +171,19 @@
return Number(retVal);
}

function getavg() {
var retVal;
$.ajax({
url:"/ajax/camshoter.html?op=average",
async: false,
success:function(response) {
retVal = response;
}
});
return Number(retVal);
}



</script>
<!--<div class="modal fade" id="viewlog" tabindex="-1" role="dialog" aria-labelledby="about1" aria-hidden="true" height="100"> -->
Expand Down

0 comments on commit 155e904

Please sign in to comment.