Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 370f4054
authored
2025-01-16 11:02:15 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Cambios automatico dibergencia
1 parent
ee64f7db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
4 deletions
protected_static/cargarapida.js
templates/form.html
protected_static/cargarapida.js
View file @
370f405
...
@@ -24,8 +24,38 @@ window.onload = function() {
...
@@ -24,8 +24,38 @@ window.onload = function() {
cargarPesoMitadFrenos
();
cargarPesoMitadFrenos
();
//Aca hacemos carga de suspencion
//Aca hacemos carga de suspencion
precargaPesoSusp
();
precargaPesoSusp
();
//Aca hacemos los chequeos de alineador al paso
agregarListenerAlineador
();
revisarConvergenciaAlineador
();
revicionAliniadorRetardada
();
};
};
function
revicionAliniadorRetardada
(){
setTimeout
(
function
()
{
revisarConvergenciaAlineador
();
},
1800
);
}
function
agregarListenerAlineador
()
{
// Obtener los elementos por sus IDs
const
inputField
=
document
.
getElementById
(
"alineadorEjeDelantero"
);
inputField
.
addEventListener
(
"input"
,
revisarConvergenciaAlineador
)
}
function
revisarConvergenciaAlineador
(){
// Obtener los elementos por sus IDs
const
inputField
=
document
.
getElementById
(
"alineadorEjeDelantero"
);
const
selectField
=
document
.
getElementById
(
"alineadorEjeDelanteroTipo"
);
try
{
const
value
=
parseFloat
(
inputField
.
value
);
if
(
!
isNaN
(
value
))
{
selectField
.
value
=
value
>=
0
?
"Convergente"
:
"Divergente"
;
}
}
catch
(
error
)
{
console
.
log
(
"error al ancalizar convergencia "
+
error
)
}
}
function
precargaPesoSusp
()
{
function
precargaPesoSusp
()
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
verificarYPonerPesoEjeSus
(
"1"
);
verificarYPonerPesoEjeSus
(
"1"
);
...
...
templates/form.html
View file @
370f405
...
@@ -59,14 +59,14 @@
...
@@ -59,14 +59,14 @@
<h1>
Alineador
</h1>
<h1>
Alineador
</h1>
<br>
<br>
Eje Delantero
<input
sub=
"alineador"
type=
"text"
name=
"eje_delantero"
>
Eje Delantero
<input
sub=
"alineador"
type=
"text"
name=
"eje_delantero"
id=
"alineadorEjeDelantero"
>
<br>
<br>
Tipo
<select
type=
"text"
sub=
"alineador"
name=
"eje_delantero_tipo"
>
Tipo
<select
type=
"text"
sub=
"alineador"
name=
"eje_delantero_tipo"
id=
"alineadorEjeDelanteroTipo"
>
<option
value=
"Convergente"
selected
>
Convergente
</option>
<option
value=
"Convergente"
selected
>
Convergente
</option>
<option
value=
"Divergente"
>
Divergente
</option>
<option
value=
"Divergente"
>
Divergente
</option>
</select>
</select>
<br>
<br>
Eje Tracero
<input
sub=
"alineador"
type=
"text"
name=
"eje_trazero"
>
Eje Tracero
<input
sub=
"alineador"
type=
"text"
name=
"eje_trazero"
id=
"alineadorEjeTracero"
>
<br>
<br>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment