sciter-rs 0.5.39

Rust bindings for Sciter - Embeddable HTML/CSS/script engine (cross-platform desktop GUI toolkit). Also capable with DirectX / OpenGL.
Documentation
<html window-icon="https://sciter.com/wp-content/themes/sciter/!images/favicon.ico">
  <head>
    <title>Minimalistic Sciter demo</title>
    <style>

      html {
        background: radial-gradient(75% 75%, circle farthest-side, white, orange, rgb(0,0,204));
        color: #fff;
      }

      html:rtl {
        mapping: left-to-right(background);
      }

      a { color: white; }
      code { font-weight: bold; }

    </style>
    <script type="text/tiscript">
      view.caption = $(head > title).value;

      $(#machine).text = Sciter.machineName();

      var counter = 0;

      $(button#append).on("click", function(){
        $(body).$append(<h1#test>{++counter }</h1>);
      });

      $(button#open).on("click", function(){

        var fn = view.selectFile(#open,
          "HTML Files (*.htm,*.html)|*.HTM;*.HTML|All Files (*.*)|*.*" , "html" );

        stdout.println("selected file: " + fn);
        $(body).$append(<h1#test>{fn}</h1>);
      });

      // Some tricks with hyperlinks:
      $(a).on("click", function() {
        Sciter.launch(this.attributes["href"]);
        return true;
      });

      for (var a in $$(a)) {
        a.attributes["title"] = a.attributes["href"];
      }

    </script>
  </head>
<body>

  <h1>Minimal Sciter Application</h1>
  <p>Running on <em #machine /> machine</p>

  <button #append>Append</button>
  <button #open>Open</button>
  <select>
    <option>Some</option>
    <option>Items</option>
    <option>in select</option>
  </select>

  <section class=footer>
    <p>You can inspect this window in the <a href="https://sciter.com/developers/development-tools/">Inspector tool</a>
    from the <a href="https://sciter.com/download/">Sciter SDK</a>.</p>
    <p>Run the Inspector first and then press <code>CTRL+SHIFT+I</code> in this window.</p>
  </section>

</body>
</html>