Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/EjercitarWeb/WebContent
diff options
context:
space:
mode:
Diffstat (limited to 'EjercitarWeb/WebContent')
-rw-r--r--EjercitarWeb/WebContent/Concepto.jsp16
-rw-r--r--EjercitarWeb/WebContent/iniciar_curso.jsp10
-rw-r--r--EjercitarWeb/WebContent/js/validaciones.js14
3 files changed, 20 insertions, 20 deletions
diff --git a/EjercitarWeb/WebContent/Concepto.jsp b/EjercitarWeb/WebContent/Concepto.jsp
index b4d4a8e..47528ad 100644
--- a/EjercitarWeb/WebContent/Concepto.jsp
+++ b/EjercitarWeb/WebContent/Concepto.jsp
@@ -52,9 +52,9 @@
</div>
</div>
<div class="form-group">
- <label for="a_priori" class="col-sm-2 control-label">Conocimiento inicial:</label>
+ <label for="a_priori" class="col-sm-2 control-label">Conocimiento inicial (%):</label>
<div class="col-sm-10 " >
- <input type="text" name="a_priori" id="a_priori" value="0.5" disabled/>
+ <input type="number" name="a_priori" id="a_priori" value="50" max="100" min="0" step="1"/>
</div>
</div>
<!-- >fieldset class="span4">
@@ -88,12 +88,12 @@
</div>
<script type="text/javascript">
- $("#a_priori").spinner({
- step: 0.01,
- numberFormat: "n",
- max: 1,
- min: 0
- });
+ //$("#a_priori").spinner({
+ // step: 1,
+ // numberFormat: "n",
+ // max: 100,
+ // min: 0
+ //}
$("#adivinanza").spinner({
step: 0.1,
numberFormat: "n",
diff --git a/EjercitarWeb/WebContent/iniciar_curso.jsp b/EjercitarWeb/WebContent/iniciar_curso.jsp
index 38ce917..da1248d 100644
--- a/EjercitarWeb/WebContent/iniciar_curso.jsp
+++ b/EjercitarWeb/WebContent/iniciar_curso.jsp
@@ -53,11 +53,11 @@
total = parseFloat(total) + parseFloat(num);
}
$("#td-total-temas").text(total);
- if (total != 1) {
+ if (total != 100) {
$("#h-temas").removeClass("text-success");
$("#h-temas").addClass('text-danger');
$("#tr-total-temas").attr('class', 'danger');
- } else if (total == 1) {
+ } else if (total == 100) {
$("#h-temas").removeClass("text-danger");
$("#h-temas").addClass('text-success');
$("#tr-total-temas").attr('class', 'success');
@@ -76,11 +76,11 @@
total = parseFloat(total) + parseFloat(num);
}
$("#td-total-concepto-" + id_tema).text(total);
- if (total != 1) {
+ if (total != 100) {
$("#h-concepto-" + id_tema).removeClass("text-success");
$("#h-concepto-" + id_tema).addClass('text-danger');
$("#tr-total-concepto-" + id_tema).attr('class', 'danger');
- } else if (total == 1) {
+ } else if (total == 100) {
$("#h-concepto-" + id_tema).removeClass("text-danger");
$("#h-concepto-" + id_tema).addClass('text-success');
$("#tr-total-concepto-" + id_tema).attr('class', 'success');
@@ -93,7 +93,7 @@
var isValid = true;
$.each(totalsValue, function(idTotal, value) {
if (isValid) {
- isValid = value == 1;
+ isValid = value == 100;
}
return isValid;
});
diff --git a/EjercitarWeb/WebContent/js/validaciones.js b/EjercitarWeb/WebContent/js/validaciones.js
index df56fde..b2a6a8e 100644
--- a/EjercitarWeb/WebContent/js/validaciones.js
+++ b/EjercitarWeb/WebContent/js/validaciones.js
@@ -6,9 +6,9 @@
$.validator.addMethod("dateFormat",
function(value, element) {
- return value.match(/^dd?-dd?-dd$/);
+ return value.match(/^\d\d?\/\d\d?\/\d\d\d\d$/);
},
- "Ingrese la fecha con formato dd-mm-yyyy.");
+ "Ingrese la fecha con formato dd/mm/yyyy.");
@@ -51,11 +51,11 @@ $(document).ready(function(){
tema: {
required: true
},
- a_priori: {
- required: true,
- number:true,
- pattern: /0+(\.[0-9][0-9]?)?/
- },
+ //a_priori: {
+ // required: true,
+ // number:true,
+ // pattern: /0+(\.[0-9][0-9]?)?/
+ //},
enunciado: {
minlength: 4,
required: true