瀏覽代碼

{finished - this was cool}

Jacqueline Joson 6 年之前
父節點
當前提交
c3f1527d63
共有 1 個檔案被更改,包括 14 行新增13 行删除
  1. 14
    13
      js/colors.js

+ 14
- 13
js/colors.js 查看文件

@@ -1,5 +1,5 @@
1
-var colorsArray : {
2
-    colors=[
1
+var colorsArray = {
2
+    colors : [
3 3
         {
4 4
             "name":"green",
5 5
             "red":"64",
@@ -13,11 +13,11 @@ var colorsArray : {
13 13
             "blue":"62"
14 14
         },
15 15
         {
16
-            name:"red",
17
-            red:"192",
18
-            green:"46",
19
-            blue:"35"
20
-        }
16
+            "name":"red",
17
+            "red":"192",
18
+            "green":"46",
19
+            "blue":"35"
20
+        },
21 21
         {
22 22
             "name":"blue",
23 23
             "red":"19",
@@ -25,9 +25,10 @@ var colorsArray : {
25 25
             "blue":"144",
26 26
         },
27 27
         {
28
-            "name"="orange",
29
-            "red"="253",
30
-            "green"="92",
31
-            "blue"="48"
32
-        },
33
-    ]
28
+            "name" : "orange",
29
+            "red" : "253",
30
+            "green" : "92",
31
+            "blue" : "48"
32
+        }
33
+     ]
34
+  }