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 dabe4e3e
authored
2019-11-27 09:11:46 -0300
by
Georgina Mondino
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Funcion de Armar Tabs
1 parent
0bef61b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
Geo/Scripts/ArmadoDeForm.js
Geo/Style/ArmadoDeForm.css
Geo/Scripts/ArmadoDeForm.js
View file @
dabe4e3
...
...
@@ -14,7 +14,7 @@ function ArmarForm() {
boton
.
setAttribute
(
"id"
,
"Boton"
+
n
);
boton
.
setAttribute
(
"value"
,
n
);
boton
.
setAttribute
(
"class"
,
"Botones"
);
boton
.
addEventListener
(
"click"
,
HabilitarTab
);
boton
.
setAttribute
(
"onclick"
,
HabilitarTab
(
this
)
);
let
ancho
=
((
100
-
(
0.2
*
m
))
/
m
)
+
"%"
;
boton
.
style
.
width
=
ancho
;
let
tab
=
document
.
createElement
(
"div"
);
...
...
@@ -27,10 +27,21 @@ function ArmarForm() {
document
.
getElementById
(
"Tab0"
).
style
.
display
=
"block"
;
}
function
HabilitarTab
()
{
for
(
n
=
0
;
n
<
m
;
n
++
)
{
document
.
getElementById
(
"Tab"
+
n
).
style
.
display
=
"none"
if
(
doc
){}
}
function
HabilitarTab
(
elemento
)
{
let
IDBoton
=
elemento
.
id
;
var
i
,
Tabs
,
Botones
;
Tabs
=
document
.
getElementsByClassName
(
"Tabs"
);
for
(
i
=
0
;
i
<
Tabs
.
length
;
i
++
)
{
Tabs
[
i
].
style
.
display
=
"none"
;
}
Botones
=
document
.
getElementsByClassName
(
"Botones"
);
for
(
i
=
0
;
i
<
Botones
.
length
;
i
++
)
{
Botones
[
i
].
className
=
Botones
[
i
].
className
.
replace
(
" BotonesActive"
,
""
);
}
document
.
getElementById
(
IDBoton
).
style
.
display
=
"block"
;
evt
.
currentTarget
.
className
+=
" active"
;
}
}
\ No newline at end of file
Geo/Style/ArmadoDeForm.css
View file @
dabe4e3
...
...
@@ -21,7 +21,7 @@ html {
margin
:
0.1%
;
}
.Botones
:a
ctive
{
.Botones
A
ctive
{
background-color
:
var
(
--Color
);
border-bottom
:
none
;
height
:
6%
;
...
...
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