Add listings
This commit is contained in:
+21
-5
@@ -1,5 +1,21 @@
|
||||
<form id="palindrome_tester" action="/check" method="post">
|
||||
<textarea name="phrase" rows="10" cols="60"></textarea>
|
||||
<br>
|
||||
<button class="form-submit" type="submit">Is it a palindrome?</button>
|
||||
</form>
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Palindrome Result</h1>
|
||||
|
||||
{% if Phrase(phrase).ispalindrome() %}
|
||||
<div class="result result-success">
|
||||
<p>"{{ phrase }}" is a palindrome!</p>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="result result-fail">
|
||||
<p>"{{ phrase }}" isn't a palindrome.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form id="palindrome_tester" action="/check" method="post">
|
||||
<textarea name="phrase" rows="10" cols="60"></textarea>
|
||||
<br>
|
||||
<button class="form-submit" type="submit">Is it a palindrome?</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user