Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
mini-web
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 c342ffdb
authored
2019-11-26 15:06:14 +0000
by
Luciano Barletta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
integrated funcitonalities
1 parent
5673f274
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
18 deletions
Geo/Scripts/ArmadoDeForm.js
Geo/Scripts/construct.js
Geo/generate.html
Luciano/static/Scripts/ArmadoDeForm.js
Luciano/static/Scripts/construct.js
Luciano/templates/generate.html
Geo/Scripts/ArmadoDeForm.js
View file @
c342ffd
function
ArmarForm
()
{
function
ArmarForm
(
data
)
{
document
.
getElementById
(
"ArmarFormContainer"
).
style
.
display
=
"none"
;
document
.
getElementById
(
"BotonesContainer"
).
style
.
display
=
"block"
;
document
.
getElementById
(
"TabsContainer"
).
style
.
display
=
"block"
;
let
m
=
document
.
getElementById
(
"CantBotones"
).
value
;
let
n
;
for
(
n
=
0
;
n
<
m
;
n
++
)
{
let
m
=
data
.
length
;
for
(
let
n
=
0
;
n
<
m
;
n
++
)
{
let
padreBotones
=
document
.
getElementById
(
"BotonesContainer"
);
let
padreTabs
=
document
.
getElementById
(
"TabsContainer"
);
...
...
@@ -28,9 +27,7 @@ function ArmarForm() {
}
function
HabilitarTab
()
{
for
(
n
=
0
;
n
<
m
;
n
++
)
{
for
(
let
n
=
0
;
n
<
m
;
n
++
)
{
document
.
getElementById
(
"Tab"
+
n
).
style
.
display
=
"none"
if
(
doc
){}
}
}
}
\ No newline at end of file
Geo/Scripts/construct.js
View file @
c342ffd
...
...
@@ -91,6 +91,7 @@ function generate(tabs){
}
}
console
.
log
(
JSON
.
stringify
(
dict
));
return
dict
;
}
function
sortChildren
(
container
,
number
){
...
...
Geo/generate.html
View file @
c342ffd
...
...
@@ -26,7 +26,7 @@
</button>
</div>
<h3
id=
"ContinuarText"
>
Cuando se encuentre conforme con el formulario presione Continuar
</h3>
<button
id=
"ContinuarButton"
onclick=
"
generate(document.getElementById('tabs')
)"
>
Continuar
</button>
<button
id=
"ContinuarButton"
onclick=
"
ArmarForm( generate(document.getElementById('tabs'))
)"
>
Continuar
</button>
</section>
<section
id=
"BotonesContainer"
style=
"display: none;"
>
</section>
...
...
Luciano/static/Scripts/ArmadoDeForm.js
View file @
c342ffd
function
ArmarForm
()
{
function
ArmarForm
(
data
)
{
document
.
getElementById
(
"ArmarFormContainer"
).
style
.
display
=
"none"
;
document
.
getElementById
(
"BotonesContainer"
).
style
.
display
=
"block"
;
document
.
getElementById
(
"TabsContainer"
).
style
.
display
=
"block"
;
let
m
=
document
.
getElementById
(
"CantBotones"
).
value
;
let
n
;
for
(
n
=
0
;
n
<
m
;
n
++
)
{
let
m
=
data
.
length
;
for
(
let
n
=
0
;
n
<
m
;
n
++
)
{
let
padreBotones
=
document
.
getElementById
(
"BotonesContainer"
);
let
padreTabs
=
document
.
getElementById
(
"TabsContainer"
);
...
...
@@ -28,9 +27,7 @@ function ArmarForm() {
}
function
HabilitarTab
()
{
for
(
n
=
0
;
n
<
m
;
n
++
)
{
for
(
let
n
=
0
;
n
<
m
;
n
++
)
{
document
.
getElementById
(
"Tab"
+
n
).
style
.
display
=
"none"
if
(
doc
){}
}
}
}
\ No newline at end of file
Luciano/static/Scripts/construct.js
View file @
c342ffd
...
...
@@ -91,6 +91,7 @@ function generate(tabs){
}
}
console
.
log
(
JSON
.
stringify
(
dict
));
return
dict
;
}
function
sortChildren
(
container
,
number
){
...
...
Luciano/templates/generate.html
View file @
c342ffd
...
...
@@ -25,7 +25,7 @@
</button>
</div>
<h3
id=
"ContinuarText"
>
Cuando se encuentre conforme con el formulario presione Continuar
</h3>
<button
id=
"ContinuarButton"
onclick=
"
generate(document.getElementById('tabs')
)"
>
Continuar
</button>
<button
id=
"ContinuarButton"
onclick=
"
ArmarForm( generate(document.getElementById('tabs'))
)"
>
Continuar
</button>
</section>
<section
id=
"BotonesContainer"
style=
"display: none;"
>
</section>
...
...
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