add initial auftakt files
This commit is contained in:
commit
29aa8a9615
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.idea
|
5
auftakt/index.php
Normal file
5
auftakt/index.php
Normal file
@ -0,0 +1,5 @@
|
||||
<form action="http://localhost:8080/auftakt/submit.php" method="POST">
|
||||
<h1>yo. what's 9+10</h1>
|
||||
<input type="number" value="0" placeholder="nummer" name="number">
|
||||
<button type="submit">Abgeben</button>
|
||||
</form>
|
9
auftakt/submit.php
Normal file
9
auftakt/submit.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
$number = $_POST['number'];
|
||||
|
||||
if ($number === '21') {
|
||||
echo "richtig";
|
||||
} else {
|
||||
echo "falsch";
|
||||
}
|
7
docker-compose.yaml
Normal file
7
docker-compose.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
services:
|
||||
webserver:
|
||||
image: webdevops/php-nginx:8.3-alpine
|
||||
ports:
|
||||
- '8080:80'
|
||||
volumes:
|
||||
- ./:/app
|
15
index.php
Normal file
15
index.php
Normal file
@ -0,0 +1,15 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Codeweek 2024</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/auftakt">Auftakt</a>
|
||||
<br>
|
||||
<a href="/demo">Demo</a>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user