Guest User

Untitled

a guest
Dec 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. <tr th:each="planificacion : ${planificaciones}"
  2. th:onclick="'window.location.href = '' + @{/planificacion/{idp}(idp=${planificacion.id})}+ '''">
  3.  
  4. <td th:text="${planificacion.nombre}"></td>
  5. <td>
  6. <div th:if="${planificacion.completado}">
  7. <span class="badge badge-pill badge-success"
  8. style="font-size: 80%; padding: 6px 18px;">Completo</span>
  9. </div>
  10. <div th:if="${not planificacion.completado}">
  11. <span class="badge badge-pill badge-danger"
  12. style="font-size: 80%; padding: 6px 18px;">Incompleto</span>
  13. </div>
  14. </td>
  15. <td>
  16. <div class="progress">
  17. <div id="dynamic"
  18. class="progress-bar progress-bar-success progress-bar-striped active"
  19. role="progressbar" aria-valuenow="0" aria-valuemin="0"
  20. aria-valuemax="100" style="width: 0%">
  21. <span id="current-progress"></span>
  22. </div>
  23. </div>
  24. </td>
  25.  
  26. <script>
  27. $(function() {
  28. var current_progress = document.getElementById("progreso").value;
  29. var interval = setInterval(function() {
  30.  
  31. $("#dynamic").css("width", current_progress + "%").attr(
  32. "aria-valuenow", current_progress).text(
  33. current_progress + "%");
  34.  
  35. }, 1000);
  36. });
  37. </script>
Add Comment
Please, Sign In to add comment