Setup vite

This commit is contained in:
2024-05-03 12:49:34 +02:00
parent 28bf114b33
commit 65ae141c73
19 changed files with 3096 additions and 9 deletions
+6 -6
View File
@@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Rechner</title>
<title>Calculator</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
@@ -43,7 +43,7 @@
break;
case "division":
if ($operand2 == 0) {
$result = "Nicht definiert";
$result = "Not defined";
break;
}
$result = $operand1 / $operand2;
@@ -57,14 +57,14 @@
<label class="form-label" for="operand1">Operand 1</label>
<input class="form-control" id="operand1" type="number" name="operand1" value="0" required step="any" />
<div class="invalid-feedback">
Bitte eine Zahl eingeben
Please enter a number
</div>
</div>
<div class="mb-3">
<label class="form-label" for="operand2">Operand 2</label>
<input class="form-control" id="operand2" type="number" name="operand2" value="0" required step="any" />
<div class="invalid-feedback">
Bitte eine Zahl eingeben
Please enter a number
</div>
</div>
@@ -86,14 +86,14 @@
<input class="form-check-input" id="divisionRadio" type="radio" name="operator" value="division" <?php echo array_key_exists("operator", $_POST) && $_POST['operator'] == 'division' ? 'checked' : '' ?> required />
<label class="form-check-label" for="divisionRadio">/</label>
<div class="invalid-feedback">
Bitte einen Operanden wählen
Please choose an operator
</div>
</div>
<button class="btn btn-primary mt-3">Berechnen</button>
</form>
<div class="spacer-1"></div>
<h2 class="m-3">
Ergebnis: <?= $result ?>
Result: <?= $result ?>
</h2>
</body>