選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

SimpleOutputUltimate.html 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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>A node that emits the inverted input value.<br/>
  48. The status indicator represents the output value.
  49. </p>
  50. <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>
  51. </script>