Skip to content

Commit

Permalink
Fix problem. (#384)
Browse files Browse the repository at this point in the history
Co-authored-by: BoAnd <bo@ambolt.io>
Co-authored-by: Kresten Laust <krestenlaust@gmail.com>
  • Loading branch information
3 people committed Nov 3, 2023
1 parent d10f097 commit 4c9a790
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions stregsystem/templates/admin/stregsystem/razzia/fnugfald.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,23 @@

{% block member_present %}
<div class="result">
<div class="status">
{% if drunkard %}
<script>
// fade/flash background color to more easily notify foobar crew
let ofs = 0;
let el = document.body;
window.setInterval(function(){
el.style.background = 'rgba(255,255,0,'+Math.abs(Math.sin(ofs))+')';
ofs += 0.02;
}, 10);
</script>
<div class="fa fa-exclamation-triangle failure" aria-hidden="true"></div>
{% else %}
<div class="fa {% if already_used %} fa-exclamation-circle sucess {% else %} fa-check-circle sucess {% endif %}" aria-hidden="true"></div>
{% endif %}
</div>
{% if drunkard %}
{{member.firstname}} {{member.lastname}} ({{member.username}}) <b>wait {{ remaining_time_mins }}m {{ remaining_time_secs }}s </b> before next free beer
<div class="status">
<script>
// fade/flash background color to more easily notify foobar crew
let ofs = 0;
let el = document.body;
window.setInterval(function(){
el.style.background = 'rgba(255,255,0,'+Math.abs(Math.sin(ofs))+')';
ofs += 0.02;
}, 10);
</script>
<div class="fa fa-exclamation-triangle failure" aria-hidden="true"></div>
</div>
{{member.firstname}} {{member.lastname}} ({{member.username}}) <b>wait {{ remaining_time_mins }}m {{ remaining_time_secs }}s </b> before next free beer
{% else %}
{{member.firstname}} {{member.lastname}} ({{member.username}}) {% if already_checked_in %} last checked in at {{last_entry.time}} {% endif %}
<div class="status"><div class="fa {% if already_used %} fa-exclamation-circle sucess {% else %} fa-check-circle sucess {% endif %} fa-fw" aria-hidden="true"></div></div>
{{member.firstname}} {{member.lastname}} ({{member.username}}) {% if already_checked_in %} last checked in at {{last_entry.time}} {% endif %}
{% endif %}
</div>

Expand Down

0 comments on commit 4c9a790

Please sign in to comment.