您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

5 年前
5 年前
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <script type="text/javascript">
  2. RED.nodes.registerType('InvertUltimate',{
  3. category: 'boolean logic ultimate',
  4. color: '#ff8080',
  5. defaults: {
  6. name: {
  7. value: "Invert"
  8. }
  9. },
  10. inputs:1,
  11. outputs:1,
  12. icon: "swap.png",
  13. label:
  14. function() {
  15. return this.name||"Invert";
  16. },
  17. paletteLabel: function() {
  18. return "InvertUltimate";
  19. }
  20. });
  21. </script>
  22. <script type="text/x-red" data-template-name="InvertUltimate">
  23. <div class="form-row">
  24. <label for="node-input-name"><i class="icon-tag"></i> Name</label>
  25. <input type="text" id="node-input-name" placeholder="Name">
  26. </div>
  27. </script>
  28. <script type="text/x-red" data-help-name="InvertUltimate">
  29. <p>
  30. <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>
  31. and
  32. <a href="http://eepurl.com/gJm095" target="_blank">Subscribe to my channel</a> for news about my nodes.
  33. </p>
  34. <p>A node that emits the inverted input value.<br/>
  35. The status indicator represents the output value.
  36. </p>
  37. <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>
  38. </script>