From 38ab5a4a505caee5ed6ef40b1b0a6d6a47936f3e Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Wed, 28 May 2014 13:00:44 +0300 Subject: Add button colors --- static/css/main.css | 7 +++++++ templates/home.html | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 static/css/main.css diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..62dea16 --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,7 @@ +.light-cell-btn { + margin: 2px; +} + +.light-cell-btn.active { + background-color: #0F340D; +} diff --git a/templates/home.html b/templates/home.html index dd5a702..9f48ad1 100644 --- a/templates/home.html +++ b/templates/home.html @@ -4,6 +4,7 @@ Light Loop Pi + @@ -12,14 +13,14 @@ var CHANNELS = 8; var LIGHTS = 8; - // _.templateSettings = { interpolate: /\{\{(.+?)\}\}/g }; - _.each(_.range(CHANNELS), function(i) { var row = $(_.template($('#light-row-template').text(), {i: i, lights: LIGHTS})); $('#light-container').append(row); }); }); +
@@ -29,7 +30,7 @@ -- cgit v1.3.1