Added progress bar and aueried org name + next rank

pull/3/head
Sami Mokaddem 2017-10-31 16:27:39 +01:00
parent 9fc82589ab
commit ed6bcc2b8d
3 changed files with 27 additions and 59 deletions

View File

@ -131,6 +131,7 @@ def geo():
@app.route("/contrib")
def contrib():
return render_template('contrib.html',
currOrg=""
)
@app.route("/_getLastContributor")

View File

@ -19,61 +19,6 @@
min-width: 45px;
}
.star1-1{
}
.star2-1 {
}
.star2-2 {
left: 0px;
}
.star3-1 {
top: 6px;
left: 5px;
}
.star3-2 {
top: -8px;
left: 0px;
}
.star3-3 {
top: 6px;
left: -5px;
}
.star4-1 {
}
.star4-2 {
left: -6px;
}
.star4-3 {
left: -36px;
top: -10px;
}
.star4-4 {
left: -42px;
top: -10px;
}
.star5-1 {
top: 7px;
}
.star5-2 {
left: -3px;
top: 7px;
}
.star5-3 {
left: -37px;
top: -7px;
}
.star5-4 {
left: -47px;
top: -0px;
}
.star5-5 {
left: -57px;
top: -7px;
.progress {
width: 150px;
}

View File

@ -83,7 +83,7 @@
text-align: center;
margin-left: 8px;
float: left;
padding-top: 9px;
padding-top: 15px;
}
.center {
@ -115,7 +115,23 @@ small {
</ul>
<div id="ledsHolder" style="float: right; height: 50px;">
<div class='leftSepa textTopHeader'>
<strong>Your organisation name: <input type="text" id="orgName" data-provide="typeahead" size="30" style="margin-bottom: 5px;"></strong>
<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>
<div class='leftSepa textTopHeader' style="min-width: 100px;">
<strong id="orgText"></strong>
</div>
<div id="orgRankDiv" class='textTopHeader'>
</div>
<div class='textTopHeader'>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:70%">
</div>
</div>
</div>
<div id="orgNextRankDiv" class='textTopHeader'>
</div>
</div>
</div>
@ -295,6 +311,9 @@ small {
} else {
return process(allOrg);
}
},
updater: function(item) {
$('#orgText').text(item);
}
}
@ -353,6 +372,9 @@ small {
$(document).ready(function() {
$('#orgName').typeahead(typeaheadOption);
$('#orgRankDiv').html(getRankIcon(8));
$('#orgNextRankDiv').html(getRankIcon(9));
$('#orgText').text('{{ currOrg }}');
datatableTop = $('#topContribTable').DataTable(optionDatatable_top);
datatableFame = $('#fameTable').DataTable(optionDatatable_fame);
datatableCateg = $('#categTable').DataTable(optionDatatable_Categ);