mirror of https://github.com/Aidaho12/haproxy-wi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
904 B
44 lines
904 B
{% extends "base.html" %}
|
|
{% block content %}
|
|
<style>
|
|
iframe {
|
|
border: none;
|
|
padding: 10px;
|
|
}
|
|
table, th, tr, td {
|
|
border: 1px solid #ddd;
|
|
align: center;
|
|
text-align: center;
|
|
}
|
|
th, tr, td {
|
|
width: 6%;
|
|
padding: 10px;
|
|
}
|
|
</style>
|
|
|
|
<div id="table_metrics"></div>
|
|
<div id="metrics_iframe"></div>
|
|
<script>
|
|
function callIframe(url, callback) {
|
|
$('#metrics_iframe').html('<iframe id="metrics" style="width:100%;height:100%;" />');
|
|
$('iframe#metrics').attr('src', url);
|
|
$('iframe#metrics').load(function() {
|
|
callback(this);
|
|
});
|
|
}
|
|
|
|
function loadMetrics() {
|
|
callIframe('templates/metrics_out.html', function(){
|
|
$.get( "options.py?metrics=1&token="+$('#token').val(), function( data ) {
|
|
$( ".result" ).html( data );
|
|
});
|
|
$.get( "options.py?table_metrics=1&token="+$('#token').val(), function( data ) {
|
|
$( "#table_metrics" ).html( data );
|
|
});
|
|
});
|
|
}
|
|
|
|
loadMetrics()
|
|
|
|
</script>
|
|
{% endblock %} |