From 9220f52658224aa266ea2168acbb64029ec0715e Mon Sep 17 00:00:00 2001 From: Salim Date: Mon, 22 May 2017 12:20:50 +0300 Subject: [PATCH 01/22] Step1 --- Base1/Step_1.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Base1/Step_1.html b/Base1/Step_1.html index de81630..8f500b7 100644 --- a/Base1/Step_1.html +++ b/Base1/Step_1.html @@ -6,4 +6,8 @@ + From e57b5f93076a00817dfc3f87c7d9793868ae2f88 Mon Sep 17 00:00:00 2001 From: Salim Date: Mon, 22 May 2017 12:42:41 +0300 Subject: [PATCH 02/22] Step2 --- Base1/Step_2.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Base1/Step_2.html b/Base1/Step_2.html index a214720..5b14eff 100644 --- a/Base1/Step_2.html +++ b/Base1/Step_2.html @@ -5,5 +5,16 @@ + + From 5e3ba5cf46418c1f5d6bfd2fa91acab744eb7a2b Mon Sep 17 00:00:00 2001 From: Salim Date: Mon, 22 May 2017 12:57:38 +0300 Subject: [PATCH 03/22] step 3 --- Base1/Step_3.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Base1/Step_3.html b/Base1/Step_3.html index 20b2a19..855d77b 100644 --- a/Base1/Step_3.html +++ b/Base1/Step_3.html @@ -5,5 +5,9 @@ + From 330823ee636ddac7bc3ddf63490660557d00814f Mon Sep 17 00:00:00 2001 From: Salim Date: Wed, 21 Jun 2017 14:20:43 +0300 Subject: [PATCH 04/22] hi --- Base1/Step_3.html | 3 ++- Base1/Step_4.html | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Base1/Step_3.html b/Base1/Step_3.html index 855d77b..644cb75 100644 --- a/Base1/Step_3.html +++ b/Base1/Step_3.html @@ -6,8 +6,9 @@ diff --git a/Base1/Step_4.html b/Base1/Step_4.html index 12c8942..90f29dd 100644 --- a/Base1/Step_4.html +++ b/Base1/Step_4.html @@ -11,5 +11,12 @@ + From cb74c6458cda472bb4ee4af245eac4cd4122a6fc Mon Sep 17 00:00:00 2001 From: Salim Date: Wed, 21 Jun 2017 14:23:32 +0300 Subject: [PATCH 05/22] hello --- Base1/Step_1.html | 2 ++ Base1/Step_3.html | 2 ++ Base1/Step_4.html | 1 + 3 files changed, 5 insertions(+) diff --git a/Base1/Step_1.html b/Base1/Step_1.html index 8f500b7..eee2ace 100644 --- a/Base1/Step_1.html +++ b/Base1/Step_1.html @@ -7,7 +7,9 @@ diff --git a/Base1/Step_3.html b/Base1/Step_3.html index 644cb75..7f924de 100644 --- a/Base1/Step_3.html +++ b/Base1/Step_3.html @@ -6,6 +6,8 @@ diff --git a/Base1/Step_3.html b/Base1/Step_3.html index 7f924de..fd7c5c1 100644 --- a/Base1/Step_3.html +++ b/Base1/Step_3.html @@ -8,8 +8,8 @@ diff --git a/Base1/Step_4.html b/Base1/Step_4.html index 241d565..9dabb47 100644 --- a/Base1/Step_4.html +++ b/Base1/Step_4.html @@ -9,15 +9,20 @@ - + + var gettings = function() { + let name = document.getElementById("name").value; + let surname = document.getElementById("surname").value; + let city = document.getElementById("city").value; + alert("Hello, "+name+" "+surname+", you are from "+city); + } + + + + From 1ad39f4d8eecec8ea268a3138e29ba573b387751 Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 00:19:27 +0300 Subject: [PATCH 07/22] done --- Base1/Step_5.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Base1/Step_5.html b/Base1/Step_5.html index 60479f2..19da670 100644 --- a/Base1/Step_5.html +++ b/Base1/Step_5.html @@ -8,7 +8,15 @@


