You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 line
1.8KB

  1. <script type="text/javascript">
  2. RED.nodes.registerType('SimpleOutputUltimate', {
  3. category: 'boolean logic ultimate',
  4. color: '#ff8080',
  5. defaults: {
  6. name: {
  7. value: "T/F"
  8. }
  9. },
  10. inputs: 1,
  11. outputs: 2,
  12. outputLabels: function (i) {
  13. var ret = "";
  14. switch (i) {
  15. case 0:
  16. return "True";
  17. break;
  18. case 1:
  19. return "False";
  20. break;
  21. default:
  22. break;
  23. }
  24. },
  25. icon: "font-awesome/fa-arrow-circle-o-right",
  26. label:
  27. function () {
  28. return this.name || "SimpleOutput";
  29. },
  30. paletteLabel: function () {
  31. return "SimpleOutputUltimate";
  32. }
  33. });
  34. </script>
  35. <script type="text/x-red" data-template-name="SimpleOutputUltimate">
  36. <div class="form-row">
  37. <label for="node-input-name"><i class="icon-tag"></i> Name</label>
  38. <input type="text" id="node-input-name" placeholder="Name">
  39. </div>
  40. </script>
  41. <script type="text/x-red" data-help-name="SimpleOutputUltimate">
  42. <p>
  43. <a href="https://www.paypal.me/techtoday" target="_blank"><img src='https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square' width='30%'></a>
  44. and
  45. <a href="http://eepurl.com/gJm095" target="_blank">Subscribe to my channel</a> for news about my nodes.
  46. </p>
  47. <p>This node replaces the input payload by sendind a message with payload TRUE on output 1 and FALSE on output 2.<br/>
  48. </p>
  49. <a href="https://www.paypal.me/techtoday" target="_blank"><img src='https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square' width='30%'></a>
  50. </script>