Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
Tarea-Js1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nahuel Mereles Rodriguez
Tarea-Js1
Commits
cd88817b
Commit
cd88817b
authored
May 06, 2022
by
Nahuel Mereles Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tarea resuelta
parent
e6722af8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
index.html
+5
-5
tarea.js
+6
-7
No files found.
index.html
View file @
cd88817b
...
@@ -17,11 +17,11 @@
...
@@ -17,11 +17,11 @@
<div>
<div>
<div>
<div>
<img
class=
"
ImagenesDados
"
src=
""
alt=
""
>
<img
class=
"
dado
"
src=
""
alt=
""
>
<img
class=
"
ImagenesDados
"
src=
""
alt=
""
>
<img
class=
"
dado
"
src=
""
alt=
""
>
<img
class=
"
ImagenesDados
"
src=
""
alt=
""
>
<img
class=
"
dado
"
src=
""
alt=
""
>
<img
class=
"
ImagenesDados
"
src=
""
alt=
""
>
<img
class=
"
dado
"
src=
""
alt=
""
>
<img
class=
"
ImagenesDados
"
src=
""
alt=
""
>
<img
class=
"
dado
"
src=
""
alt=
""
>
</div>
</div>
</div>
</div>
...
...
tarea.js
View file @
cd88817b
...
@@ -32,15 +32,14 @@ function ecuacionCuadratica (a,b,c) {
...
@@ -32,15 +32,14 @@ function ecuacionCuadratica (a,b,c) {
// -----------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------
let
dados
=
[
"./Assets/dado1.jpeg"
,
"./Assets/dado2.jpeg"
,
"./Assets/dado3.jpeg"
,
"./Assets/dado4.jpeg"
,
"./Assets/dado5.jpeg"
,
"./Assets/dado6.jpeg"
]
var
dados
=
[
"./Assets/dado1.jpeg"
,
"./Assets/dado2.jpeg"
,
"./Assets/dado3.jpeg"
,
"./Assets/dado4.jpeg"
,
"./Assets/dado5.jpeg"
,
"./Assets/dado6.jpeg"
]
function
tirandoDados
()
{
function
tirandoDados
()
{
let
numAleatorio
=
generarNumS
(
6
,
0
);
for
(
let
i
=
0
;
i
<
5
;
i
++
)
{
console
.
log
(
numAleatorio
)
let
numeroAleatorio
=
generarNumS
(
6
,
0
);
document
.
getElementsByTagName
(
"h1"
).
innerHTML
=
"hhhhhhhhhhh"
;
console
.
log
(
document
.
getElementsByClassName
(
"dado"
))
// document.getElementsByClassName("Imagenes");
document
.
getElementsByClassName
(
"dado"
)[
i
].
src
=
dados
[
numeroAleatorio
];
// document.getElementsByTagName("img").src=dados[numAleatorio];
}
// imgDados.src=dados[numAleatorio];
}
}
tirandoDados
();
tirandoDados
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment