fix session / template
This commit is contained in:
@@ -4,76 +4,34 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>Lottery Number Generator</title>
|
<title>Lottery Number Generator</title>
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body { font-family: Arial, sans-serif; background-color: #f4f4f9; color: #333; text-align: center; }
|
||||||
font-family: Arial, sans-serif;
|
.container { margin: 50px auto; max-width: 600px; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
|
||||||
background-color: #f4f4f9;
|
h1 { color: #0073e6; }
|
||||||
color: #333;
|
form { display: flex; flex-direction: column; align-items: center; }
|
||||||
text-align: center;
|
label { font-weight: bold; margin-top: 10px; }
|
||||||
margin: 0;
|
select, input, button { margin-top: 10px; padding: 10px; width: 80%; border-radius: 5px; border: 1px solid #ccc; }
|
||||||
padding: 0;
|
button { background-color: #0073e6; color: white; cursor: pointer; }
|
||||||
}
|
button:hover { background-color: #005bb5; }
|
||||||
.container {
|
.results { margin-top: 20px; padding: 15px; background-color: #f9f9f9; border-radius: 5px; }
|
||||||
margin: 50px auto;
|
.line { margin: 5px 0; font-size: 16px; }
|
||||||
max-width: 600px;
|
|
||||||
padding: 20px;
|
|
||||||
background: #fff;
|
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
color: #0073e6;
|
|
||||||
}
|
|
||||||
form {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
label {
|
|
||||||
font-weight: bold;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
select, input, button {
|
|
||||||
margin-top: 10px;
|
|
||||||
padding: 10px;
|
|
||||||
width: 80%;
|
|
||||||
border-radius: 5px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
}
|
|
||||||
button {
|
|
||||||
background-color: #0073e6;
|
|
||||||
color: white;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
button:hover {
|
|
||||||
background-color: #005bb5;
|
|
||||||
}
|
|
||||||
.results {
|
|
||||||
margin-top: 20px;
|
|
||||||
padding: 15px;
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
.line {
|
|
||||||
margin: 5px 0;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Lottery Number Generator</h1>
|
<h1>Lottery Number Generator</h1>
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
|
<!-- Retain selected game_type -->
|
||||||
<label for="game_type">Select Game:</label>
|
<label for="game_type">Select Game:</label>
|
||||||
<select name="game_type" id="game_type" required>
|
<select name="game_type" id="game_type" required>
|
||||||
<option value="euromillions">EuroMillions</option>
|
<option value="euromillions" {% if game_type == 'euromillions' %}selected{% endif %}>EuroMillions</option>
|
||||||
<option value="lotto">Lotto</option>
|
<option value="lotto" {% if game_type == 'lotto' %}selected{% endif %}>Lotto</option>
|
||||||
<option value="eurodreams">EuroDreams</option>
|
<option value="eurodreams" {% if game_type == 'eurodreams' %}selected{% endif %}>EuroDreams</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<!-- Retain selected lines -->
|
||||||
<label for="lines">Number of Lines:</label>
|
<label for="lines">Number of Lines:</label>
|
||||||
<input type="number" name="lines" id="lines" min="1" max="10" value="1" required>
|
<input type="number" name="lines" id="lines" min="1" max="10" value="{{ lines }}" required>
|
||||||
|
|
||||||
<button type="submit">Generate Numbers</button>
|
<button type="submit">Generate Numbers</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user