forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-17 17:11:01 +02:00
parent b690f08fa1
commit a776059557
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
<script>
function toggle(kind) {
function bruh(kind) {
document.getElementById('giveaward').disabled=false;
document.getElementById('kind').value=kind;
var picked = document.getElementsByClassName('picked')
var picked = document.getElementsByClassName('picked')[0]
if (picked !== undefined) {picked.classList.toggle('picked');}
document.getElementById(kind).classList.toggle('picked')
}
@ -21,7 +21,7 @@ function toggle(kind) {
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
<div class="card-columns awards-wrapper">
{% for award in v.user_awards %}
<a href="javascript:void(0)" id="{{award.kind}}" class="card" onclick="toggle({{award.kind}})">
<a href="javascript:void(0)" id="{{award.kind}}" class="card" onclick="bruh({{award.kind}})">
<i class="{{award.icon}} {{award.color}}"></i><br />
<span class="d-block pt-2" style="font-weight: bold; font-size: 14px; color:#E1E1E1">{{award.title}}</span>
<span class="text-muted">{{award.owned}} owned</span>