four.html.eex 724 B

123456789101112131415161718192021222324252627
  1. <style>
  2. </style>
  3. <div style="float: left">
  4. <h1><span style="font-family: cursive">it's</span> <strong><%= @fourletters %></strong></h1>
  5. <br><br>
  6. <form id="new-message" action="" method="post">
  7. <label for="message"></label><br>
  8. <input type=”text” maxlength=100 id="message" name="message"><br><br>
  9. <input type="submit" value=" &#x21E8; ">
  10. </form>
  11. <br><br>
  12. <form id="clear" action="/api/clear/<%= @fourletters %>" method="post">
  13. <input type="submit" value="c l e a r">
  14. </form>
  15. <br><br>
  16. <a href="/">go home</a>
  17. </div>
  18. <div id="messages" style="float: left">
  19. <p><%= length(@messages) %> of 100</p>
  20. <ul>
  21. <%= for message <- @messages do %>
  22. <li>
  23. <%= message %>
  24. </li>
  25. <% end %>
  26. </ul>
  27. </div>