From 94407a19bdccf74979d18a77974ae0d8afbdc118 Mon Sep 17 00:00:00 2001 From: Rex Date: Tue, 17 Aug 2021 01:29:29 -0400 Subject: [PATCH] colorscoded --- .idea/.gitignore | 3 +++ .idea/JSON-Lab-1.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/runConfigurations.xml | 10 ++++++++++ .idea/vcs.xml | 6 ++++++ js/colors.js | 25 ++++++++++++++----------- 7 files changed, 56 insertions(+), 11 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/JSON-Lab-1.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/runConfigurations.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/JSON-Lab-1.iml b/.idea/JSON-Lab-1.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/JSON-Lab-1.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..a5b9dac --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..797acea --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/js/colors.js b/js/colors.js index 6e4f350..63e0fd3 100644 --- a/js/colors.js +++ b/js/colors.js @@ -1,5 +1,6 @@ -var colorsArray : { - colors=[ +var colorsArray = { + colors : [ + //colorsArray '=' / colors ':' { "name":"green", "red":"64", @@ -13,11 +14,12 @@ var colorsArray : { "blue":"62" }, { - name:"red", - red:"192", - green:"46", - blue:"35" - } + "name":"red", + "red":"192", + "green"":"46", + "blue":"35" + //add missing "" and forgotten comma , + }, { "name":"blue", "red":"19", @@ -25,9 +27,10 @@ var colorsArray : { "blue":"144", }, { - "name"="orange", - "red"="253", - "green"="92", - "blue"="48" + "name":"orange", + "red":"253", + "green":"92", + "blue":"48" + //replaced '=' with ':' }, ]