Skip to content

Instantly share code, notes, and snippets.

@rogeriochaves

rogeriochaves/index.html

Last active Jan 5, 2020
Embed
What would you like to do?
<!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