-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4670084
commit 97d0eba
Showing
6 changed files
with
107 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"NikolaTesla" : [ | ||
{ "Image" : "./img/1.jpg" }, | ||
{ "Image" : "./img/2.jpg" }, | ||
{ "Image" : "./img/3.jpg" }, | ||
{ "Image" : "./img/4.jpg" }, | ||
{ "Image" : "./img/5.jpg" }, | ||
{ "Image" : "./img/6.jpg" }, | ||
{ "Image" : "./img/7.jpg" }, | ||
{ "Image" : "./img/8.jpg" }, | ||
{ "Image" : "./img/9.jpg" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"NikolaTesla" : [ | ||
{ "Image" : "./img/10.jpg" }, | ||
{ "Image" : "./img/11.jpg" }, | ||
{ "Image" : "./img/12.jpg" }, | ||
{ "Image" : "./img/13.jpg" }, | ||
{ "Image" : "./img/14.jpg" }, | ||
{ "Image" : "./img/15.jpg" }, | ||
{ "Image" : "./img/16.jpg" }, | ||
{ "Image" : "./img/17.jpg" } | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,35 @@ | ||
|
||
document.addEventListener("DOMContentLoaded", function(){ | ||
|
||
fetch('Nikola-Tesla.json') | ||
fetch('./JSON/1.json') | ||
|
||
.then(response => response.json()) | ||
.then(data => { | ||
|
||
let tesla = ''; | ||
|
||
data.NikolaTesla.forEach(nikola => { | ||
|
||
tesla += ` <img src="${nikola.Image}"> `; | ||
|
||
}); | ||
document.getElementById('main').innerHTML = tesla; | ||
document.getElementById('1').innerHTML = tesla; | ||
}) | ||
.catch(error = console.error('Error to load the images: ', error)); | ||
|
||
}); | ||
|
||
document.addEventListener("DOMContentLoaded", function(){ | ||
|
||
fetch('./JSON/2.json') | ||
|
||
.then(response => response.json()) | ||
.then(data => { | ||
|
||
let tesla = ''; | ||
|
||
data.NikolaTesla.forEach(nikola => { | ||
tesla += ` <img src="${nikola.Image}"> `; | ||
}); | ||
document.getElementById('2').innerHTML = tesla; | ||
}) | ||
.catch(error = console.error('Error to load the images: ', error)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters