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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
11 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
)
{
document
.
getElementById
(
"ArmarFormContainer"
).
style
.
display
=
"none"
;
document
.
getElementById
(
"BotonesContainer"
).
style
.
display
=
"block"
;
document
.
getElementById
(
"TabsContainer"
).
style
.
display
=
"block"
;
document
.
getElementById
(
"FormularioResultante"
).
style
.
display
=
"block"
;
let
m
=
data
.
length
;
for
(
let
n
=
0
;
n
<
m
;
n
++
)
{
...
...
Geo/Scripts/construct.js
View file @
b25076c
...
...
@@ -70,7 +70,9 @@ function processField(field){
function
processTab
(
tab
){
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
++
){
if
(
container
.
children
[
i
].
getAttribute
(
"name"
)
==
"Field"
)
{
dict
.
push
(
processField
(
container
.
children
[
i
]));
...
...
Geo/Style/ArmadoDeForm.css
View file @
b25076c
html
{
--Color
:
rgb
(
1
22
,
230
,
163
);
--Color
:
rgb
(
1
,
194
,
120
);
}
#BotonesContainer
{
#FormularioResultante
{
width
:
98%
;
margin
:
auto
;
height
:
100%
;
}
.BotonesContainer
{
width
:
100%
;
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
{
width
:
100%
;
height
:
95
%
;
height
:
82
%
;
}
.Botones
{
...
...
@@ -22,6 +42,7 @@ html {
}
.BotonesActive
{
background-color
:
var
(
--Color
);
border-bottom
:
none
;
height
:
6%
;
...
...
@@ -36,4 +57,15 @@ html {
display
:
none
;
height
:
100%
;
border
:
3px
solid
var
(
--Color
);
}
\ No newline at end of file
}
@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
Geo/generate.html
View file @
b25076c
...
...
@@ -26,11 +26,19 @@
</button>
</div>
<h3
id=
"ContinuarText"
>
Cuando se encuentre conforme con el formulario presione Continuar
</h3>
<button
id=
"ContinuarButton"
onclick=
"ArmarForm( generate(document.getElementById('tabs')) )"
>
Continuar
</button>
</section>
<section
id=
"BotonesContainer"
style=
"display: none;"
>
<button
id=
"ContinuarButton"
onclick=
"ArmarForm( generate(document.getElementById('tabs')) )"
>
Continuar
</button>
</section>
<section
id=
"TabsContainer"
style=
"display: none;"
>
<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
id=
"TabsContainer"
>
</section>
<div
class=
"BotonesContainer BotonResultCont"
>
<button
class=
"BotonFormResultante"
>
Editar
</button>
<button
class=
"BotonFormResultante"
style=
"background-color: var(--Color);"
>
Continuar
</button>
</div>
</section>
</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