- +
+ + From 413a1bd69ffaf353a3c416269c23bd3c8ef70420 Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 00:33:39 +0300 Subject: [PATCH 08/22] done --- Base1/Step_6.html | 3 ++- Base1/Step_6.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Base1/Step_6.js diff --git a/Base1/Step_6.html b/Base1/Step_6.html index b019dcc..4591465 100644 --- a/Base1/Step_6.html +++ b/Base1/Step_6.html @@ -8,7 +8,8 @@


- +
+ diff --git a/Base1/Step_6.js b/Base1/Step_6.js new file mode 100644 index 0000000..4075519 --- /dev/null +++ b/Base1/Step_6.js @@ -0,0 +1,5 @@ + var gettings = function() { + var firstnumb = parseInt(document.getElementById("first_number").value); + var secondnumb = parseInt(document.getElementById("second_number").value); + var result = parseInt(firstnumb%secondnumb) + alert("the result is "+ result)} \ No newline at end of file From 37fdbbf1561d39ea8aee8ffbef5196a381f6e259 Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 00:52:32 +0300 Subject: [PATCH 09/22] done --- Base1/Step_7.html | 3 ++- Base1/Step_7.js | 10 ++++++++++ Base1/Step_8.html | 14 +++++++++++++- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 Base1/Step_7.js diff --git a/Base1/Step_7.html b/Base1/Step_7.html index 05ff583..bdacf68 100644 --- a/Base1/Step_7.html +++ b/Base1/Step_7.html @@ -8,7 +8,8 @@


- +
+ diff --git a/Base1/Step_7.js b/Base1/Step_7.js new file mode 100644 index 0000000..50a328e --- /dev/null +++ b/Base1/Step_7.js @@ -0,0 +1,10 @@ + + + + +var gettings = function() { + let shoe_size = document.getElementById("shoe_size").value; + let year = document.getElementById("year").value; + var showm = ((((shoe_size*2)+5)*50)-year)+1766; + + alert("Result is: "+showm)} \ No newline at end of file diff --git a/Base1/Step_8.html b/Base1/Step_8.html index 75804e8..dcc3a4d 100644 --- a/Base1/Step_8.html +++ b/Base1/Step_8.html @@ -7,7 +7,19 @@

- +
+ From 4fad42586a78f047b7489e4f6026d62592ab0b26 Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 12:00:57 +0300 Subject: [PATCH 10/22] done step 3 in base 2 --- Base2/step 1/index.html | 11 +++++++++++ Base2/step 2/index.html | 6 ++++++ Base2/step 3/index.html | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/Base2/step 1/index.html b/Base2/step 1/index.html index 5ad09a6..655dad6 100644 --- a/Base2/step 1/index.html +++ b/Base2/step 1/index.html @@ -6,5 +6,16 @@ + + diff --git a/Base2/step 2/index.html b/Base2/step 2/index.html index cf25790..ba9e241 100644 --- a/Base2/step 2/index.html +++ b/Base2/step 2/index.html @@ -8,5 +8,11 @@
+ diff --git a/Base2/step 3/index.html b/Base2/step 3/index.html index 308c0b8..f836a88 100644 --- a/Base2/step 3/index.html +++ b/Base2/step 3/index.html @@ -8,5 +8,14 @@
+
+
+ From 34a27a80872702b7f57717ffcc5e9cbd8a7b1c77 Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 13:10:00 +0300 Subject: [PATCH 11/22] done --- Base2/step 4/index.html | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Base2/step 4/index.html b/Base2/step 4/index.html index f5086df..0ba8cc7 100644 --- a/Base2/step 4/index.html +++ b/Base2/step 4/index.html @@ -1,15 +1,28 @@ - + Step 4 -
- - - - + + + + +
+ - + \ No newline at end of file From 7433fc66a881fd5d4c61dcf880a3e49f5ff541a8 Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 14:11:50 +0300 Subject: [PATCH 12/22] done --- Base2/step 5/index.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Base2/step 5/index.html b/Base2/step 5/index.html index fe14eb9..5cebc4a 100644 --- a/Base2/step 5/index.html +++ b/Base2/step 5/index.html @@ -5,12 +5,31 @@ Step 5 -
+
+ From 02e6d23e04b7e0b1451569d1adee052e4f266faa Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 14:14:57 +0300 Subject: [PATCH 13/22] done --- Base2/step 6/index.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Base2/step 6/index.html b/Base2/step 6/index.html index 2eecf4f..adb76cc 100644 --- a/Base2/step 6/index.html +++ b/Base2/step 6/index.html @@ -4,11 +4,30 @@ Step 6 - + + From 87906e69b4320b340d3fa5b7453758a48ac4e8ce Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 15:35:52 +0300 Subject: [PATCH 14/22] done --- Base3/step 1/index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Base3/step 1/index.html b/Base3/step 1/index.html index eb4909d..b20cc99 100644 --- a/Base3/step 1/index.html +++ b/Base3/step 1/index.html @@ -7,4 +7,11 @@ + + From 163a01b30f03ccc7f7b1a60ce98c3d3ae2c8894b Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 16:09:09 +0300 Subject: [PATCH 15/22] done --- Base3/step 2/index.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Base3/step 2/index.html b/Base3/step 2/index.html index aeff7fa..3db10e9 100644 --- a/Base3/step 2/index.html +++ b/Base3/step 2/index.html @@ -8,7 +8,20 @@ Show Hide
-

