Commit 3a4de782 by Patryk Czarnik

Styl kalkulatora

parent 29bc1783
...@@ -21,14 +21,21 @@ ...@@ -21,14 +21,21 @@
<button>Oblicz</button> <button>Oblicz</button>
</form> </form>
<div class="wynik"> <div th:if="${wynik != null}" class="wynik">
[[${wynik}]] <span th:text="${param.liczba1}">2</span>
<span th:text="${param.operacja}">+</span>
<span th:text="${param.liczba2}">3</span>
=
<strong th:text="${wynik}">5</strong>
</div> </div>
<section th:if="${historia != null and !historia.isEmpty()}">
<h2>Historia działań</h2> <h2>Historia działań</h2>
<ul> <ul>
<li th:each="element: ${historia}" th:text="${element}">2 + 2 = 4</li> <li th:each="element: ${historia}" th:text="${element}">2 + 2 = 4</li>
</ul> </ul>
</section>
<p><a th:href="@{/}">→ Home</a></p> <p><a th:href="@{/}">→ Home</a></p>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment