Test of jvectormap

pull/18/head
= 2017-09-12 09:11:20 +02:00
parent 825f9f01e0
commit 7d38f86e2d
1 changed files with 58 additions and 27 deletions

View File

@ -24,7 +24,7 @@
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0; padding-left: 15px;">
<div class="navbar-header">
<a class="navbar-brand" href="{{ url_for('index') }}">Misp feed dashboard</a>
</div>
@ -33,10 +33,11 @@
</nav>
<!-- Page Content -->
<div id="page-wrapper" style="margin: 0px;">
<div id="page-wrapper" style="margin: 0px; padding: 0px;">
<div class="container-fluid">
<div class="row">
<div class="col-lg-6">
<div class="col-lg-12">
<div class="col-lg-5">
<div class="panel panel-default" style="margin-top: 15px;">
<div class="panel-heading">
@ -50,30 +51,6 @@
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-6 -->
<!-- /.col-lg-6 -->
<div class="col-lg-6">
<div class="panel panel-default" style="margin-top: 15px;">
<div class="panel-heading">
<i class="fa fa-bar-chart-o fa-fw"></i> Feed
</div>
<div id="panelbody" class="panel-body">
<div id="feedDiv2" style="width:100%; height:300px; position: relative;"></div>
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-6 -->
</div>
<!-- /.row CHART -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<i class="fa fa-tasks fa-fw"></i> Logs
@ -104,6 +81,32 @@
</div>
</div>
</div>
</div>
<!-- /.col-lg-6 -->
<!-- /.col-lg-6 -->
<div class="col-lg-7">
<div class="panel panel-default" style="margin-top: 15px;">
<!--<div class="panel-heading">
<i class="fa fa-bar-chart-o fa-fw"></i> Feed
</div>-->
<div id="panelbody" class="panel-body">
<div id="feedDiv2" style="width:100%; height:700px; position: relative;"></div>
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-6 -->
</div>
<!-- /.row CHART -->
<div class="row">
<div class="col-lg-12">
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row LOGS -->
@ -133,6 +136,34 @@
</script>
<script src="{{ url_for('static', filename='js/index.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/jquery-jvectormap-2.0.3.css') }}" type="text/css" media="screen"/>
<script src="{{ url_for('static', filename='js/jquery-jvectormap-2.0.3.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/jquery-jvectormap-world-mill.js') }}"></script>
<script type="text/javascript">
$(function(){
$('#feedDiv2').vectorMap({
map: 'world_mill',
series: {
markers: [{
attribute: 'fill',
scale: ['#FEE5D9', '#A50F15'],
values: { "AF": 16.63, "AL": 11.58, "DZ": 158.97},
min: 11,
max: 160
},{
attribute: 'r',
scale: [5, 20],
values: { "BE": 16.63, "DE": 11.58, "IT": 158.97},
min: 11,
max: 160
}],
}
})
});
</script>
</body>
</html>