Last active
January 5, 2020 19:17
-
-
Save rogeriochaves/375a5db9e43b27f4ee591025bf7afcd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Bayer Akinator</title> | |
</head> | |
<body id="home"> | |
{% if result %} | |
<h1>You are thinking of {{ result }}!</h1> | |
{% else %} | |
<h1>{{ question_text }}</h1> | |
<form> | |
<input type="hidden" name="question" value="{{ question }}" /> | |
<label><input type="radio" name="answer" value="1" required /> Yes</label><br /> | |
<label><input type="radio" name="answer" value="0" required /> No</label><br /> | |
<label><input type="radio" name="answer" value="0.5" required /> Don't know</label><br /> | |
<label><input type="radio" name="answer" value="0.75" required /> Probably</label><br /> | |
<label><input type="radio" name="answer" value="0.25" required /> Probably Not</label><br /> | |
<br /> | |
<input type="submit" value="Next" /> | |
</form> | |
{% endif %} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment