remotes/1693045480750635534/spooky-22
Aevann1 2021-12-11 04:44:13 +02:00
parent eb53748480
commit 5dbcf1009e
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
scoretext.textContent = score + 1;
post('/bet/' + cid);
document.getElementById("user-coins-amount").innerText = parseInt(document.getElementById("user-coins-amount").innerText) - 200;
document.getElementById("span-{{c.id}}").classList.add('bet_voted')
}
</script>
@ -433,7 +434,7 @@
{% endfor %}
{% for c in p.bet_options %}
<span {% if c.poll_voted(v) %}class="bet_voted"{% endif %}><input {% if c.poll_voted(v) %}checked{% endif %} class="bet" {% if not (v and v.coins > 200) or p.total_bet_voted(v) %}disabled{% endif %} type="radio" id="{{c.id}}" onchange="bet_vote('{{c.id}}')"></span>
<span id="span-{{c.id}}" {% if c.poll_voted(v) %}class="bet_voted"{% endif %}><input {% if c.poll_voted(v) %}checked{% endif %} class="bet" {% if not (v and v.coins > 200) or p.total_bet_voted(v) %}disabled{% endif %} type="radio" id="{{c.id}}" onchange="bet_vote('{{c.id}}')"></span>
<label for="{{c.id}}">{{c.body_html | safe}} - <a href="/votes?link=t3_{{c.id}}"><span id="bet-{{c.id}}">{{c.upvotes}}</span> bets</a>{% if not p.total_bet_voted(v) %} (cost of entry: 200 coins){% endif %}</label><br>
{% endfor %}