fixed it all... hopefully

This commit is contained in:
Jesse James Isler 2022-03-31 10:47:54 +02:00
parent 50b3f61ba6
commit 73bacc57ef

View File

@ -144,7 +144,6 @@
</button> </button>
</div> </div>
</div> </div>
<!-- Cardpreview --> <!-- Cardpreview -->
<div class="col s6"> <div class="col s6">
<div class="blurry"> <div class="blurry">
@ -180,7 +179,6 @@
<div class="collapsible-body"> <div class="collapsible-body">
<pre >Normal Role Convars (also found in ULX): <pre >Normal Role Convars (also found in ULX):
<code id="cvars"></code> <code id="cvars"></code>
Rolespecific Convars: Rolespecific Convars:
<code id="rcvars"></code></pre> <code id="rcvars"></code></pre>
</div> </div>
@ -212,40 +210,31 @@
</div> </div>
</div> </div>
</div> </div>
<!-- Updatescript --> <!-- Updatescript -->
<script> <script>
function updateName() { function updateName() {
document.getElementById("cardname").innerHTML = $('#name').val(); document.getElementById("cardname").innerHTML = $('#name').val();
} }
function updateHowToPlay() { function updateHowToPlay() {
document.getElementById("thowtoplay").innerHTML = $('#howtoplay').val(); document.getElementById("thowtoplay").innerHTML = $('#howtoplay').val();
} }
function createMenuItem(name) { function createMenuItem(name) {
let li = document.createElement('li'); let li = document.createElement('li');
li.textContent = name; li.textContent = name;
return li; return li;
} }
function updateGoodRoles() { function updateGoodRoles() {
goodRoles = $('#goodRoles').val(); goodRoles = $('#goodRoles').val();
goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendChild(createMenuItem(element)); ) goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendChild(createMenuItem(element)); )
); );
} }
function updateDescription() { function updateDescription() {
document.getElementById("carddescription").innerHTML = $('#description').val(); document.getElementById("carddescription").innerHTML = $('#description').val();
} }
function updateColor() { function updateColor() {
document.getElementById("rolecard").className = "card " + $('#rolecolor').val() +" "+ $('#modifier').val() +"-"+ $('#strength').val() + " " + $('#tcolor').val(); document.getElementById("rolecard").className = "card " + $('#rolecolor').val() +" "+ $('#modifier').val() +"-"+ $('#strength').val() + " " + $('#tcolor').val();
} }
</script> </script>
<!-- Start Tab init --> <!-- Start Tab init -->
<script> <script>
$(document).ready(function() { $(document).ready(function() {