nitro.js.htm 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html>
  3. <head><meta charset="utf-8" />
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta name="description" content="" />
  7. <meta name="author" content="Maxim Sokhatsky" />
  8. <title>NITRO.JS</title>
  9. <link rel="stylesheet" href="https://n2o.dev/blank.css?x=15" />
  10. <link rel="stylesheet" href="https://n2o.dev/zima.css?x=15" />
  11. <link rel="shortcut icon" type="image/x-icon" href="../img/favicon.ico" />
  12. <link rel="apple-touch-icon" sizes="180x180" href="../img/apple-touch-icon.png" />
  13. <link rel="icon" type="image/png" sizes="32x32" href="../img/favicon-32x32.png" />
  14. <link rel="icon" type="image/png" sizes="16x16" href="../img/favicon-16x16.png" />
  15. <link rel="manifest" href="../img/site.webmanifest" />
  16. </head>
  17. <body>
  18. <nav>
  19. <a href="https://n2o.dev">DEV</a>
  20. <a href="https://nitro.n2o.dev">NITRO</a>
  21. <a href="#" style="background:#ededed;">NITRO.JS</a>
  22. <div class="dropdown">
  23. <a onclick="drop()" class="dropbtn">EN</a>
  24. <div id="dropdown" class="dropdown-content">
  25. <a href="https://n2o.dev/deps/n2o/man/ua/nitro.js.htm">UA</a>
  26. <a href="nitro.js.htm">EN</a>
  27. </div>
  28. </div>
  29. </nav>
  30. <header>
  31. <a href="../index.html"><img src="https://openmoji.org/data/color/svg/1F525.svg" /></a>
  32. <h1>NITRO.JS</h1>
  33. </header>
  34. <main>
  35. <article>
  36. <section>
  37. <h3>INTRO</h3>
  38. <p>The <a href="https://github.com/synrc/nitro/blob/master/priv/js/nitro.js">nitro.js</a>
  39. module provides client NITRO protocol implementation.</p>
  40. </section>
  41. <section>
  42. <h3>API</h3>
  43. <h4>direct(term)</h4>
  44. <p>Sends DIRECT message from JavaScript. Use <b>enc</b> from <a href="https://github.com/synrc/n2o/blob/master/priv/bert.js">bert.js</a></p>
  45. <figure><code> > direct(tuple(atom('direct'),atom('test')));</code></figure>
  46. <h4>qi(id)</h4>
  47. <p>Returns DOM element by existing <b>id</b>.</p>
  48. <h4>qs(id)</h4>
  49. <p>Searches for DOM element.</p>
  50. <h4>qn(id)</h4>
  51. <p>Creates new DOM element.</p>
  52. <h4>querySource(name)</h4>
  53. <p>Retrives <b>value</b> fields of the given field.</p>
  54. <h4>validateSources(list)</h4>
  55. <p>Validates each <b>value</b> filed for the given list of fields.</p>
  56. <h4>$io.do</h4>
  57. <p>The event handler interceptor of the incoming IO message.</p>
  58. <figure><code> $io.do = function(x) { console.log(x); }</code></figure>
  59. </section>
  60. <section>
  61. <p>You may also want to read:
  62. <a href="bert.js.htm">bert.js</a>,
  63. <a href="utf8.js.htm">utf8.js</a>,
  64. <a href="mq.js.htm">mq.js</a>,
  65. <a href="n2o.js.htm">n2o.js</a>.
  66. </p>
  67. </section>
  68. </article>
  69. </main>
  70. <footer>2005—2019 © Synrc Research Center</footer>
  71. <script>function drop(){document.getElementById("dropdown").classList.toggle("show");}</script>
  72. </body>
  73. </html>