Skip to content

Instantly share code, notes, and snippets.

@rogeriochaves
Last active January 5, 2020 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogeriochaves/375a5db9e43b27f4ee591025bf7afcd2 to your computer and use it in GitHub Desktop.
Save rogeriochaves/375a5db9e43b27f4ee591025bf7afcd2 to your computer and use it in GitHub Desktop.
<!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