diff --git a/hardware/neopixel/neopixel.html b/hardware/neopixel/neopixel.html
index a8454547..aa4745cd 100644
--- a/hardware/neopixel/neopixel.html
+++ b/hardware/neopixel/neopixel.html
@@ -19,14 +19,6 @@
in the string
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
mS
@@ -90,6 +90,20 @@
},
labelStyle: function() {
return this.name?"node_label_italic":"";
+ },
+ oneditprepare: function() {
+ var setstate = function () {
+ console.log($('#node-input-mode').val());
+ if ($('#node-input-mode').val().indexOf("shift") !== -1) {
+ $("#bgcol").hide();
+ $("#fgcol").hide();
+ } else {
+ $("#bgcol").show();
+ $("#fgcol").show();
+ }
+ };
+ $("#node-input-mode").change(function () { setstate(); });
+ setstate();
}
});
diff --git a/hardware/neopixel/package.json b/hardware/neopixel/package.json
index 5cb08a22..b9cb3b7f 100644
--- a/hardware/neopixel/package.json
+++ b/hardware/neopixel/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-pi-neopixel",
- "version" : "0.0.3",
+ "version" : "0.0.5",
"description" : "A Node-RED node to output to a neopixel (ws2812) string of LEDS from a Raspberry Pi.",
"dependencies" : {
},