made everything change directly

This commit is contained in:
Jesse James Isler 2022-03-31 13:03:28 +02:00
parent 1dbac88141
commit e6e22765bc

View File

@ -31,17 +31,17 @@
<form> <form>
<div class="row"> <div class="row">
<div class="input-field col s3"> <div class="input-field col s3">
<input id="name" type="text" onchange="updateName()"> <input id="name" type="text" onchange="updateCard()">
<label for="name">Rolename</label> <label for="name">Rolename</label>
</div> </div>
<div class="input-field col s9"> <div class="input-field col s9">
<input id="description" type="text" onchange="updateDescription()"> <input id="description" type="text" onchange="updateCard()">
<label for="description">Roledescription</label> <label for="description">Roledescription</label>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="input-field col s3"> <div class="input-field col s3">
<select id="rolecolor" onchange="updateColor()"> <select id="rolecolor" onchange="updateCard()">
<option value="" disabled selected>Color</option> <option value="" disabled selected>Color</option>
<option value="red">Red</option> <option value="red">Red</option>
<option value="pink">Pink</option> <option value="pink">Pink</option>
@ -69,7 +69,7 @@
<label>Select color</label> <label>Select color</label>
</div> </div>
<div class="input-field col s3"> <div class="input-field col s3">
<select id="modifier" onchange="updateColor()"> <select id="modifier" onchange="updateCard()">
<option value="" selected>None</option> <option value="" selected>None</option>
<option value="lighten">Lighten</option> <option value="lighten">Lighten</option>
<option value="darken">Darken</option> <option value="darken">Darken</option>
@ -78,7 +78,7 @@
<label>Select Modifier</label> <label>Select Modifier</label>
</div> </div>
<div class="input-field col s3"> <div class="input-field col s3">
<select id="strength" onchange="updateColor()"> <select id="strength" onchange="updateCard()">
<option value="" selected>No Strength</option> <option value="" selected>No Strength</option>
<option value="1">1</option> <option value="1">1</option>
<option value="2">2</option> <option value="2">2</option>
@ -88,7 +88,7 @@
<label>Select Strength</label> <label>Select Strength</label>
</div> </div>
<div class="input-field col s3"> <div class="input-field col s3">
<select id="tcolor" onchange="updateColor()"> <select id="tcolor" onchange="updateCard()">
<option value="" disabled selected>Textcolor</option> <option value="" disabled selected>Textcolor</option>
<option value="black-text">Black</option> <option value="black-text">Black</option>
<option value="white-text">White</option> <option value="white-text">White</option>
@ -98,13 +98,13 @@
</div> </div>
<div class="row"> <div class="row">
<div class="input-field col s12"> <div class="input-field col s12">
<textarea id="howtoplay" onchange="updateHowToPlay()" class="materialize-textarea"></textarea> <textarea id="howtoplay" onchange="updateCard()" class="materialize-textarea"></textarea>
<label for="howtoplay">Text to describe how to play</label> <label for="howtoplay">Text to describe how to play</label>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="input-field col s12"> <div class="input-field col s12">
<select id="goodRoles" onchange="updateGoodRoles()" multiple> <select id="goodRoles" onchange="updateCard()" multiple>
<option value="" disabled> Choose your option </option> <option value="" disabled> Choose your option </option>
<?php <?php
$files = glob("roles/en/*.php"); $files = glob("roles/en/*.php");