Joseph Dacre Carlyle (Carlisle, 4 juin 1758 - Newcastle upon Tyne, 12 avril 1804) est un orientaliste anglais.Après ses études à l'université de Cambridge, il y devint professeur d'arabe. En 1799, il fut attaché par le gouvernement britannique à l'ambassade de Lord Elgin dans l'Empire ottoman. Il était chargé d'explorer les bibliothèques de la région (principalement celle du Sérail) pour y découvrir (et y acquérir) des manuscrits inédits de textes antiques. Il se rendit aussi en Égypte, en Terre sainte et au mont Athos. Sa mission fut, de son point de vue, un échec. Il acheta quelques centaines d'ouvrages, principalement dans les bazars de Constantinople, mais aucun ne contenait de texte inédit. Cependant, la façon dont certains manuscrits avaient été acquis, principalement ceux du patriarche de Jérusalem Anthème Ier, ainsi que la querelle entamée sur la plaine de Troie entre Carlyle et un autre professeur de Cambridge, Edward Daniel Clarke, allaient être utilisées, après la mort de Carlyle, contre Lord Elgin, dans les controverses autour de l'acquisition des « marbres d'Elgin ».De retour en Grande-Bretagne à l'automne 1801, Joseph Dacre Carlyle entama une traduction en arabe de la Bible. Sa mort en avril 1804 coupa court à ce travail.

+

Joseph Dacre Carlyle (Carlisle, 4 juin 1758 - Newcastle upon Tyne, 12 avril 1804) est un orientaliste anglais.Après ses études à l'université de Cambridge, il y devint professeur d'arabe. En 1799, il fut attaché par le gouvernement britannique à l'ambassade de Lord Elgin dans l'Empire ottoman. Il était chargé d'explorer les bibliothèques de la région (principalement celle du Sérail) pour y découvrir (et y acquérir) des manuscrits inédits de textes antiques. Il se rendit aussi en Égypte, en Terre sainte et au mont Athos. Sa mission fut, de son point de vue, un échec. Il acheta quelques centaines d'ouvrages, principalement dans les bazars de Constantinople, mais aucun ne contenait de texte inédit. Cependant, la façon dont certains manuscrits avaient été acquis, principalement ceux du patriarche de Jérusalem Anthème Ier, ainsi que la querelle entamée sur la plaine de Troie entre Carlyle et un autre professeur de Cambridge, Edward Daniel Clarke, allaient être utilisées, après la mort de Carlyle, contre Lord Elgin, dans les controverses autour de l'acquisition des « marbres d'Elgin ».De retour en Grande-Bretagne à l'automne 1801, Joseph Dacre Carlyle entama une traduction en arabe de la Bible. Sa mort en avril 1804 coupa court à ce travail.

