nitro.js.htm 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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(atom('test'));</code></figure>
  46. <p>which will cause calling <b>event(:test)</b> clause in Nitrogen page controller. </p>
  47. <h4>qi(id)</h4>
  48. <p>Returns DOM element by existing <b>id</b>.</p>
  49. <h4>qs(id)</h4>
  50. <p>Searches for DOM element.</p>
  51. <h4>qn(id)</h4>
  52. <p>Creates new DOM element.</p>
  53. <h4>querySource(name)</h4>
  54. <p>Retrives <b>value</b> fields of the given field.</p>
  55. <h4>validateSources(list)</h4>
  56. <p>Validates each <b>value</b> filed for the given list of fields.</p>
  57. <h4>$io.do</h4>
  58. <p>The event handler interceptor of the incoming IO message.</p>
  59. <figure><code> $io.do = function(x) { console.log(x); }</code></figure>
  60. </section>
  61. <section>
  62. <p>You may also want to read:
  63. <a href="bert.js.htm">bert.js</a>,
  64. <a href="utf8.js.htm">utf8.js</a>,
  65. <a href="mq.js.htm">mq.js</a>,
  66. <a href="n2o.js.htm">n2o.js</a>.
  67. </p>
  68. </section>
  69. </article>
  70. </main>
  71. <footer>2005—2019 © Synrc Research Center</footer>
  72. <script>function drop(){document.getElementById("dropdown").classList.toggle("show");}</script>
  73. </body>
  74. </html>