Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristopher Castro committed Apr 26, 2024
1 parent b0e6415 commit 452a023
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4906,36 +4906,40 @@ $( document ).ready(function() {

$(document).ready(function(){
$("#uteroDim1").on("change", function(){

let uteroDim1 = Number.isNaN(the("uteroDim1").value) ? 0 : Number(the("uteroDim1").value)
let uteroDim2 = Number.isNaN(the("uteroDim2").value) ? 0 : Number(the("uteroDim2").value)
let uteroDim3 = Number.isNaN(the("uteroDim3").value) ? 0 : Number(the("uteroDim3").value)

let uternoVolumen = ((uteroDim1 * uteroDim2 * uteroDim3 * 0.525) / 1000).toFixed(2) + " Cm3"
let uternoVolumen = ((uteroDim1 * uteroDim2 * uteroDim3 * 0.525) / 1000).toFixed(0) + " Cm3"

the("uternoVolumen").value = uternoVolumen
})

$("#uteroDim2").on("change", function(){

let uteroDim1 = Number.isNaN(the("uteroDim1").value) ? 0 : Number(the("uteroDim1").value)
let uteroDim2 = Number.isNaN(the("uteroDim2").value) ? 0 : Number(the("uteroDim2").value)
let uteroDim3 = Number.isNaN(the("uteroDim3").value) ? 0 : Number(the("uteroDim3").value)

let uternoVolumen = ((uteroDim1 * uteroDim2 * uteroDim3 * 0.525) / 1000).toFixed(2) + " Cm3"
let uternoVolumen = ((uteroDim1 * uteroDim2 * uteroDim3 * 0.525) / 1000).toFixed(0) + " Cm3"

the("uternoVolumen").value = uternoVolumen
})

$("#uteroDim3").on("change", function(){

let uteroDim1 = Number.isNaN(the("uteroDim1").value) ? 0 : Number(the("uteroDim1").value)
let uteroDim2 = Number.isNaN(the("uteroDim2").value) ? 0 : Number(the("uteroDim2").value)
let uteroDim3 = Number.isNaN(the("uteroDim3").value) ? 0 : Number(the("uteroDim3").value)

let uternoVolumen = ((uteroDim1 * uteroDim2 * uteroDim3 * 0.525) / 1000).toFixed(2) + " Cm3"
let uternoVolumen = ((uteroDim1 * uteroDim2 * uteroDim3 * 0.525) / 1000).toFixed(0) + " Cm3"

the("uternoVolumen").value = uternoVolumen
})

$("input").on("keypress",function( e ) {

var key_enter = ["uteroDim1", "uteroDim2", "uteroDim3", "ovarDereMed1", "ovarDereMed2", "ovarDereMed3", "ovarIzquier1", "ovarIzquier2", "ovarIzquier3"];

if (key_enter.includes(this.id)== true){
Expand All @@ -4945,6 +4949,7 @@ $(document).ready(function(){
this.value = contenido.substr(0, 3)
}
}

});

})
Expand Down

0 comments on commit 452a023

Please sign in to comment.