Sha256: b7dbb5297725e903d03aa34fa430def44cddcacbe3415ec0bdf9a75da4c4e3db

Contents?: true

Size: 824 Bytes

Versions: 3

Compression:

Stored size: 824 Bytes

Contents

<html>
  <head>
    <script src='./javascripts/neutron.js'></script>
    <link href='./stylesheets/neutron.less' type='text/less' rel='stylesheet'>
  </head>
  <body>
<% if options[:react] -%>
    <div id='react-entry-point'></div>
    <script>
      ReactDOM.render(React.createElement(NeutronEntryPointComponent, null), document.getElementById('react-entry-point'))
    </script>
<% else -%>
    <div>
      <h2>Welcome to NEUTRON</h2>
      <p>
        <button id='b'>Try Neutron</button>
        <script>
          document.getElementById('b').addEventListener('click', () => {
            for(let i = 0; i < 10; i++)
              neutron.send('add', [0, i], {once: false}).then(result => console.log(result)).catch(e => console.log(e))
          })
        </script>
      </p>
    </div>
<% end -%>
  </body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
neutron-ruby-electron-0.1.2 lib/neutron/template/src/assets/index.html.tt
neutron-ruby-electron-0.1.1 lib/neutron/template/src/assets/index.html.tt
neutron-ruby-electron-0.1.0 lib/neutron/template/src/assets/index.html.tt