Commits

timjph committed b9d4e50

added colour coding of cut/increase in table - not sure I like it

  • Participants
  • Parent commits a900f25

Comments (0)

Files changed (2)

File jquery/src/cuts.html

 
       .darkrow, .darkrow TD, .darkrow TH
       {
-	color:blue
+	color:darkorange
       }
 	
-    </style>
+      .cutrow, .cutrow TD, .cutrow TH
+      {
+	color:brown
+      }
+	
+      .increaserow, .increaserow TD, .increaserow TH
+      {
+	color:red
+      }
+	
+  </style>
   </head>
   <body>
   <h1><a href="http://www.wheredoesmymoneygo.org/">Where Does My Money Go?</a> - <a href="http://www.wheredoesmymoneygo.org/cuts/">Visualising the Cuts</a></h1>

File jquery/src/cuts.js

         color = "20"; 
       }
       if (entry.gsx$use.$t.toLowerCase() == 'planned') {
-        color = "25";
+        color = "-17";
       }
       var newnode = {
         "id": i,
       if(entry.gsx$use.$t == 'PLANNED'){
         checked='checked';
         _newrow = $('<tr class="darkrow"></tr>');
+      }else if(entry.gsx$increaseorcut.$t.toLowerCase() == 'cut'){
+        _newrow = $('<tr class="cutrow"></tr>');
       }else{
-        _newrow = $('<tr></tr>');
+        _newrow = $('<tr class="increaserow"></tr>');
       }
       _newrow.append($('<td></td>').append('<input type="checkbox" name="' + entry.gsx$description.$t + '" number="' + entry.gsx$amountbn.$t + '" ' + checked + '/>'));
       _newrow.append($('<td></td>').append('' + entry.gsx$description.$t));