├── styles
├── flights.css
└── home.css
├── .vscode
└── settings.json
├── Photos
├── Home
│ ├── sun.png
│ ├── mainphoto.jpg
│ ├── mainphoto2.jpg
│ ├── mainphoto3.jpg
│ ├── karimbenzemahome.jpg
│ ├── realmadridlozzz.jpg
│ ├── anceloti-realmadrid.jpg
│ ├── home-img-gareth-bale.jpg
│ ├── realmadridandmallorca.jpg
│ ├── realmadridvsfranfork.jpg
│ ├── realmadrid-dalasplayer.jpg
│ └── realmadridbenzemalosangeles.jpg
├── Team
│ ├── ALABA_4.jpg
│ ├── HAZARD_7.jpg
│ ├── KROOS_8.jpg
│ ├── LUNIN_13.jpg
│ ├── MENDY_23.jpg
│ ├── NACHO_6.jpg
│ ├── VINI_20.jpg
│ ├── ASENSIO_11.jpg
│ ├── BENZEMA_9.jpg
│ ├── CARVAJAL_2.jpg
│ ├── CASEMIRO_14.jpg
│ ├── CEBALLOS_19.jpg
│ ├── COURTOIS_1.jpg
│ ├── LUCAS_V_17.jpg
│ ├── MARIANO_24.jpg
│ ├── MILITAO_3.jpg
│ ├── MODRIC_10.jpg
│ ├── RODRYGO_21.jpg
│ ├── RUDIGER_22.jpg
│ ├── VALLEJO_5.jpg
│ ├── VALVERDE_15.jpg
│ ├── CAMAVINGA_25.jpg
│ ├── TCHOUAMENI_18.jpg
│ └── 01_ODRIOZOLA_12.jpg
├── Flights
│ ├── airplain.gif
│ ├── palasmaior.jpg
│ ├── shuk-migel.jpg
│ ├── airplainicon.jpg
│ ├── musionmadrid.jpg
│ ├── palacemadrid.jpg
│ ├── parkboanrtiro.jpg
│ ├── santiagobernabeu.gif
│ └── santiagobernabeu.jpg
├── Investors
│ ├── image1.png
│ ├── image2.jpg
│ ├── image3.png
│ ├── image4.png
│ ├── image5.png
│ ├── image6.jpg
│ ├── image7.png
│ ├── image8.png
│ ├── image9.png
│ └── image10.png
├── contact
│ └── realmadrid.jpg
├── about
│ └── about-pic-self.jpeg
└── Global-news
│ └── loadinggif.gif
├── Javascript
├── about.js
├── contact.js
├── main.js
├── Investors.js
├── Global-news.js
├── Flights.js
└── Team.js
├── Pages
├── Investors.html
├── Global-news.html
├── Flights.html
├── Team.html
├── about.html
└── Contact.html
└── index.html
/styles/flights.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "liveServer.settings.port": 5501
3 | }
4 |
--------------------------------------------------------------------------------
/Photos/Home/sun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/sun.png
--------------------------------------------------------------------------------
/Photos/Team/ALABA_4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/ALABA_4.jpg
--------------------------------------------------------------------------------
/Photos/Team/HAZARD_7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/HAZARD_7.jpg
--------------------------------------------------------------------------------
/Photos/Team/KROOS_8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/KROOS_8.jpg
--------------------------------------------------------------------------------
/Photos/Team/LUNIN_13.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/LUNIN_13.jpg
--------------------------------------------------------------------------------
/Photos/Team/MENDY_23.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/MENDY_23.jpg
--------------------------------------------------------------------------------
/Photos/Team/NACHO_6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/NACHO_6.jpg
--------------------------------------------------------------------------------
/Photos/Team/VINI_20.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/VINI_20.jpg
--------------------------------------------------------------------------------
/Photos/Flights/airplain.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Flights/airplain.gif
--------------------------------------------------------------------------------
/Photos/Home/mainphoto.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/mainphoto.jpg
--------------------------------------------------------------------------------
/Photos/Home/mainphoto2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/mainphoto2.jpg
--------------------------------------------------------------------------------
/Photos/Home/mainphoto3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/mainphoto3.jpg
--------------------------------------------------------------------------------
/Photos/Investors/image1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image1.png
--------------------------------------------------------------------------------
/Photos/Investors/image2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image2.jpg
--------------------------------------------------------------------------------
/Photos/Investors/image3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image3.png
--------------------------------------------------------------------------------
/Photos/Investors/image4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image4.png
--------------------------------------------------------------------------------
/Photos/Investors/image5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image5.png
--------------------------------------------------------------------------------
/Photos/Investors/image6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image6.jpg
--------------------------------------------------------------------------------
/Photos/Investors/image7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image7.png
--------------------------------------------------------------------------------
/Photos/Investors/image8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image8.png
--------------------------------------------------------------------------------
/Photos/Investors/image9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image9.png
--------------------------------------------------------------------------------
/Photos/Team/ASENSIO_11.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/ASENSIO_11.jpg
--------------------------------------------------------------------------------
/Photos/Team/BENZEMA_9.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/BENZEMA_9.jpg
--------------------------------------------------------------------------------
/Photos/Team/CARVAJAL_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/CARVAJAL_2.jpg
--------------------------------------------------------------------------------
/Photos/Team/CASEMIRO_14.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/CASEMIRO_14.jpg
--------------------------------------------------------------------------------
/Photos/Team/CEBALLOS_19.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/CEBALLOS_19.jpg
--------------------------------------------------------------------------------
/Photos/Team/COURTOIS_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/COURTOIS_1.jpg
--------------------------------------------------------------------------------
/Photos/Team/LUCAS_V_17.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/LUCAS_V_17.jpg
--------------------------------------------------------------------------------
/Photos/Team/MARIANO_24.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/MARIANO_24.jpg
--------------------------------------------------------------------------------
/Photos/Team/MILITAO_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/MILITAO_3.jpg
--------------------------------------------------------------------------------
/Photos/Team/MODRIC_10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/MODRIC_10.jpg
--------------------------------------------------------------------------------
/Photos/Team/RODRYGO_21.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/RODRYGO_21.jpg
--------------------------------------------------------------------------------
/Photos/Team/RUDIGER_22.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/RUDIGER_22.jpg
--------------------------------------------------------------------------------
/Photos/Team/VALLEJO_5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/VALLEJO_5.jpg
--------------------------------------------------------------------------------
/Photos/Team/VALVERDE_15.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/VALVERDE_15.jpg
--------------------------------------------------------------------------------
/Photos/Flights/palasmaior.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Flights/palasmaior.jpg
--------------------------------------------------------------------------------
/Photos/Flights/shuk-migel.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Flights/shuk-migel.jpg
--------------------------------------------------------------------------------
/Photos/Investors/image10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Investors/image10.png
--------------------------------------------------------------------------------
/Photos/Team/CAMAVINGA_25.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/CAMAVINGA_25.jpg
--------------------------------------------------------------------------------
/Photos/Team/TCHOUAMENI_18.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/TCHOUAMENI_18.jpg
--------------------------------------------------------------------------------
/Photos/contact/realmadrid.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/contact/realmadrid.jpg
--------------------------------------------------------------------------------
/Photos/Flights/airplainicon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Flights/airplainicon.jpg
--------------------------------------------------------------------------------
/Photos/Flights/musionmadrid.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Flights/musionmadrid.jpg
--------------------------------------------------------------------------------
/Photos/Flights/palacemadrid.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Flights/palacemadrid.jpg
--------------------------------------------------------------------------------
/Photos/Flights/parkboanrtiro.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Flights/parkboanrtiro.jpg
--------------------------------------------------------------------------------
/Photos/Home/karimbenzemahome.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/karimbenzemahome.jpg
--------------------------------------------------------------------------------
/Photos/Home/realmadridlozzz.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/realmadridlozzz.jpg
--------------------------------------------------------------------------------
/Photos/Team/01_ODRIOZOLA_12.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Team/01_ODRIOZOLA_12.jpg
--------------------------------------------------------------------------------
/Photos/about/about-pic-self.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/about/about-pic-self.jpeg
--------------------------------------------------------------------------------
/Photos/Global-news/loadinggif.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Global-news/loadinggif.gif
--------------------------------------------------------------------------------
/Photos/Flights/santiagobernabeu.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Flights/santiagobernabeu.gif
--------------------------------------------------------------------------------
/Photos/Flights/santiagobernabeu.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Flights/santiagobernabeu.jpg
--------------------------------------------------------------------------------
/Photos/Home/anceloti-realmadrid.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/anceloti-realmadrid.jpg
--------------------------------------------------------------------------------
/Photos/Home/home-img-gareth-bale.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/home-img-gareth-bale.jpg
--------------------------------------------------------------------------------
/Photos/Home/realmadridandmallorca.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/realmadridandmallorca.jpg
--------------------------------------------------------------------------------
/Photos/Home/realmadridvsfranfork.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/realmadridvsfranfork.jpg
--------------------------------------------------------------------------------
/Photos/Home/realmadrid-dalasplayer.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/realmadrid-dalasplayer.jpg
--------------------------------------------------------------------------------
/styles/home.css:
--------------------------------------------------------------------------------
1 | #div_KB9{
2 | background-image: url(../Photos/Home/karimbenzemahome.jpg);
3 | background-size: 100% 100%;
4 | }
5 |
--------------------------------------------------------------------------------
/Photos/Home/realmadridbenzemalosangeles.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dawitlior/JS-madrid-app/HEAD/Photos/Home/realmadridbenzemalosangeles.jpg
--------------------------------------------------------------------------------
/Javascript/about.js:
--------------------------------------------------------------------------------
1 | const API_KEY = "123cedf472ea7d740a81046892916adb";
2 | let some1;
3 | let sun_img1 = `
`;
4 | async function getApiWetherAbout() {
5 | try {
6 | document.getElementById(
7 | "aboutWeather1"
8 | ).innerHTML = `
`;
9 | return await fetch(
10 | `https://api.openweathermap.org/data/2.5/weather?lat=${40.427416712151015}&lon=${-3.7042448033147037}&appid=${API_KEY}`
11 | )
12 | .then((res) => res.json());
13 |
14 | } catch (err) {
15 | console.log(err);
16 | } finally {
17 | document.getElementById("aboutWeather1").innerHTML = "";
18 | }
19 | }
20 | getApiWetherAbout();
21 |
22 | function postApiWetherAbout(){
23 | getApiWetherAbout().then((item) => {
24 | for (const res in item) {
25 | some1 = Math.floor(item[res]["feels_like"] / 9);
26 | // console.log(`${some}°C`);
27 | switch (some1) {
28 | case some1:
29 | document.getElementById(
30 | "aboutWeather"
31 | ).innerHTML += `${some1}°C ${sun_img1}`;
32 | break;
33 | default:
34 | break;
35 | }
36 | }
37 | });
38 | }
39 | postApiWetherAbout();
40 |
--------------------------------------------------------------------------------
/Javascript/contact.js:
--------------------------------------------------------------------------------
1 | const API_KEY = "123cedf472ea7d740a81046892916adb";
2 | let temp1;
3 | let sun_img01 = `
`;
4 | async function getApiWetherContact() {
5 |
6 | try {
7 | document.getElementById(
8 | "contactGif"
9 | ).innerHTML = `
`;
10 | return await fetch(
11 | `https://api.openweathermap.org/data/2.5/weather?lat=${40.427416712151015}&lon=${-3.7042448033147037}&appid=${API_KEY}`
12 | ).then((res) => res.json());
13 | } catch (err) {
14 |
15 | console.log(err);
16 | } finally {
17 | document.getElementById("contactGif").innerHTML = "";
18 | }
19 | }
20 | getApiWetherContact();
21 |
22 | function postApiWetherContact() {
23 | getApiWetherContact().then((item) => {
24 | for (const res in item) {
25 | temp1 = Math.floor(item[res]["feels_like"] / 9);
26 | // console.log(`${some}°C`);
27 | switch (temp1) {
28 | case temp1:
29 | document.getElementById(
30 | "contactTemp"
31 | ).innerHTML += `${temp1}°C ${sun_img01}`;
32 | break;
33 | default:
34 | break;
35 | }
36 | }
37 | });
38 | }
39 | postApiWetherContact();
40 |
--------------------------------------------------------------------------------
/Javascript/main.js:
--------------------------------------------------------------------------------
1 | const API_KEY = "123cedf472ea7d740a81046892916adb";
2 | let some ;
3 | let sun_img= `
`
4 | const myTimer = document.getElementById("timerDiv");
5 | const countDownDate = new Date("December 18, 2022 15:00:00").getTime();
6 | async function getApiWether(){
7 | try{
8 | document.getElementById(
9 | "firstWeather"
10 | ).innerHTML = `
`;
11 | return await fetch(
12 | `https://api.openweathermap.org/data/2.5/weather?lat=${40.416775}&lon=${-3.703790}&appid=${API_KEY}`
13 | )
14 | .then((res) => res.json())
15 | }
16 | catch(err){
17 | console.log(err);
18 | }
19 | finally{
20 | document.getElementById("firstWeather").innerHTML = ""
21 | }
22 | }
23 | getApiWether();
24 |
25 | function postApiWether(){
26 | getApiWether().then((item) => {
27 | for (const res in item) {
28 | some = Math.floor(item[res]["feels_like"] / 9);
29 | // console.log(`${some}°C`);
30 | switch (some) {
31 | case some:
32 | document.getElementById("weather").innerHTML += `${some}°C ${sun_img}`;
33 | break;
34 | default:
35 | break;
36 | }
37 | }
38 | });
39 | }
40 | postApiWether();
41 |
42 | const timer = setInterval(function () {
43 | let nowDate = new Date().getTime();
44 | let timeRemeins = countDownDate - nowDate;
45 | let days = Math.floor(timeRemeins / (1000 * 100 * 100 * 600));
46 | let hours = Math.floor((timeRemeins % (600 * 60 * 60 * 24)) / (1000 * 60 * 60));
47 | let minutes = Math.floor((timeRemeins % (1000 * 60 * 60)) / (1000 * 60));
48 | let seconds = Math.floor((timeRemeins % (1000 * 60)) / 1000);
49 |
50 | myTimer.innerHTML = `
`;
6 | const iconsArray = [
7 | "../Photos/Investors/image3.png",
8 | "../Photos/Investors/image4.png",
9 | "../Photos/Investors/image3.png",
10 | "../Photos/Investors/image4.png",
11 | "../Photos/Investors/image5.png",
12 | "../Photos/Investors/image7.png",
13 | "../Photos/Investors/image7.png",
14 | "../Photos/Investors/image8.png",
15 | "../Photos/Investors/image9.png",
16 | "../Photos/Investors/image10.png",
17 | ];
18 | let counter = 0;
19 |
20 | async function getApiInvestors(){
21 | loadingGif.innerHTML ="
${element.name.first}
43 |${element.name.last}
44 |${element.age}
45 |${element.phone}
46 |${element.email}
47 |${element._id}
48 |
`;
61 | return await fetch(
62 | `https://api.openweathermap.org/data/2.5/weather?lat=${40.427416712151015}&lon=${-3.7042448033147037}&appid=${API_KEY}`
63 | )
64 | .then((res) => res.json())
65 |
66 | } catch (err) {
67 | console.log(err);
68 | } finally {
69 | document.getElementById("invesGif").innerHTML = "";
70 | }
71 | }
72 | getApiWetherInvestors();
73 |
74 |
75 | function postApiWetherInvestors(){
76 | getApiWetherInvestors().then((item) => {
77 | for (const res in item) {
78 | temp = Math.floor(item[res]["feels_like"] / 9);
79 | // console.log(`${some}°C`);
80 | switch (temp) {
81 | case temp:
82 | document.getElementById(
83 | "tempPic"
84 | ).innerHTML += `${temp}°C ${sun_img0}`;
85 | break;
86 | default:
87 | break;
88 | }
89 | }
90 | });
91 | }
92 | postApiWetherInvestors();
93 |
--------------------------------------------------------------------------------
/Javascript/Global-news.js:
--------------------------------------------------------------------------------
1 | const API_KEY = "123cedf472ea7d740a81046892916adb";
2 | let some;
3 | let sun_img = `
`;
4 | let myDiv = document.getElementById("cardDiv");
5 |
6 | async function getNewsApi() {
7 | const options = {
8 | method: "GET",
9 | headers: {
10 | "X-RapidAPI-Key": "f52cf79f95msh20f9ffa63e08f50p166bfdjsn244619f593a9",
11 | "X-RapidAPI-Host": "free-football-soccer-videos.p.rapidapi.com",
12 | },
13 | };
14 | try {
15 | waitingGif.innerHTML =
16 | "
37 | All the hottest football news in the world on our app 38 |
39 |97 | // Y'all can find all the hot football news and videos 98 | //
99 | // Press Me 100 | //
66 | Welcome to the home site of Real Madrid. A site where you can keep up to
67 | date with all the news in the team, all the changes in the squad, watch
68 | summaries of all the leagues in the world. Whether you are in Madrid or
69 | wondering whether to come and what to do before or after a game, you can
70 | view the most popular places in the city of Madrid on our website, You
71 | will know what the weather is to watch in the newest summaries and
72 | more..
73 |
74 |
85 | 89 | hello im lior dawit 25 years old full-stack developer learning at " 90 | Tech career" Having a very high motivation for success, one of my 91 | big ambitions is to develop a product that will help people and be 92 | valuable. 93 |
94 |
69 | Email us with any questions or inquiries or call 0542653154.
70 |
71 | I would be happy to answer your question and feedback.
72 |
`;
20 |
21 |
22 | async function getFlightsApi(){
23 |
24 | const options = {
25 | method: "GET",
26 | headers: {
27 | "X-RapidAPI-Key": "f52cf79f95msh20f9ffa63e08f50p166bfdjsn244619f593a9",
28 | "X-RapidAPI-Host": "madrid-barajas-airport-flights.p.rapidapi.com",
29 | },
30 | };
31 | try{
32 | flightDiv.innerHTML =
33 | "
";
34 | return await fetch("https://madrid-barajas-airport-flights.p.rapidapi.com/MAD/departures",options)
35 | .then((res) => res.json());
36 | }
37 | catch(err){
38 | console.log(err);
39 | }
40 | finally{
41 | flightDiv.innerHTML = "";
42 | }
43 | }
44 | getFlightsApi();
45 |
46 | function postFlightsApi(){
47 | getFlightsApi().then((item) => {
48 | for (let i = 0; i < 35; i++) {
49 | console.log(item[i]);
50 | flights.innerHTML += `
51 |
`;
75 | return await fetch(
76 | `https://api.openweathermap.org/data/2.5/weather?lat=${40.427416712151015}&lon=${-3.7042448033147037}&appid=${API_KEY}`
77 | )
78 | .then((res) => res.json());
79 |
80 | } catch (err) {
81 | console.log(err);
82 | } finally {
83 | document.getElementById("flightsGif").innerHTML = "";
84 | }
85 | }
86 | getApiWetherFlights();
87 |
88 | function postApiWetherFlights(){
89 | getApiWetherFlights().then((item) => {
90 | for (const res in item) {
91 | some11 = Math.floor(item[res]["feels_like"] / 9);
92 | // console.log(`${some}°C`);
93 | switch (some11) {
94 | case some11:
95 | document.getElementById(
96 | "flightsTemp"
97 | ).innerHTML += `${some11}°C ${sun_img11}`;
98 | break;
99 | default:
100 | break;
101 | }
102 | }
103 | });
104 | }
105 | postApiWetherFlights()
106 |
107 |
108 | function postPopularSites(){
109 | let sitesDiv = document.getElementById("sitesDiv");
110 | return (sitesDiv.innerHTML = `
111 |
112 |
114 | 120 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 121 | The museum has one of the largest collections of European art, 122 | from the 14th century to the beginning of the 19th century. 123 |
124 |
135 | 141 | The Royal Palace of Madrid is the official seat of the Royal Family of Spain in the capital city of Madrid, 142 | but it is now used mainly for national ceremonies. 143 | King Felipe VI of Spain and his family chose to live in a more modest palace in the suburbs of Madrid, 144 | the Palace of Zarzuela. The palace is owned by the state, 145 | and is managed by a public agency of the Office of the President. 146 | It is located on Calle Belen, west of the main business center of Madrid, 147 | east of the Manzanares River. Several rooms in the palace are regularly open to the public, 148 | except during government activities. 149 |
150 |
161 | 167 | The San Miguel food market (Mercado de San Miguel) is an indoor market of traditional food located in the heart of Madrid near the Plaza Mayor. 168 | The market was built at the beginning of the 20th century and was recently renovated for 6 years and reopened in 2009. 169 | The structure definitely stands out in the landscape, and this is because, 170 | unlike the other concrete buildings, the contemporary market structure is mostly made of iron and glass. 171 | This is one of the city's most important tourist sites, 172 | but alongside the crowds of tourists you will also notice quite a few locals, 173 | which is also what makes this market so authentic and a site not to be missed. 174 | 175 |
176 |
187 | 193 | Plaza Mayor is a central square in Madrid, the capital of Spain. 194 | The shape of the square is rectangular, 129 meters long and 94 meters wide. 195 | The square is surrounded by three-story residential buildings, including 237 balconies overlooking the square. 196 | The square has nine entrances and is located close to another central square, the Puerta del Sol. 197 | The square is relatively quiet during the week, and crowded on the weekends. 198 |
199 |
210 | 216 | Buen Retiro Park is the central and important park of Madrid, the capital of Spain. 217 | The park covers an area of 1.4 square kilometers and is close to the Alcala Gate and the Prado Museum. 218 | The park contains, among other things, many statues, monuments and a lake, 219 | and is considered one of the most popular places in the city. 220 |
221 |
232 | 238 | The Santiago Bernabéu Stadium is a football stadium in Madrid, 239 | which has been used since 1947 as the home ground of the Real Madrid football team. 240 | The current capacity of the stadium is 81,044 seats, and it is the second largest stadium in Spain, 241 | and the eighth largest in Europe as a whole. 242 | Santiago Bernabeu is one of the most famous and prestigious football stadiums in the world, 243 | which hosted the Champions League final four times, in 1957, 1969, 1980 and 2010. 244 | The finals of Euro 1964 and the World Cup 1982 were also held at the Bernabeu, 245 | making it the first stadium in Europe to host both the European Championship final and the World Cup final. In an unusual way, 246 | the stadium hosted the final of the 2018 Copa Libertadores, 247 | the only time in history that the Argentine Super Clasico took place as part of the final of a continental tournament. 248 | Also, the Bernabeu has hosted the Copa del Rey final 35 times, more than any other stadium in Spain. 249 |
250 |
66 |
78 | 84 | Carlo Anlotti is convinced of the existing squad and believes that 85 | they will be able to surpass themselves this season as well. And 86 | remember that this season the World Cup is in the winter 87 |
88 |102 | During training in preparation for the upcoming season, the Real 103 | players received a surprise visit while there were in LA 104 |
105 |
121 |
129 | 133 | Tobias impressed Ancelotti very much on the computer against the 134 | Mexican team and is considering bringing him up to the seniors 135 |
136 |152 | "The DNA of this club always appears in important matches," he told 153 | the official UEFA media. 154 |
155 |
171 |
187 | 189 | Some quick example text to build on the card title and make up the 190 | bulk of the card's content. Some quick example text to build on 191 | the card title and make up the bulk of the card's content. 192 |
193 |
202 | 204 | Some quick example text to build on the card title and make up the 205 | bulk of the card's content.Some quick example text to build on the 206 | card title and make up the bulk of the card's content. 207 |
208 |
217 | 219 | Some quick example text to build on the card title and make up the 220 | bulk of the card's content.Some quick example text to build on the 221 | card title and make up the bulk of the card's content. 222 |
223 |
236 |
`;
4 | const MY_API = "https://my-json-server.typicode.com/Dawitlior/my-json/hotels";
5 |
6 | class Statistic {
7 | constructor(wins, losses, ties, gamesPlayed, points) {
8 | this.wins = wins;
9 | this.losses = losses;
10 | this.ties = ties;
11 | this.gamesPlayed = gamesPlayed;
12 | this.points = points;
13 | }
14 | }
15 | const show = new Statistic();
16 |
17 | async function getFunction() {
18 | try {
19 | return await fetch(
20 | "https://api-football-standings.azharimm.site/leagues/esp.1/standings?season=2021&sort=asc"
21 | ).then((res) => res.json());
22 | } catch (err) {
23 | console.log(err);
24 | } finally {
25 | }
26 | }
27 | getFunction();
28 |
29 | // function displayTwenty() {
30 | // const ArrayOptions = Array.from(document.getElementsByClassName('objTwnty'))
31 | // const optionA = document.getElementById("optionTwenty");
32 | // console.log(ArrayOptions);
33 | // getFunction().then((item) => {
34 | // // for (let key in item) {
35 | // // console.log(item[key]["standings"]);
36 | // // // show.wins = ;
37 | // // }
38 | // for(let i = 0 ; i<1 ; i++){
39 | // let myStateDiv = document.getElementById("statsDiv");
40 | // myStateDiv.innerHTML=item["data"]["standings"]["0"]["stats"]["12"];
41 | // switch (ArrayOptions) {
42 | // case optionA:
43 | // displayTwenty()
44 | // break;
45 |
46 | // default:
47 | // break;
48 | // }
49 |
50 | // }
51 | // })
52 | // }
53 |
54 | async function getApiWetherTeam() {
55 | try {
56 | document.getElementById(
57 | "TeamGif1"
58 | ).innerHTML = `
`;
59 | return await fetch(
60 | `https://api.openweathermap.org/data/2.5/weather?lat=${40.427416712151015}&lon=${-3.7042448033147037}&appid=${API_KEY}`
61 | ).then((res) => res.json());
62 | } catch (err) {
63 | console.log(err);
64 | } finally {
65 | document.getElementById("TeamGif1").innerHTML = "";
66 | }
67 | }
68 | getApiWetherTeam();
69 |
70 | function postApiWetherTeam() {
71 | getApiWetherTeam().then((item) => {
72 | for (const res in item) {
73 | temp2 = Math.floor(item[res]["feels_like"] / 9);
74 | // console.log(`${some}°C`);
75 | switch (temp2) {
76 | case temp2:
77 | document.getElementById(
78 | "TeamTemp1"
79 | ).innerHTML += `${temp2}°C ${sun_img011}`;
80 | break;
81 | default:
82 | break;
83 | }
84 | }
85 | });
86 | }
87 | postApiWetherTeam();
88 |
89 | function printAllPlayersDetails() {
90 | let myMainDiv = document.getElementById("teamDiv");
91 | return (myMainDiv.innerHTML = `
92 |
93 |
95 | 101 | Thibaut Nicolas Marc Courtois (born 11 May 1992) is a Belgian professional 102 | footballer who plays as a goalkeeper for Spanish club Real Madrid 103 | and the Belgium national team. 104 | He is considered one of the best goalkeepers in world football. 105 |
106 |
110 | 116 | Daniel "Dani" Carvajal Ramos (born 11 January 1992) 117 | is a Spanish professional footballer who plays 118 | as a right back for Real Madrid and the Spain national team. 119 |
120 |
124 | 130 | Éder Gabriel Militão (born 18 January 1998) 131 | is a Brazilian professional footballer who plays for the Spanish 132 | club Real Madrid and the Brazil football team. 133 | Mainly a central defender, 134 | he can also play as a right back or defensive midfielder. 135 |
136 |
140 | 146 | David Olatukunbo Alaba (born 24 June 1992) 147 | is an Austrian professional footballer who plays 148 | either as a central midfielder, wide midfielder, 149 | left-back or centre-back for La Liga club Real Madrid 150 | and the Austria national team. 151 | Alaba is widely regarded as one of the best defenders 152 | of his generation. 153 |
154 |
158 | 164 | Jesús Vallejo Lázaro (born 5 January 1997) 165 | is a Spanish professional footballer who plays as a centre-back for Real Madrid. 166 |
167 |
171 | 177 | José Ignacio Fernández Iglesias (born 18 January 1990), 178 | known as Nacho ( is a Spanish professional footballer 179 | who plays as a defender for Real Madrid and the Spain national team. 180 |
181 |
185 | 191 | Eden Michael Hazard (born 7 January 1991) is a Belgian 192 | professional footballer who plays as a winger or attacking 193 | midfielder for Spanish club Real Madrid and captains 194 | the Belgium national team. Known for his creativity, 195 | dribbling, passing and vision, 196 | Hazard is considered one of the best players of his generation. 197 |
198 |
202 | 208 | Toni Kroos (born 4 January 1990) is a German professional 209 | footballer who plays as a midfielder for La Liga club Real Madrid. 210 | Kroos plays mainly as a central midfielder, 211 | but has also been deployed as a deep-lying playmaker in his career. 212 | He is known for his vision, passing, creativity, 213 | crossing and set-piece ability, 214 | and is widely regarded as one of the greatest midfielders of all time. 215 |
216 |
220 | 226 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 227 | The museum has one of the largest collections of European art, 228 | from the 14th century to the beginning of the 19th century. 229 |
230 |
234 | 240 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 241 | The museum has one of the largest collections of European art, 242 | from the 14th century to the beginning of the 19th century. 243 |
244 |
248 | 254 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 255 | The museum has one of the largest collections of European art, 256 | from the 14th century to the beginning of the 19th century. 257 |
258 |
262 | 268 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 269 | The museum has one of the largest collections of European art, 270 | from the 14th century to the beginning of the 19th century. 271 |
272 |
276 | 282 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 283 | The museum has one of the largest collections of European art, 284 | from the 14th century to the beginning of the 19th century. 285 |
286 |
290 | 296 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 297 | The museum has one of the largest collections of European art, 298 | from the 14th century to the beginning of the 19th century. 299 |
300 |
305 | 311 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 312 | The museum has one of the largest collections of European art, 313 | from the 14th century to the beginning of the 19th century. 314 |
315 |
319 | 325 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 326 | The museum has one of the largest collections of European art, 327 | from the 14th century to the beginning of the 19th century. 328 |
329 |
333 | 339 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 340 | The museum has one of the largest collections of European art, 341 | from the 14th century to the beginning of the 19th century. 342 |
343 |
347 | 353 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 354 | The museum has one of the largest collections of European art, 355 | from the 14th century to the beginning of the 19th century. 356 |
357 |
361 | 367 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 368 | The museum has one of the largest collections of European art, 369 | from the 14th century to the beginning of the 19th century. 370 |
371 |
375 | 381 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 382 | The museum has one of the largest collections of European art, 383 | from the 14th century to the beginning of the 19th century. 384 |
385 |
389 | 395 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 396 | The museum has one of the largest collections of European art, 397 | from the 14th century to the beginning of the 19th century. 398 |
399 |
403 | 409 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 410 | The museum has one of the largest collections of European art, 411 | from the 14th century to the beginning of the 19th century. 412 |
413 |
417 | 423 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 424 | The museum has one of the largest collections of European art, 425 | from the 14th century to the beginning of the 19th century. 426 |
427 |
431 | 437 | The Prado Museum is the largest and most famous museum in Madrid, the capital of Spain. 438 | The museum has one of the largest collections of European art, 439 | from the 14th century to the beginning of the 19th century. 440 |
441 |