Revert "testing a more dynamic form"

This reverts commit 85ee15a4cd.
This commit is contained in:
Jesse James Isler 2022-03-31 13:32:09 +02:00
parent 85ee15a4cd
commit ebed13c945

View File

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