Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
5.2 KiB

5 years ago
  1. function exercise14RecogerParams(){
  2. // EJERCICIO 14 RECOGER PARAMETROS COMPLETADO
  3. var url = new URL(window.location.href);
  4. var ejercicio14informe = url.searchParams.get('ejercicio14informe');
  5. var ejercicio14completado = '{{tarea14completada}}';
  6. var ejercicio14section = 'wizard-t-2';
  7. var section = $('#' + ejercicio14section);
  8. section.parent().addClass('tab-3');
  9. //si el ejercicio 14 está completado
  10. if (ejercicio14completado==='si'){
  11. $("#wizard-t-2").parent().show();
  12. //mostramos la pestaña 3
  13. section.parent().addClass('tab-activada');
  14. //si además venimos del informe
  15. if (ejercicio14informe != null){
  16. //forzamos el click a la pestaña 3
  17. console.log('vengo del informe!')
  18. $("#wizard-t-2").get(0).click();
  19. }
  20. }else{
  21. {% if getvars.modal is not defined %}
  22. $("#wizard-t-2").parent().hide();
  23. {% endif %}
  24. }
  25. }
  26. {/* FIN EJERCICIO 14 ACTIVAR SECCION 3 */}
  27. function exercise14Asignaciones (){
  28. // ASIGNACION EJERCICIO 14 PASO DE DATOS ENTRE LAS DISTINTAS SECCIONES
  29. {% if tarea[0].id==27 %}
  30. $('#ex14card1section3-3preg10-10').val($('#ex14card1section2-3preg10Score').val());
  31. $('#ex14card1section3-3preg20-10').val($('#ex14card1section2-3preg20Score').val());
  32. $('#ex14card1section3-3preg30-10').val($('#ex14card1section2-3preg30Score').val());
  33. $('#ex14card1section3-3preg40-10').val($('#ex14card1section2-3preg40Score').val());
  34. $('#ex14card1section3-3preg50-10').val($('#ex14card1section2-3preg50Score').val());
  35. {% elseif tarea[0].id==28 %}
  36. $('#ex14card2section3-3preg10-10').val($('#ex14card2section2-3preg10Score').val());
  37. $('#ex14card2section3-3preg20-10').val($('#ex14card2section2-3preg20Score').val());
  38. $('#ex14card2section3-3preg30-10').val($('#ex14card2section2-3preg30Score').val());
  39. $('#ex14card2section3-3preg40-10').val($('#ex14card2section2-3preg40Score').val());
  40. $('#ex14card2section3-3preg50-10').val($('#ex14card2section2-3preg50Score').val());
  41. {% elseif tarea[0].id==29 %}
  42. $('#ex14card3section3-3preg10-10').val($('#ex14card3section2-3preg10Score').val());
  43. $('#ex14card3section3-3preg20-10').val($('#ex14card3section2-3preg20Score').val());
  44. $('#ex14card3section3-3preg30-10').val($('#ex14card3section2-3preg30Score').val());
  45. $('#ex14card3section3-3preg40-10').val($('#ex14card3section2-3preg40Score').val());
  46. $('#ex14card3section3-3preg50-10').val($('#ex14card3section2-3preg50Score').val());
  47. {% elseif tarea[0].id==30 %}
  48. $('#ex14card4section3-3preg10-10').val($('#ex14card4section2-3preg10Score').val());
  49. $('#ex14card4section3-3preg20-10').val($('#ex14card4section2-3preg20Score').val());
  50. $('#ex14card4section3-3preg30-10').val($('#ex14card4section2-3preg30Score').val());
  51. $('#ex14card4section3-3preg40-10').val($('#ex14card4section2-3preg40Score').val());
  52. $('#ex14card4section3-3preg50-10').val($('#ex14card4section2-3preg50Score').val());
  53. {% elseif tarea[0].id==31 %}
  54. $('#ex14card5section3-3preg10-10').val($('#ex14card5section2-3preg10Score').val());
  55. $('#ex14card5section3-3preg20-10').val($('#ex14card5section2-3preg20Score').val());
  56. $('#ex14card5section3-3preg30-10').val($('#ex14card5section2-3preg30Score').val());
  57. $('#ex14card5section3-3preg40-10').val($('#ex14card5section2-3preg40Score').val());
  58. $('#ex14card5section3-3preg50-10').val($('#ex14card5section2-3preg50Score').val());
  59. {% elseif tarea[0].id==32 %}
  60. $('#ex14card6section3-3preg10-10').val($('#ex14card6section2-3preg10Score').val());
  61. $('#ex14card6section3-3preg20-10').val($('#ex14card6section2-3preg20Score').val());
  62. $('#ex14card6section3-3preg30-10').val($('#ex14card6section2-3preg30Score').val());
  63. $('#ex14card6section3-3preg40-10').val($('#ex14card6section2-3preg40Score').val());
  64. $('#ex14card6section3-3preg50-10').val($('#ex14card6section2-3preg50Score').val());
  65. {% elseif tarea[0].id==33 %}
  66. $('#ex14card7section3-3preg10-10').val($('#ex14card7section2-3preg10Score').val());
  67. $('#ex14card7section3-3preg20-10').val($('#ex14card7section2-3preg20Score').val());
  68. $('#ex14card7section3-3preg30-10').val($('#ex14card7section2-3preg30Score').val());
  69. $('#ex14card7section3-3preg40-10').val($('#ex14card7section2-3preg40Score').val());
  70. $('#ex14card7section3-3preg50-10').val($('#ex14card7section2-3preg50Score').val());
  71. {% elseif tarea[0].id==34 %}
  72. $('#ex14card8section3-3preg10-10').val($('#ex14card8section2-3preg10Score').val());
  73. $('#ex14card8section3-3preg20-10').val($('#ex14card8section2-3preg20Score').val());
  74. $('#ex14card8section3-3preg30-10').val($('#ex14card8section2-3preg30Score').val());
  75. $('#ex14card8section3-3preg40-10').val($('#ex14card8section2-3preg40Score').val());
  76. $('#ex14card8section3-3preg50-10').val($('#ex14card8section2-3preg50Score').val());
  77. {% endif %}
  78. }