Added some math scripts

This commit is contained in:
Patryk Hegenberg 2022-12-14 08:13:04 +01:00
parent 8c7ac2df36
commit 13490cdad2
9 changed files with 360 additions and 1 deletions

20
views/mathe.view.php Normal file
View file

@ -0,0 +1,20 @@
<?php require ('partials/head.php') ?>
<?php require ('partials/nav.php') ?>
<?php require ('partials/banner.php') ?>
<main>
<div class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8 container">
<div class="container">
<h3>Schreibe die richtige Zahl oder das richtige Rechenzeichen in die Lücke</h3>
<div id="question"></div>
<button id="submit-btn">Bestätigen</button>
<p id="error-msg">Da gab es einen Fehler</p>
</div>
<div class="controls-container">
<p id="result"></p>
<button id="start-btn">Spiel starten</button>
</div>
<script src="/script.js"></script>
</div>
</main>
<?php require ('partials/footer.php') ?>

View file

@ -16,6 +16,8 @@
<a href="/mission" class="<?= urlIs('/mission') ? 'bg-gray-900 text-white' : 'text-gray-300' ?> hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Our Mission</a>
<a href="/mathe" class="<?= urlIs('/mathe') ? 'bg-gray-900 text-white' : 'text-gray-300' ?> hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Mathe</a>
</div>
</div>
</div>