mirror of
https://gitlab.com/aviortheking/code-stats-vscode.git
synced 2025-07-29 05:49:50 +00:00
About done
This commit is contained in:
committed by
Juha Ristolainen
parent
ac74701866
commit
ed2b511762
@ -5,18 +5,33 @@
|
||||
<%= profile.new_xp %>)</sup>
|
||||
<% } %>
|
||||
</h3>
|
||||
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-success" style='width:${profile.progress}%;'>
|
||||
<span class="sr-only">Level progress ${profile.progress - profile.new_progress}%.</span>
|
||||
</div>
|
||||
<div class="progress-bar progress-bar-striped progress-bar-warning" style='width:${profile.new_progress}%;'>
|
||||
<span class="sr-only">Recent level progress ${profile.new_progress}%.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="clear: both;">
|
||||
<% for( let l in languages) { %>
|
||||
<div class="circle-progress">
|
||||
<div class="language">
|
||||
<%= languages[l].name %>
|
||||
<span>
|
||||
<%= languages[l].xp %>
|
||||
<%= languages[l].level %>
|
||||
</span>
|
||||
</div>
|
||||
<span class="tooltiptext">
|
||||
Total XP: <strong><%=languages[l].xp %></strong> <br/>
|
||||
New XP: <%=languages[l].new_xp%>
|
||||
</span>
|
||||
<svg viewBox="0 0 100 100">
|
||||
<circle cx="50" cy="50" r="45" stroke="#424242" stroke-width="5"></circle>
|
||||
<circle cx="50" cy="50" r="45" stroke="#318245" stroke-width="5" stroke-dasharray="282.6" stroke-dashoffset="70.65"></circle>
|
||||
<circle cx="50" cy="50" r="45" stroke="#ddca7e" stroke-width="5" stroke-dasharray="282.6" stroke-dashoffset='${ ((100-languages[l].progress) * 282.6 / 100) }'></circle>
|
||||
<circle cx="50" cy="50" r="45" stroke="#318245" stroke-width="5" stroke-dasharray="282.6" stroke-dashoffset='${ ((100-languages[l].progress + languages[l].new_progress) * 282.6 / 100) }'></circle>
|
||||
</svg>
|
||||
</div>
|
||||
<% } %>
|
||||
@ -37,7 +52,7 @@
|
||||
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-success" style='width:${machines[m].progress}%;'>
|
||||
<span class="sr-only">Level progress ${machines[m].progress}%.</span>
|
||||
<span class="sr-only">Level progress ${machines[m].progress - machines[m].new_progress}%.</span>
|
||||
</div>
|
||||
<div class="progress-bar progress-bar-striped progress-bar-warning" style='width:${machines[m].new_progress}%;'>
|
||||
<span class="sr-only">Recent level progress ${machines[m].new_progress}%.</span>
|
||||
|
Reference in New Issue
Block a user