basic app
This commit is contained in:
34
templates/index.html
Normal file
34
templates/index.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>Lottery Number Generator</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Lottery Number Generator</h1>
|
||||
<form method="POST">
|
||||
<label for="game_type">Select Game:</label>
|
||||
<select name="game_type" id="game_type" required>
|
||||
<option value="euromillions">EuroMillions</option>
|
||||
<option value="euromillions_plus">EuroMillions Plus</option>
|
||||
<option value="lotto">Lotto</option>
|
||||
<option value="lotto_plus">Lotto Plus</option>
|
||||
<option value="eurodreams">EuroDreams</option>
|
||||
</select>
|
||||
<br><br>
|
||||
<button type="submit">Generate Numbers</button>
|
||||
</form>
|
||||
|
||||
{% if result %}
|
||||
<h2>Generated Numbers:</h2>
|
||||
<p>Numbers: {{ result.numbers }}</p>
|
||||
{% if result.lucky_stars %}
|
||||
<p>Lucky Stars: {{ result.lucky_stars }}</p>
|
||||
{% endif %}
|
||||
{% if result.plus %}
|
||||
<p>Plus Option: Yes</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user