2017-10-30 16:28:32 +01:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< meta name = "description" content = "" >
< meta name = "author" content = "" >
2017-11-21 15:29:56 +01:00
< title > MISP Contributors< / title >
2017-10-30 16:28:32 +01:00
<!-- Bootstrap Core CSS -->
< link href = "{{ url_for('static', filename='css/bootstrap.min.css') }}" rel = "stylesheet" >
<!-- Custom CSS -->
< link href = "{{ url_for('static', filename='css/sb-admin-2.css') }}" rel = "stylesheet" >
<!-- LeafLet -->
< link rel = "stylesheet" href = "{{ url_for('static', filename='css/leaflet.css') }}" >
< script src = "{{ url_for('static', filename='js/leaflet.js') }}" > < / script >
<!-- jQuery -->
< script src = "{{ url_for('static', filename='js/jquery.min.js') }}" > < / script >
<!-- jQuery flot -->
< script src = "{{ url_for('static', filename='js/jquery.flot.js') }}" > < / script >
< script src = "{{ url_for('static', filename='js/jquery.flot.pie.min.js') }}" > < / script >
< script src = "{{ url_for('static', filename='js/jquery.flot.resize.js') }}" > < / script >
2017-11-09 10:32:39 +01:00
< script src = "{{ url_for('static', filename='js/jquery.flot.time.js') }}" > < / script >
2017-10-30 16:28:32 +01:00
<!-- Bootstrap Core JavaScript -->
< script src = "{{ url_for('static', filename='js/bootstrap.js') }}" > < / script >
2017-10-31 15:49:04 +01:00
< script src = "{{ url_for('static', filename='js/bootstrap3-typeahead.min.js') }}" > < / script >
2017-10-30 16:28:32 +01:00
< link rel = "stylesheet" href = "{{ url_for('static', filename='css/font-awesome.min.css') }}" rel = "text/css" >
2017-11-10 11:50:32 +01:00
<!-- JVectorMap -->
2017-10-30 16:28:32 +01:00
< 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 >
2017-11-10 11:50:32 +01:00
<!-- Jquery UI -->
2017-10-30 16:28:32 +01:00
< link href = "{{ url_for('static', filename='css/jquery-ui.min.css') }}" rel = "stylesheet" type = "text/css" / >
2017-11-10 11:50:32 +01:00
< script src = "{{ url_for('static', filename='js/jquery-ui.min.js') }}" > < / script >
<!-- dataTable -->
2017-10-30 16:28:32 +01:00
< link href = "{{ url_for('static', filename='css/dataTables.bootstrap.css') }}" rel = "stylesheet" type = "text/css" / >
< script src = "{{ url_for('static', filename='js/jquery.dataTables.min.js') }}" > < / script >
< script src = "{{ url_for('static', filename='js/dataTables.bootstrap.js') }}" > < / script >
< link rel = "stylesheet" href = "{{ url_for('static', filename='css/ranking.css') }}" >
< / head >
< body >
2017-11-13 12:57:05 +01:00
<!-- Modal Rank -->
< div id = "myModalRank" class = "modal fade" role = "dialog" >
2017-11-08 11:29:07 +01:00
< div class = "modal-dialog modal-lg" style = "width: 1500px;" >
2017-11-06 17:14:10 +01:00
<!-- Modal content -->
< div class = "modal-content" >
< div class = "modal-body" >
2017-11-07 12:54:08 +01:00
< div class = "row" >
2017-11-08 11:29:07 +01:00
< div class = "col-lg-4" >
< h4 > Monthly rank generation:< / h4 >
< p > Monthly ranks are generated by the formula: < pre > Rank = floor(Log(< it > points< / it > , {{ rankMultiplier }}))< / pre > < / p >
< ul >
{% for text in additional_help_text %}
< li > {{ text }}< / li >
{% endfor %}
< / ul >
2017-11-07 12:54:08 +01:00
< h4 > Points awarded by category:< / h4 >
< div class = "table-responsive" >
< table class = "table table-striped table-bordered" >
< thead >
< tr >
< th > Category< / th >
< th > Point(s) awarded< / th >
< / tr >
< / thead >
< tbody >
{% for categ in categ_list_str %}
< tr >
< td > {{ categ }}< / td >
< td > {{ categ_list_points[loop.index0] }}< / td >
< / tr >
{% endfor %}
< / tbody >
< / table >
< / div >
< / div >
2017-11-08 11:29:07 +01:00
< div class = "col-lg-8" >
2017-11-08 16:12:42 +01:00
< div class = "row" >
< div class = "col-lg-3" >
< h4 > Organisation total points: < / h4 >
< / div >
< div class = "col-lg-3" >
< h4 id = 'orgTotNumOfPoint' > < / h4 >
< / div >
< / div >
< div class = "row" >
< div class = "col-lg-3" >
< h4 > Contribution ranking:< / h4 >
< / div >
< div class = "col-lg-6" >
< table class = "table table-bordered" >
< tbody >
< tr >
< td class = "success" > Current rank< / td >
< td class = "warning" > Requirement satisfied< / td >
< td class = "danger" > Requirement not satisfied< / td >
< / tr >
< / tbody >
< / table >
< / div >
< / div >
2017-11-07 12:54:08 +01:00
< div class = "table-responsive" >
< table class = "table table-striped table-bordered" >
< thead >
< tr >
2017-11-08 16:12:42 +01:00
< th > Contribution rank< / th >
2017-11-07 12:54:08 +01:00
< th > Title< / th >
2017-11-08 16:12:42 +01:00
< th > Total points requirement< / th >
2017-11-08 11:29:07 +01:00
< th > Contribution requirement< / th >
2017-11-07 12:54:08 +01:00
< / tr >
< / thead >
2017-11-08 15:34:02 +01:00
< tbody id = 'bodyTablerankingModal' >
2017-11-07 12:54:08 +01:00
{% for item in org_rank_list %}
2017-11-08 15:34:02 +01:00
< tr data-rank = {{ loop . index } } >
2017-11-08 11:29:07 +01:00
< td style = 'padding: 0px; text-align: right;' > < img height = '35px' width = '70px' style = "margin-right: 20px;" src = "{{ url_for('static', filename='pics/rankingMISPOrg/1.svg')[:-5]}}{{ item[0] }}.svg" type = 'image/svg' style = "margin: auto;" < / img > < / td >
2017-11-07 12:54:08 +01:00
< td > {{ item[1] }}< / td >
2017-11-08 11:29:07 +01:00
< td > {{ item[2] }}< / td >
< td > {{ item[3] }}< / td >
2017-11-07 12:54:08 +01:00
< / tr >
{% endfor %}
< / tbody >
< / table >
< / div >
2017-11-08 11:29:07 +01:00
< div class = "col-lg-6" >
< ul >
{% for text in org_rank_additional_text %}
< li > {{ text }}< / li >
{% endfor %}
< / ul >
< / div >
2017-11-07 12:54:08 +01:00
< / div >
2017-11-06 17:14:10 +01:00
< / div >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-default" data-dismiss = "modal" > Close< / button >
< / div >
< / div >
< / div >
< / div >
2017-10-30 16:28:32 +01:00
2017-11-13 12:57:05 +01:00
<!-- Modal trophy -->
< div id = "myModalTrophy" class = "modal fade" role = "dialog" >
< div class = "modal-dialog modal-lg" style = "width: 1500px;" >
<!-- Modal content -->
< div class = "modal-content" >
< div class = "modal-header" >
< h3 class = "modal-title" style = "float: left;" > Trophies and badges< / h3 >
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" >
< span aria-hidden = "true" > × < / span >
< / button >
< / div >
< div class = "modal-body" >
< h4 > Badges:< / h4 >
< div class = "table-responsive" >
< table class = "table table-striped table-bordered" >
< thead >
< tr >
< th > Badge< / th >
< th > Requirement< / th >
< / tr >
< / thead >
< tbody id = 'bodyTableBadgeModal' >
{% for item in org_honor_badge_title_list %}
< tr >
< td >
2017-11-13 16:26:09 +01:00
< div id = "divBadge_{{ loop.index }}" class = "circleBadgeSmall circlBadgeNotAcquired" >
2017-12-04 11:49:30 +01:00
< img height = '48px' width = '48' class = "" style = "margin-top: 3px;" src = "{{ url_for('static', filename='pics/MISPHonorableIcons/1.svg')[:-5]}}{{ item[0] }}.svg" type = 'image/svg' style = "margin: auto;" < / img >
2017-11-13 12:57:05 +01:00
< / div >
< / td >
< td style = "padding-left: 15px;" > {{ item[1] }}< / td >
< / tr >
{% endfor %}
< / tbody >
< / table >
< / div >
< p style = "font-size: 18px; display: inline;" > Trophies: < / p > < p style = "display: inline;" > Shows your skills in information sharing < / p > < i > (earned via upvotes or sightings from other organisation)< / i >
2017-11-24 15:09:34 +01:00
< div class = "table-responsive" >
< table class = "table table-striped table-bordered" >
< thead >
< tr >
{% for title in trophy_title_str %}
2017-11-24 16:46:46 +01:00
< th class = "centerCell" > {{ title }}< / th >
2017-11-24 15:09:34 +01:00
{% endfor %}
< / tr >
< / thead >
< tbody id = 'bodyTableTrophyModal' >
< tr >
{% for perc in trophy_mapping %}
2017-11-24 16:46:46 +01:00
< td class = "centerCell" > {{ perc }}< / td >
2017-11-24 15:09:34 +01:00
{% endfor %}
< / tr >
< tr >
{% for title in trophy_title_str %}
< td >
< input type = 'image' style = "display: block; margin-left: auto; margin-right: auto;" height = "64" width = "64" src = "{{ url_for('static', filename='pics/MISPTrophy/'+loop.index0|string+'.png') }}" >
< / td >
{% endfor %}
< / tr >
< / tbody >
< / table >
< / div >
< p style = "font-size: 18px; display: inline;" > Acquired trophies: < / p >
2017-11-13 12:57:05 +01:00
< div class = "table-responsive" >
< table class = "table table-striped table-bordered" >
< thead >
< tr >
{% for categ in trophy_categ_list_str %}
< th > {{ categ }}< / th >
{% endfor %}
< / tr >
< / thead >
< tbody id = 'bodyTableTrophyModal' >
2017-11-13 15:19:30 +01:00
< tr >
{% for categ in trophy_categ_list_id %}
< td >
< input type = 'image' id = 'trophy_{{categ}}' style = "display: block; margin-left: auto; margin-right: auto;" height = "64" width = "64" src = "{{ url_for('static', filename='pics/MISPTrophy/0.png') }}" >
< / td >
{% endfor %}
2017-11-13 12:57:05 +01:00
< / tr >
< / tbody >
< / table >
< / div >
< / div >
< / div >
< / div >
< / div >
2017-10-30 16:28:32 +01:00
< div id = "wrapper" >
<!-- Navigation -->
< nav class = "navbar navbar-default navbar-static-top" role = "navigation" style = "margin-bottom: 0; padding-left: 15px;" >
< div class = "navbar-header" >
< img src = "{{ url_for('static', filename='pics/MISP.png') }}" alt = "MISP" style = "float: left; height: 40px; margin-top: 5px;" > < a class = "navbar-brand dropdown-toggle" data-toggle = "dropdown" href = "#" > MISP Contributors
< span class = "caret" > < / span > < / a >
< ul class = "dropdown-menu" >
< li > < a href = "{{ url_for('index') }}" > MISP Live Dashboard< / a > < / li >
< li > < a href = "{{ url_for('geo') }}" > MISP Geolocalisation< / a > < / li >
< li > < a href = "{{ url_for('contrib') }}" > MISP Contributors< / a > < / li >
2017-11-17 15:58:21 +01:00
< li > < a href = "{{ url_for('users') }}" > MISP Users< / a > < / li >
< li > < a href = "{{ url_for('trendings') }}" > MISP Trendings< / a > < / li >
2017-10-30 16:28:32 +01:00
< / ul >
2017-11-06 15:00:51 +01:00
< div id = "ledsHolder" style = "float: left; height: 50px;" >
< div class = 'leftSepa textTopHeader' >
< label class = "checkbox-inline" style = "font-weight: bold; position: relative; top: -30%; left:10%" >
< input id = "reloadCheckbox" type = "checkbox" style = "top: -2px;" checked > Auto reload
< / label >
2017-11-06 16:09:29 +01:00
< label id = 'labelRemainingTime' style = "font-weight: bold; font-size: medium; position: relative; left: -38%; bottom: -30%; color: #f0ad4e;" > < / label >
2017-11-06 15:00:51 +01:00
< / div >
< / div >
2017-10-31 15:49:04 +01:00
< div id = "ledsHolder" style = "float: right; height: 50px;" >
< div class = 'leftSepa textTopHeader' >
2017-10-31 16:27:39 +01:00
< strong > Organisation name:< / strong >
< / div >
< div class = 'textTopHeader' style = "padding-top: 9px;" >
< input type = "text" id = "orgName" data-provide = "typeahead" size = "20" style = "margin-bottom: 5px;" >
< / div >
2017-11-13 12:57:05 +01:00
< button type = "button" class = "questionBadgeDiv fa fa-question-circle" title = "Ranking information" data-toggle = "modal" data-target = "#myModalRank" > < / button >
< button type = "button" class = "questionBadgeDiv fa fa-trophy" title = "Trophies and badges" data-toggle = "modal" data-target = "#myModalTrophy" > < / button >
2017-11-02 14:02:54 +01:00
< button id = "btnCurrRank" class = 'btn btn-default popOverBtn' data-container = 'body' data-toggle = 'popover' style = "display: none; margin-left: 20px;" onclick = "showOnlyOrg()" >
2017-11-08 15:34:02 +01:00
< object id = 'orgContributionRank' height = 32 width = 64 class = "centerInBtn" > < / object >
2017-11-02 14:02:54 +01:00
< strong id = "orgText" class = "centerInBtn" > < / strong >
2017-11-02 10:57:16 +01:00
< div id = "orgRankDiv" class = 'textTopHeader' style = "padding-top: 0px; position: relative; width: 40px; height: 40px;" > < / div >
2017-12-04 11:49:30 +01:00
< div class = '' style = "float: left; top: 10px; position: relative;" >
2017-11-02 10:16:34 +01:00
< div class = "progress" style = '' >
2017-11-02 11:36:23 +01:00
< div id = "progressBarDiv" class = "progress-bar progress-bar-striped" role = "progressbar" style = "width:0%" >
2017-11-02 10:16:34 +01:00
< / div >
< / div >
2017-10-31 16:27:39 +01:00
< / div >
2017-11-02 10:57:16 +01:00
< div id = "orgNextRankDiv" class = 'textTopHeader' style = "padding-top: 0px; position: relative; width: 40px; height: 40px;" > < / div >
2017-11-02 10:16:34 +01:00
< / button >
2017-11-08 17:37:03 +01:00
< div class = 'leftSepa textTopHeader' >
2017-11-13 09:15:20 +01:00
< span class = "label label-primary" style = "padding: .5em;" >
2017-11-08 17:37:03 +01:00
< strong style = "" > Points to overtake< / strong >
< strong style = "font-size: medium;" id = 'orgToOverTake' > < / strong >
< strong style = "" > : < / strong >
< strong style = "font-size: large;" id = 'pntsToOvertakeNext' > < / strong >
< / span >
< / div >
2017-10-31 15:49:04 +01:00
< / div >
2017-10-30 16:28:32 +01:00
< / div >
<!-- /.navbar - header -->
< / nav >
<!-- Page Content -->
< div id = "page-wrapper" style = "margin: 0px; padding: 0px;" >
< div class = "container-fluid" >
< div class = "row" >
< div class = "col-lg-12" >
< div style = "height: 10px;" > < / div >
2017-11-21 14:53:55 +01:00
< div class = "col-lg-9" >
2017-10-30 16:28:32 +01:00
2017-11-08 11:29:07 +01:00
< div class = "col-lg-6" >
2017-10-31 12:35:05 +01:00
< div class = "panel panel-default" style = "height: 100%;" >
< div class = "panel-heading bg-info" style = "font-weight: bold;" >
2017-11-09 10:32:39 +01:00
< i class = "fa fa-asterisk " style = "margin-right: 5px; color: #f0ad4e;" > < / i > < b > Contributor ranking (monthly)< / b >
2017-10-31 12:35:05 +01:00
< / div >
2017-11-13 16:02:09 +01:00
< div class = "panel-body" style = "height: 100%;" >
2017-10-31 12:35:05 +01:00
< div class = "table-responsive" >
< table id = "topContribTable" class = "table table-hover table-striped" >
< thead >
< tr >
2017-11-06 09:50:28 +01:00
< th > Points< / th >
2017-11-07 12:54:08 +01:00
< th > Cur. rank< / th >
< th > Org. rank< / th >
< th > < / th >
2017-11-08 11:29:07 +01:00
< th > < / th >
2017-11-02 16:21:04 +01:00
< th > Organisation< / th >
2017-10-31 12:35:05 +01:00
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
< / div >
2017-10-30 16:28:32 +01:00
< / div >
2017-10-31 12:35:05 +01:00
<!-- /.panel - body -->
< / div > <!-- /.panel -->
< / div >
2017-11-08 11:29:07 +01:00
< div class = "col-lg-6" >
2017-10-31 12:35:05 +01:00
< div class = "panel panel-default" style = "height: 100%;" >
< div class = "panel-heading bg-info" style = "font-weight: bold;" >
2017-11-07 12:54:08 +01:00
< i class = "glyphicon glyphicon-fire " style = "margin-right: 5px; color: #d9534f;" > < / i > < b > Last contributors< / b >
2017-10-31 12:35:05 +01:00
< / div >
2017-10-31 15:08:44 +01:00
< div id = "panellast" class = "panel-body" style = "height: 100%;" >
2017-10-31 12:35:05 +01:00
< div class = "table-responsive" >
2017-10-31 15:08:44 +01:00
< table id = "lastTable" class = "table table-hover table-striped" >
2017-10-31 12:35:05 +01:00
< thead >
< tr >
2017-11-10 10:32:51 +01:00
< th > Date< / th >
2017-11-06 09:50:28 +01:00
< th > Points< / th >
2017-11-07 12:54:08 +01:00
< th > Cur. rank< / th >
< th > Org. rank< / th >
< th > < / th >
2017-11-08 11:29:07 +01:00
< th > < / th >
2017-11-02 16:21:04 +01:00
< th > Organisation< / th >
2017-10-31 12:35:05 +01:00
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
< / div >
< / div >
<!-- /.panel - body -->
< / div > <!-- /.panel -->
< / div >
< div class = "col-lg-12" >
2017-11-13 16:02:09 +01:00
< div class = "col-lg-6" >
2017-10-31 12:35:05 +01:00
< div class = "panel panel-default" style = "height: 100%;" >
< div class = "panel-heading bg-info" style = "font-weight: bold;" >
2017-11-10 11:15:31 +01:00
< i class = "fa fa-th-list " style = "margin-right: 5px; color: #f0ad4e;" > < / i > < b > Contributors and categories (total)< / b >
2017-10-31 12:35:05 +01:00
< / div >
2017-11-13 16:02:09 +01:00
< div class = "panel-body" style = "height: 100%;" >
2017-10-31 12:35:05 +01:00
< div class = "table-responsive" >
< table id = "categTable" class = "table table-hover table-striped" >
< thead >
< tr >
2017-11-06 09:50:28 +01:00
< th > Points< / th >
2017-11-07 12:54:08 +01:00
< th > Cur. rank< / th >
< th > Org. rank< / th >
< th > < / th >
2017-11-08 11:29:07 +01:00
< th > < / th >
2017-11-02 16:21:04 +01:00
< th > Organisation< / th >
2017-11-02 16:10:40 +01:00
{% for categ in categ_list_str %}
2017-11-02 16:21:04 +01:00
< th > {{ categ }}< / th >
2017-11-02 16:10:40 +01:00
{% endfor %}
2017-10-31 12:35:05 +01:00
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
< / div >
2017-10-30 16:28:32 +01:00
2017-10-31 12:35:05 +01:00
< / div >
<!-- /.panel - body -->
< / div > <!-- /.panel -->
< / div >
2017-10-30 16:28:32 +01:00
2017-11-13 16:02:09 +01:00
< div class = "col-lg-6" >
< div class = "panel panel-default" style = "height: 100%;" >
< div class = "panel-heading bg-info" style = "font-weight: bold;" >
< i class = "fa fa-trophy" style = "margin-right: 5px; color: #d9534f;" > < / i > < b > Latest awards< / b >
< / div >
< div id = "panelawards" class = "panel-body" style = "height: 100%;" >
< div class = "table-responsive" >
< table id = "awardTable" class = "table table-hover table-striped" >
< thead >
< tr >
< th > Date< / th >
< th > < / th >
< th > Org.< / th >
< th > Awards< / th >
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
< / div >
< / div >
<!-- /.panel - body -->
< / div > <!-- /.panel -->
< / div >
< / div >
2017-10-30 16:28:32 +01:00
< / div > <!-- /.col - lg - 8 -->
2017-11-21 14:53:55 +01:00
< div class = "col-lg-3" >
2017-10-30 16:28:32 +01:00
< div class = "panel panel-default" style = "height: 100%;" >
< div class = "panel-heading bg-info" style = "font-weight: bold;" >
2017-11-14 14:56:15 +01:00
< i class = "fa fa-star" style = "margin-right: 5px; color: #f0ad4e;" > < / i > < b > Hall Of Fame (previous month)< / b >
2017-10-30 16:28:32 +01:00
< / div >
2017-11-13 16:02:09 +01:00
< div class = "panel-body" style = "height: 100%;" >
2017-10-30 16:28:32 +01:00
< div class = "table-responsive" >
2017-11-13 16:02:09 +01:00
< table id = "fameTableQuantity" class = "table table-hover table-striped" style = "margin-bottom: 0px;" >
2017-10-30 16:28:32 +01:00
< thead >
< tr >
2017-11-06 09:50:28 +01:00
< th > Points< / th >
2017-11-02 16:21:04 +01:00
< th > Prev. rank< / th >
2017-11-07 12:54:08 +01:00
< th > Org. rank< / th >
< th > < / th >
2017-11-08 11:29:07 +01:00
< th > < / th >
2017-11-02 16:21:04 +01:00
< th > Organisation< / th >
2017-10-30 16:28:32 +01:00
< / tr >
< / thead >
2017-11-13 16:02:09 +01:00
< tbody id = fameTableQuantityBody >
2017-10-30 16:28:32 +01:00
< / tbody >
< / table >
< / div >
< / div >
<!-- /.panel - body -->
< / div > <!-- /.panel -->
< div class = "panel panel-default" style = "height: 100%;" >
< div class = "panel-heading bg-info" style = "font-weight: bold;" >
2017-11-13 16:02:09 +01:00
< i class = "fa fa-star" style = "margin-right: 5px; color: #f0ad4e;" > < / i > < b > Hall Of Fame - Quality (previous month)< / b >
2017-10-30 16:28:32 +01:00
< / div >
2017-11-13 16:02:09 +01:00
< div class = "panel-body" style = "height: 100%;" >
< div class = "table-responsive" >
< table id = "fameTableQuality" class = "table table-hover table-striped" style = "margin-bottom: 0px;" >
< thead >
< tr >
< th > Points< / th >
< th > Prev. rank< / th >
< th > Org. rank< / th >
< th > < / th >
< th > < / th >
< th > Organisation< / th >
< / tr >
< / thead >
< tbody id = fameTableQualityBody >
< / tbody >
< / table >
< / div >
2017-10-30 16:28:32 +01:00
< / div >
<!-- /.panel - body -->
< / div > <!-- /.panel -->
< / div > <!-- /.col - lg - 4 -->
< / div > <!-- /.col - lg - 12 -->
< / div > <!-- /.row -->
< / div > <!-- /.container - fluid -->
< / div >
<!-- /#page - wrapper -->
< / div >
<!-- /#wrapper -->
<!-- Index -->
< script >
/* URL */
2017-11-02 08:41:30 +01:00
var url_getTopContributor = "{{ url_for('getTopContributor') }}";
2017-11-06 09:50:28 +01:00
var url_getFameContributor = "{{ url_for('getFameContributor') }}";
2017-11-14 15:44:53 +01:00
var url_getFameQualContributor = "{{ url_for('getFameQualContributor') }}";
2017-11-02 08:41:30 +01:00
var url_getCategPerContrib = "{{ url_for('getCategPerContrib') }}";
var url_getTop5Overtime = "{{ url_for('getTop5Overtime') }}";
2017-11-09 10:32:39 +01:00
var url_getOrgOvertime = "{{ url_for('getOrgOvertime') }}";
2017-11-06 13:43:55 +01:00
var url_getLastContributor = "{{ url_for('getLastContributors') }}";
2017-11-13 16:02:09 +01:00
var url_getLatestAwards = "{{ url_for('getLatestAwards') }}";
2017-11-06 13:43:55 +01:00
var url_eventStreamLastContributor = "{{ url_for('getLastContributor') }}";
2017-11-13 16:26:09 +01:00
var url_eventStreamAwards = "{{ url_for('getLastStreamAwards') }}";
2017-11-02 08:41:30 +01:00
var url_getAllOrg = "{{ url_for('getAllOrg') }}";
2017-11-02 10:57:16 +01:00
var url_getOrgRank = "{{ url_for('getOrgRank') }}";
2017-11-08 15:34:02 +01:00
var url_getContributionOrgStatus = "{{ url_for('getContributionOrgStatus') }}";
var url_getHonorBadges = "{{ url_for('getHonorBadges') }}";
2017-11-13 12:57:05 +01:00
var url_getTrophies = "{{ url_for('getTrophies')}}"
2017-11-07 12:54:08 +01:00
var url_baseRankMonthlyLogo = "{{ url_for('static', filename='pics/rankingMISPMonthly/1.svg') }}";
url_baseRankMonthlyLogo = url_baseRankMonthlyLogo.substring(0, url_baseRankMonthlyLogo.length-5);
var url_baseOrgRankLogo = "{{ url_for('static', filename='pics/rankingMISPOrg/1.svg') }}";
url_baseOrgRankLogo = url_baseOrgRankLogo.substring(0, url_baseOrgRankLogo.length-5);
2017-11-08 11:29:07 +01:00
var url_baseHonorLogo = "{{ url_for('static', filename='pics/MISPHonorableIcons/1.svg') }}";
url_baseHonorLogo = url_baseHonorLogo.substring(0, url_baseHonorLogo.length-5);
2017-11-13 12:57:05 +01:00
var url_baseTrophyLogo = "{{ url_for('static', filename='pics/MISPTrophy/1.png') }}";
url_baseTrophyLogo = url_baseTrophyLogo.substring(0, url_baseTrophyLogo.length-5);
2017-10-30 16:28:32 +01:00
/* DATA FROM CONF */
2017-11-02 08:41:30 +01:00
var currOrg = "{{ currOrg }}";
2017-11-06 15:00:51 +01:00
var min_between_reload = {{ min_between_reload }};
2017-11-02 11:47:52 +01:00
var rankMultiplier = {{ rankMultiplier }};
2017-11-02 16:10:40 +01:00
var categ_list = JSON.parse('{{ categ_list|safe }}');
2017-11-07 12:54:08 +01:00
var org_rank_obj = JSON.parse('{{ org_rank_json|safe }}');
2017-11-08 11:29:07 +01:00
var org_honor_badge_title = JSON.parse('{{ org_honor_badge_title|safe }}');
2017-11-09 16:31:04 +01:00
var numberOfBadges = {{ org_honor_badge_title_list|length }};
2017-11-13 12:57:05 +01:00
var trophy_categ_list = JSON.parse('{{ trophy_categ_list|safe }}');
var trophy_title = JSON.parse('{{ trophy_title|safe }}');
2017-10-30 16:28:32 +01:00
< / script >
2017-11-02 08:41:30 +01:00
< script src = "{{ url_for('static', filename='js/contrib.js') }}" > < / script >
2017-10-30 16:28:32 +01:00
< / body >
< / html >