Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <% include header %>
  2.  
  3. <h2>Calculadora</h2>
  4. <form method="GET">
  5. Valor inicial: <input type="text" name="valorInicial"><br> Taxa a.m.: <input type="text" name="taxa"><br> Quantos meses:
  6. <input type="text" name="tempo"><br>
  7. <button type="submit">Calcular</button>
  8. </form>
  9.  
  10. <% if(resultado.progressao){ %>
  11. <div class="resultado">
  12. <h2>Resultado</h2>
  13. <table border="1">
  14. <thead>
  15. <tr>
  16. <th>Mês</th>
  17. <th>Valor</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <% resultado.progressao.forEach((value, index) => { %>
  22. <tr>
  23. <td><%= index + 1 %></td>
  24. <td><%= value.toFixed(2) %></td>
  25. </tr>
  26. <% }) %>
  27. </tbody>
  28. </table>
  29. </div>
  30. <% } include footer %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement