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 7cecb102
authored
2019-11-26 11:31:08 -0300
by
Georgina Mondino
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Pasado de elementos borrador a archivos particulares
1 parent
82b24349
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
93 deletions
Geo/Scripts/ArmadoDeForm.js
Geo/Borrador.html → Geo/Style/ArmadoDeForm.css
Geo/generate.html
Geo/Scripts/ArmadoDeForm.js
0 → 100644
View file @
7cecb10
function
ArmarForm
()
{
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
padreBotones
=
document
.
getElementById
(
"BotonesContainer"
);
let
padreTabs
=
document
.
getElementById
(
"TabsContainer"
);
let
boton
=
document
.
createElement
(
"Button"
);
padreBotones
.
appendChild
(
boton
);
boton
.
setAttribute
(
"id"
,
"Boton"
+
n
);
boton
.
setAttribute
(
"value"
,
n
);
boton
.
setAttribute
(
"class"
,
"Botones"
);
boton
.
addEventListener
(
"click"
,
HabilitarTab
);
let
ancho
=
((
100
-
(
0.2
*
m
))
/
m
)
+
"%"
;
boton
.
style
.
width
=
ancho
;
let
tab
=
document
.
createElement
(
"div"
);
padreTabs
.
appendChild
(
tab
);
tab
.
style
.
width
=
ancho
*
m
;
tab
.
setAttribute
(
"id"
,
"Tab"
+
n
);
tab
.
setAttribute
(
"class"
,
"Tabs"
);
}
document
.
getElementById
(
"Tab0"
).
style
.
display
=
"block"
;
}
function
HabilitarTab
()
{
for
(
n
=
0
;
n
<
m
;
n
++
)
{
document
.
getElementById
(
"Tab"
+
n
).
style
.
display
=
"none"
if
(
doc
){}
}
}
\ No newline at end of file
Geo/
Borrador.html
→
Geo/
Style/ArmadoDeForm.css
View file @
7cecb10
<html>
<body>
<input
type=
"number"
id=
"CantBotones"
>
<button
onclick=
"AgregarTabs()"
>
Generar Tabs
</button>
<section
id=
"BotonesContainer"
>
</section>
<section
id=
"TabsContainer"
>
</section>
</body>
<script>
function
AgregarTabs
()
{
let
m
=
document
.
getElementById
(
"CantBotones"
).
value
;
let
n
;
for
(
n
=
0
;
n
<
m
;
n
++
)
{
let
padreBotones
=
document
.
getElementById
(
"BotonesContainer"
);
let
padreTabs
=
document
.
getElementById
(
"TabsContainer"
);
let
boton
=
document
.
createElement
(
"Button"
);
padreBotones
.
appendChild
(
boton
);
boton
.
setAttribute
(
"id"
,
"Boton"
+
n
);
boton
.
setAttribute
(
"value"
,
n
);
boton
.
setAttribute
(
"class"
,
"Botones"
);
boton
.
addEventListener
(
"click"
,
HabilitarTab
);
let
ancho
=
((
100
-
(
0.2
*
m
))
/
m
)
+
"%"
;
boton
.
style
.
width
=
ancho
;
let
tab
=
document
.
createElement
(
"div"
);
padreTabs
.
appendChild
(
tab
);
tab
.
style
.
width
=
ancho
*
m
;
tab
.
setAttribute
(
"id"
,
"Tab"
+
n
);
tab
.
setAttribute
(
"class"
,
"Tabs"
);
}
document
.
getElementById
(
"Tab0"
).
style
.
display
=
"block"
;
}
function
HabilitarTab
()
{
for
(
n
=
0
;
n
<
m
;
n
++
)
{
document
.
getElementById
(
"Tab"
+
n
).
style
.
display
=
"none"
if
(
doc
){}
}
}
</script>
<style>
html
{
--Color
:
rgb
(
122
,
230
,
163
);
}
#BotonesContainer
{
width
:
100%
;
height
:
5%
;
}
#TabsContainer
{
width
:
100%
;
height
:
95%
;
}
.Botones
{
border-radius
:
5px
5px
0px
0px
;
background-color
:
rgb
(
168
,
168
,
168
);
border
:
none
;
height
:
100%
;
margin
:
0.1%
;
}
.Botones
:active
{
background-color
:
var
(
--Color
);
border-bottom
:
none
;
height
:
6%
;
border-bottom
:
none
;
}
.Botones
:hover
{
background-color
:
rgb
(
53
,
53
,
53
),
0.5
;
}
.Tabs
{
display
:
none
;
height
:
100%
;
border
:
3px
solid
var
(
--Color
);
}
</style>
</html>
\ No newline at end of file
html
{
--Color
:
rgb
(
122
,
230
,
163
);
}
#BotonesContainer
{
width
:
100%
;
height
:
5%
;
}
#TabsContainer
{
width
:
100%
;
height
:
95%
;
}
.Botones
{
border-radius
:
5px
5px
0px
0px
;
background-color
:
rgb
(
168
,
168
,
168
);
border
:
none
;
height
:
100%
;
margin
:
0.1%
;
}
.Botones
:active
{
background-color
:
var
(
--Color
);
border-bottom
:
none
;
height
:
6%
;
border-bottom
:
none
;
}
.Botones
:hover
{
background-color
:
rgb
(
53
,
53
,
53
),
0.5
;
}
.Tabs
{
display
:
none
;
height
:
100%
;
border
:
3px
solid
var
(
--Color
);
}
\ No newline at end of file
Geo/generate.html
View file @
7cecb10
...
...
@@ -6,6 +6,8 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<link
rel=
"stylesheet"
href=
"./Style/Templates.css"
>
<link
rel=
"stylesheet"
href=
"./Style/ArmadoDeForm.css"
>
<script
src=
"./Scripts/ArmadoDeForm.js"
></script>
<link
href=
"https://fonts.googleapis.com/css?family=Montserrat&display=swap"
rel=
"stylesheet"
>
<title>
Generador de Formularios
</title>
<link
rel=
"icon"
href=
"./Assets/ICONO ANACSOFT 48 SIN TRASNSF.png"
...
...
@@ -13,6 +15,7 @@
</head>
<body>
<section
id=
"ArmarFormContainer"
>
<h1>
Generador de Formularios
</h1>
<h3>
Para comenzar por favor cree un nuevo tab
</h3>
<br>
...
...
@@ -23,7 +26,13 @@
</button>
</div>
<h3
id=
"ContinuarText"
>
Cuando se encuentre conforme con el formulario presione Continuar
</h3>
<button
id=
"ContinuarButton"
>
Continuar
</button>
<input
type=
"number"
placeholder=
"Cant de Tabs"
id=
"CantBotones"
>
<button
id=
"ContinuarButton"
onclick=
"ArmarForm()"
>
Continuar
</button>
</section>
<section
id=
"BotonesContainer"
style=
"display: none;"
>
</section>
<section
id=
"TabsContainer"
style=
"display: none;"
>
</section>
</body>
<!-- templates -->
...
...
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