2016-07-11 13:05:04 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2016-07-01 14:59:08 +00:00
|
|
|
|
2016-07-11 13:05:04 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2016-07-01 14:59:08 +00:00
|
|
|
|
2016-07-11 13:05:04 +00:00
|
|
|
<title>Analysis Information Leak framework Dashboard</title>
|
2016-07-01 14:59:08 +00:00
|
|
|
|
2016-07-11 13:05:04 +00:00
|
|
|
<!-- Core CSS -->
|
|
|
|
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='font-awesome/css/font-awesome.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/sb-admin-2.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ url_for('static', filename='css/dygraph_gallery.css') }}" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- JS -->
|
|
|
|
<script type="text/javascript" src="{{ url_for('static', filename='js/dygraph-combined.js') }}"></script>
|
|
|
|
<script language="javascript" src="{{ url_for('static', filename='js/jquery.js')}}"></script>
|
2016-07-19 16:07:29 +00:00
|
|
|
<script>
|
2016-07-11 14:57:45 +00:00
|
|
|
var default_display = {{ default_display }};
|
|
|
|
var current_displayed_graph;
|
|
|
|
</script>
|
2016-07-01 14:59:08 +00:00
|
|
|
|
2016-07-11 13:05:04 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2016-07-01 14:59:08 +00:00
|
|
|
|
2016-07-11 13:05:04 +00:00
|
|
|
<div id="wrapper">
|
|
|
|
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<ul class="nav navbar-nav">
|
2016-07-12 12:44:59 +00:00
|
|
|
<li><a href="{{ url_for('index') }}"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a></li>
|
|
|
|
<li class="active"><a href="{{ url_for('trending') }}"><i class="glyphicon glyphicon-stats"></i> Trending charts</a></li>
|
2016-07-12 12:33:54 +00:00
|
|
|
</ul>
|
2016-07-01 14:59:08 +00:00
|
|
|
</div>
|
|
|
|
<!-- /.navbar-top-links -->
|
|
|
|
<div class="navbar-default sidebar" role="navigation">
|
|
|
|
<div class="sidebar-collapse">
|
|
|
|
<ul class="nav" id="side-menu">
|
|
|
|
<li class="sidebar-search">
|
2016-07-12 12:38:22 +00:00
|
|
|
{% include 'searchbox.html' %}
|
2016-07-01 14:59:08 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<!-- /#side-menu -->
|
|
|
|
</div>
|
|
|
|
<!-- /.sidebar-collapse -->
|
|
|
|
<a href="{{ url_for('index') }}"><img src="{{ url_for('static', filename='image/AIL.png') }}" /></a>
|
|
|
|
</div>
|
|
|
|
<!-- /.navbar-static-side -->
|
|
|
|
</nav>
|
|
|
|
<div id="page-wrapper">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
2016-07-08 13:08:37 +00:00
|
|
|
<h1 class="page-header">Trending charts</h1>
|
2016-07-01 14:59:08 +00:00
|
|
|
</div>
|
|
|
|
<!-- /.col-lg-12 -->
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
<div class="row">
|
2016-07-19 16:07:29 +00:00
|
|
|
|
2016-07-08 13:08:37 +00:00
|
|
|
<!-- /.nav-tabs -->
|
|
|
|
<ul class="nav nav-tabs">
|
2016-07-12 12:33:54 +00:00
|
|
|
<li class="active"><a data-toggle="tab" href="#tld-tab" data-pannel="TldTrending" data-path="../static//csv/tldstrendingdata.csv">Top level domains</a></li>
|
2016-07-08 13:08:37 +00:00
|
|
|
<li><a data-toggle="tab" href="#domain-tab" data-pannel="DomainTrending" data-path="../static//csv/domainstrendingdata.csv">Domains</a></li>
|
2016-07-12 12:33:54 +00:00
|
|
|
<li><a data-toggle="tab" href="#words-tab" data-pannel="WordTrending" data-path="../static//csv/wordstrendingdata.csv">Words</a></li>
|
|
|
|
<li><a data-toggle="tab" href="#protocol-tab" data-pannel="ProtocolTrending" data-path="../static//csv/protocolstrendingdata.csv">Protocols</a></li>
|
2016-07-08 13:08:37 +00:00
|
|
|
</ul>
|
|
|
|
</br>
|
2016-07-19 16:07:29 +00:00
|
|
|
|
|
|
|
<div class="tab-content">
|
2016-07-08 13:08:37 +00:00
|
|
|
<div class="col-lg-12 tab-pane fade in active" id="tld-tab" >
|
2016-07-12 12:33:54 +00:00
|
|
|
{% include 'trending_graphs/Tldstrending.html' %}
|
2016-07-01 14:59:08 +00:00
|
|
|
</div>
|
2016-07-08 13:08:37 +00:00
|
|
|
<div class="col-lg-12 tab-pane fade" id="domain-tab">
|
2016-07-12 12:33:54 +00:00
|
|
|
{% include 'trending_graphs/Domainstrending.html' %}
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12 tab-pane fade" id="words-tab">
|
|
|
|
{% include 'trending_graphs/Wordstrending.html' %}
|
2016-07-19 16:07:29 +00:00
|
|
|
</div>
|
2016-07-12 12:33:54 +00:00
|
|
|
<div class="col-lg-12 tab-pane fade" id="protocol-tab">
|
|
|
|
{% include 'trending_graphs/Protocolstrending.html' %}
|
2016-07-04 09:43:38 +00:00
|
|
|
</div>
|
2016-07-08 13:08:37 +00:00
|
|
|
</div> <!-- tab-content -->
|
2016-07-01 14:59:08 +00:00
|
|
|
<!-- /.row -->
|
|
|
|
</div>
|
|
|
|
<!-- /#page-wrapper -->
|
2016-07-08 13:08:37 +00:00
|
|
|
|
|
|
|
<!-- import graph function -->
|
|
|
|
<script src="{{ url_for('static', filename='js/plot-graph.js') }}"></script>
|
|
|
|
|
|
|
|
<!-- instanciate and plot graphs -->
|
|
|
|
<script type="text/javascript">
|
2016-07-11 13:05:04 +00:00
|
|
|
// Create, plot and set the limit of displayed headers
|
|
|
|
function create_and_plot(pannel, path){
|
|
|
|
//var graph_domain = new Graph($(event.target).attr('data-pannel'), $(event.target).attr('data-path'));
|
|
|
|
$.get(path, function(myContentFile) {
|
|
|
|
var lines = myContentFile.split("\r\n");
|
|
|
|
var header_size = lines[0].split(',').length-1;
|
2016-07-11 14:57:45 +00:00
|
|
|
current_displayed_graph = new Graph(pannel, path, header_size);
|
|
|
|
setTimeout(function() { current_displayed_graph.set_Visibility(default_display)}, 300);
|
2016-07-11 13:05:04 +00:00
|
|
|
}, 'text');
|
2016-07-19 16:07:29 +00:00
|
|
|
|
2016-07-11 13:05:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// When a pannel is shown, create_and_plot.
|
2016-07-08 13:08:37 +00:00
|
|
|
$('.nav-tabs a').on('shown.bs.tab', function(event){
|
2016-07-19 16:07:29 +00:00
|
|
|
create_and_plot($(event.target).attr('data-pannel'), $(event.target).attr('data-path'));
|
2016-07-08 13:08:37 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
2016-07-11 13:05:04 +00:00
|
|
|
// Create the graph when the page has just loaded
|
2016-07-19 16:07:29 +00:00
|
|
|
create_and_plot("TldTrending", '../static//csv/tldstrendingdata.csv')
|
2016-07-08 13:08:37 +00:00
|
|
|
});
|
2016-07-19 16:07:29 +00:00
|
|
|
|
2016-07-12 09:47:51 +00:00
|
|
|
// Used when we modify the number of displayed curves
|
2016-07-12 08:02:01 +00:00
|
|
|
function take_top(new_display){
|
2016-07-11 14:57:45 +00:00
|
|
|
current_displayed_graph.set_Visibility_andHide(new_display, default_display);
|
|
|
|
default_display = new_display;
|
|
|
|
}
|
2016-07-19 16:07:29 +00:00
|
|
|
|
2016-07-08 13:08:37 +00:00
|
|
|
</script>
|
|
|
|
|
2016-07-01 14:59:08 +00:00
|
|
|
</div>
|
|
|
|
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|