Skip to content

Commit cdcafba

Browse files
author
Dave Conway-Jones
committed
remove old x-red style for better highlighting
1 parent eb8bae6 commit cdcafba

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

hardware/blink1/77-blink1.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script type="text/x-red" data-template-name="blink1">
1+
<script type="text/html" data-template-name="blink1">
22
<div class="form-row">
33
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
44
<input type="text" id="node-input-name" placeholder="Name">
@@ -14,7 +14,7 @@
1414
</div>
1515
</script>
1616

17-
<script type="text/x-red" data-help-name="blink1">
17+
<script type="text/html" data-help-name="blink1">
1818
<p>ThingM Blink1 output node.</p>
1919
<p>Expects a <code>msg.payload</code> with either a three part csv string of
2020
<i>r,g,b</i> or a hex colour <i>#rrggbb</i></p>
@@ -38,7 +38,7 @@
3838
icon: "light.png",
3939
align: "right",
4040
label: function() {
41-
return this.name||"blink1 out";
41+
return this.name||"blink1";
4242
},
4343
labelStyle: function() {
4444
return this.name?"node_label_italic":"";
@@ -59,7 +59,7 @@
5959
});
6060
</script>
6161

62-
<script type="text/x-red" data-template-name="blink1 in">
62+
<script type="text/html" data-template-name="blink1 in">
6363
<div class="form-row">
6464
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
6565
<input type="text" id="node-input-name" placeholder="Name">
@@ -71,7 +71,7 @@
7171
</div>
7272
</script>
7373

74-
<script type="text/x-red" data-help-name="blink1 in">
74+
<script type="text/html" data-help-name="blink1 in">
7575
<p>ThingM Blink1 input node.</p>
7676
<p>Outputs the current RGB value as array <code>[r,g,b]</code> or "off" as string if RGB is 0,0,0 to <code>msg.payload</code>.</p>
7777
</script>

hardware/blink1/77-blink1.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function(RED) {
44
var Blink1 = require("node-blink1");
55
var blink1 = {};
66

7-
function Blink1OutNode(n) {
7+
function Blink1Node(n) {
88
RED.nodes.createNode(this,n);
99
this.serial = n.serial;
1010
if (!this.serial) { delete this.serial; }
@@ -83,7 +83,8 @@ module.exports = function(RED) {
8383
node.error("No Blink1 found (" + e + ")");
8484
}
8585
}
86-
RED.nodes.registerType("blink1",Blink1OutNode);
86+
RED.nodes.registerType("blink1",Blink1Node);
87+
8788

8889
function Blink1InNode(n) {
8990
RED.nodes.createNode(this,n);

0 commit comments

Comments
 (0)