ail-framework/var/www/templates/Queue_live_Monitoring.html
Starow 1379ef705a Initial import of AIL framework - Analysis Information Leak framework
AIL is a modular framework to analyse potential information leak from unstructured data source like pastes from Past
ebin or similar services. AIL framework is flexible and can be extended to support other functionalities to mine sen
sitive information
2014-08-06 11:43:40 +02:00

43 lines
No EOL
1.1 KiB
HTML

<html>
<head>
<script type="text/javascript" src="{{ url_for('static', filename='js/dygraph-combined.js') }}"></script>
<script src="{{ url_for('static', filename='js/jquery-1.4.2.js') }}"></script>
</head>
<body>
<title>WordsTrend</title>
<script type="text/javascript">
$(document).ready(function () {
var data = [];
var t = new Date();
for (var i = 10; i >= 0; i--) {
var x = new Date(t.getTime() - i * 1000);
data.push([x, 0]);
}
var g = new Dygraph(document.getElementById("Graph"), data,
{
drawPoints: true,
showRoller: true,
//valueRange: [0.0, 1.2],
legend: 'always',
title: 'Pastes Queues Monitoring',
ylabel: 'Numbers of pastes waiting',
xlabel: 'Time',
});
// It sucks that these things aren't objects, and we need to store state in window.
window.intervalId = setInterval(function() {
var x = new Date(); // current time
var y = 6;
data.push([x, y]);
g.updateOptions( { 'file': data } );
}, 1000);
}
);
</script>
<div id="Graph" style="width:100%; height:100%;"></div>
</body>
</html>