+ From 595d4e82783912f6af89af1358f570dcb634e810 Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 16:16:43 +0300 Subject: [PATCH 16/22] done --- Base3/step 3/index.html | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/Base3/step 3/index.html b/Base3/step 3/index.html index 0db3888..f2e9f4f 100644 --- a/Base3/step 3/index.html +++ b/Base3/step 3/index.html @@ -7,12 +7,29 @@
-

Tara, originellement nommée Antarctica puis Seamaster, est une goélette française destinée à la fois à l'exploration et à la défense de l'environnement. Dans le cadre de l'Année polaire internationale, en 2007-2008, ce voilier est utilisé en Arctique par l'expédition Tara Arctic dans le but de faire des relevés permettant de mieux comprendre les changements climatiques qui s'opèrent en Arctique. En 2009, dans le cadre de l'expédition Tara Oceans, Tara parcourt les mers et les océans dans une circumnavigation de trois ans afin d'étudier le piégeage des molécules de gaz carbonique (CO2) par les micro-organismes marins comme le plancton. En avril 2016, une nouvelle expédition est montée Tara Pacific dont l'objectif est de comprendre le corail, menacé par des facteurs humains et climatiques1.

+

Tara, originellement nommée Antarctica puis Seamaster, est une goélette française destinée à la fois à l'exploration et à la défense de l'environnement. Dans le cadre de l'Année polaire internationale, en 2007-2008, ce voilier est utilisé en Arctique par l'expédition Tara Arctic dans le but de faire des relevés permettant de mieux comprendre les changements climatiques qui s'opèrent en Arctique. En 2009, dans le cadre de l'expédition Tara Oceans, Tara parcourt les mers et les océans dans une circumnavigation de trois ans afin d'étudier le piégeage des molécules de gaz carbonique (CO2) par les micro-organismes marins comme le plancton. En avril 2016, une nouvelle expédition est montée Tara Pacific dont l'objectif est de comprendre le corail, menacé par des facteurs humains et climatiques1.

