2016-08-11 11:34:22 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
2018-08-02 10:44:47 +02:00
|
|
|
<title>Sentiment Trending - AIL</title>
|
|
|
|
<link rel="icon" href="{{ url_for('static', filename='image/ail-icon.png') }}">
|
2016-08-11 11:34:22 +02: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">
|
|
|
|
<script language="javascript" src="{{ url_for('static', filename='js/jquery.js')}}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
2016-08-11 17:22:50 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/FlexGauge.js') }}"></script>
|
2016-08-12 10:22:24 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/jquery.sparkline.min.js') }}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.canvasjs.min.js') }}"></script>
|
2016-08-11 17:22:50 +02:00
|
|
|
|
|
|
|
<style>
|
2016-08-18 15:34:19 +02:00
|
|
|
|
|
|
|
.moodtable_worst {
|
|
|
|
background: rgba(255, 0, 0, 0.47);
|
2016-08-20 18:48:24 +02:00
|
|
|
font-size: small;
|
2016-08-18 15:34:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.moodtable_best {
|
|
|
|
background: rgba(132, 255, 0, 0.5);
|
2016-08-20 18:48:24 +02:00
|
|
|
font-size: small;
|
2016-08-18 15:34:19 +02:00
|
|
|
}
|
|
|
|
|
2016-08-15 12:57:39 +02:00
|
|
|
.jqstooltip{
|
|
|
|
box-sizing: content-box;
|
|
|
|
}
|
|
|
|
|
2016-08-11 17:22:50 +02:00
|
|
|
strong {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2018-08-02 10:44:47 +02:00
|
|
|
|
2016-08-13 15:24:57 +02:00
|
|
|
.table {
|
|
|
|
margin-bottom: 0px;
|
|
|
|
}
|
2016-08-11 17:22:50 +02:00
|
|
|
|
|
|
|
.sparkLineStats ul {
|
|
|
|
padding-left:0;
|
|
|
|
list-style:none
|
|
|
|
}
|
2018-08-02 10:44:47 +02:00
|
|
|
|
2016-08-11 17:22:50 +02:00
|
|
|
.sparkLineStats {
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sparkLineStats ul li {
|
|
|
|
margin-bottom: 8px;
|
2016-08-11 17:57:23 +02:00
|
|
|
line-height: 90px;
|
2016-08-11 17:22:50 +02:00
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sparkLineStats ul li div {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sparkLineStats ul li div:first-child {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2018-08-02 10:44:47 +02:00
|
|
|
|
2016-08-13 15:24:57 +02:00
|
|
|
.panelInside {
|
|
|
|
padding: 5px;
|
2016-08-12 10:22:24 +02:00
|
|
|
}
|
2016-08-11 17:22:50 +02:00
|
|
|
|
|
|
|
.fg-dial-label {
|
|
|
|
font-size: 100%;
|
|
|
|
font-weight: bold;
|
|
|
|
left: 0;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
top: -60px;
|
2016-08-11 17:57:23 +02:00
|
|
|
margin-bottom: -10px;
|
2016-08-11 17:22:50 +02:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
</style>
|
2016-08-11 11:34:22 +02:00
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2017-04-19 15:14:20 +02:00
|
|
|
{% include 'navbar.html' %}
|
2016-08-11 11:34:22 +02:00
|
|
|
|
|
|
|
<div id="page-wrapper">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<h1 class="page-header" data-page="page-sentiment" >Sentiment analysis: Trending</h1>
|
|
|
|
</div>
|
|
|
|
<!-- /.col-lg-12 -->
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
<div class="row">
|
2016-08-25 15:06:18 +02:00
|
|
|
<button id="LoadAll" class="btn btn-info" style="margin: 5px;"><span class="glyphicon glyphicon-download"> </span> Load data from all providers </button>
|
2016-08-11 11:34:22 +02:00
|
|
|
|
2016-08-11 17:22:50 +02:00
|
|
|
<!-- Pannel TODAY -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div id="panel-today" class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2016-08-17 10:43:43 +02:00
|
|
|
<strong data-toggle="tooltip" data-placement="right" title="Providers displayed are in the top list in Module Statistics">Today's mood</strong>
|
2016-08-11 17:22:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<!-- left column -->
|
2016-08-13 15:24:57 +02:00
|
|
|
<div class="col-lg-9" style="padding-left: 0px;">
|
2016-08-11 17:22:50 +02:00
|
|
|
<!-- providers charts -->
|
|
|
|
<div class="col-lg-6">
|
2016-08-25 15:06:18 +02:00
|
|
|
<div id="today_divl" class="sparkLineStats">
|
|
|
|
|
2016-08-11 17:22:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-6">
|
2016-08-25 15:06:18 +02:00
|
|
|
<div id="today_divr" class="sparkLineStats">
|
|
|
|
|
2016-08-11 17:22:50 +02:00
|
|
|
</div>
|
2018-08-02 10:44:47 +02:00
|
|
|
</div>
|
2016-08-11 17:22:50 +02:00
|
|
|
</div>
|
|
|
|
<!-- right column -->
|
|
|
|
<div class="col-lg-3">
|
|
|
|
<div class="well text-center" style="padding: 0px;">
|
2016-08-17 10:43:43 +02:00
|
|
|
<strong data-toggle="tooltip" data-placement="top" title="Percentage is computed over the last hour max value">Mood value</strong>
|
2016-08-11 17:22:50 +02:00
|
|
|
<div id="gauge_today_last_hour"></div>
|
2016-08-17 10:43:43 +02:00
|
|
|
<strong data-toggle="tooltip" data-placement="top" title="Average of the sentiments' intensity">Compound by mood</strong>
|
2016-08-12 10:22:24 +02:00
|
|
|
<div id="bar_today_last_hour" style="height: 70px; width: 100%;"></div>
|
2016-08-11 17:22:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="well text-center" style="padding: 0px;">
|
2016-08-17 10:43:43 +02:00
|
|
|
<strong data-toggle="tooltip" data-placement="top" title="Percentage is computed over the today max value">Mood value</strong>
|
2016-08-11 17:22:50 +02:00
|
|
|
<div id="gauge_today_last_days"></div>
|
2016-08-17 10:43:43 +02:00
|
|
|
<strong data-toggle="tooltip" data-placement="top" title="Average of the of sentiments' intensity">Compound by mood</strong>
|
2016-08-12 10:22:24 +02:00
|
|
|
<div id="bar_today_last_days" style="height: 70px; width: 100%;"></div>
|
2016-08-11 17:22:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
</div>
|
|
|
|
<!-- /.panel-body -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.panel -->
|
|
|
|
</div>
|
|
|
|
<!-- /.panel -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-08-11 17:57:23 +02:00
|
|
|
<!-- Pannel WEEK -->
|
2016-08-11 17:22:50 +02:00
|
|
|
<div class="row">
|
2016-08-11 17:57:23 +02:00
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div id="panel-week" class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Week's mood</strong>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<!-- left column -->
|
2016-08-13 15:24:57 +02:00
|
|
|
<div class="col-lg-9" style="padding-left: 0px;">
|
2016-08-11 17:57:23 +02:00
|
|
|
<!-- providers charts -->
|
|
|
|
<div class="col-lg-6">
|
2016-08-25 15:06:18 +02:00
|
|
|
<div id="week_divl" class="sparkLineStats">
|
|
|
|
|
2016-08-11 17:57:23 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-6">
|
2016-08-25 15:06:18 +02:00
|
|
|
<div id="week_divr" class="sparkLineStats">
|
2018-08-02 10:44:47 +02:00
|
|
|
|
2016-08-11 17:57:23 +02:00
|
|
|
</div>
|
2018-08-02 10:44:47 +02:00
|
|
|
</div>
|
2016-08-11 17:57:23 +02:00
|
|
|
</div>
|
|
|
|
<!-- right column -->
|
|
|
|
<div class="col-lg-3">
|
|
|
|
<div class="well text-center" style="padding: 0px;">
|
2016-08-17 10:43:43 +02:00
|
|
|
<strong data-toggle="tooltip" data-placement="top" title="Percentage is computed over the week max value">Mood value</strong>
|
2016-08-11 17:57:23 +02:00
|
|
|
<div id="gauge_week"></div>
|
|
|
|
</div>
|
|
|
|
<div class="well text-center" style="padding: 0px;">
|
|
|
|
<table class="table table-striped table-bordered table-hover" id="myTable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Worst mood</th>
|
|
|
|
<th>Best mood</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2016-10-14 16:47:22 +02:00
|
|
|
<td class="worst1 moodtable_worst">no data</td>
|
|
|
|
<td class="best1 moodtable_best">no data</td>
|
2016-08-11 17:57:23 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-10-14 16:47:22 +02:00
|
|
|
<td class="worst2 moodtable_worst">no data</td>
|
|
|
|
<td class="best2 moodtable_best">no data</td>
|
2016-08-11 17:57:23 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-10-14 16:47:22 +02:00
|
|
|
<td class="worst3 moodtable_worst">no data</td>
|
|
|
|
<td class="best3 moodtable_best">no data</td>
|
2016-08-11 17:57:23 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-10-14 16:47:22 +02:00
|
|
|
<td class="worst4 moodtable_worst">no data</td>
|
|
|
|
<td class="best4 moodtable_best">no data</td>
|
2016-08-11 17:57:23 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-10-14 16:47:22 +02:00
|
|
|
<td class="worst5 moodtable_worst">no data</td>
|
|
|
|
<td class="best5 moodtable_best">no data</td>
|
2016-08-11 17:57:23 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
</div>
|
|
|
|
<!-- /.panel-body -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.panel -->
|
|
|
|
</div>
|
|
|
|
<!-- /.panel -->
|
|
|
|
</div>
|
2016-08-11 17:22:50 +02:00
|
|
|
</div>
|
|
|
|
|
2018-08-02 10:44:47 +02:00
|
|
|
|
2016-08-11 11:34:22 +02:00
|
|
|
<!-- /.row -->
|
2016-08-11 17:22:50 +02:00
|
|
|
</div>
|
2016-08-11 11:34:22 +02:00
|
|
|
<!-- /#page-wrapper -->
|
2016-08-11 17:22:50 +02:00
|
|
|
</div>
|
|
|
|
|
2016-08-11 11:34:22 +02:00
|
|
|
|
|
|
|
<!-- import graph function -->
|
2018-09-25 14:37:14 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/sentiment_trending.js') }}"
|
|
|
|
data-url_sentiment_analysis_getplotdata="{{ url_for('sentiments.sentiment_analysis_getplotdata') }}">
|
|
|
|
</script>
|
2016-08-11 11:34:22 +02:00
|
|
|
<script>
|
2016-08-25 15:06:18 +02:00
|
|
|
$("#LoadAll").hide();
|
2016-08-13 15:24:57 +02:00
|
|
|
|
2016-08-11 11:34:22 +02:00
|
|
|
$(document).ready(function(){
|
|
|
|
activePage = $('h1.page-header').attr('data-page');
|
|
|
|
$("#"+activePage).addClass("active");
|
2018-08-02 10:44:47 +02:00
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
2016-08-11 11:34:22 +02:00
|
|
|
|
2020-03-04 15:12:32 +01:00
|
|
|
$("#LoadAll").on("click", function(){ draw_page("True"); });
|
2016-08-25 15:06:18 +02:00
|
|
|
draw_page("False");
|
2016-08-16 11:27:49 +02:00
|
|
|
// Reload every 30min
|
|
|
|
setTimeout(function(){ location.reload(); }, 30*60*1000);
|
2016-08-11 17:22:50 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
2016-08-11 11:34:22 +02:00
|
|
|
</html>
|