php
Anthony RICHARD 1 year ago
parent eea9ddcd78
commit 4877d9b4ac

@ -14,39 +14,49 @@ body {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 800px;
height: 400px;
text-align: center;
}
form {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
box-sizing: border-box;
}
h1 {
text-align: center;
font-size: 80px;
color: #333;
padding-bottom: 50px;
margin-bottom: 10px;
}
.question {
display: none;
h2 {
font-size: 30px;
color: #333;
margin-bottom: 10px;
font-style: italic;
}
.answers {
margin-top: 10px;
.question {
font-size: 30px;
display: none;
margin-bottom: 10px;
}
button {
display: block;
width: 100%;
input {
display: inline-block;
padding: 15px;
margin-top: 10px;
background-color: #3498db;
color: #fff;
background-color: #d6a7ff;
color: #000;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s;
font-size: 16px;
width: 48%;
}
button:hover {
background-color: #2980b9;
input:hover {
background-color: #8833d2;
}

@ -31,9 +31,9 @@
<form id="quizForm{{ i }}" method="post">
{% for answer in answers[i] %}
{% if answer == goodAnswers[i] %}
<input type="button" value={{ answer }} onclick="validateAndNext(true)">
<input type="button" value="{{ answer }}" onclick="validateAndNext(true)">
{% else %}
<input type="button" value={{ answer }} onclick="validateAndNext(false)">
<input type="button" value="{{ answer }}" onclick="validateAndNext(false)">
{% endif %}
{% endfor %}
</form>

Loading…
Cancel
Save