-
-
-
+
+
+
+ From 3a05998f5822a88db3277dc1fa0d39f6025c5dbb Mon Sep 17 00:00:00 2001 From: Salim Date: Thu, 22 Jun 2017 16:35:53 +0300 Subject: [PATCH 17/22] doen --- Base3/step 4/index.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Base3/step 4/index.html b/Base3/step 4/index.html index cab276b..d96f3e1 100644 --- a/Base3/step 4/index.html +++ b/Base3/step 4/index.html @@ -8,7 +8,22 @@
- +
+ From d44a811c4b5ce7dd259012c91ec031fd2e31114a Mon Sep 17 00:00:00 2001 From: Salim Date: Fri, 23 Jun 2017 15:22:06 +0300 Subject: [PATCH 18/22] second commit --- .gitignore | 2 + Base4/questions.js | 96 ++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 90 insertions(+), 8 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e69e07 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.idea + diff --git a/Base4/questions.js b/Base4/questions.js index fc57106..518b255 100644 --- a/Base4/questions.js +++ b/Base4/questions.js @@ -1,101 +1,181 @@ var stringSize = function (text) { - + return text.length } var replaceCharacterE = function (text) { - +text = text.replace('e', ' ') + return text } -var concatString = function (text1, text2) { + +var concatString = function (text1, text2) { + var res = text1.concat(text2); + return res } var showChar5 = function (text) { + var res = text.charAt(4); + return res; } var showChar9 = function (text) { - + var res = text.substring(0,9); + return res; } var toCapitals = function (text) { + var res = text.toUpperCase(); + return res; + + } var toLowerCase = function (text) { + var res = text.toLowerCase(); + return res; + } var removeSpaces = function (text) { + var res = text.trim(); + return res; } var IsString = function (text) { +if ( typeof text === "string"){ + return true +} +else{ + return false +} } var getExtension = function (text) { + return text.split('.').pop(); } var countSpaces = function (text) { +var spaceCount = (text.split(" ").length - 1); +return spaceCount } var InverseString = function (text) { + + function reverse(text){ + return text.split("").reverse().join(""); } +return reverse(text); + +} + + var power = function (x, y) { + var r = Math.pow(x, y); + return r ; } var absoluteValue = function (num) { + var r = Math.abs(num); + return r ; } var absoluteValueArray = function (array) { + for(var i=0;i Date: Tue, 4 Jul 2017 14:19:09 +0300 Subject: [PATCH 19/22] All the way up --- Base6/Base6.json | 1 + Base6/index.js | 137 ++++++++++++++++++++++++++++++++++++++++++++--- Base6/test.js | 9 ++++ 3 files changed, 141 insertions(+), 6 deletions(-) create mode 100644 Base6/Base6.json create mode 100644 Base6/test.js diff --git a/Base6/Base6.json b/Base6/Base6.json new file mode 100644 index 0000000..3b414d5 --- /dev/null +++ b/Base6/Base6.json @@ -0,0 +1 @@ +[{"task":"task1","status":"done"},{"task":"task2","status":"undone"},{"task":"task3","status":"undone"},{"task":"bab34","status":"done"}] \ No newline at end of file diff --git a/Base6/index.js b/Base6/index.js index 993f436..b562be4 100644 --- a/Base6/index.js +++ b/Base6/index.js @@ -1,3 +1,5 @@ +var fs = require('fs'); + /** * startApp - Starts the applucation @@ -5,12 +7,16 @@ * @param {string} name the name of the app * @returns {void} */ + +var Tasklist =[]; + function startApp(name){ process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', onDataReceived); console.log("Welcome to "+name+"'s application!") console.log("--------------------") + } @@ -21,11 +27,43 @@ function startApp(name){ * @returns {void} */ function onDataReceived(text) { - if (text === 'quit\n') { + var input = text.replace("\n","").split(' ') + var firstPart = input[0]; + var secondPart = input[1]; + var thirdPart = input[2]; + //console.log("-------\n"+firstPart+"SSSSSSS\n--------") + if (firstPart === 'quit'|| firstPart === 'exit') { quit(); } - else if(text === 'hello\n'){ - hello(); + else if(firstPart === 'hello'){ + hello(secondPart); + } + else if(firstPart === 'help') { + help(); + + } + else if(firstPart === 'add') + { add(secondPart,thirdPart) + + } + else if(firstPart === 'list'){ + console.log(Tasklist) + } + else if (firstPart === 'remove'){ + remove(secondPart); + } + else if (firstPart === 'edit'){ + edit(secondPart,thirdPart); + + } + else if (firstPart === 'save'){ + save(secondPart); + } + else if (firstPart === 'load'){ + load(secondPart) + } + else if (firstPart === 'config'){ + config(secondPart,thirdPart) } else{ unknownCommand(text); @@ -49,8 +87,20 @@ function unknownCommand(c){ * * @returns {void} */ -function hello(){ - console.log('hello!') +function hello(x){ + if(x){ + console.log('hello '+x.trim()+' !');} + else{ + console.log('hello!'); + } +} +/** + * help - lists all the possible commands + * + * @returns {void} + */ +function help(){ +console.log('hello\nquit or exit\nhelp\n') } @@ -64,5 +114,80 @@ function quit(){ process.exit(); } +/** + * add - allows to add a task + * + * @returns {void} + */ +function add(secondPart,thirdPart){ + var text = {task:secondPart,status:thirdPart } + console.log(text) + Tasklist.push(text) + console.log(Tasklist) +} +/** + * remove - allows to remove the last task + * + * @returns {void} + */ +function remove(x){ + if (x Date: Tue, 4 Jul 2017 16:36:20 +0300 Subject: [PATCH 20/22] all the way up --- Base6/bak | 1 + Base6/base6.json | 1 + Base6/index.js | 38 +++++++++++++++++++++++++++++--------- Base6/tak | 1 + 4 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 Base6/bak create mode 100644 Base6/base6.json create mode 100644 Base6/tak diff --git a/Base6/bak b/Base6/bak new file mode 100644 index 0000000..a5e26c0 --- /dev/null +++ b/Base6/bak @@ -0,0 +1 @@ +[{"task":"dfvdf","status":"done"},{"task":"lilo","status":"done"},{"task":"sdc","status":"done"}] \ No newline at end of file diff --git a/Base6/base6.json b/Base6/base6.json new file mode 100644 index 0000000..36fadb4 --- /dev/null +++ b/Base6/base6.json @@ -0,0 +1 @@ +[{"task":"dvsdr","status":"done"},{"task":"ddf","status":"undone"}] \ No newline at end of file diff --git a/Base6/index.js b/Base6/index.js index b562be4..a9a0871 100644 --- a/Base6/index.js +++ b/Base6/index.js @@ -159,18 +159,40 @@ else { console.log(Tasklist)} } -function save(){ +function getFilename(name){ + var filename; + + if(!process.argv[2]){ + if(name){ + filename = name + } + else{ + filename = "base6.json" + } + }else{ + filename = process.argv[2] + } + + return filename +} + +function save(name){ + var filename = getFilename(name) var json = JSON.stringify(Tasklist); - console.log("::::::SAVE:::::",json) - fs.writeFile('Base6.json', json, 'utf8', function writeFileCallback(err, data){ + //console.log("::::::SAVE:::::",json) + fs.writeFile(filename, json, 'utf8', function writeFileCallback(err, data){ if (err){ console.log(err); } }) + } -function load(){ - fs.readFile('Base6.json', 'utf8', function readFileCallback(err, data){ + +function load(name){ + var filename = getFilename(name) + + fs.readFile(filename, 'utf8', function readFileCallback(err, data){ if (err){ console.log(err); } else { @@ -180,11 +202,9 @@ function load(){ }) } -function config(secondPart,thirdPart){ - var config1 = process.argv[secondPart]=thirdPart - console.log(Tasklist) -} + + diff --git a/Base6/tak b/Base6/tak new file mode 100644 index 0000000..a5e26c0 --- /dev/null +++ b/Base6/tak @@ -0,0 +1 @@ +[{"task":"dfvdf","status":"done"},{"task":"lilo","status":"done"},{"task":"sdc","status":"done"}] \ No newline at end of file From 3cff13b421cc6b5251da199fab81198cf1a8f5f2 Mon Sep 17 00:00:00 2001 From: Salim Date: Tue, 4 Jul 2017 17:18:24 +0300 Subject: [PATCH 21/22] --- Base6/base6.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Base6/base6.json b/Base6/base6.json index 36fadb4..0637a08 100644 --- a/Base6/base6.json +++ b/Base6/base6.json @@ -1 +1 @@ -[{"task":"dvsdr","status":"done"},{"task":"ddf","status":"undone"}] \ No newline at end of file +[] \ No newline at end of file From f1a1f22862b98cee753e6353a6d543265760dd49 Mon Sep 17 00:00:00 2001 From: Salim Date: Wed, 5 Jul 2017 12:17:22 +0300 Subject: [PATCH 22/22] Blah blah --- Base6/base6.json | 2 +- Base6/index.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Base6/base6.json b/Base6/base6.json index 0637a08..d41b6b9 100644 --- a/Base6/base6.json +++ b/Base6/base6.json @@ -1 +1 @@ -[] \ No newline at end of file +[{"task":"Task1","status":"Done"},{"task":"Task2","status":"UnDone"},{"task":"Task3","status":"done"}] \ No newline at end of file diff --git a/Base6/index.js b/Base6/index.js index a9a0871..4ec836b 100644 --- a/Base6/index.js +++ b/Base6/index.js @@ -62,9 +62,7 @@ function onDataReceived(text) { else if (firstPart === 'load'){ load(secondPart) } - else if (firstPart === 'config'){ - config(secondPart,thirdPart) - } + else{ unknownCommand(text); }