From 89d60efa339276ab47379eae95f0dea951cdf7af Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Sun, 13 Dec 2020 22:41:50 +0330 Subject: [PATCH 01/11] Exe1 is added --- Week1/homework/js-exercises/getandomUser.js | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Week1/homework/js-exercises/getandomUser.js diff --git a/Week1/homework/js-exercises/getandomUser.js b/Week1/homework/js-exercises/getandomUser.js new file mode 100644 index 000000000..7a8f28b18 --- /dev/null +++ b/Week1/homework/js-exercises/getandomUser.js @@ -0,0 +1,34 @@ +function xhrMethod() { +const xhr = new XMLHttpRequest(); +const url = 'https://www.randomuser.me/api' + +xhr.open('GET', url); +xhr.send(); + +xhr.onreadystatechange = processRequest; + +function processRequest(e) { + if(xhr.readyState == 4 && xhr.status == 200) { + let respons = JSON.parse(xhr.responseText); + console.log(respons) + } +} + +} + + +const axios = require('axios'); +function axiosMethod() { + axios + .get('https://www.randomuser.me/api') + .then(function(respons) { + console.log(respons); + }) + .catch(function(error) { + console.log(error) + }); +} + + +axiosMethod(); +xhrMethod(); \ No newline at end of file From 0f3b67f08e5e60f99ca5d4e16ee9e61835c0cbc0 Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Sun, 13 Dec 2020 22:48:50 +0330 Subject: [PATCH 02/11] Ex1 error handling is added --- Week1/homework/js-exercises/getandomUser.js | 6 ++++++ Week1/homework/js-exercises/humor.js | 0 2 files changed, 6 insertions(+) create mode 100644 Week1/homework/js-exercises/humor.js diff --git a/Week1/homework/js-exercises/getandomUser.js b/Week1/homework/js-exercises/getandomUser.js index 7a8f28b18..ab77f3698 100644 --- a/Week1/homework/js-exercises/getandomUser.js +++ b/Week1/homework/js-exercises/getandomUser.js @@ -14,6 +14,12 @@ function processRequest(e) { } } +xhr.onerror = function() { + if (xhr.status != 200) { + alert (`Error ${xhr.status}: ${xhr.statusText}`) + } +} + } diff --git a/Week1/homework/js-exercises/humor.js b/Week1/homework/js-exercises/humor.js new file mode 100644 index 000000000..e69de29bb From 6c49686f71539347735824e3ce3cd1cf2579c2a6 Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Sun, 13 Dec 2020 23:21:12 +0330 Subject: [PATCH 03/11] Ex2 is added --- Week1/homework/js-exercises/getandomUser.js | 4 +- Week1/homework/js-exercises/humor.js | 42 +++++++++++++++++++++ Week1/homework/js-exercises/index.html | 15 ++++++++ 3 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 Week1/homework/js-exercises/index.html diff --git a/Week1/homework/js-exercises/getandomUser.js b/Week1/homework/js-exercises/getandomUser.js index ab77f3698..b365902ad 100644 --- a/Week1/homework/js-exercises/getandomUser.js +++ b/Week1/homework/js-exercises/getandomUser.js @@ -27,8 +27,8 @@ const axios = require('axios'); function axiosMethod() { axios .get('https://www.randomuser.me/api') - .then(function(respons) { - console.log(respons); + .then(function(response) { + console.log(response.data); }) .catch(function(error) { console.log(error) diff --git a/Week1/homework/js-exercises/humor.js b/Week1/homework/js-exercises/humor.js index e69de29bb..55857e01c 100644 --- a/Week1/homework/js-exercises/humor.js +++ b/Week1/homework/js-exercises/humor.js @@ -0,0 +1,42 @@ + + +function xhrMethod() { + const xhr = new XMLHttpRequest(); + const url = 'https://xkcd.now.sh/?comic=latest' + xhr.open('GET', url); + xhr.send(); + xhr.onreadystatechange = processRequest; + function processRequest(e) { + if(xhr.readyState == 4 && xhr.status == 200) { + let response = JSON.parse(xhr.responseText); + document.getElementsByTagName('img').src = response.img; + console.log(response); + }; + }; + xhr.onerror = function() { + if (xhr.status != 200) { + alert (`Error ${xhr.status}: ${xhr.statusText}`); + }; + }; + }; + + xhrMethod(); + + + + + +function axiosMethod() { + axios + .get('https://xkcd.now.sh/?comic=latest') + .then(function(response) { + console.log(response.data); + document.getElementsByTagName('img').src = response.data.img; + }) + .catch(function(error) { + console.log(error) + }); +} + + +axiosMethod(); diff --git a/Week1/homework/js-exercises/index.html b/Week1/homework/js-exercises/index.html new file mode 100644 index 000000000..857e18bea --- /dev/null +++ b/Week1/homework/js-exercises/index.html @@ -0,0 +1,15 @@ + + + + + + Document + + + + + + + + + \ No newline at end of file From baf3130b360d528a4cccce2a8d3c1e3c670af885 Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Mon, 14 Dec 2020 15:06:09 +0330 Subject: [PATCH 04/11] Exe3 is added --- Week1/homework/js-exercises/dogGallery.js | 0 Week1/homework/js-exercises/index.html | 15 --------------- 2 files changed, 15 deletions(-) create mode 100644 Week1/homework/js-exercises/dogGallery.js diff --git a/Week1/homework/js-exercises/dogGallery.js b/Week1/homework/js-exercises/dogGallery.js new file mode 100644 index 000000000..e69de29bb diff --git a/Week1/homework/js-exercises/index.html b/Week1/homework/js-exercises/index.html index 857e18bea..e69de29bb 100644 --- a/Week1/homework/js-exercises/index.html +++ b/Week1/homework/js-exercises/index.html @@ -1,15 +0,0 @@ - - - - - - Document - - - - - - - - - \ No newline at end of file From 322895e5d7690c22bc7378de55b44407c2f76402 Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Mon, 14 Dec 2020 16:54:10 +0330 Subject: [PATCH 05/11] Ex3 finished --- Week1/homework/js-exercises/dogGallery.js | 57 +++++++++++++++++++++++ Week1/homework/js-exercises/index.html | 20 ++++++++ 2 files changed, 77 insertions(+) diff --git a/Week1/homework/js-exercises/dogGallery.js b/Week1/homework/js-exercises/dogGallery.js index e69de29bb..21bdfa2cf 100644 --- a/Week1/homework/js-exercises/dogGallery.js +++ b/Week1/homework/js-exercises/dogGallery.js @@ -0,0 +1,57 @@ +const XMLBtn = document.getElementById('btn1'); +const AxiosBtn = document.getElementById('btn2'); + +function xhrMethod() { + const xhr = new XMLHttpRequest(); + const li = document.createElement('li'); + const image = document.createElement('img'); + const ul = document.getElementById('list'); + const url = 'https://dog.ceo/api/breeds/image/random' + xhr.open('GET', url); + xhr.send(); + xhr.onreadystatechange = processRequest; + + ul.appendChild(li.appendChild(image)) + + function processRequest(e) { + if(xhr.readyState == 4 && xhr.status == 200) { + let response = JSON.parse(xhr.responseText); + image.src = response.message; + image.style.width = '300px' + image.style.height = '300px' + + }; + }; + xhr.onerror = function() { + if (xhr.status != 200) { + alert (`Error ${xhr.status}: ${xhr.statusText}`); + }; + }; + + }; + +XMLBtn.addEventListener('click', xhrMethod); + + + +function axiosMethod() { + const li = document.createElement('li'); + const image = document.createElement('img'); + const ul = document.getElementById('list'); + ul.appendChild(li.appendChild(image)) + axios + .get('https://dog.ceo/api/breeds/image/random') + .then(function(response) { + + image.src = response.data.message; + image.style.width = '300px' + image.style.height = '300px' + + }) + .catch(function(error) { + console.log(error) + }); +} + + +AxiosBtn.addEventListener('click', axiosMethod); diff --git a/Week1/homework/js-exercises/index.html b/Week1/homework/js-exercises/index.html index e69de29bb..7337b551a 100644 --- a/Week1/homework/js-exercises/index.html +++ b/Week1/homework/js-exercises/index.html @@ -0,0 +1,20 @@ + + + + + + Dog Gallery + + +
+ + +
    + +
    + + + + + + \ No newline at end of file From ee86b141f7e13a6486f5c1de190e1b54e9c24080 Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Mon, 14 Dec 2020 16:56:35 +0330 Subject: [PATCH 06/11] Margin added to ex3 --- Week1/homework/js-exercises/dogGallery.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Week1/homework/js-exercises/dogGallery.js b/Week1/homework/js-exercises/dogGallery.js index 21bdfa2cf..f1f888259 100644 --- a/Week1/homework/js-exercises/dogGallery.js +++ b/Week1/homework/js-exercises/dogGallery.js @@ -19,6 +19,7 @@ function xhrMethod() { image.src = response.message; image.style.width = '300px' image.style.height = '300px' + image.style.margin = '5px' }; }; @@ -46,6 +47,7 @@ function axiosMethod() { image.src = response.data.message; image.style.width = '300px' image.style.height = '300px' + image.style.margin = '5px' }) .catch(function(error) { From 6dfc70c95df3569acbf4bd91d30133d248148918 Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Wed, 16 Dec 2020 16:38:54 +0330 Subject: [PATCH 07/11] Project html and css is added --- hackyourrepo-app/index.html | 23 +++++++++++++++++++++++ hackyourrepo-app/script.js | 21 +++++++++++++++++++++ hackyourrepo-app/style.css | 35 ++++++++++++++++++++++++++++++++++- 3 files changed, 78 insertions(+), 1 deletion(-) diff --git a/hackyourrepo-app/index.html b/hackyourrepo-app/index.html index 2b202e708..efb6ec0d6 100755 --- a/hackyourrepo-app/index.html +++ b/hackyourrepo-app/index.html @@ -20,6 +20,29 @@ +
    + +
    +
    +

    Repository:SampleRepo1

    +

    Description:This repository is meant to be a sample

    +

    Fork:5

    +

    Update:2020-05-27 12:00:00

    + + +
    +
    +
    Contributors
    +
    +
    +
    + + + + diff --git a/hackyourrepo-app/script.js b/hackyourrepo-app/script.js index a2206d1ed..705924282 100755 --- a/hackyourrepo-app/script.js +++ b/hackyourrepo-app/script.js @@ -3,3 +3,24 @@ /* Write here your JavaScript for HackYourRepo! */ +const placeholderRepos = [ + { + name: 'SampleRepo1', + description: 'This repository is meant to be a sample', + forks: 5, + updated: '2020-05-27 12:00:00', + }, + { + name: 'AndAnotherOne', + description: 'Another sample repo! Can you believe it?', + forks: 9, + updated: '2020-05-27 12:00:00', + }, + { + name: 'HYF-Is-The-Best', + description: + "This repository contains all things HackYourFuture. That's because HYF is amazing!!!!", + forks: 130, + updated: '2020-05-27 12:00:00', + }, +]; \ No newline at end of file diff --git a/hackyourrepo-app/style.css b/hackyourrepo-app/style.css index 5b3acae8a..5de78dd8f 100755 --- a/hackyourrepo-app/style.css +++ b/hackyourrepo-app/style.css @@ -1,3 +1,36 @@ -/* +/* Write here your CSS rules for HackYourRepo! */ +* { + margin: 0; + padding: 0; + box-sizing: border-box; + +} + +#header { + border: 3px solid black; + height: 100px; +} + +.container { + margin: 0 10%; + margin-top: 20px; +} + +.bottom-box { + border: 3px solid red; + display: flex; + flex-direction: row; + height: 400px; +} + +#left-side { + border: 3px solid blue; + width: 50%; +} + +#right-side { + border: 3px solid green; + width: 50%; +} \ No newline at end of file From 54babacb9981a24c66fc0287a942f55095de4dea Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Fri, 18 Dec 2020 16:52:54 +0330 Subject: [PATCH 08/11] Hackyourrep-app added --- hackyourrepo-app/index.html | 51 ++++++++++++++++++++--- hackyourrepo-app/style.css | 81 ++++++++++++++++++++++++++++++++----- 2 files changed, 117 insertions(+), 15 deletions(-) diff --git a/hackyourrepo-app/index.html b/hackyourrepo-app/index.html index efb6ec0d6..c17533242 100755 --- a/hackyourrepo-app/index.html +++ b/hackyourrepo-app/index.html @@ -22,20 +22,59 @@
    -

    Repository:SampleRepo1

    -

    Description:This repository is meant to be a sample

    -

    Fork:5

    -

    Update:2020-05-27 12:00:00

    +
    + + + + + + + + + + + + + + + + + +
    Repositories:SampleRepo1
    Description: Lorem ipsum dolor sit amet consectetur, adipisicing elit. Voluptatum, iure ipsum? Consequatur sequi esse veritatis in exercitationem quos repellat doloribus earum tempora cumque!
    Forks: 5
    Update: 2020-05-27 12:00:00
    +
    -
    Contributors
    +
    Contributors
    +
    + + isalga +
    9
    +
    +
    + + isalga +
    9
    +
    +
    diff --git a/hackyourrepo-app/style.css b/hackyourrepo-app/style.css index 5de78dd8f..37dc906c7 100755 --- a/hackyourrepo-app/style.css +++ b/hackyourrepo-app/style.css @@ -9,28 +9,91 @@ } #header { - border: 3px solid black; - height: 100px; + color: white; + height: 50px; + background-color: #3f51b5; + display: flex; + align-items: center; + padding: 20px; + +} +p { + margin-right: 30px; } .container { - margin: 0 10%; - margin-top: 20px; + width: 80%; + margin: 0 auto; + + } .bottom-box { - border: 3px solid red; + display: flex; flex-direction: row; - height: 400px; + height: auto; } #left-side { - border: 3px solid blue; + margin-top: 10px; width: 50%; + +} +.card { + margin-left: 5px; + margin-top: 5px; + box-shadow: + 0px 20px 30px 0px rgba(0, 0, 0, 0.05), + 0px 4px 4px 0 rgba(0, 0, 0, .15), + 1px 2px 2px 0 rgba(0, 0, 0, .2); + font-size: 3vmin; } +.card .col-right { + padding-left: 30px; + padding-right: 25px; +} +.col-left { + + padding: 5px 0 0 5px; +} #right-side { - border: 3px solid green; + width: 50%; -} \ No newline at end of file +} + +#contributor { + margin-top: 10px; + margin-left:0.4rem; + color: darkgray; + box-shadow: none; + padding-top: 1rem; + padding-left: 0.3rem; + border: 1px solid rgba(0, 0, 0, 0.12); + border-bottom: none; + height: 3em; +} +.small-card { + display: flex; + justify-content: flex-start; + align-items: center; + margin: 0.4rem; +} +img { + margin: 1rem; +} + +.userName { + margin-top: 1.3rem; +} + +.badge { + margin-left: auto; + background-color: #a9a9a9; + color: white; + border-radius: 4px; + margin-right: 1rem; + margin-top: 1.3rem; + padding: 0.1rem 0.8rem; +} From c6caf840aa454f6f1fa1963df5fa380920529a52 Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Fri, 18 Dec 2020 17:05:17 +0330 Subject: [PATCH 09/11] Hackyourrep midifications --- hackyourrepo-app/style.css | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hackyourrepo-app/style.css b/hackyourrepo-app/style.css index 37dc906c7..64627fdfd 100755 --- a/hackyourrepo-app/style.css +++ b/hackyourrepo-app/style.css @@ -47,7 +47,7 @@ p { 0px 20px 30px 0px rgba(0, 0, 0, 0.05), 0px 4px 4px 0 rgba(0, 0, 0, .15), 1px 2px 2px 0 rgba(0, 0, 0, .2); - font-size: 3vmin; + font-size: 2vmin; } .card .col-right { padding-left: 30px; @@ -84,9 +84,6 @@ img { margin: 1rem; } -.userName { - margin-top: 1.3rem; -} .badge { margin-left: auto; From 08d62cff5a25d70ac5b9ebaa79ceae85320f549a Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Sun, 20 Dec 2020 12:29:32 +0330 Subject: [PATCH 10/11] Folder name AmirHossein is added --- Week2/{ => AmirHossein}/LESSONPLAN.md | 0 Week2/{ => AmirHossein}/MAKEME.md | 0 Week2/{ => AmirHossein}/README.md | 0 Week2/{ => AmirHossein}/assets/week2.png | Bin .../traversy_async_crash/README.md | 0 .../traversy_async_crash/callbacks.js | 0 .../traversy_async_crash/index.html | 0 .../traversy_async_crash/promises.js | 0 Week3/{ => AmirHossein}/LESSONPLAN.md | 0 Week3/{ => AmirHossein}/MAKEME.md | 0 Week3/{ => AmirHossein}/README.md | 0 .../assets/JavaScript3_classes.png | Bin Week3/{ => AmirHossein}/traversy_fetch_api/app.js | 0 .../{ => AmirHossein}/traversy_fetch_api/index.html | 0 .../{ => AmirHossein}/traversy_fetch_api/sample.txt | 0 .../{ => AmirHossein}/traversy_fetch_api/users.json | 0 .../traversy_oop_crash/1_basics_literals.js | 0 .../traversy_oop_crash/2_constructor.js | 0 .../traversy_oop_crash/3_prototypes.js | 0 .../traversy_oop_crash/4_inheritance.js | 0 .../traversy_oop_crash/5_object_create.js | 0 .../traversy_oop_crash/6_classes.js | 0 .../traversy_oop_crash/7_subclasses.js | 0 .../{ => AmirHossein}/traversy_oop_crash/README.md | 0 .../traversy_oop_crash/assets/2_constructor.png | Bin .../traversy_oop_crash/assets/3_prototypes.png | Bin .../traversy_oop_crash/assets/4_inheritance.png | Bin .../traversy_oop_crash/assets/6_classes.png | Bin .../traversy_oop_crash/assets/7_subclasses.png | Bin .../traversy_oop_crash/assets/function_proto.png | Bin .../traversy_oop_crash/index-all.html | 0 .../traversy_oop_crash/index-all.js | 0 .../{ => AmirHossein}/traversy_oop_crash/index.html | 0 33 files changed, 0 insertions(+), 0 deletions(-) rename Week2/{ => AmirHossein}/LESSONPLAN.md (100%) rename Week2/{ => AmirHossein}/MAKEME.md (100%) rename Week2/{ => AmirHossein}/README.md (100%) rename Week2/{ => AmirHossein}/assets/week2.png (100%) mode change 100755 => 100644 rename Week2/{ => AmirHossein}/traversy_async_crash/README.md (100%) rename Week2/{ => AmirHossein}/traversy_async_crash/callbacks.js (100%) rename Week2/{ => AmirHossein}/traversy_async_crash/index.html (100%) rename Week2/{ => AmirHossein}/traversy_async_crash/promises.js (100%) rename Week3/{ => AmirHossein}/LESSONPLAN.md (100%) rename Week3/{ => AmirHossein}/MAKEME.md (100%) rename Week3/{ => AmirHossein}/README.md (100%) rename Week3/{ => AmirHossein}/assets/JavaScript3_classes.png (100%) rename Week3/{ => AmirHossein}/traversy_fetch_api/app.js (100%) rename Week3/{ => AmirHossein}/traversy_fetch_api/index.html (100%) rename Week3/{ => AmirHossein}/traversy_fetch_api/sample.txt (100%) rename Week3/{ => AmirHossein}/traversy_fetch_api/users.json (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/1_basics_literals.js (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/2_constructor.js (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/3_prototypes.js (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/4_inheritance.js (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/5_object_create.js (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/6_classes.js (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/7_subclasses.js (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/README.md (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/assets/2_constructor.png (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/assets/3_prototypes.png (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/assets/4_inheritance.png (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/assets/6_classes.png (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/assets/7_subclasses.png (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/assets/function_proto.png (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/index-all.html (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/index-all.js (100%) rename Week3/{ => AmirHossein}/traversy_oop_crash/index.html (100%) diff --git a/Week2/LESSONPLAN.md b/Week2/AmirHossein/LESSONPLAN.md similarity index 100% rename from Week2/LESSONPLAN.md rename to Week2/AmirHossein/LESSONPLAN.md diff --git a/Week2/MAKEME.md b/Week2/AmirHossein/MAKEME.md similarity index 100% rename from Week2/MAKEME.md rename to Week2/AmirHossein/MAKEME.md diff --git a/Week2/README.md b/Week2/AmirHossein/README.md similarity index 100% rename from Week2/README.md rename to Week2/AmirHossein/README.md diff --git a/Week2/assets/week2.png b/Week2/AmirHossein/assets/week2.png old mode 100755 new mode 100644 similarity index 100% rename from Week2/assets/week2.png rename to Week2/AmirHossein/assets/week2.png diff --git a/Week2/traversy_async_crash/README.md b/Week2/AmirHossein/traversy_async_crash/README.md similarity index 100% rename from Week2/traversy_async_crash/README.md rename to Week2/AmirHossein/traversy_async_crash/README.md diff --git a/Week2/traversy_async_crash/callbacks.js b/Week2/AmirHossein/traversy_async_crash/callbacks.js similarity index 100% rename from Week2/traversy_async_crash/callbacks.js rename to Week2/AmirHossein/traversy_async_crash/callbacks.js diff --git a/Week2/traversy_async_crash/index.html b/Week2/AmirHossein/traversy_async_crash/index.html similarity index 100% rename from Week2/traversy_async_crash/index.html rename to Week2/AmirHossein/traversy_async_crash/index.html diff --git a/Week2/traversy_async_crash/promises.js b/Week2/AmirHossein/traversy_async_crash/promises.js similarity index 100% rename from Week2/traversy_async_crash/promises.js rename to Week2/AmirHossein/traversy_async_crash/promises.js diff --git a/Week3/LESSONPLAN.md b/Week3/AmirHossein/LESSONPLAN.md similarity index 100% rename from Week3/LESSONPLAN.md rename to Week3/AmirHossein/LESSONPLAN.md diff --git a/Week3/MAKEME.md b/Week3/AmirHossein/MAKEME.md similarity index 100% rename from Week3/MAKEME.md rename to Week3/AmirHossein/MAKEME.md diff --git a/Week3/README.md b/Week3/AmirHossein/README.md similarity index 100% rename from Week3/README.md rename to Week3/AmirHossein/README.md diff --git a/Week3/assets/JavaScript3_classes.png b/Week3/AmirHossein/assets/JavaScript3_classes.png similarity index 100% rename from Week3/assets/JavaScript3_classes.png rename to Week3/AmirHossein/assets/JavaScript3_classes.png diff --git a/Week3/traversy_fetch_api/app.js b/Week3/AmirHossein/traversy_fetch_api/app.js similarity index 100% rename from Week3/traversy_fetch_api/app.js rename to Week3/AmirHossein/traversy_fetch_api/app.js diff --git a/Week3/traversy_fetch_api/index.html b/Week3/AmirHossein/traversy_fetch_api/index.html similarity index 100% rename from Week3/traversy_fetch_api/index.html rename to Week3/AmirHossein/traversy_fetch_api/index.html diff --git a/Week3/traversy_fetch_api/sample.txt b/Week3/AmirHossein/traversy_fetch_api/sample.txt similarity index 100% rename from Week3/traversy_fetch_api/sample.txt rename to Week3/AmirHossein/traversy_fetch_api/sample.txt diff --git a/Week3/traversy_fetch_api/users.json b/Week3/AmirHossein/traversy_fetch_api/users.json similarity index 100% rename from Week3/traversy_fetch_api/users.json rename to Week3/AmirHossein/traversy_fetch_api/users.json diff --git a/Week3/traversy_oop_crash/1_basics_literals.js b/Week3/AmirHossein/traversy_oop_crash/1_basics_literals.js similarity index 100% rename from Week3/traversy_oop_crash/1_basics_literals.js rename to Week3/AmirHossein/traversy_oop_crash/1_basics_literals.js diff --git a/Week3/traversy_oop_crash/2_constructor.js b/Week3/AmirHossein/traversy_oop_crash/2_constructor.js similarity index 100% rename from Week3/traversy_oop_crash/2_constructor.js rename to Week3/AmirHossein/traversy_oop_crash/2_constructor.js diff --git a/Week3/traversy_oop_crash/3_prototypes.js b/Week3/AmirHossein/traversy_oop_crash/3_prototypes.js similarity index 100% rename from Week3/traversy_oop_crash/3_prototypes.js rename to Week3/AmirHossein/traversy_oop_crash/3_prototypes.js diff --git a/Week3/traversy_oop_crash/4_inheritance.js b/Week3/AmirHossein/traversy_oop_crash/4_inheritance.js similarity index 100% rename from Week3/traversy_oop_crash/4_inheritance.js rename to Week3/AmirHossein/traversy_oop_crash/4_inheritance.js diff --git a/Week3/traversy_oop_crash/5_object_create.js b/Week3/AmirHossein/traversy_oop_crash/5_object_create.js similarity index 100% rename from Week3/traversy_oop_crash/5_object_create.js rename to Week3/AmirHossein/traversy_oop_crash/5_object_create.js diff --git a/Week3/traversy_oop_crash/6_classes.js b/Week3/AmirHossein/traversy_oop_crash/6_classes.js similarity index 100% rename from Week3/traversy_oop_crash/6_classes.js rename to Week3/AmirHossein/traversy_oop_crash/6_classes.js diff --git a/Week3/traversy_oop_crash/7_subclasses.js b/Week3/AmirHossein/traversy_oop_crash/7_subclasses.js similarity index 100% rename from Week3/traversy_oop_crash/7_subclasses.js rename to Week3/AmirHossein/traversy_oop_crash/7_subclasses.js diff --git a/Week3/traversy_oop_crash/README.md b/Week3/AmirHossein/traversy_oop_crash/README.md similarity index 100% rename from Week3/traversy_oop_crash/README.md rename to Week3/AmirHossein/traversy_oop_crash/README.md diff --git a/Week3/traversy_oop_crash/assets/2_constructor.png b/Week3/AmirHossein/traversy_oop_crash/assets/2_constructor.png similarity index 100% rename from Week3/traversy_oop_crash/assets/2_constructor.png rename to Week3/AmirHossein/traversy_oop_crash/assets/2_constructor.png diff --git a/Week3/traversy_oop_crash/assets/3_prototypes.png b/Week3/AmirHossein/traversy_oop_crash/assets/3_prototypes.png similarity index 100% rename from Week3/traversy_oop_crash/assets/3_prototypes.png rename to Week3/AmirHossein/traversy_oop_crash/assets/3_prototypes.png diff --git a/Week3/traversy_oop_crash/assets/4_inheritance.png b/Week3/AmirHossein/traversy_oop_crash/assets/4_inheritance.png similarity index 100% rename from Week3/traversy_oop_crash/assets/4_inheritance.png rename to Week3/AmirHossein/traversy_oop_crash/assets/4_inheritance.png diff --git a/Week3/traversy_oop_crash/assets/6_classes.png b/Week3/AmirHossein/traversy_oop_crash/assets/6_classes.png similarity index 100% rename from Week3/traversy_oop_crash/assets/6_classes.png rename to Week3/AmirHossein/traversy_oop_crash/assets/6_classes.png diff --git a/Week3/traversy_oop_crash/assets/7_subclasses.png b/Week3/AmirHossein/traversy_oop_crash/assets/7_subclasses.png similarity index 100% rename from Week3/traversy_oop_crash/assets/7_subclasses.png rename to Week3/AmirHossein/traversy_oop_crash/assets/7_subclasses.png diff --git a/Week3/traversy_oop_crash/assets/function_proto.png b/Week3/AmirHossein/traversy_oop_crash/assets/function_proto.png similarity index 100% rename from Week3/traversy_oop_crash/assets/function_proto.png rename to Week3/AmirHossein/traversy_oop_crash/assets/function_proto.png diff --git a/Week3/traversy_oop_crash/index-all.html b/Week3/AmirHossein/traversy_oop_crash/index-all.html similarity index 100% rename from Week3/traversy_oop_crash/index-all.html rename to Week3/AmirHossein/traversy_oop_crash/index-all.html diff --git a/Week3/traversy_oop_crash/index-all.js b/Week3/AmirHossein/traversy_oop_crash/index-all.js similarity index 100% rename from Week3/traversy_oop_crash/index-all.js rename to Week3/AmirHossein/traversy_oop_crash/index-all.js diff --git a/Week3/traversy_oop_crash/index.html b/Week3/AmirHossein/traversy_oop_crash/index.html similarity index 100% rename from Week3/traversy_oop_crash/index.html rename to Week3/AmirHossein/traversy_oop_crash/index.html From 49647bc99b428209d046f48b31a9ebb0967addae Mon Sep 17 00:00:00 2001 From: Amirhossein Date: Sun, 20 Dec 2020 16:32:55 +0330 Subject: [PATCH 11/11] Ex1 as aded - some bugs need to be solved --- .../AmirHossein/homework/js-exercises/johnWho.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Week2/AmirHossein/homework/js-exercises/johnWho.js diff --git a/Week2/AmirHossein/homework/js-exercises/johnWho.js b/Week2/AmirHossein/homework/js-exercises/johnWho.js new file mode 100644 index 000000000..a99b02cf4 --- /dev/null +++ b/Week2/AmirHossein/homework/js-exercises/johnWho.js @@ -0,0 +1,16 @@ +const getAnonName = (firstName) => { + return new Promise((resolve, reject) => { + const fullName = `${firstName} Doe` + resolve(fullName) + console.log(fullName) + + + + reject(new Error("You didn't pass in a first name!")) + + }) + + +}; + +getAnonName() \ No newline at end of file