From 8e815db85cf82dae0fc470109eace8e30d3d232d Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Mon, 16 Apr 2018 14:17:05 +0100 Subject: [PATCH] Add different colour for passive vots Remove a semicolon from python script Switch to using bootstrap background colours Refactor index script --- bip100-json.py | 2 +- web/bip100.css | 13 ---- web/index.html | 196 ++++++++++++++++++++++++------------------------- 3 files changed, 96 insertions(+), 115 deletions(-) diff --git a/bip100-json.py b/bip100-json.py index 689b2d7..0ace7fd 100755 --- a/bip100-json.py +++ b/bip100-json.py @@ -33,7 +33,7 @@ def get_coinbase_str(block): except JSONRPCException as e: # This triggers if -txindex is not set in bitcoin.conf return "UNAVAILABLE" - coinbase = tx["vin"][0]["coinbase"]; + coinbase = tx["vin"][0]["coinbase"] return bytes.fromhex(coinbase).decode("utf-8", "ignore") def get_block_info(block): diff --git a/web/bip100.css b/web/bip100.css index e5b3e4d..1e34227 100644 --- a/web/bip100.css +++ b/web/bip100.css @@ -25,16 +25,3 @@ table.votetable td a { bottom: 0; text-decoration: none; } - -.vote-notfound { - background-color : darkgray; -} -.vote-keepcurrent { - background-color : rgb(2, 117, 216); -} -.vote-up { - background-color : rgb(92, 184, 92); -} -.vote-down { - background-color : rgb(240, 173, 78); -} diff --git a/web/index.html b/web/index.html index c130b3a..33ecb20 100644 --- a/web/index.html +++ b/web/index.html @@ -24,15 +24,14 @@