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 b25076c2
authored
2019-11-27 11:01:49 -0300
by
Georgina Mondino
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Estilos y Botones de Form Resultante
1 parent
a555091a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
9 deletions
Geo/Scripts/ArmadoDeForm.js
Geo/Scripts/construct.js
Geo/Style/ArmadoDeForm.css
Geo/generate.html
Geo/Scripts/ArmadoDeForm.js
View file @
b25076c
function
ArmarForm
(
data
)
{
function
ArmarForm
(
data
)
{
document
.
getElementById
(
"ArmarFormContainer"
).
style
.
display
=
"none"
;
document
.
getElementById
(
"ArmarFormContainer"
).
style
.
display
=
"none"
;
document
.
getElementById
(
"BotonesContainer"
).
style
.
display
=
"block"
;
document
.
getElementById
(
"FormularioResultante"
).
style
.
display
=
"block"
;
document
.
getElementById
(
"TabsContainer"
).
style
.
display
=
"block"
;
let
m
=
data
.
length
;
let
m
=
data
.
length
;
for
(
let
n
=
0
;
n
<
m
;
n
++
)
{
for
(
let
n
=
0
;
n
<
m
;
n
++
)
{
...
...
Geo/Scripts/construct.js
View file @
b25076c
...
@@ -70,7 +70,9 @@ function processField(field){
...
@@ -70,7 +70,9 @@ function processField(field){
function
processTab
(
tab
){
function
processTab
(
tab
){
let
dict
=
[];
let
dict
=
[];
let
container
=
getDescendantByAttribute
(
tab
,
"name"
,
"Field"
).
parentElement
;
let
container
=
getDescendantByAttribute
(
tab
,
"name"
,
"Field"
);
if
(
container
==
null
)
return
dict
;
container
=
container
.
parentElement
;
for
(
let
i
=
0
;
i
<
container
.
children
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
container
.
children
.
length
;
i
++
){
if
(
container
.
children
[
i
].
getAttribute
(
"name"
)
==
"Field"
)
{
if
(
container
.
children
[
i
].
getAttribute
(
"name"
)
==
"Field"
)
{
dict
.
push
(
processField
(
container
.
children
[
i
]));
dict
.
push
(
processField
(
container
.
children
[
i
]));
...
...
Geo/Style/ArmadoDeForm.css
View file @
b25076c
html
{
html
{
--Color
:
rgb
(
1
22
,
230
,
163
);
--Color
:
rgb
(
1
,
194
,
120
);
}
}
#BotonesContainer
{
#FormularioResultante
{
width
:
98%
;
margin
:
auto
;
height
:
100%
;
}
.BotonesContainer
{
width
:
100%
;
width
:
100%
;
height
:
5%
;
height
:
5%
;
text-align
:
center
;
}
.BotonFormResultante
{
font-size
:
30px
;
border
:
none
;
color
:
white
;
height
:
90%
;
width
:
48%
;
margin
:
0.5%
;
margin-top
:
2%
;
border-radius
:
5px
;
text-align
:
center
;
background-color
:
rgb
(
151
,
151
,
151
);
}
}
#TabsContainer
{
#TabsContainer
{
width
:
100%
;
width
:
100%
;
height
:
95
%
;
height
:
82
%
;
}
}
.Botones
{
.Botones
{
...
@@ -22,6 +42,7 @@ html {
...
@@ -22,6 +42,7 @@ html {
}
}
.BotonesActive
{
.BotonesActive
{
background-color
:
var
(
--Color
);
background-color
:
var
(
--Color
);
border-bottom
:
none
;
border-bottom
:
none
;
height
:
6%
;
height
:
6%
;
...
@@ -37,3 +58,14 @@ html {
...
@@ -37,3 +58,14 @@ html {
height
:
100%
;
height
:
100%
;
border
:
3px
solid
var
(
--Color
);
border
:
3px
solid
var
(
--Color
);
}
}
@media
(
max-width
:
600px
)
{
.BotonResultCont
{
margin
:
1%
auto
;
height
:
10%
;
vertical-align
:
baseline
;
align-content
:
center
;
}
}
/*
@media (min-width: 1300px) {*/
\ No newline at end of file
\ No newline at end of file
Geo/generate.html
View file @
b25076c
...
@@ -26,11 +26,19 @@
...
@@ -26,11 +26,19 @@
</button>
</button>
</div>
</div>
<h3
id=
"ContinuarText"
>
Cuando se encuentre conforme con el formulario presione Continuar
</h3>
<h3
id=
"ContinuarText"
>
Cuando se encuentre conforme con el formulario presione Continuar
</h3>
<button
id=
"ContinuarButton"
onclick=
"ArmarForm( generate(document.getElementById('tabs')) )"
>
Continuar
</button>
<button
id=
"ContinuarButton"
onclick=
"ArmarForm( generate(document.getElementById('tabs')) )"
>
Continuar
</button>
</section>
<section
id=
"FormularioResultante"
style=
"display: none;"
>
<h1
style=
"margin: 2% 0% 2% 0;"
>
Su Formulario Ya Esta Listo!
</h1>
<section
id=
"BotonesContainer"
class=
"BotonesContainer"
>
</section>
</section>
<section
id=
"BotonesContainer"
style=
"display: none;
"
>
<section
id=
"TabsContainer
"
>
</section>
</section>
<section
id=
"TabsContainer"
style=
"display: none;"
>
<div
class=
"BotonesContainer BotonResultCont"
>
<button
class=
"BotonFormResultante"
>
Editar
</button>
<button
class=
"BotonFormResultante"
style=
"background-color: var(--Color);"
>
Continuar
</button>
</div>
</section>
</section>
</body>
</body>
...
...
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